diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-12-06 16:36:16 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-12-07 01:09:05 -0500 |
commit | f28ee9e4004ebf51332a998638aea779e07f6450 (patch) | |
tree | 625a08a9982320fe9655b24aba29a4aff3821941 /include/svl | |
parent | 1b6e9f9dfc538841a873774428628124cbdc4fd8 (diff) |
Pimplize SfxListUndoAction.
Change-Id: Ic82755788df237c455c802a039881a9d056f4df2
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/undo.hxx | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/include/svl/undo.hxx b/include/svl/undo.hxx index 5aed21a5e189..d63a69b950f7 100644 --- a/include/svl/undo.hxx +++ b/include/svl/undo.hxx @@ -74,7 +74,8 @@ public: virtual sal_uInt16 GetId() const; private: - SfxUndoAction& operator=( const SfxUndoAction& ); // n.i.!! + SfxUndoAction( const SfxUndoAction& ); // disabled + SfxUndoAction& operator=( const SfxUndoAction& ); // disabled }; @@ -146,11 +147,16 @@ class SVL_DLLPUBLIC SfxListUndoAction : public SfxUndoAction, public SfxUndoArra Redo and Undo work element wise on SfxListUndoActions. */ { - public: + struct Impl; + Impl* mpImpl; + +public: TYPEINFO_OVERRIDE(); - SfxListUndoAction( const OUString &rComment, - const OUString& rRepeatComment, sal_uInt16 Id, SfxUndoArray *pFather); + SfxListUndoAction( + const OUString &rComment, const OUString& rRepeatComment, sal_uInt16 nId, SfxUndoArray *pFather ); + ~SfxListUndoAction(); + virtual void Undo() SAL_OVERRIDE; virtual void UndoWithContext( SfxUndoContext& i_context ) SAL_OVERRIDE; virtual void Redo() SAL_OVERRIDE; @@ -165,13 +171,6 @@ class SVL_DLLPUBLIC SfxListUndoAction : public SfxUndoAction, public SfxUndoArra virtual sal_uInt16 GetId() const SAL_OVERRIDE; void SetComment(const OUString& rComment); - - private: - - sal_uInt16 nId; - OUString aComment; - OUString aRepeatComment; - }; |