summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-11-08 18:24:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-11-11 11:03:58 +0100
commit9bba3a604d12566bfb5e8ab8d2788fe8d3690a96 (patch)
tree99575c120c49c4c0541113ce3163dd0ec51064df /include
parentf5926c8cfbd5af1fb7214428b4b03453b826f9a5 (diff)
use more concrete type in ImpEditEngine::SetUndoManager
instead of dynamic_cast'ing to the type we want, and __ignoring__ the parameter if it is not, just adjust the type that we want, which luckily everything is already sending Change-Id: If083e11c9818cdcae199afc1261efbdb652e1c76 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159295 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/editeng/editeng.hxx5
-rw-r--r--include/editeng/outliner.hxx5
-rw-r--r--include/svx/svdedxv.hxx2
3 files changed, 7 insertions, 5 deletions
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx
index 5e0d26b4b14c..b3bbcbd608ca 100644
--- a/include/editeng/editeng.hxx
+++ b/include/editeng/editeng.hxx
@@ -77,6 +77,7 @@ namespace editeng {
}
class ImpEditEngine;
+class EditUndoManager;
class EditView;
class OutputDevice;
class SvxFont;
@@ -349,8 +350,8 @@ public:
void ShowParagraph( sal_Int32 nParagraph, bool bShow );
- SfxUndoManager& GetUndoManager();
- SfxUndoManager* SetUndoManager(SfxUndoManager* pNew);
+ EditUndoManager& GetUndoManager();
+ EditUndoManager* SetUndoManager(EditUndoManager* 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 98edc7ef1d72..cc921f4cd0af 100644
--- a/include/editeng/outliner.hxx
+++ b/include/editeng/outliner.hxx
@@ -52,6 +52,7 @@ class OutlinerEditEng;
class Outliner;
class EditView;
class EditUndo;
+class EditUndoManager;
class ParagraphList;
class OutlinerParaObject;
class SvStream;
@@ -885,8 +886,8 @@ public:
ErrCode Read( SvStream& rInput, const OUString& rBaseURL, EETextFormat, SvKeyValueIterator* pHTTPHeaderAttrs = nullptr );
- SfxUndoManager& GetUndoManager();
- SfxUndoManager* SetUndoManager(SfxUndoManager* pNew);
+ EditUndoManager& GetUndoManager();
+ EditUndoManager* SetUndoManager(EditUndoManager* pNew);
void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel );
void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel );
diff --git a/include/svx/svdedxv.hxx b/include/svx/svdedxv.hxx
index d5901fbb7125..ff3fcbd19b79 100644
--- a/include/svx/svdedxv.hxx
+++ b/include/svx/svdedxv.hxx
@@ -109,7 +109,7 @@ protected:
rtl::Reference< sdr::SelectionController > mxLastSelectionController;
private:
- SfxUndoManager* mpOldTextEditUndoManager;
+ EditUndoManager* mpOldTextEditUndoManager;
std::unique_ptr<SdrUndoManager> mpLocalTextEditUndoManager;
protected: