1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: private wxMacTextControl base class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_MAC_PRIVATE_MACTEXT_H_
13 #define _WX_MAC_PRIVATE_MACTEXT_H_
15 #include "wx/osx/private.h"
17 // implementation exposed, so that search control can pull it
19 class wxMacUnicodeTextControl
: public wxMacControl
, public wxTextWidgetImpl
22 wxMacUnicodeTextControl( wxTextCtrl
*wxPeer
) ;
23 wxMacUnicodeTextControl( wxTextCtrl
*wxPeer
,
26 const wxSize
& size
, long style
) ;
27 virtual ~wxMacUnicodeTextControl();
29 virtual bool CanFocus() const
31 virtual void VisibilityChanged(bool shown
);
32 virtual wxString
GetStringValue() const ;
33 virtual void SetStringValue( const wxString
&str
) ;
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
) ;
44 void InstallEventHandlers();
46 // contains the tag for the content (is different for password and non-password controls)
48 WXEVENTHANDLERREF m_macTextCtrlEventHandler
;
50 ControlEditTextSelectionRec m_selection
;
53 #endif // _WX_MAC_PRIVATE_MACTEXT_H_