X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/590a0f8bcb889dc4e99ce26a378c02cbf57b9bdb..cda337fbb030b9cc032a6ef1e2508b7c9af95876:/interface/wx/richtext/richtextctrl.h diff --git a/interface/wx/richtext/richtextctrl.h b/interface/wx/richtext/richtextctrl.h index 4252ca8e23..7cbe45a4d1 100644 --- a/interface/wx/richtext/richtextctrl.h +++ b/interface/wx/richtext/richtextctrl.h @@ -1617,6 +1617,24 @@ public: */ virtual wxString GetPropertiesMenuLabel(wxRichTextObject* obj); + /** + 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 /**