2008-06-11 12:30:48 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: mactext.h
|
|
|
|
// Purpose: private wxMacTextControl base class
|
|
|
|
// Author: Stefan Csomor
|
|
|
|
// Modified by:
|
|
|
|
// Created: 03/02/99
|
2008-08-30 18:01:20 -04:00
|
|
|
// RCS-ID: $Id:
|
2008-06-11 12:30:48 -04:00
|
|
|
// Copyright: (c) Stefan Csomor
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MAC_PRIVATE_MACTEXT_H_
|
|
|
|
#define _WX_MAC_PRIVATE_MACTEXT_H_
|
|
|
|
|
2008-06-11 15:17:41 -04:00
|
|
|
#include "wx/osx/private.h"
|
2008-06-11 12:30:48 -04:00
|
|
|
|
2008-09-05 10:41:11 -04:00
|
|
|
// implementation exposed, so that search control can pull it
|
2008-06-11 12:30:48 -04:00
|
|
|
|
2008-09-05 10:41:11 -04:00
|
|
|
class wxMacUnicodeTextControl : public wxMacControl, public wxTextWidgetImpl
|
2008-06-11 12:30:48 -04:00
|
|
|
{
|
|
|
|
public :
|
|
|
|
wxMacUnicodeTextControl( wxTextCtrl *wxPeer ) ;
|
|
|
|
wxMacUnicodeTextControl( wxTextCtrl *wxPeer,
|
|
|
|
const wxString& str,
|
|
|
|
const wxPoint& pos,
|
|
|
|
const wxSize& size, long style ) ;
|
|
|
|
virtual ~wxMacUnicodeTextControl();
|
|
|
|
|
2008-09-21 14:52:01 -04:00
|
|
|
virtual bool CanFocus() const
|
|
|
|
{ return true; }
|
2008-06-11 12:30:48 -04:00
|
|
|
virtual void VisibilityChanged(bool shown);
|
|
|
|
virtual wxString GetStringValue() const ;
|
|
|
|
virtual void SetStringValue( const wxString &str) ;
|
|
|
|
virtual void Copy();
|
|
|
|
virtual void Cut();
|
|
|
|
virtual void Paste();
|
|
|
|
virtual bool CanPaste() const;
|
|
|
|
virtual void SetEditable(bool editable) ;
|
|
|
|
virtual void GetSelection( long* from, long* to) const ;
|
|
|
|
virtual void SetSelection( long from , long to ) ;
|
|
|
|
virtual void WriteText(const wxString& str) ;
|
|
|
|
|
|
|
|
protected :
|
2008-09-05 10:41:11 -04:00
|
|
|
void InstallEventHandlers();
|
2008-06-11 12:30:48 -04:00
|
|
|
|
|
|
|
// contains the tag for the content (is different for password and non-password controls)
|
|
|
|
OSType m_valueTag ;
|
|
|
|
public :
|
|
|
|
ControlEditTextSelectionRec m_selection ;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_MAC_PRIVATE_MACTEXT_H_
|