1 /** wxsrichtextctrl.h 2 * 3 * This file is part of wxSmith plugin for Code::Blocks Studio 4 * Copyright (C) 2010 Gary Harris 5 * 6 * wxSmith is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * wxSmith is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with wxSmith. If not, see <http://www.gnu.org/licenses/>. 18 * 19 */ 20 21 #ifndef WXSRICHTEXTCTRL_H 22 #define WXSRICHTEXTCTRL_H 23 24 #include "../wxswidget.h" 25 26 /** \brief Class for wxRichTextCtrl widget */ 27 class wxsRichTextCtrl: public wxsWidget 28 { 29 public: 30 31 wxsRichTextCtrl(wxsItemResData* Data); 32 33 private: 34 35 virtual void OnBuildCreatingCode(); 36 virtual wxObject* OnBuildPreview(wxWindow* Parent,long Flags); 37 virtual void OnEnumWidgetProperties(long Flags); 38 39 wxString m_sText; //!< The default text to display. 40 long m_iAlignment; //!< Text alignment value. 41 long m_iAttribute; //!< Attribute flags passed to SetFlags(). 42 long m_iBullets; //!< Bullet style flags. 43 long m_iSpacing; //!< Line spacing value. 44 long m_iEffects; //!< Text effect flags. 45 wxsColourData m_cdTextColour; //!< The text foreground colour. 46 wxsColourData m_cdTextBackground; //!< The text background colour. 47 wxsFontData m_fdFont; //!< The font. 48 }; 49 50 #endif 51