* Forward declarations
*/
-class WXDLLIMPEXP_ADV wxRichTextCtrl;
-class WXDLLIMPEXP_ADV wxRichTextBuffer;
+class WXDLLIMPEXP_RICHTEXT wxRichTextCtrl;
+class WXDLLIMPEXP_RICHTEXT wxRichTextBuffer;
/*!
* wxRichTextStyleDefinition class declaration
* A base class for paragraph and character styles.
*/
-class WXDLLIMPEXP_ADV wxRichTextStyleDefinition: public wxObject
+class WXDLLIMPEXP_RICHTEXT wxRichTextStyleDefinition: public wxObject
{
DECLARE_CLASS(wxRichTextStyleDefinition)
public:
* wxRichTextCharacterStyleDefinition class declaration
*/
-class WXDLLIMPEXP_ADV wxRichTextCharacterStyleDefinition: public wxRichTextStyleDefinition
+class WXDLLIMPEXP_RICHTEXT wxRichTextCharacterStyleDefinition: public wxRichTextStyleDefinition
{
DECLARE_DYNAMIC_CLASS(wxRichTextCharacterStyleDefinition)
public:
* wxRichTextParagraphStyleDefinition class declaration
*/
-class WXDLLIMPEXP_ADV wxRichTextParagraphStyleDefinition: public wxRichTextStyleDefinition
+class WXDLLIMPEXP_RICHTEXT wxRichTextParagraphStyleDefinition: public wxRichTextStyleDefinition
{
DECLARE_DYNAMIC_CLASS(wxRichTextParagraphStyleDefinition)
public:
* The style sheet
*/
-class WXDLLIMPEXP_ADV wxRichTextStyleSheet: public wxObject
+class WXDLLIMPEXP_RICHTEXT wxRichTextStyleSheet: public wxObject
{
DECLARE_CLASS( wxRichTextStyleSheet )
* A listbox to display styles.
*/
-class WXDLLIMPEXP_ADV wxRichTextStyleListBox: public wxHtmlListBox
+class WXDLLIMPEXP_RICHTEXT wxRichTextStyleListBox: public wxHtmlListBox
{
DECLARE_CLASS(wxRichTextStyleListBox)
DECLARE_EVENT_TABLE()
const wxSize& size = wxDefaultSize, long style = 0);
~wxRichTextStyleListBox();
- /// Returns the HTML for this item
- virtual wxString OnGetItem(size_t n) const;
-
/// Creates a suitable HTML fragment for a definition
wxString CreateHTML(wxRichTextStyleDefinition* def) const;
// Convert units in tends of a millimetre to device units
int ConvertTenthsMMToPixels(wxDC& dc, int units) const;
+protected:
+ /// Returns the HTML for this item
+ virtual wxString OnGetItem(size_t n) const;
+
private:
wxRichTextStyleSheet* m_styleSheet;