1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/carbon/private/mactext.h
3 // Purpose: private wxMacTextControl base class
4 // Author: Stefan Csomor
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_MAC_PRIVATE_MACTEXT_H_
12 #define _WX_MAC_PRIVATE_MACTEXT_H_
14 #include "wx/osx/private.h"
16 // implementation exposed, so that search control can pull it
18 class wxMacUnicodeTextControl
: public wxMacControl
, public wxTextWidgetImpl
21 wxMacUnicodeTextControl( wxTextCtrl
*wxPeer
) ;
22 wxMacUnicodeTextControl( wxTextCtrl
*wxPeer
,
25 const wxSize
& size
, long style
) ;
26 virtual ~wxMacUnicodeTextControl();
28 virtual bool CanFocus() const
30 virtual void VisibilityChanged(bool shown
);
31 virtual wxString
GetStringValue() const ;
32 virtual void SetStringValue( const wxString
&str
) ;
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
) ;
43 void InstallEventHandlers();
45 // contains the tag for the content (is different for password and non-password controls)
47 WXEVENTHANDLERREF m_macTextCtrlEventHandler
;
49 ControlEditTextSelectionRec m_selection
;
52 #endif // _WX_MAC_PRIVATE_MACTEXT_H_