]> git.saurik.com Git - wxWidgets.git/commitdiff
Added wxRichTextAction::SetOldAndNewObjects for clarity when submitting a wxRICHTEXT_...
authorJulian Smart <julian@anthemion.co.uk>
Tue, 24 Sep 2013 12:05:54 +0000 (12:05 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 24 Sep 2013 12:05:54 +0000 (12:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/richtext/richtextbuffer.h
interface/wx/richtext/richtextbuffer.h

index 4d0d3f7b9bd5dd5408ccdedbd7946de188e608ff..604229a8c45add65d7f855f0e0ebfeb3c7a6ef11 100644 (file)
@@ -6025,6 +6025,11 @@ public:
     */
     void MakeObject(wxRichTextObject* obj) { m_objectAddress.Create(m_buffer, obj); }
 
+    /**
+        Sets the existing and new objects, for use with wxRICHTEXT_CHANGE_OBJECT.
+    */
+    void SetOldAndNewObjects(wxRichTextObject* oldObj, wxRichTextObject* newObj) { SetObject(oldObj); StoreObject(newObj); }
+
     /**
         Calculate arrays for refresh optimization.
     */
index a345f04c05b77bff954a7290cbc122753578f41d..2636f83fc54b09b032c67ac74e2b96d0b5cf7ec8 100644 (file)
@@ -5883,6 +5883,11 @@ public:
     */
     void MakeObject(wxRichTextObject* obj) { m_objectAddress.Create(m_buffer, obj); }
 
+    /**
+        Sets the existing and new objects, for use with wxRICHTEXT_CHANGE_OBJECT.
+    */
+    void SetOldAndNewObjects(wxRichTextObject* oldObj, wxRichTextObject* newObj);
+
     /**
         Calculate arrays for refresh optimization.
     */