HUGE commit of ifacecheck-automated fixes to virtualness/constness/staticness of wxWidgets documented functions

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-09-27 11:21:10 +00:00
parent e7d0a28b01
commit adaaa68635
133 changed files with 1080 additions and 1080 deletions

View File

@@ -30,7 +30,7 @@ public:
/**
Destructor.
*/
~wxRichTextBuffer();
virtual ~wxRichTextBuffer();
/**
Adds an event handler to the buffer's list of handlers. A buffer associated with
@@ -47,7 +47,7 @@ public:
/**
Adds a file handler.
*/
void AddHandler(wxRichTextFileHandler* handler);
static void AddHandler(wxRichTextFileHandler* handler);
/**
Adds a paragraph of text.
@@ -58,7 +58,7 @@ public:
Returns @true if the buffer is currently collapsing commands into a single
notional command.
*/
bool BatchingUndo() const;
virtual bool BatchingUndo() const;
/**
Begins using alignment.
@@ -72,7 +72,7 @@ public:
@a cmdName should be the name of the combined command that will appear
next to Undo and Redo in the edit menu.
*/
bool BeginBatchUndo(const wxString& cmdName);
virtual bool BeginBatchUndo(const wxString& cmdName);
/**
Begin applying bold.
@@ -179,7 +179,7 @@ public:
/**
Begins using a specified style.
*/
bool BeginStyle(const wxTextAttr& style);
virtual bool BeginStyle(const wxTextAttr& style);
/**
Begins suppressing undo/redo commands. The way undo is suppressed may be
@@ -189,7 +189,7 @@ public:
history
when the action is submitted to the command processor.
*/
bool BeginSuppressUndo();
virtual bool BeginSuppressUndo();
/**
Begins applying a symbol bullet, using a character from the current font. See
@@ -222,12 +222,12 @@ public:
/**
Returns @true if content can be pasted from the clipboard.
*/
bool CanPasteFromClipboard() const;
virtual bool CanPasteFromClipboard() const;
/**
Cleans up the file handlers.
*/
void CleanUpHandlers();
static void CleanUpHandlers();
/**
Clears the buffer.
@@ -251,12 +251,12 @@ public:
/**
Clears the style stack.
*/
void ClearStyleStack();
virtual void ClearStyleStack();
/**
Clones the object.
*/
wxRichTextObject* Clone() const;
virtual wxRichTextObject* Clone() const;
/**
Copies the given buffer.
@@ -266,7 +266,7 @@ public:
/**
Copy the given range to the clipboard.
*/
bool CopyToClipboard(const wxRichTextRange& range);
virtual bool CopyToClipboard(const wxRichTextRange& range);
/**
Submits a command to delete the given range.
@@ -290,12 +290,12 @@ public:
/**
Ends all styles that have been started with a Begin... command.
*/
bool EndAllStyles();
virtual bool EndAllStyles();
/**
Ends collapsing undo/redo commands, and submits the combined command.
*/
bool EndBatchUndo();
virtual bool EndBatchUndo();
/**
Ends using bold.
@@ -365,12 +365,12 @@ public:
/**
Ends the current style.
*/
bool EndStyle();
virtual bool EndStyle();
/**
Ends suppressing undo/redo commands.
*/
bool EndSuppressUndo();
virtual bool EndSuppressUndo();
/**
Ends using a symbol bullet.
@@ -419,7 +419,7 @@ public:
/**
Gets the collapsed command.
*/
wxRichTextCommand* GetBatchedCommand() const;
virtual wxRichTextCommand* GetBatchedCommand() const;
/**
Gets the command processor. A text buffer always creates its own command
@@ -499,12 +499,12 @@ public:
/**
Returns the current style sheet associated with the buffer, if any.
*/
wxRichTextStyleSheet* GetStyleSheet() const;
virtual wxRichTextStyleSheet* GetStyleSheet() const;
/**
Get the size of the style stack, for example to check correct nesting.
*/
size_t GetStyleStackSize() const;
virtual size_t GetStyleStackSize() const;
/**
Gets the attributes at the given position.
@@ -538,12 +538,12 @@ public:
loading/saving handler
is initialised by default.
*/
void InitStandardHandlers();
static void InitStandardHandlers();
/**
Inserts a handler at the front of the list.
*/
void InsertHandler(wxRichTextFileHandler* handler);
static void InsertHandler(wxRichTextFileHandler* handler);
/**
Submits a command to insert the given image.
@@ -612,7 +612,7 @@ public:
/**
Pastes the clipboard content to the buffer at the given position.
*/
bool PasteFromClipboard(long position);
virtual bool PasteFromClipboard(long position);
//@{
/**
@@ -649,12 +649,12 @@ public:
/**
Removes a handler.
*/
bool RemoveHandler(const wxString& name);
static bool RemoveHandler(const wxString& name);
/**
Clears the buffer, adds a new blank paragraph, and clears the command history.
*/
void ResetAndClearCommands();
virtual void ResetAndClearCommands();
//@{
/**
@@ -760,12 +760,12 @@ public:
/**
Submit an action immediately, or delay it according to whether collapsing is on.
*/
bool SubmitAction(wxRichTextAction* action);
virtual bool SubmitAction(wxRichTextAction* action);
/**
Returns @true if undo suppression is currently on.
*/
bool SuppressingUndo() const;
virtual bool SuppressingUndo() const;
};
@@ -794,17 +794,17 @@ public:
filename. By default,
this function checks the extension.
*/
bool CanHandle(const wxString& filename) const;
virtual bool CanHandle(const wxString& filename) const;
/**
Override and return @true if this handler can load content.
*/
bool CanLoad() const;
virtual bool CanLoad() const;
/**
Override and return @true if this handler can save content.
*/
bool CanSave() const;
virtual bool CanSave() const;
/**
Override to load content from @a stream into @e buffer.
@@ -846,7 +846,7 @@ public:
/**
Returns @true if this handler should be visible to the user.
*/
bool IsVisible() const;
virtual bool IsVisible() const;
//@{
/**
@@ -905,7 +905,7 @@ public:
load and save
dialogs).
*/
void SetVisible(bool visible);
virtual void SetVisible(bool visible);
};

View File

@@ -163,43 +163,43 @@ public:
/**
Destructor.
*/
~wxRichTextCtrl();
virtual ~wxRichTextCtrl();
/**
Adds an image to the control's buffer.
*/
wxRichTextRange AddImage(const wxImage& image);
virtual wxRichTextRange AddImage(const wxImage& image);
/**
Adds a new paragraph of text to the end of the buffer.
*/
wxRichTextRange AddParagraph(const wxString& text);
virtual wxRichTextRange AddParagraph(const wxString& text);
/**
Sets the insertion point to the end of the buffer and writes the text.
*/
void AppendText(const wxString& text);
virtual void AppendText(const wxString& text);
/**
Applies the given alignment to the selection (undoable).
For alignment values, see wxTextAttr.
*/
bool ApplyAlignmentToSelection(wxTextAttrAlignment alignment);
virtual bool ApplyAlignmentToSelection(wxTextAttrAlignment alignment);
/**
Apples bold to the selection (undoable).
*/
bool ApplyBoldToSelection();
virtual bool ApplyBoldToSelection();
/**
Applies italic to the selection (undoable).
*/
bool ApplyItalicToSelection();
virtual bool ApplyItalicToSelection();
/**
Applies the given style to the selection.
*/
bool ApplyStyle(wxRichTextStyleDefinition* def);
virtual bool ApplyStyle(wxRichTextStyleDefinition* def);
/**
Applies the style sheet to the buffer, matching paragraph styles in the sheet
@@ -214,12 +214,12 @@ public:
/**
Applies underline to the selection (undoable).
*/
bool ApplyUnderlineToSelection();
virtual bool ApplyUnderlineToSelection();
/**
Returns @true if undo commands are being batched.
*/
bool BatchingUndo() const;
virtual bool BatchingUndo() const;
/**
Begins using alignment
@@ -230,7 +230,7 @@ public:
/**
Starts batching undo history for commands.
*/
bool BeginBatchUndo(const wxString& cmdName);
virtual bool BeginBatchUndo(const wxString& cmdName);
/**
Begins using bold.
@@ -332,12 +332,12 @@ public:
/**
Begins applying a style.
*/
bool BeginStyle(const wxTextAttr& style);
virtual bool BeginStyle(const wxTextAttr& style);
/**
Starts suppressing undo history for commands.
*/
bool BeginSuppressUndo();
virtual bool BeginSuppressUndo();
/**
Begins applying a symbol bullet, using a character from the current font. See
@@ -370,37 +370,37 @@ public:
/**
Returns @true if selected content can be copied to the clipboard.
*/
bool CanCopy() const;
virtual bool CanCopy() const;
/**
Returns @true if selected content can be copied to the clipboard and deleted.
*/
bool CanCut() const;
virtual bool CanCut() const;
/**
Returns @true if selected content can be deleted.
*/
bool CanDeleteSelection() const;
virtual bool CanDeleteSelection() const;
/**
Returns @true if the clipboard content can be pasted to the buffer.
*/
bool CanPaste() const;
virtual bool CanPaste() const;
/**
Returns @true if there is a command in the command history that can be redone.
*/
bool CanRedo() const;
virtual bool CanRedo() const;
/**
Returns @true if there is a command in the command history that can be undone.
*/
bool CanUndo() const;
virtual bool CanUndo() const;
/**
Clears the buffer content, leaving a single empty paragraph. Cannot be undone.
*/
void Clear();
virtual void Clear();
//@{
/**
@@ -419,12 +419,12 @@ public:
/**
Sends the event to the control.
*/
void Command(wxCommandEvent& event);
virtual void Command(wxCommandEvent& event);
/**
Copies the selected content (if any) to the clipboard.
*/
void Copy();
virtual void Copy();
/**
Creates the underlying window.
@@ -441,12 +441,12 @@ public:
Copies the selected content (if any) to the clipboard and deletes the selection.
This is undoable.
*/
void Cut();
virtual void Cut();
/**
Deletes the content within the given range.
*/
bool Delete(const wxRichTextRange& range);
virtual bool Delete(const wxRichTextRange& range);
/**
Deletes content if there is a selection, e.g. when pressing a key.
@@ -458,13 +458,13 @@ public:
/**
Deletes the content in the selection, if any. This is undoable.
*/
void DeleteSelection();
virtual void DeleteSelection();
/**
Sets the buffer's modified status to @false, and clears the buffer's command
history.
*/
void DiscardEdits();
virtual void DiscardEdits();
/**
Currently this simply returns @c wxSize(10, 10).
@@ -479,12 +479,12 @@ public:
/**
Ends application of all styles in the current style stack.
*/
bool EndAllStyles();
virtual bool EndAllStyles();
/**
Ends batching undo command history.
*/
bool EndBatchUndo();
virtual bool EndBatchUndo();
/**
Ends using bold.
@@ -549,12 +549,12 @@ public:
/**
Ends the current style.
*/
bool EndStyle();
virtual bool EndStyle();
/**
Ends suppressing undo command history.
*/
bool EndSuppressUndo();
virtual bool EndSuppressUndo();
/**
Ends applying a symbol bullet.
@@ -588,7 +588,7 @@ public:
Helper function for finding the caret position for the next word. Direction
is 1 (forward) or -1 (backwards).
*/
long FindNextWordPosition(int direction = 1) const;
virtual long FindNextWordPosition(int direction = 1) const;
/**
Call this function to prevent refresh and allow fast updates, and then Thaw() to
@@ -660,22 +660,22 @@ public:
/**
Returns the current insertion point.
*/
long GetInsertionPoint() const;
virtual long GetInsertionPoint() const;
/**
Returns the last position in the buffer.
*/
wxTextPos GetLastPosition() const;
virtual wxTextPos GetLastPosition() const;
/**
Returns the length of the specified line in characters.
*/
int GetLineLength(long lineNo) const;
virtual int GetLineLength(long lineNo) const;
/**
Returns the text for the given line.
*/
wxString GetLineText(long lineNo) const;
virtual wxString GetLineText(long lineNo) const;
/**
Transforms physical window position to logical (unscrolled) position.
@@ -685,7 +685,7 @@ public:
/**
Returns the number of lines in the buffer.
*/
int GetNumberOfLines() const;
virtual int GetNumberOfLines() const;
/**
Transforms logical (unscrolled) position to physical window position.
@@ -697,7 +697,7 @@ public:
The end point of range is specified as the last character position of the span
of text, plus one.
*/
wxString GetRange(long from, long to) const;
virtual wxString GetRange(long from, long to) const;
/**
Returns the range of the current selection.
@@ -705,7 +705,7 @@ public:
of text, plus one.
If the return values @a from and @a to are the same, there is no selection.
*/
void GetSelection(long* from, long* to) const;
virtual void GetSelection(long* from, long* to) const;
/**
Returns the selection range in character positions. -1, -1 means no selection.
@@ -715,7 +715,7 @@ public:
/**
Returns the text within the current selection range, if any.
*/
wxString GetStringSelection() const;
virtual wxString GetStringSelection() const;
/**
Gets the attributes at the given position.
@@ -725,7 +725,7 @@ public:
the character
or paragraph style alone, use GetUncombinedStyle().
*/
bool GetStyle(long position, wxTextAttr& style);
virtual bool GetStyle(long position, wxTextAttr& style);
/**
Gets the attributes common to the specified range. Attributes that differ in
@@ -753,12 +753,12 @@ public:
will fetch
the paragraph attributes. Otherwise, it will return the character attributes.
*/
bool GetUncombinedStyle(long position, wxTextAttr& style);
virtual bool GetUncombinedStyle(long position, wxTextAttr& style);
/**
Returns the content of the entire control as a string.
*/
wxString GetValue() const;
virtual wxString GetValue() const;
/**
Internal helper function returning the line for the visible caret position. If
@@ -791,7 +791,7 @@ public:
/**
Returns @true if there is a selection.
*/
bool HasSelection() const;
virtual bool HasSelection() const;
//@{
/**
@@ -830,7 +830,7 @@ public:
/**
Returns @true if the control is editable.
*/
bool IsEditable() const;
virtual bool IsEditable() const;
/**
Returns @true if Freeze has been called without a Thaw.
@@ -840,7 +840,7 @@ public:
/**
Returns @true if the buffer has been modified.
*/
bool IsModified() const;
virtual bool IsModified() const;
/**
Returns @true if the control is multiline.
@@ -856,22 +856,22 @@ public:
Returns @true if all of the selection is aligned according to the specified
flag.
*/
bool IsSelectionAligned(wxTextAttrAlignment alignment) const;
virtual bool IsSelectionAligned(wxTextAttrAlignment alignment);
/**
Returns @true if all of the selection is bold.
*/
bool IsSelectionBold() const;
virtual bool IsSelectionBold();
/**
Returns @true if all of the selection is italic.
*/
bool IsSelectionItalics() const;
virtual bool IsSelectionItalics();
/**
Returns @true if all of the selection is underlined.
*/
bool IsSelectionUnderlined() const;
virtual bool IsSelectionUnderlined();
/**
Returns @true if the control is single-line. Currently wxRichTextCtrl does not
@@ -882,14 +882,14 @@ public:
/**
Helper function implementing keyboard navigation.
*/
bool KeyboardNavigate(int keyCode, int flags);
virtual bool KeyboardNavigate(int keyCode, int flags);
/**
Lays out the buffer, which must be done before certain operations, such as
setting the caret position. This function should not normally be required by the
application.
*/
bool LayoutContent(bool onlyVisibleRect = false);
virtual bool LayoutContent(bool onlyVisibleRect = false);
/**
Inserts a line break at the current insertion point. A line break forces
@@ -898,7 +898,7 @@ public:
wxRichTextLineBreakChar to text content,
or by typing Shift-Return.
*/
bool LineBreak();
virtual bool LineBreak();
/**
Loads content into the control's buffer using the given type. If the specified
@@ -912,12 +912,12 @@ public:
/**
Marks the buffer as modified.
*/
void MarkDirty();
virtual void MarkDirty();
/**
Move the caret to the given character position.
*/
bool MoveCaret(long pos, bool showAtLineStart = false);
virtual bool MoveCaret(long pos, bool showAtLineStart = false);
/**
Move the caret one visual step forward: this may mean setting a flag
@@ -936,57 +936,57 @@ public:
/**
Moves the caret down.
*/
bool MoveDown(int noLines = 1, int flags = 0);
virtual bool MoveDown(int noLines = 1, int flags = 0);
/**
Moves to the end of the buffer.
*/
bool MoveEnd(int flags = 0);
virtual bool MoveEnd(int flags = 0);
/**
Moves to the start of the buffer.
*/
bool MoveHome(int flags = 0);
virtual bool MoveHome(int flags = 0);
/**
Moves left.
*/
bool MoveLeft(int noPositions = 1, int flags = 0);
virtual bool MoveLeft(int noPositions = 1, int flags = 0);
/**
Moves right.
*/
bool MoveRight(int noPositions = 1, int flags = 0);
virtual bool MoveRight(int noPositions = 1, int flags = 0);
/**
Moves to the end of the line.
*/
bool MoveToLineEnd(int flags = 0);
virtual bool MoveToLineEnd(int flags = 0);
/**
Moves to the start of the line.
*/
bool MoveToLineStart(int flags = 0);
virtual bool MoveToLineStart(int flags = 0);
/**
Moves to the end of the paragraph.
*/
bool MoveToParagraphEnd(int flags = 0);
virtual bool MoveToParagraphEnd(int flags = 0);
/**
Moves to the start of the paragraph.
*/
bool MoveToParagraphStart(int flags = 0);
virtual bool MoveToParagraphStart(int flags = 0);
/**
Moves up.
*/
bool MoveUp(int noLines = 1, int flags = 0);
virtual bool MoveUp(int noLines = 1, int flags = 0);
/**
Inserts a new paragraph at the current insertion point. See also LineBreak().
*/
bool Newline();
virtual bool Newline();
//@{
/**
@@ -1098,33 +1098,33 @@ public:
/**
Moves one or more pages down.
*/
bool PageDown(int noPages = 1, int flags = 0);
virtual bool PageDown(int noPages = 1, int flags = 0);
/**
Moves one or more pages up.
*/
bool PageUp(int noPages = 1, int flags = 0);
virtual bool PageUp(int noPages = 1, int flags = 0);
/**
Paints the background.
*/
void PaintBackground(wxDC& dc);
virtual void PaintBackground(wxDC& dc);
/**
Pastes content from the clipboard to the buffer.
*/
void Paste();
virtual void Paste();
/**
Internal function to position the visible caret according to the current caret
position.
*/
void PositionCaret();
virtual void PositionCaret();
/**
Converts a text position to zero-based column and line numbers.
*/
bool PositionToXY(long pos, long* x, long* y) const;
virtual bool PositionToXY(long pos, long* x, long* y) const;
//@{
/**
@@ -1154,18 +1154,18 @@ public:
/**
Redoes the current command.
*/
void Redo();
virtual void Redo();
/**
Removes the content in the specified range.
*/
void Remove(long from, long to);
virtual void Remove(long from, long to);
/**
Replaces the content in the specified range with the string specified by @e
value.
*/
void Replace(long from, long to, const wxString& value);
virtual void Replace(long from, long to, const wxString& value);
/**
Saves the buffer content using the given type. If the specified type
@@ -1178,17 +1178,17 @@ public:
/**
Scrolls @a position into view. This function takes a caret position.
*/
bool ScrollIntoView(long position, int keyCode);
virtual bool ScrollIntoView(long position, int keyCode);
/**
Selects all the text in the buffer.
*/
void SelectAll();
virtual void SelectAll();
/**
Cancels any selection.
*/
void SelectNone();
virtual void SelectNone();
/**
Sets @a attr as the default style and tells the control that the UI should
@@ -1204,7 +1204,7 @@ public:
only affects the style currently being applied (for example, setting the default
style to bold will cause subsequently inserted text to be bold).
*/
void SetBasicStyle(const wxTextAttr& style);
virtual void SetBasicStyle(const wxTextAttr& style);
/**
The caret position is the character position just before the caret.
@@ -1218,7 +1218,7 @@ public:
inserted
text is displayed.
*/
bool SetDefaultStyle(const wxTextAttr& style);
virtual bool SetDefaultStyle(const wxTextAttr& style);
/**
Sets the default style to the style under the cursor.
@@ -1234,7 +1234,7 @@ public:
/**
Makes the control editable, or not.
*/
void SetEditable(bool editable);
virtual void SetEditable(bool editable);
/**
Sets the current filename.
@@ -1245,7 +1245,7 @@ public:
Sets the font, and also the basic and default attributes (see
wxRichTextCtrl::SetDefaultStyle).
*/
bool SetFont(const wxFont& font);
virtual bool SetFont(const wxFont& font);
/**
Sets flags that change the behaviour of loading or saving. See the
@@ -1257,12 +1257,12 @@ public:
/**
Sets the insertion point.
*/
void SetInsertionPoint(long pos);
virtual void SetInsertionPoint(long pos);
/**
Sets the insertion point to the end of the text control.
*/
void SetInsertionPointEnd();
virtual void SetInsertionPointEnd();
//@{
/**
@@ -1297,7 +1297,7 @@ public:
So, for example, to set the selection for a character at position 5, use the
range (5,6).
*/
void SetSelection(long from, long to);
virtual void SetSelection(long from, long to);
/**
Sets the selection to the given range.
@@ -1371,17 +1371,17 @@ public:
/**
A helper function setting up scrollbars, for example after a resize.
*/
void SetupScrollbars(bool atTop = false);
virtual void SetupScrollbars(bool atTop = false);
/**
Scrolls the buffer so that the given position is in view.
*/
void ShowPosition(long pos);
virtual void ShowPosition(long pos);
/**
Returns @true if undo history suppression is on.
*/
bool SuppressingUndo() const;
virtual bool SuppressingUndo() const;
/**
Call this function to end a Freeze and refresh the display.
@@ -1391,17 +1391,17 @@ public:
/**
Undoes the command at the top of the command history, if there is one.
*/
void Undo();
virtual void Undo();
/**
Moves a number of words to the left.
*/
bool WordLeft(int noWords = 1, int flags = 0);
virtual bool WordLeft(int noWords = 1, int flags = 0);
/**
Move a nuber of words to the right.
*/
bool WordRight(int noWords = 1, int flags = 0);
virtual bool WordRight(int noWords = 1, int flags = 0);
//@{
/**
@@ -1420,11 +1420,11 @@ public:
/**
Writes text at the current position.
*/
void WriteText(const wxString& text);
virtual void WriteText(const wxString& text);
/**
Translates from column and line number to position.
*/
long XYToPosition(long x, long y) const;
virtual long XYToPosition(long x, long y) const;
};

View File

@@ -32,7 +32,7 @@ public:
/**
Destructor.
*/
~wxRichTextFormattingDialogFactory();
virtual ~wxRichTextFormattingDialogFactory();
/**
Creates the main dialog buttons.
@@ -142,7 +142,7 @@ public:
/**
Destructor.
*/
~wxRichTextFormattingDialog();
virtual ~wxRichTextFormattingDialog();
/**
Apply attributes to the given range, only changing attributes that need to be
@@ -173,22 +173,22 @@ public:
/**
Helper for pages to get the top-level dialog.
*/
wxRichTextFormattingDialog* GetDialog(wxWindow* win);
static wxRichTextFormattingDialog* GetDialog(wxWindow* win);
/**
Helper for pages to get the attributes.
*/
wxTextAttr* GetDialogAttributes(wxWindow* win);
static wxTextAttr* GetDialogAttributes(wxWindow* win);
/**
Helper for pages to get the style.
*/
wxRichTextStyleDefinition* GetDialogStyleDefinition(wxWindow* win);
static wxRichTextStyleDefinition* GetDialogStyleDefinition(wxWindow* win);
/**
Returns the object to be used to customize the dialog and provide pages.
*/
wxRichTextFormattingDialogFactory* GetFormattingDialogFactory();
static wxRichTextFormattingDialogFactory* GetFormattingDialogFactory();
/**
Returns the image list associated with the dialog, used for example if showing
@@ -201,17 +201,17 @@ public:
that do not have common values in the given range
will be omitted from the style's flags.
*/
bool GetStyle(wxRichTextCtrl* ctrl, const wxRichTextRange& range);
virtual bool GetStyle(wxRichTextCtrl* ctrl, const wxRichTextRange& range);
/**
Gets the associated style definition, if any.
*/
wxRichTextStyleDefinition* GetStyleDefinition() const;
virtual wxRichTextStyleDefinition* GetStyleDefinition() const;
/**
Gets the associated style sheet, if any.
*/
wxRichTextStyleSheet* GetStyleSheet() const;
virtual wxRichTextStyleSheet* GetStyleSheet() const;
/**
Sets the attributes to be edited.
@@ -223,7 +223,7 @@ public:
creation.
It deletes the existing factory object.
*/
void SetFormattingDialogFactory(wxRichTextFormattingDialogFactory* factory);
static void SetFormattingDialogFactory(wxRichTextFormattingDialogFactory* factory);
/**
Sets the image list associated with the dialog's property sheet.
@@ -233,19 +233,19 @@ public:
/**
Sets the attributes and optionally updates the display, if @a update is @true.
*/
bool SetStyle(const wxTextAttr& style, bool update = true);
virtual bool SetStyle(const wxTextAttr& style, bool update = true);
/**
Sets the style definition and optionally update the display, if @a update is @c
@true.
*/
bool SetStyleDefinition(const wxRichTextStyleDefinition& styleDef,
wxRichTextStyleSheet* sheet,
bool update = true);
virtual bool SetStyleDefinition(const wxRichTextStyleDefinition& styleDef,
wxRichTextStyleSheet* sheet,
bool update = true);
/**
Updates the display.
*/
bool UpdateDisplay();
virtual bool UpdateDisplay();
};

