]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/cocoa/private/textimpl.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: textcontrol implementation classes that have to be exposed
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_OSX_COCOA_PRIVATE_TEXTIMPL_H_
13 #define _WX_OSX_COCOA_PRIVATE_TEXTIMPL_H_
15 #include "wx/osx/private.h"
17 // implementation exposed, so that search control can pull it
19 class wxNSTextFieldControl
: public wxWidgetCocoaImpl
, public wxTextWidgetImpl
22 wxNSTextFieldControl( wxTextCtrl
*wxPeer
, WXWidget w
);
23 virtual ~wxNSTextFieldControl();
25 virtual wxString
GetStringValue() const ;
26 virtual void SetStringValue( const wxString
&str
) ;
29 virtual void Paste() ;
30 virtual bool CanPaste() const ;
31 virtual void SetEditable(bool editable
) ;
32 virtual void GetSelection( long* from
, long* to
) const ;
33 virtual void SetSelection( long from
, long to
);
34 virtual void WriteText(const wxString
& str
) ;
37 #endif // _WX_OSX_COCOA_PRIVATE_TEXTIMPL_H_