summaryrefslogtreecommitdiffstats
path: root/sw/source/ui/app/apphdl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/app/apphdl.cxx')
-rw-r--r--sw/source/ui/app/apphdl.cxx32
1 files changed, 0 insertions, 32 deletions
diff --git a/sw/source/ui/app/apphdl.cxx b/sw/source/ui/app/apphdl.cxx
index 716300ef3d6e..34fce61edd66 100644
--- a/sw/source/ui/app/apphdl.cxx
+++ b/sw/source/ui/app/apphdl.cxx
@@ -32,7 +32,6 @@
#include <tools/link.hxx>
#include <svl/svstdarr.hxx>
#include <svl/urihelper.hxx>
-#include <unotools/undoopt.hxx>
#include <unotools/pathoptions.hxx>
#include <svtools/accessibilityoptions.hxx>
#include <sfx2/dispatch.hxx>
@@ -770,11 +769,6 @@ void SwModule::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
pUserOptions->RemoveListener(this);
DELETEZ(pUserOptions);
}
- if( pUndoOptions )
- {
- pUndoOptions->RemoveListener(this);
- DELETEZ(pUndoOptions);
- }
}
}
}
@@ -785,22 +779,6 @@ void SwModule::ConfigurationChanged( utl::ConfigurationBroadcaster* pBrdCst, sal
{
bAuthorInitialised = sal_False;
}
- else if( pBrdCst == pUndoOptions )
- {
- sal_Int32 const nNew = GetUndoOptions().GetUndoCount();
- bool const bUndo = (nNew != 0);
- // switch Undo for all DocShells
- // Iterate through DocShells and switch undos
- TypeId aType(TYPE(SwDocShell));
- SwDocShell * pDocShell =
- static_cast<SwDocShell *>(SfxObjectShell::GetFirst(&aType));
- while (pDocShell)
- {
- pDocShell->GetDoc()->GetIDocumentUndoRedo().DoUndo(bUndo);
- pDocShell = static_cast<SwDocShell *>(
- SfxObjectShell::GetNext(*pDocShell, &aType));
- }
- }
else if ( pBrdCst == pColorConfig || pBrdCst == pAccessibilityOptions )
{
sal_Bool bAccessibility = sal_False;
@@ -902,16 +880,6 @@ SvtUserOptions& SwModule::GetUserOptions()
return *pUserOptions;
}
-SvtUndoOptions& SwModule::GetUndoOptions()
-{
- if(!pUndoOptions)
- {
- pUndoOptions = new SvtUndoOptions;
- pUndoOptions->AddListener(this);
- }
- return *pUndoOptions;
-}
-
const SwMasterUsrPref *SwModule::GetUsrPref(sal_Bool bWeb) const
{
SwModule* pNonConstModule = (SwModule*)this;