View File

@@ -69,7 +69,7 @@ public:
/**
Returns the mapping for converting point sizes to HTML font sizes.
*/
wxArrayInt GetFontSizeMapping();
wxArrayInt GetFontSizeMapping() const;
/**
Returns the directory used to store temporary image files.
@@ -85,7 +85,7 @@ public:
Reset the file counter, in case, for example, the same names are required each
time
*/
void SetFileCounter(int counter);
static void SetFileCounter(int counter);
/**
Sets the mapping for converting point sizes to HTML font sizes.

View File

@@ -201,17 +201,17 @@ public:
/**
Returns @true if the given page exists in the printout.
*/
bool HasPage(int page);
virtual bool HasPage(int page);
/**
Prepares for printing, laying out the buffer and calculating pagination.
*/
void OnPreparePrinting();
virtual void OnPreparePrinting();
/**
Does the actual printing for this page.
*/
bool OnPrintPage(int page);
virtual bool OnPrintPage(int page);
/**
Sets the header and footer data associated with the printout.

View File

@@ -161,7 +161,7 @@ public:
/**
Determines whether tooltips will be shown.
*/
void SetShowToolTips(bool show);
static void SetShowToolTips(bool show);
/**
Sets the associated style sheet.

View File

@@ -124,7 +124,7 @@ public:
/**
Destructor.
*/
~wxRichTextStyleDefinition();
virtual ~wxRichTextStyleDefinition();
/**
Returns the style on which this style is based.
@@ -198,7 +198,7 @@ public:
/**
Destructor.
*/
~wxRichTextParagraphStyleDefinition();
virtual ~wxRichTextParagraphStyleDefinition();
/**
Returns the style that should normally follow this style.
@@ -242,7 +242,7 @@ public:
/**
Destructor.
*/
~wxRichTextStyleListBox();
virtual ~wxRichTextStyleListBox();
/**
Applies the @e ith style to the associated rich text control.
@@ -364,7 +364,7 @@ public:
/**
Destructor.
*/
~wxRichTextStyleComboCtrl();
virtual ~wxRichTextStyleComboCtrl();
/**
Returns the wxRichTextCtrl associated with this control.
@@ -414,7 +414,7 @@ public:
/**
Destructor.
*/
~wxRichTextCharacterStyleDefinition();
virtual ~wxRichTextCharacterStyleDefinition();
};
@@ -453,7 +453,7 @@ public:
/**
Destructor.
*/
~wxRichTextListStyleDefinition();
virtual ~wxRichTextListStyleDefinition();
/**
This function combines the given paragraph style with the list style's base
@@ -545,7 +545,7 @@ public:
/**
Destructor.
*/
~wxRichTextStyleSheet();
virtual ~wxRichTextStyleSheet();
/**
Adds a definition to the character style list.

View File

@@ -30,12 +30,12 @@ public:
/**
Returns @true.
*/
bool CanLoad() const;
virtual bool CanLoad() const;
/**
Returns @true.
*/
bool CanSave() const;
virtual bool CanSave() const;
/**
Creates XML code for a given character or paragraph style.