git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73895
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
The line break character that can be embedded in content.
*/
The line break character that can be embedded in content.
*/
-extern WXDLLIMPEXP_RICHTEXT const wxChar wxRichTextLineBreakChar;
+extern const wxChar wxRichTextLineBreakChar;
/**
File types in wxRichText context.
/**
File types in wxRichText context.
@see wxRichTextAttr, wxRichTextCtrl, wxTextAttrDimensions
*/
@see wxRichTextAttr, wxRichTextCtrl, wxTextAttrDimensions
*/
-class WXDLLIMPEXP_RICHTEXT wxTextAttrDimension
+class wxTextAttrDimension
@see wxRichTextAttr, wxRichTextCtrl, wxTextAttrDimension
*/
@see wxRichTextAttr, wxRichTextCtrl, wxTextAttrDimension
*/
-class WXDLLIMPEXP_RICHTEXT wxTextAttrDimensions
+class wxTextAttrDimensions
@see wxRichTextAttr, wxRichTextCtrl, wxTextAttrDimension
*/
@see wxRichTextAttr, wxRichTextCtrl, wxTextAttrDimension
*/
-class WXDLLIMPEXP_RICHTEXT wxTextAttrSize
@see wxRichTextAttr, wxRichTextCtrl, wxTextAttrDimension
*/
@see wxRichTextAttr, wxRichTextCtrl, wxTextAttrDimension
*/
-class WXDLLIMPEXP_RICHTEXT wxTextAttrDimensionConverter
+class wxTextAttrDimensionConverter
@see wxRichTextAttr, wxRichTextCtrl, wxRichTextAttrBorders
*/
@see wxRichTextAttr, wxRichTextCtrl, wxRichTextAttrBorders
*/
-class WXDLLIMPEXP_RICHTEXT wxTextAttrBorder
@see wxRichTextAttr, wxRichTextCtrl, wxRichTextAttrBorder
*/
@see wxRichTextAttr, wxRichTextCtrl, wxRichTextAttrBorder
*/
-class WXDLLIMPEXP_RICHTEXT wxTextAttrBorders
@see wxRichTextAttr, wxRichTextCtrl
*/
@see wxRichTextAttr, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxTextBoxAttr
@see wxRichTextAttr, wxTextBoxAttr, wxRichTextCtrl
*/
@see wxRichTextAttr, wxTextBoxAttr, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextAttr: public wxTextAttr
+class wxRichTextAttr: public wxTextAttr
wxTextBoxAttr m_textBoxAttr;
};
wxTextBoxAttr m_textBoxAttr;
};
-WX_DECLARE_USER_EXPORTED_OBJARRAY(wxRichTextAttr, wxRichTextAttrArray, WXDLLIMPEXP_RICHTEXT);
-
-WX_DECLARE_USER_EXPORTED_OBJARRAY(wxVariant, wxRichTextVariantArray, WXDLLIMPEXP_RICHTEXT);
+class wxRichTextAttrArray;
+class wxRichTextVariantArray;
/**
@class wxRichTextProperties
/**
@class wxRichTextProperties
@see wxRichTextBuffer, wxRichTextObject, wxRichTextCtrl
*/
@see wxRichTextBuffer, wxRichTextObject, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextProperties: public wxObject
+class wxRichTextProperties: public wxObject
-DECLARE_DYNAMIC_CLASS(wxRichTextProperties)
@see wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextFontTable: public wxObject
+class wxRichTextFontTable: public wxObject
protected:
double m_fontScale;
protected:
double m_fontScale;
-
- DECLARE_DYNAMIC_CLASS(wxRichTextFontTable)
@see wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextRange
{
public:
// Constructors
{
public:
// Constructors
-WX_DECLARE_USER_EXPORTED_OBJARRAY(wxRichTextRange, wxRichTextRangeArray, WXDLLIMPEXP_RICHTEXT);
+class wxRichTextRangeArray;
#define wxRICHTEXT_ALL wxRichTextRange(-2, -2)
#define wxRICHTEXT_NONE wxRichTextRange(-1, -1)
#define wxRICHTEXT_ALL wxRichTextRange(-2, -2)
#define wxRICHTEXT_NONE wxRichTextRange(-1, -1)
@see wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextSelection
+class wxRichTextSelection
@see wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextDrawingContext: public wxObject
+class wxRichTextDrawingContext: public wxObject
- DECLARE_CLASS(wxRichTextDrawingContext)
@see wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextObject: public wxObject
+class wxRichTextObject: public wxObject
- DECLARE_CLASS(wxRichTextObject)
public:
/**
Constructor, taking an optional parent pointer.
public:
/**
Constructor, taking an optional parent pointer.
/**
Finds the absolute position and row height for the given character position.
*/
/**
Finds the absolute position and row height for the given character position.
*/
- virtual bool FindPosition(wxDC& WXUNUSED(dc), wxRichTextDrawingContext& WXUNUSED(context), long WXUNUSED(index), wxPoint& WXUNUSED(pt), int* WXUNUSED(height), bool WXUNUSED(forceLineStart)) { return false; }
+ virtual bool FindPosition(wxDC& dc, wxRichTextDrawingContext& context, long index, wxPoint& pt, int* height, bool forceLineStart);
/**
Returns the best size, i.e. the ideal starting size for this object irrespective
/**
Returns the best size, i.e. the ideal starting size for this object irrespective
Do a split from @a pos, returning an object containing the second part, and setting
the first part in 'this'.
*/
Do a split from @a pos, returning an object containing the second part, and setting
the first part in 'this'.
*/
- virtual wxRichTextObject* DoSplit(long WXUNUSED(pos)) { return NULL; }
+ virtual wxRichTextObject* DoSplit(long pos);
/**
Calculates the range of the object. By default, guess that the object is 1 unit long.
*/
/**
Calculates the range of the object. By default, guess that the object is 1 unit long.
*/
- virtual void CalculateRange(long start, long& end) { end = start ; m_range.SetRange(start, end); }
+ virtual void CalculateRange(long start, long& end);
/**
Deletes the given range.
*/
/**
Deletes the given range.
*/
- virtual bool DeleteRange(const wxRichTextRange& WXUNUSED(range)) { return false; }
+ virtual bool DeleteRange(const wxRichTextRange& range);
/**
Returns @true if the object is empty.
/**
Returns @true if the object is empty.
/**
Returns any text in this object for the given range.
*/
/**
Returns any text in this object for the given range.
*/
- virtual wxString GetTextForRange(const wxRichTextRange& WXUNUSED(range)) const { return wxEmptyString; }
+ virtual wxString GetTextForRange(const wxRichTextRange& range) const { return wxEmptyString; }
/**
Returns @true if this object can merge itself with the given one.
/**
Returns @true if this object can merge itself with the given one.
/**
Edits the object's properties via a GUI.
*/
/**
Edits the object's properties via a GUI.
*/
- virtual bool EditProperties(wxWindow* WXUNUSED(parent), wxRichTextBuffer* WXUNUSED(buffer)) { return false; }
+ virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer) { return false; }
/**
Returns the label to be used for the properties context menu item.
/**
Returns the label to be used for the properties context menu item.
*/
virtual bool AcceptsFocus() const { return false; }
*/
virtual bool AcceptsFocus() const { return false; }
/**
Imports this object from XML.
*/
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse);
/**
Imports this object from XML.
*/
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse);
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
/**
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
/**
Returns a selection object specifying the selections between start and end character positions.
For example, a table would deduce what cells (of range length 1) are selected when dragging across the table.
*/
Returns a selection object specifying the selections between start and end character positions.
For example, a table would deduce what cells (of range length 1) are selected when dragging across the table.
*/
- virtual wxRichTextSelection GetSelection(long WXUNUSED(start), long WXUNUSED(end)) const { return wxRichTextSelection(); }
+ virtual wxRichTextSelection GetSelection(long start, long end) const { return wxRichTextSelection(); }
wxRichTextProperties m_properties;
};
wxRichTextProperties m_properties;
};
-WX_DECLARE_LIST_WITH_DECL( wxRichTextObject, wxRichTextObjectList, class WXDLLIMPEXP_RICHTEXT );
+class wxRichTextObjectList;
/**
@class wxRichTextCompositeObject
/**
@class wxRichTextCompositeObject
@see wxRichTextObject, wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextObject, wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextCompositeObject: public wxRichTextObject
+class wxRichTextCompositeObject: public wxRichTextObject
- DECLARE_CLASS(wxRichTextCompositeObject)
@see wxRichTextCompositeObject, wxRichTextObject, wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextCompositeObject, wxRichTextObject, wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextParagraphLayoutBox: public wxRichTextCompositeObject
+class wxRichTextParagraphLayoutBox: public wxRichTextCompositeObject
- DECLARE_DYNAMIC_CLASS(wxRichTextParagraphLayoutBox)
virtual wxString GetTextForRange(const wxRichTextRange& range) const;
virtual wxString GetTextForRange(const wxRichTextRange& range) const;
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse);
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse);
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler);
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler);
@see wxRichTextParagraphLayoutBox, wxRichTextObject, wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextParagraphLayoutBox, wxRichTextObject, wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextBox: public wxRichTextParagraphLayoutBox
+class wxRichTextBox: public wxRichTextParagraphLayoutBox
- DECLARE_DYNAMIC_CLASS(wxRichTextBox)
@see wxRichTextFieldTypeStandard, wxRichTextFieldType, wxRichTextParagraphLayoutBox, wxRichTextProperties, wxRichTextCtrl
*/
@see wxRichTextFieldTypeStandard, wxRichTextFieldType, wxRichTextParagraphLayoutBox, wxRichTextProperties, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextField: public wxRichTextParagraphLayoutBox
+class wxRichTextField: public wxRichTextParagraphLayoutBox
- DECLARE_DYNAMIC_CLASS(wxRichTextField)
@see wxRichTextFieldTypeStandard, wxRichTextField, wxRichTextCtrl
*/
@see wxRichTextFieldTypeStandard, wxRichTextField, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextFieldType: public wxObject
+class wxRichTextFieldType: public wxObject
- DECLARE_CLASS(wxRichTextFieldType)
public:
/**
Creates a field type definition.
public:
/**
Creates a field type definition.
/**
Returns @true if we can edit the object's properties via a GUI.
*/
/**
Returns @true if we can edit the object's properties via a GUI.
*/
- virtual bool CanEditProperties(wxRichTextField* WXUNUSED(obj)) const { return false; }
+ virtual bool CanEditProperties(wxRichTextField* obj) const { return false; }
/**
Edits the object's properties via a GUI.
*/
/**
Edits the object's properties via a GUI.
*/
- virtual bool EditProperties(wxRichTextField* WXUNUSED(obj), wxWindow* WXUNUSED(parent), wxRichTextBuffer* WXUNUSED(buffer)) { return false; }
+ virtual bool EditProperties(wxRichTextField* obj, wxWindow* parent, wxRichTextBuffer* buffer) { return false; }
/**
Returns the label to be used for the properties context menu item.
*/
/**
Returns the label to be used for the properties context menu item.
*/
- virtual wxString GetPropertiesMenuLabel(wxRichTextField* WXUNUSED(obj)) const { return wxEmptyString; }
+ virtual wxString GetPropertiesMenuLabel(wxRichTextField* obj) const { return wxEmptyString; }
/**
Update the field. This would typically expand the field to its value,
/**
Update the field. This would typically expand the field to its value,
/**
Returns @true if this object is top-level, i.e. contains its own paragraphs, such as a text box.
*/
/**
Returns @true if this object is top-level, i.e. contains its own paragraphs, such as a text box.
*/
- virtual bool IsTopLevel(wxRichTextField* WXUNUSED(obj)) const { return true; }
+ virtual bool IsTopLevel(wxRichTextField* obj) const { return true; }
/**
Sets the field type name. There should be a unique name per field type object.
/**
Sets the field type name. There should be a unique name per field type object.
-WX_DECLARE_STRING_HASH_MAP(wxRichTextFieldType*, wxRichTextFieldTypeHashMap);
+class wxRichTextFieldTypeHashMap;
/**
@class wxRichTextFieldTypeStandard
/**
@class wxRichTextFieldTypeStandard
@see wxRichTextFieldType, wxRichTextField, wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextFieldType, wxRichTextField, wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextFieldTypeStandard: public wxRichTextFieldType
+class wxRichTextFieldTypeStandard: public wxRichTextFieldType
- DECLARE_CLASS(wxRichTextFieldTypeStandard)
public:
// Display style types
public:
// Display style types
/**
Returns @true if the display type is wxRICHTEXT_FIELD_STYLE_COMPOSITE, @false otherwise.
*/
/**
Returns @true if the display type is wxRICHTEXT_FIELD_STYLE_COMPOSITE, @false otherwise.
*/
- virtual bool IsTopLevel(wxRichTextField* WXUNUSED(obj)) const { return (GetDisplayStyle() & wxRICHTEXT_FIELD_STYLE_COMPOSITE) != 0; }
+ virtual bool IsTopLevel(wxRichTextField* obj) const { return (GetDisplayStyle() & wxRICHTEXT_FIELD_STYLE_COMPOSITE) != 0; }
/**
Sets the text label for fields of this type.
/**
Sets the text label for fields of this type.
@see wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextLine
{
public:
// Constructors
{
public:
// Constructors
-WX_DECLARE_LIST_WITH_DECL( wxRichTextLine, wxRichTextLineList , class WXDLLIMPEXP_RICHTEXT );
+class wxRichTextLineList;
/**
@class wxRichTextParagraph
/**
@class wxRichTextParagraph
@see wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextParagraph: public wxRichTextCompositeObject
+class wxRichTextParagraph: public wxRichTextCompositeObject
- DECLARE_DYNAMIC_CLASS(wxRichTextParagraph)
@see wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextPlainText: public wxRichTextObject
+class wxRichTextPlainText: public wxRichTextObject
- DECLARE_DYNAMIC_CLASS(wxRichTextPlainText)
/// Does this object take note of paragraph attributes? Text and image objects don't.
virtual bool UsesParagraphAttributes() const { return false; }
/// Does this object take note of paragraph attributes? Text and image objects don't.
virtual bool UsesParagraphAttributes() const { return false; }
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse);
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse);
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler);
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler);
@see wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextImageBlock: public wxObject
+class wxRichTextImageBlock: public wxObject
@see wxRichTextBuffer, wxRichTextCtrl, wxRichTextImageBlock
*/
@see wxRichTextBuffer, wxRichTextCtrl, wxRichTextImageBlock
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextImage: public wxRichTextObject
+class wxRichTextImage: public wxRichTextObject
- DECLARE_DYNAMIC_CLASS(wxRichTextImage)
virtual bool UsesParagraphAttributes() const { return false; }
virtual bool UsesParagraphAttributes() const { return false; }
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse);
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse);
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler);
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler);
wxBitmap m_imageCache;
};
wxBitmap m_imageCache;
};
-class WXDLLIMPEXP_FWD_RICHTEXT wxRichTextCommand;
-class WXDLLIMPEXP_FWD_RICHTEXT wxRichTextAction;
+class wxRichTextCommand;
+class wxRichTextAction;
/**
@class wxRichTextBuffer
/**
@class wxRichTextBuffer
@see wxRichTextParagraphLayoutBox, wxRichTextCtrl
*/
@see wxRichTextParagraphLayoutBox, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextBuffer: public wxRichTextParagraphLayoutBox
+class wxRichTextBuffer: public wxRichTextParagraphLayoutBox
- DECLARE_DYNAMIC_CLASS(wxRichTextBuffer)
wxRichTextCell is the cell in a table.
*/
wxRichTextCell is the cell in a table.
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextCell: public wxRichTextBox
+class wxRichTextCell: public wxRichTextBox
- DECLARE_DYNAMIC_CLASS(wxRichTextCell)
wxRichTextTable represents a table with arbitrary columns and rows.
*/
wxRichTextTable represents a table with arbitrary columns and rows.
*/
-WX_DEFINE_ARRAY_PTR(wxRichTextObject*, wxRichTextObjectPtrArray);
-WX_DECLARE_OBJARRAY(wxRichTextObjectPtrArray, wxRichTextObjectPtrArrayArray);
+class wxRichTextObjectPtrArray;
+class wxRichTextObjectPtrArrayArray;
-class WXDLLIMPEXP_RICHTEXT wxRichTextTable: public wxRichTextBox
+class wxRichTextTable: public wxRichTextBox
- DECLARE_DYNAMIC_CLASS(wxRichTextTable)
virtual wxString GetTextForRange(const wxRichTextRange& range) const;
virtual wxString GetTextForRange(const wxRichTextRange& range) const;
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse);
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse);
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler);
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler);
@see wxRichTextCommand
*/
@see wxRichTextCommand
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextObjectAddress
+class wxRichTextObjectAddress
-class WXDLLIMPEXP_FWD_RICHTEXT wxRichTextAction;
/**
@class wxRichTextCommand
/**
@class wxRichTextCommand
-class WXDLLIMPEXP_RICHTEXT wxRichTextCommand: public wxCommand
+class wxRichTextCommand: public wxCommand
@see wxRichTextCommand
*/
@see wxRichTextCommand
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextAction: public wxObject
+class wxRichTextAction: public wxObject
@see wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextFileHandler: public wxObject
+class wxRichTextFileHandler: public wxObject
- DECLARE_CLASS(wxRichTextFileHandler)
public:
/**
Creates a file handler object.
public:
/**
Creates a file handler object.
: m_name(name), m_extension(ext), m_type(type), m_flags(0), m_visible(true)
{ }
: m_name(name), m_extension(ext), m_type(type), m_flags(0), m_visible(true)
{ }
/**
Loads the buffer from a stream.
Not all handlers will implement file loading.
/**
Loads the buffer from a stream.
Not all handlers will implement file loading.
*/
bool SaveFile(wxRichTextBuffer *buffer, wxOutputStream& stream)
{ return DoSaveFile(buffer, stream); }
*/
bool SaveFile(wxRichTextBuffer *buffer, wxOutputStream& stream)
{ return DoSaveFile(buffer, stream); }
-#if wxUSE_FFILE && wxUSE_STREAMS
/**
Loads the buffer from a file.
*/
/**
Loads the buffer from a file.
*/
Saves the buffer to a file.
*/
virtual bool SaveFile(wxRichTextBuffer *buffer, const wxString& filename);
Saves the buffer to a file.
*/
virtual bool SaveFile(wxRichTextBuffer *buffer, const wxString& filename);
-#endif // wxUSE_STREAMS && wxUSE_STREAMS
/**
Returns @true if we handle this filename (if using files). By default, checks the extension.
/**
Returns @true if we handle this filename (if using files). By default, checks the extension.
/**
Override to load content from @a stream into @a buffer.
*/
/**
Override to load content from @a stream into @a buffer.
*/
Override to save content to @a stream from @a buffer.
*/
virtual bool DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream& stream) = 0;
Override to save content to @a stream from @a buffer.
*/
virtual bool DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream& stream) = 0;
wxString m_name;
wxString m_encoding;
wxString m_name;
wxString m_encoding;
@see wxRichTextFileHandler, wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextFileHandler, wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextPlainTextHandler: public wxRichTextFileHandler
+class wxRichTextPlainTextHandler: public wxRichTextFileHandler
- DECLARE_CLASS(wxRichTextPlainTextHandler)
public:
wxRichTextPlainTextHandler(const wxString& name = wxT("Text"),
const wxString& ext = wxT("txt"),
public:
wxRichTextPlainTextHandler(const wxString& name = wxT("Text"),
const wxString& ext = wxT("txt"),
virtual bool DoLoadFile(wxRichTextBuffer *buffer, wxInputStream& stream);
virtual bool DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream& stream);
virtual bool DoLoadFile(wxRichTextBuffer *buffer, wxInputStream& stream);
virtual bool DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream& stream);
@see wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextDrawingHandler: public wxObject
+class wxRichTextDrawingHandler: public wxObject
- DECLARE_CLASS(wxRichTextDrawingHandler)
public:
/**
Creates a drawing handler object.
public:
/**
Creates a drawing handler object.
/**
@class wxRichTextBufferDataObject
/**
@class wxRichTextBufferDataObject
@see wxDataObjectSimple, wxRichTextBuffer, wxRichTextCtrl
*/
@see wxDataObjectSimple, wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextBufferDataObject: public wxDataObjectSimple
+class wxRichTextBufferDataObject: public wxDataObjectSimple
static const wxChar* ms_richTextBufferFormatId; // our format id
};
static const wxChar* ms_richTextBufferFormatId; // our format id
};
/**
@class wxRichTextRenderer
/**
@class wxRichTextRenderer
@see wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextRenderer: public wxObject
+class wxRichTextRenderer: public wxObject
@see wxRichTextRenderer, wxRichTextBuffer, wxRichTextCtrl
*/
@see wxRichTextRenderer, wxRichTextBuffer, wxRichTextCtrl
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextStdRenderer: public wxRichTextRenderer
+class wxRichTextStdRenderer: public wxRichTextRenderer
}
/// Compare two attribute objects
}
/// Compare two attribute objects
-WXDLLIMPEXP_RICHTEXT bool wxTextAttrEq(const wxRichTextAttr& attr1, const wxRichTextAttr& attr2);
-WXDLLIMPEXP_RICHTEXT bool wxTextAttrEq(const wxRichTextAttr& attr1, const wxRichTextAttr& attr2);
+bool wxTextAttrEq(const wxRichTextAttr& attr1, const wxRichTextAttr& attr2);
+bool wxTextAttrEq(const wxRichTextAttr& attr1, const wxRichTextAttr& attr2);
/// Apply one style to another
/// Apply one style to another
-WXDLLIMPEXP_RICHTEXT bool wxRichTextApplyStyle(wxRichTextAttr& destStyle, const wxRichTextAttr& style, wxRichTextAttr* compareWith = NULL);
+bool wxRichTextApplyStyle(wxRichTextAttr& destStyle, const wxRichTextAttr& style, wxRichTextAttr* compareWith = NULL);
-WXDLLIMPEXP_RICHTEXT bool wxRichTextRemoveStyle(wxRichTextAttr& destStyle, const wxRichTextAttr& style);
+bool wxRichTextRemoveStyle(wxRichTextAttr& destStyle, const wxRichTextAttr& style);
-WXDLLIMPEXP_RICHTEXT bool wxRichTextCombineBitlists(int& valueA, int valueB, int& flagsA, int flagsB);
+bool wxRichTextCombineBitlists(int& valueA, int valueB, int& flagsA, int flagsB);
-WXDLLIMPEXP_RICHTEXT bool wxRichTextBitlistsEqPartial(int valueA, int valueB, int flags);
+bool wxRichTextBitlistsEqPartial(int valueA, int valueB, int flags);
/// Split into paragraph and character styles
/// Split into paragraph and character styles
-WXDLLIMPEXP_RICHTEXT bool wxRichTextSplitParaCharStyles(const wxRichTextAttr& style, wxRichTextAttr& parStyle, wxRichTextAttr& charStyle);
+bool wxRichTextSplitParaCharStyles(const wxRichTextAttr& style, wxRichTextAttr& parStyle, wxRichTextAttr& charStyle);
-WXDLLIMPEXP_RICHTEXT bool wxRichTextTabsEq(const wxArrayInt& tabs1, const wxArrayInt& tabs2);
+bool wxRichTextTabsEq(const wxArrayInt& tabs1, const wxArrayInt& tabs2);
/// Convert a decimal to Roman numerals
/// Convert a decimal to Roman numerals
-WXDLLIMPEXP_RICHTEXT wxString wxRichTextDecimalToRoman(long n);
+wxString wxRichTextDecimalToRoman(long n);
// Collects the attributes that are common to a range of content, building up a note of
// which attributes are absent in some objects and which clash in some objects.
// Collects the attributes that are common to a range of content, building up a note of
// which attributes are absent in some objects and which clash in some objects.
-WXDLLIMPEXP_RICHTEXT void wxTextAttrCollectCommonAttributes(wxTextAttr& currentStyle, const wxTextAttr& attr, wxTextAttr& clashingAttr, wxTextAttr& absentAttr);
+void wxTextAttrCollectCommonAttributes(wxTextAttr& currentStyle, const wxTextAttr& attr, wxTextAttr& clashingAttr, wxTextAttr& absentAttr);
-WXDLLIMPEXP_RICHTEXT void wxRichTextModuleInit();
+void wxRichTextModuleInit();
whose properties are available to be edited.
*/
whose properties are available to be edited.
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextContextMenuPropertiesInfo
+class wxRichTextContextMenuPropertiesInfo
-class WXDLLIMPEXP_RICHTEXT wxRichTextCtrl : public wxControl,
+class wxRichTextCtrl : public wxControl,
public wxTextCtrlIface,
public wxScrollHelper
{
public wxTextCtrlIface,
public wxScrollHelper
{
- DECLARE_CLASS( wxRichTextCtrl )
- DECLARE_EVENT_TABLE()
-
@category{events,richtext}
*/
@category{events,richtext}
*/
-class WXDLLIMPEXP_RICHTEXT wxRichTextEvent : public wxNotifyEvent
+class wxRichTextEvent : public wxNotifyEvent
wxRichTextParagraphLayoutBox* m_container;
wxRichTextParagraphLayoutBox* m_oldContainer;
wxRichTextParagraphLayoutBox* m_container;
wxRichTextParagraphLayoutBox* m_oldContainer;
-private:
- DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxRichTextEvent)