diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-08 18:24:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-11 11:03:58 +0100 |
commit | 9bba3a604d12566bfb5e8ab8d2788fe8d3690a96 (patch) | |
tree | 99575c120c49c4c0541113ce3163dd0ec51064df /sd/source/ui/func | |
parent | f5926c8cfbd5af1fb7214428b4b03453b826f9a5 (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 'sd/source/ui/func')
-rw-r--r-- | sd/source/ui/func/fubullet.cxx | 5 | ||||
-rw-r--r-- | sd/source/ui/func/fuinsfil.cxx | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sd/source/ui/func/fubullet.cxx b/sd/source/ui/func/fubullet.cxx index f37770e587d4..688ac67a83e6 100644 --- a/sd/source/ui/func/fubullet.cxx +++ b/sd/source/ui/func/fubullet.cxx @@ -22,6 +22,7 @@ #include <sfx2/bindings.hxx> #include <sfx2/viewfrm.hxx> #include <editeng/eeitem.hxx> +#include <editeng/editund2.hxx> #include <svl/poolitem.hxx> #include <editeng/fontitem.hxx> #include <OutlineView.hxx> @@ -128,7 +129,7 @@ void FuBullet::InsertFormattingMark( sal_Unicode cMark ) pOV->InsertText( "" ); // prepare undo - SfxUndoManager& rUndoMgr = pOL->GetUndoManager(); + EditUndoManager& rUndoMgr = pOL->GetUndoManager(); rUndoMgr.EnterListAction(SdResId(STR_UNDO_INSERT_SPECCHAR), "", 0, mpViewShell->GetViewShellBase().GetViewShellId() ); @@ -239,7 +240,7 @@ void FuBullet::InsertSpecialCharacter( SfxRequest const & rReq ) SfxItemSetFixed<EE_CHAR_FONTINFO, EE_CHAR_FONTINFO> aOldSet( mpDoc->GetPool() ); aOldSet.Put( pOV->GetAttribs() ); - SfxUndoManager& rUndoMgr = pOL->GetUndoManager(); + EditUndoManager& rUndoMgr = pOL->GetUndoManager(); ViewShellId nViewShellId = mpViewShell ? mpViewShell->GetViewShellBase().GetViewShellId() : ViewShellId(-1); rUndoMgr.EnterListAction(SdResId(STR_UNDO_INSERT_SPECCHAR), "", 0, nViewShellId ); diff --git a/sd/source/ui/func/fuinsfil.cxx b/sd/source/ui/func/fuinsfil.cxx index f18d6779f203..790c3d0c8d00 100644 --- a/sd/source/ui/func/fuinsfil.cxx +++ b/sd/source/ui/func/fuinsfil.cxx @@ -23,6 +23,7 @@ #include <editeng/outliner.hxx> #include <editeng/outlobj.hxx> #include <editeng/editeng.hxx> +#include <editeng/editund2.hxx> #include <svl/stritem.hxx> #include <sfx2/request.hxx> #include <sfx2/app.hxx> |