summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2015-02-13 20:22:04 -0400
committerCaolán McNamara <caolanm@redhat.com>2015-04-03 07:32:23 +0000
commitbff29a3b30c8e57ab78937dca862fd738f26d89e (patch)
tree6188c3af93f0d18dc2f9c643906e4ae64ed2ab9d /sc/inc
parent0c32c2133e3be1ddbc719772007ba3833d2bb848 (diff)
tdf#51460 Calc fails to set undo step after changing image anchor mode
Fixed. Note that the undo button is still grayed out. Calc has not set an undo step. Change-Id: I7ff713a906b365b460351e5202161c9152542395 Reviewed-on: https://gerrit.libreoffice.org/14489 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/drwlayer.hxx14
-rw-r--r--sc/inc/sc.hrc5
2 files changed, 19 insertions, 0 deletions
diff --git a/sc/inc/drwlayer.hxx b/sc/inc/drwlayer.hxx
index 6917c2aaa4f2..4d355b948443 100644
--- a/sc/inc/drwlayer.hxx
+++ b/sc/inc/drwlayer.hxx
@@ -76,6 +76,20 @@ public:
virtual void Redo() SAL_OVERRIDE;
};
+class ScUndoAnchorData : public SdrUndoObj
+{
+private:
+ bool mbWasCellAnchored;
+ ScDocument* mpDoc;
+ SCTAB mnTab;
+public:
+ ScUndoAnchorData( SdrObject* pObj, ScDocument* pDoc, SCTAB nTab );
+ virtual ~ScUndoAnchorData();
+
+ virtual void Undo() SAL_OVERRIDE;
+ virtual void Redo() SAL_OVERRIDE;
+};
+
class SC_DLLPUBLIC ScDrawLayer : public FmFormModel
{
private:
diff --git a/sc/inc/sc.hrc b/sc/inc/sc.hrc
index f76a45a3f7aa..242d8e8deee3 100644
--- a/sc/inc/sc.hrc
+++ b/sc/inc/sc.hrc
@@ -908,6 +908,11 @@
#define STR_CELL (STR_START + 219)
#define STR_CONTENT (STR_START + 220)
+// Undo Anchor
+
+#define SCSTR_UNDO_PAGE_ANCHOR (STR_START + 221)
+#define SCSTR_UNDO_CELL_ANCHOR (STR_START + 222)
+
// navigator - in the same order as SC_CONTENT_...
#define SCSTR_CONTENT_ROOT (STR_START + 250)
#define SCSTR_CONTENT_TABLE (STR_START + 251)