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