]>
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
) ;
36 virtual void controlAction(WXWidget slf
, void* _cmd
, void *sender
);
38 NSTextField
* m_textField
;
43 class wxNSTextViewControl
: public wxWidgetCocoaImpl
, public wxTextWidgetImpl
46 wxNSTextViewControl( wxTextCtrl
*wxPeer
, WXWidget w
);
47 virtual ~wxNSTextViewControl();
49 virtual wxString
GetStringValue() const ;
50 virtual void SetStringValue( const wxString
&str
) ;
53 virtual void Paste() ;
54 virtual bool CanPaste() const ;
55 virtual void SetEditable(bool editable
) ;
56 virtual void GetSelection( long* from
, long* to
) const ;
57 virtual void SetSelection( long from
, long to
);
58 virtual void WriteText(const wxString
& str
) ;
61 NSScrollView
* m_scrollView
;
62 NSTextView
* m_textView
;
65 #endif // _WX_OSX_COCOA_PRIVATE_TEXTIMPL_H_