diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-12 09:42:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-13 08:39:15 +0200 |
commit | 2d71dd52b6d91660cda6cb8f9457463439f56e20 (patch) | |
tree | f894d34e604eee2db24978c85ba67b9da0a4d573 /include/editeng | |
parent | ddef60b9c26b1d2990c6c49dbbda73e7831f21fb (diff) |
merge IUndoManager into SfxUndoManager
SfxUndoManager is the only implementation of the IUnderManager
"interface", and it lives in the same header.
Plus this way we can get rid of some covariant parameters,
which will make using std::unique_ptr easier.
Change-Id: I6661b9876b18da830bead78794d237886cd3c5c9
Reviewed-on: https://gerrit.libreoffice.org/57317
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng')
-rw-r--r-- | include/editeng/editeng.hxx | 6 | ||||
-rw-r--r-- | include/editeng/outliner.hxx | 9 |
2 files changed, 6 insertions, 9 deletions
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index 52a052570dd0..a94cf2abd0fb 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -62,7 +62,7 @@ struct SpellPortion; typedef std::vector<SpellPortion> SpellPortions; } -namespace svl { class IUndoManager; } +class SfxUndoManager; namespace basegfx { class B2DPolyPolygon; } namespace editeng { struct MisspellRanges; @@ -337,8 +337,8 @@ public: void ShowParagraph( sal_Int32 nParagraph, bool bShow ); - ::svl::IUndoManager& GetUndoManager(); - ::svl::IUndoManager* SetUndoManager(::svl::IUndoManager* pNew); + SfxUndoManager& GetUndoManager(); + SfxUndoManager* SetUndoManager(SfxUndoManager* pNew); void UndoActionStart( sal_uInt16 nId ); void UndoActionStart(sal_uInt16 nId, const ESelection& rSel); void UndoActionEnd(); diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx index c0d4a9a82437..d534b8862771 100644 --- a/include/editeng/outliner.hxx +++ b/include/editeng/outliner.hxx @@ -87,11 +87,8 @@ class OutlinerViewShell; enum class CharCompressType; enum class TransliterationFlags; class SvxFieldData; +class SfxUndoManager; -namespace svl -{ - class IUndoManager; -} namespace com { namespace sun { namespace star { namespace linguistic2 { class XSpellChecker1; class XHyphenator; @@ -881,8 +878,8 @@ public: ErrCode Read( SvStream& rInput, const OUString& rBaseURL, EETextFormat, SvKeyValueIterator* pHTTPHeaderAttrs = nullptr ); - ::svl::IUndoManager& GetUndoManager(); - ::svl::IUndoManager* SetUndoManager(::svl::IUndoManager* pNew); + SfxUndoManager& GetUndoManager(); + SfxUndoManager* SetUndoManager(SfxUndoManager* pNew); void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel ); void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel ); |