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 void VisibilityChanged(bool shown
);
30 virtual wxString
GetStringValue() const ;
31 virtual void SetStringValue( const wxString
&str
) ;
35 virtual bool CanPaste() const;
36 virtual void SetEditable(bool editable
) ;
37 virtual void GetSelection( long* from
, long* to
) const ;
38 virtual void SetSelection( long from
, long to
) ;
39 virtual void WriteText(const wxString
& str
) ;
42 void InstallEventHandlers();
44 // contains the tag for the content (is different for password and non-password controls)
47 ControlEditTextSelectionRec m_selection
;
50 #endif // _WX_MAC_PRIVATE_MACTEXT_H_