diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-06 08:46:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-06 08:52:37 +0100 |
commit | a1ce4fb4f0dbc3c4141f510e5b2b732a24d862c8 (patch) | |
tree | 6ecac5a964c7bc40862f435f0492d941948326e4 /framework | |
parent | ebded7f2f5d19489811ee4ed2a0da9d09371a5ac (diff) |
callcatcher: various unused methods
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/layoutmanager/toolbarlayoutmanager.cxx | 38 | ||||
-rw-r--r-- | framework/source/layoutmanager/toolbarlayoutmanager.hxx | 1 |
2 files changed, 0 insertions, 39 deletions
diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx index 2b8625834f65..247b1e56c8a2 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx @@ -1784,44 +1784,6 @@ void ToolbarLayoutManager::implts_writeWindowStateData( const UIElement& rElemen aWriteLock.unlock(); } -void ToolbarLayoutManager::implts_writeNewWindowStateData( const rtl::OUString aName, const uno::Reference< awt::XWindow >& xWindow ) -{ - bool bVisible( false ); - bool bFloating( true ); - awt::Rectangle aPos; - awt::Size aSize; - - if ( xWindow.is() ) - { - uno::Reference< awt::XDockableWindow > xDockWindow( xWindow, uno::UNO_QUERY ); - if ( xDockWindow.is() ) - bFloating = xDockWindow->isFloating(); - - uno::Reference< awt::XWindow2 > xWindow2( xWindow, uno::UNO_QUERY ); - if( xWindow2.is() ) - { - aPos = xWindow2->getPosSize(); - aSize = xWindow2->getOutputSize(); // always use output size for consistency - bVisible = xWindow2->isVisible(); - } - - WriteGuard aWriteLock( m_aLock ); - UIElement& rUIElement = impl_findToolbar( aName ); - if ( rUIElement.m_xUIElement.is() ) - { - rUIElement.m_bVisible = bVisible; - rUIElement.m_bFloating = bFloating; - if ( bFloating ) - { - rUIElement.m_aFloatingData.m_aPos = awt::Point(aPos.X, aPos.Y); - rUIElement.m_aFloatingData.m_aSize = aSize; - } - } - implts_writeWindowStateData( rUIElement ); - aWriteLock.unlock(); - } -} - /****************************************************************************** LOOKUP PART FOR TOOLBARS ******************************************************************************/ diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.hxx b/framework/source/layoutmanager/toolbarlayoutmanager.hxx index 0667d2e6592a..16a42b99bd1d 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.hxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.hxx @@ -297,7 +297,6 @@ class ToolbarLayoutManager : public ::cppu::WeakImplHelper3< ::com::sun::star::a //--------------------------------------------------------------------------------------------------------- sal_Bool implts_readWindowStateData( const rtl::OUString& aName, UIElement& rElementData ); void implts_writeWindowStateData( const UIElement& rElementData ); - void implts_writeNewWindowStateData( const rtl::OUString aName, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >& xWindow ); //--------------------------------------------------------------------------------------------------------- // members |