use wxOVERRIDE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -94,15 +94,15 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool CanEditProperties(wxRichTextField* WXUNUSED(obj)) const { return true; }
|
||||
virtual bool EditProperties(wxRichTextField* WXUNUSED(obj), wxWindow* WXUNUSED(parent), wxRichTextBuffer* WXUNUSED(buffer))
|
||||
virtual bool CanEditProperties(wxRichTextField* WXUNUSED(obj)) const wxOVERRIDE { return true; }
|
||||
virtual bool EditProperties(wxRichTextField* WXUNUSED(obj), wxWindow* WXUNUSED(parent), wxRichTextBuffer* WXUNUSED(buffer)) wxOVERRIDE
|
||||
{
|
||||
wxString label = GetLabel();
|
||||
wxMessageBox(wxString::Format(wxT("Editing %s"), label.c_str()));
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual wxString GetPropertiesMenuLabel(wxRichTextField* WXUNUSED(obj)) const
|
||||
virtual wxString GetPropertiesMenuLabel(wxRichTextField* WXUNUSED(obj)) const wxOVERRIDE
|
||||
{
|
||||
return GetLabel();
|
||||
}
|
||||
@@ -117,7 +117,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool UpdateField(wxRichTextBuffer* buffer, wxRichTextField* obj)
|
||||
virtual bool UpdateField(wxRichTextBuffer* buffer, wxRichTextField* obj) wxOVERRIDE
|
||||
{
|
||||
if (buffer)
|
||||
{
|
||||
@@ -169,19 +169,19 @@ public:
|
||||
Prepares the content just before insertion (or after buffer reset). Called by the same function in wxRichTextBuffer.
|
||||
Currently is only called if undo mode is on.
|
||||
*/
|
||||
virtual void PrepareContent(wxRichTextParagraphLayoutBox& container);
|
||||
virtual void PrepareContent(wxRichTextParagraphLayoutBox& container) wxOVERRIDE;
|
||||
|
||||
/**
|
||||
Can we delete this range?
|
||||
Sends an event to the control.
|
||||
*/
|
||||
virtual bool CanDeleteRange(wxRichTextParagraphLayoutBox& container, const wxRichTextRange& range) const;
|
||||
virtual bool CanDeleteRange(wxRichTextParagraphLayoutBox& container, const wxRichTextRange& range) const wxOVERRIDE;
|
||||
|
||||
/**
|
||||
Can we insert content at this position?
|
||||
Sends an event to the control.
|
||||
*/
|
||||
virtual bool CanInsertContent(wxRichTextParagraphLayoutBox& container, long pos) const;
|
||||
virtual bool CanInsertContent(wxRichTextParagraphLayoutBox& container, long pos) const wxOVERRIDE;
|
||||
|
||||
/**
|
||||
Finds a table, either selected or near the cursor
|
||||
@@ -207,8 +207,8 @@ public:
|
||||
// this one is called on application startup and is a good place for the app
|
||||
// initialization (doing it here and not in the ctor allows to have an error
|
||||
// return: if OnInit() returns false, the application terminates)
|
||||
virtual bool OnInit();
|
||||
virtual int OnExit();
|
||||
virtual bool OnInit() wxOVERRIDE;
|
||||
virtual int OnExit() wxOVERRIDE;
|
||||
|
||||
void CreateStyles();
|
||||
|
||||
@@ -314,7 +314,7 @@ public:
|
||||
protected:
|
||||
|
||||
// Forward command events to the current rich text control, if any
|
||||
bool ProcessEvent(wxEvent& event);
|
||||
bool ProcessEvent(wxEvent& event) wxOVERRIDE;
|
||||
|
||||
// Write text
|
||||
void WriteInitialText();
|
||||
@@ -2211,37 +2211,37 @@ public:
|
||||
/**
|
||||
Returns @true if this object has virtual attributes that we can provide.
|
||||
*/
|
||||
virtual bool HasVirtualAttributes(wxRichTextObject* obj) const;
|
||||
virtual bool HasVirtualAttributes(wxRichTextObject* obj) const wxOVERRIDE;
|
||||
|
||||
/**
|
||||
Provides virtual attributes that we can provide.
|
||||
*/
|
||||
virtual bool GetVirtualAttributes(wxRichTextAttr& attr, wxRichTextObject* obj) const;
|
||||
virtual bool GetVirtualAttributes(wxRichTextAttr& attr, wxRichTextObject* obj) const wxOVERRIDE;
|
||||
|
||||
/**
|
||||
Gets the count for mixed virtual attributes for individual positions within the object.
|
||||
For example, individual characters within a text object may require special highlighting.
|
||||
*/
|
||||
virtual int GetVirtualSubobjectAttributesCount(wxRichTextObject* WXUNUSED(obj)) const { return 0; }
|
||||
virtual int GetVirtualSubobjectAttributesCount(wxRichTextObject* WXUNUSED(obj)) const wxOVERRIDE { return 0; }
|
||||
|
||||
/**
|
||||
Gets the mixed virtual attributes for individual positions within the object.
|
||||
For example, individual characters within a text object may require special highlighting.
|
||||
Returns the number of virtual attributes found.
|
||||
*/
|
||||
virtual int GetVirtualSubobjectAttributes(wxRichTextObject* WXUNUSED(obj), wxArrayInt& WXUNUSED(positions), wxRichTextAttrArray& WXUNUSED(attributes)) const { return 0; }
|
||||
virtual int GetVirtualSubobjectAttributes(wxRichTextObject* WXUNUSED(obj), wxArrayInt& WXUNUSED(positions), wxRichTextAttrArray& WXUNUSED(attributes)) const wxOVERRIDE { return 0; }
|
||||
|
||||
/**
|
||||
Do we have virtual text for this object? Virtual text allows an application
|
||||
to replace characters in an object for editing and display purposes, for example
|
||||
for highlighting special characters.
|
||||
*/
|
||||
virtual bool HasVirtualText(const wxRichTextPlainText* WXUNUSED(obj)) const { return false; }
|
||||
virtual bool HasVirtualText(const wxRichTextPlainText* WXUNUSED(obj)) const wxOVERRIDE { return false; }
|
||||
|
||||
/**
|
||||
Gets the virtual text for this object.
|
||||
*/
|
||||
virtual bool GetVirtualText(const wxRichTextPlainText* WXUNUSED(obj), wxString& WXUNUSED(text)) const { return false; }
|
||||
virtual bool GetVirtualText(const wxRichTextPlainText* WXUNUSED(obj), wxString& WXUNUSED(text)) const wxOVERRIDE { return false; }
|
||||
|
||||
wxColour m_lockBackgroundColour;
|
||||
};
|
||||
|
Reference in New Issue
Block a user