Added further API for intercepting deletion and content insertion
Added simple implementation of locked objects to sample git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3231,6 +3231,12 @@ public:
|
||||
|
||||
virtual wxRichTextObject* Clone() const { return new wxRichTextParagraphLayoutBox(*this); }
|
||||
|
||||
/**
|
||||
Prepares the content just before insertion (or after buffer reset).
|
||||
Currently is only called if undo mode is on.
|
||||
*/
|
||||
virtual void PrepareContent(wxRichTextParagraphLayoutBox& container);
|
||||
|
||||
/**
|
||||
Insert fragment into this box at the given position. If partialParagraph is true,
|
||||
it is assumed that the last (or only) paragraph is just a piece of data with no paragraph
|
||||
|
@@ -1658,6 +1658,24 @@ public:
|
||||
*/
|
||||
virtual wxString GetPropertiesMenuLabel(wxRichTextObject* obj) { return obj->GetPropertiesMenuLabel(); }
|
||||
|
||||
/**
|
||||
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& WXUNUSED(container)) {}
|
||||
|
||||
/**
|
||||
Can we delete this range?
|
||||
Sends an event to the control.
|
||||
*/
|
||||
virtual bool CanDeleteRange(wxRichTextParagraphLayoutBox& container, const wxRichTextRange& range) const;
|
||||
|
||||
/**
|
||||
Can we insert content at this position?
|
||||
Sends an event to the control.
|
||||
*/
|
||||
virtual bool CanInsertContent(wxRichTextParagraphLayoutBox& container, long pos) const;
|
||||
|
||||
// Command handlers
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user