X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5267aefd85739afd26bd19bfba998005119db446..e72ad2d5e753bddcd03665d15dce679eae186cd7:/interface/wx/richtext/richtextbuffer.h diff --git a/interface/wx/richtext/richtextbuffer.h b/interface/wx/richtext/richtextbuffer.h index ade84e7cea..e572433a3c 100644 --- a/interface/wx/richtext/richtextbuffer.h +++ b/interface/wx/richtext/richtextbuffer.h @@ -361,7 +361,6 @@ public: */ virtual void Clear(); - //@{ /** Clears the list style from the given range, clearing list-related attributes and applying any named paragraph style associated with each paragraph. @@ -371,11 +370,8 @@ public: @see SetListStyle(), PromoteList(), NumberList() */ - bool ClearListStyle(const wxRichTextRange& range, - int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO); - bool ClearListStyle(const wxRichTextRange& range, + virtual bool ClearListStyle(const wxRichTextRange& range, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO); - //@} /** Clears the style stack. @@ -524,13 +520,12 @@ public: /** Finds a handler by type. */ - wxRichTextFileHandler* FindHandler(int imageType); + static wxRichTextFileHandler* FindHandler(wxRichTextFileType imageType); /** Finds a handler by extension and type. */ - wxRichTextFileHandler* FindHandler(const wxString& extension, - int imageType); + static wxRichTextFileHandler* FindHandler(const wxString& extension, wxRichTextFileType imageType); /** Finds a handler by name. @@ -698,14 +693,14 @@ public: /** Loads content from a stream. */ - bool LoadFile(wxInputStream& stream, - int type = wxRICHTEXT_TYPE_ANY); + virtual bool LoadFile(wxInputStream& stream, + wxRichTextFileType type = wxRICHTEXT_TYPE_ANY); /** Loads content from a file. */ - bool LoadFile(const wxString& filename, - int type = wxRICHTEXT_TYPE_ANY); + virtual bool LoadFile(const wxString& filename, + wxRichTextFileType type = wxRICHTEXT_TYPE_ANY); /** Marks the buffer as modified or unmodified. @@ -794,14 +789,14 @@ public: /** Saves content to a stream. */ - bool SaveFile(wxOutputStream& stream, - int type = wxRICHTEXT_TYPE_ANY); + virtual bool SaveFile(wxOutputStream& stream, + wxRichTextFileType type = wxRICHTEXT_TYPE_ANY); /** Saves content to a file. */ - bool SaveFile(const wxString& filename, - int type = wxRICHTEXT_TYPE_ANY); + virtual bool SaveFile(const wxString& filename, + wxRichTextFileType type = wxRICHTEXT_TYPE_ANY); /** Sets the basic (overall) style. This is the style of the whole