]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/osx/carbon/private/mactext.h | |
3 | // Purpose: private wxMacTextControl base class | |
4 | // Author: Stefan Csomor | |
5 | // Modified by: | |
6 | // Created: 03/02/99 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Stefan Csomor | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_MAC_PRIVATE_MACTEXT_H_ | |
13 | #define _WX_MAC_PRIVATE_MACTEXT_H_ | |
14 | ||
15 | #include "wx/osx/private.h" | |
16 | ||
17 | // implementation exposed, so that search control can pull it | |
18 | ||
19 | class wxMacUnicodeTextControl : public wxMacControl, public wxTextWidgetImpl | |
20 | { | |
21 | public : | |
22 | wxMacUnicodeTextControl( wxTextCtrl *wxPeer ) ; | |
23 | wxMacUnicodeTextControl( wxTextCtrl *wxPeer, | |
24 | const wxString& str, | |
25 | const wxPoint& pos, | |
26 | const wxSize& size, long style ) ; | |
27 | virtual ~wxMacUnicodeTextControl(); | |
28 | ||
29 | virtual bool CanFocus() const | |
30 | { return true; } | |
31 | virtual void VisibilityChanged(bool shown); | |
32 | virtual wxString GetStringValue() const ; | |
33 | virtual void SetStringValue( const wxString &str) ; | |
34 | virtual void Copy(); | |
35 | virtual void Cut(); | |
36 | virtual void Paste(); | |
37 | virtual bool CanPaste() const; | |
38 | virtual void SetEditable(bool editable) ; | |
39 | virtual void GetSelection( long* from, long* to) const ; | |
40 | virtual void SetSelection( long from , long to ) ; | |
41 | virtual void WriteText(const wxString& str) ; | |
42 | ||
43 | protected : | |
44 | void InstallEventHandlers(); | |
45 | ||
46 | // contains the tag for the content (is different for password and non-password controls) | |
47 | OSType m_valueTag ; | |
48 | WXEVENTHANDLERREF m_macTextCtrlEventHandler ; | |
49 | public : | |
50 | ControlEditTextSelectionRec m_selection ; | |
51 | }; | |
52 | ||
53 | #endif // _WX_MAC_PRIVATE_MACTEXT_H_ |