]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/carbon/private/mactext.h
enum wxWebViewBackend has been removed.
[wxWidgets.git] / include / wx / osx / carbon / private / mactext.h
CommitLineData
5c6eb3a8 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/osx/carbon/private/mactext.h
5c6eb3a8
SC
3// Purpose: private wxMacTextControl base class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 03/02/99
2903e699 7// RCS-ID: $Id$
5c6eb3a8
SC
8// Copyright: (c) Stefan Csomor
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_MAC_PRIVATE_MACTEXT_H_
13#define _WX_MAC_PRIVATE_MACTEXT_H_
14
ef0e9220 15#include "wx/osx/private.h"
5c6eb3a8 16
2903e699 17// implementation exposed, so that search control can pull it
5c6eb3a8 18
1e181c7a 19class wxMacUnicodeTextControl : public wxMacControl, public wxTextWidgetImpl
5c6eb3a8
SC
20{
21public :
22 wxMacUnicodeTextControl( wxTextCtrl *wxPeer ) ;
23 wxMacUnicodeTextControl( wxTextCtrl *wxPeer,
24 const wxString& str,
25 const wxPoint& pos,
26 const wxSize& size, long style ) ;
27 virtual ~wxMacUnicodeTextControl();
28
f5049135
SC
29 virtual bool CanFocus() const
30 { return true; }
5c6eb3a8
SC
31 virtual void VisibilityChanged(bool shown);
32 virtual wxString GetStringValue() const ;
33 virtual void SetStringValue( const wxString &str) ;
34 virtual void Copy();
35 virtual void Cut();
36 virtual void Paste();
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) ;
42
43protected :
1e181c7a 44 void InstallEventHandlers();
5c6eb3a8
SC
45
46 // contains the tag for the content (is different for password and non-password controls)
47 OSType m_valueTag ;
c9f9deab 48 WXEVENTHANDLERREF m_macTextCtrlEventHandler ;
5c6eb3a8
SC
49public :
50 ControlEditTextSelectionRec m_selection ;
51};
52
53#endif // _WX_MAC_PRIVATE_MACTEXT_H_