1 #ifndef FILEZILLA_INTERFACE_TEXTCTRLEX_HEADER
2 #define FILEZILLA_INTERFACE_TEXTCTRLEX_HEADER
3 
4 #include <wx/textctrl.h>
5 
6 class wxTextCtrlEx : public wxTextCtrl
7 {
8 public:
9 	wxTextCtrlEx() = default;
10 	wxTextCtrlEx(wxWindow* parent, int id, wxString const& value = wxString(), wxPoint const& pos = wxDefaultPosition, wxSize const& size = wxDefaultSize, long style = 0);
11 
12 	bool Create(wxWindow* parent, int id, wxString const& value = wxString(), wxPoint const& pos = wxDefaultPosition, wxSize const& size = wxDefaultSize, long style = 0);
13 
14 #ifdef __WXMAC__
15 	// Disable pasting of formatting, we're only ever interested in the text.
16 	virtual void Paste() override;
17 #endif
18 };
19 
20 #ifdef __WXMAC__
21 const wxTextAttr& GetDefaultTextCtrlStyle(wxTextCtrl* ctrl);
22 #endif
23 
24 #endif
25