diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-27 14:07:12 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-30 06:34:32 +0000 |
commit | 3e9e667af2d8d307844b29d608b377a04b6bb139 (patch) | |
tree | f08ebf65eff11bdaae295b17af86fb8558ca0552 /include | |
parent | 12868914a39b0e8fb32f63d1307c1bb1c535fb9c (diff) |
loplugin:unusedmethods SfxLinkUndoAction
Change-Id: I1ad7c2452dd9bc80e7404f41484b9667adbcfa7b
Reviewed-on: https://gerrit.libreoffice.org/25542
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/undo.hxx | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/include/svl/undo.hxx b/include/svl/undo.hxx index 72cb5023865a..8c54c08d4309 100644 --- a/include/svl/undo.hxx +++ b/include/svl/undo.hxx @@ -41,19 +41,12 @@ public: }; -class SfxLinkUndoAction; - class SVL_DLLPUBLIC SfxUndoAction { -private: - SfxLinkUndoAction* mpSfxLinkUndoAction; - public: SfxUndoAction(); virtual ~SfxUndoAction(); - virtual void SetLinkToSfxLinkUndoAction(SfxLinkUndoAction* pSfxLinkUndoAction); - virtual void Undo(); virtual void UndoWithContext( SfxUndoContext& i_context ); virtual void Redo(); @@ -299,8 +292,6 @@ namespace svl { namespace undo { namespace impl struct SfxUndoManager_Data; class SVL_DLLPUBLIC SfxUndoManager : public ::svl::IUndoManager { - friend class SfxLinkUndoAction; - std::unique_ptr< SfxUndoManager_Data > m_xData; public: @@ -392,48 +383,6 @@ private: friend class ::svl::undo::impl::LockGuard; }; - -class SVL_DLLPUBLIC SfxLinkUndoAction : public SfxUndoAction - -/* [Explanation] - - SfxLinkUndoAction is used to link two SfxUndoManager. The Undo/Redos inserted - in the first SfxUndoManager redirect their Undo/Redo to the second. With this it - does not matter, if the undo/redo initially was on the first or the second. - - After inserting SfxLinkUndoAction on the first SfxUndoManager, you have to - insert it on the second as well. While the second SfxUndoManager is steered - from the first, you must not insert neither Actions nor issue a undo/redo - command to the second, while it is steered by the first. -*/ - -{ -private: - friend class SfxUndoAction; - void LinkedSfxUndoActionDestructed(const SfxUndoAction& rCandidate); - -public: - SfxLinkUndoAction(::svl::IUndoManager *pManager); - virtual ~SfxLinkUndoAction(); - - virtual void Undo() override; - virtual void Redo() override; - virtual bool CanRepeat(SfxRepeatTarget& r) const override; - - virtual void Repeat(SfxRepeatTarget&r) override; - - virtual OUString GetComment() const override; - virtual OUString GetRepeatComment(SfxRepeatTarget&r) const override; - virtual sal_uInt16 GetId() const override; - - SfxUndoAction* GetAction() const { return pAction; } - -protected: - ::svl::IUndoManager* pUndoManager; - SfxUndoAction* pAction; - -}; - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |