From 9da5c3b8e3b53c8b423febafbdc513c55525153e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 9 Oct 2011 00:37:43 +0100 Subject: callcatcher: remove some unused code --- .../ui/slidesorter/controller/SlsFocusManager.cxx | 28 ---------------------- .../slidesorter/inc/controller/SlsFocusManager.hxx | 5 ---- 2 files changed, 33 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/slidesorter/controller/SlsFocusManager.cxx b/sd/source/ui/slidesorter/controller/SlsFocusManager.cxx index 23f2935ba3c3..325669092558 100644 --- a/sd/source/ui/slidesorter/controller/SlsFocusManager.cxx +++ b/sd/source/ui/slidesorter/controller/SlsFocusManager.cxx @@ -318,34 +318,6 @@ void FocusManager::RemoveFocusChangeListener (const Link& rListener) ::std::find (maFocusChangeListeners.begin(), maFocusChangeListeners.end(), rListener)); } - - - -void FocusManager::SetFocusToToolBox (void) -{ - HideFocus(); - - if (mrSlideSorter.GetViewShell() != NULL) - { - ::Window* pParentWindow = mrSlideSorter.GetViewShell()->GetParentWindow(); - DockingWindow* pDockingWindow = NULL; - while (pParentWindow!=NULL && pDockingWindow==NULL) - { - pDockingWindow = dynamic_cast(pParentWindow); - pParentWindow = pParentWindow->GetParent(); - } - if (pDockingWindow) - { - PaneDockingWindow* pPaneDockingWindow = dynamic_cast(pDockingWindow); - if (pPaneDockingWindow != NULL) - pPaneDockingWindow->GetToolBox().GrabFocus(); - } - } -} - - - - void FocusManager::NotifyFocusChangeListeners (void) const { // Create a copy of the listener list to be safe when that is modified. diff --git a/sd/source/ui/slidesorter/inc/controller/SlsFocusManager.hxx b/sd/source/ui/slidesorter/inc/controller/SlsFocusManager.hxx index d077e64d5fbb..48f030674b76 100644 --- a/sd/source/ui/slidesorter/inc/controller/SlsFocusManager.hxx +++ b/sd/source/ui/slidesorter/inc/controller/SlsFocusManager.hxx @@ -162,11 +162,6 @@ public: */ void RemoveFocusChangeListener (const Link& rListener); - /** Move focus to sibling outside the actual slide sorter. This is - typically the tool bar with the close button. - */ - void SetFocusToToolBox (void); - /** Create an instance of this class to temporarily hide the focus indicator. It is restored to its former visibility state when the FocusHider is destroyed. -- cgit v1.2.3