diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-04 20:46:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-04 20:49:59 +0000 |
commit | af6cd2356afd1212acc529f796f8043ad7e278e6 (patch) | |
tree | a46e0181a88c4fca8cd6d5a9cb473bbfd2d71d31 /framework | |
parent | 38a65f76bc944ea730ebac7640dc135248ec3da0 (diff) |
rename MenuConfiguration::Attributes->MenuAttributes
Change-Id: I2ada1394c4cbee7c27b02f241ee4a254597a5dd8
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/classes/menumanager.cxx | 8 | ||||
-rw-r--r-- | framework/source/fwe/classes/addonmenu.cxx | 4 | ||||
-rw-r--r-- | framework/source/fwe/classes/bmkmenu.cxx | 4 | ||||
-rw-r--r-- | framework/source/fwe/xml/menuconfiguration.cxx | 12 | ||||
-rw-r--r-- | framework/source/uielement/menubarmanager.cxx | 12 | ||||
-rw-r--r-- | framework/source/uielement/newmenucontroller.cxx | 8 | ||||
-rw-r--r-- | framework/source/uielement/popuptoolbarcontroller.cxx | 4 |
7 files changed, 26 insertions, 26 deletions
diff --git a/framework/source/classes/menumanager.cxx b/framework/source/classes/menumanager.cxx index c09cc87a0006..b9350eff7c9a 100644 --- a/framework/source/classes/menumanager.cxx +++ b/framework/source/classes/menumanager.cxx @@ -219,8 +219,8 @@ MenuManager::MenuManager( Image aImage; OUString aImageId; - MenuConfiguration::Attributes* pMenuAttributes = - reinterpret_cast<MenuConfiguration::Attributes*>(pMenu->GetUserValue( nItemId )); + MenuAttributes* pMenuAttributes = + reinterpret_cast<MenuAttributes*>(pMenu->GetUserValue( nItemId )); if ( pMenuAttributes && !pMenuAttributes->aImageId.isEmpty() ) { @@ -944,8 +944,8 @@ void MenuManager::FillMenuImages(Reference< XFrame >& _xFrame, Menu* _pMenu,bool bool bImageSet = false; OUString aImageId; - ::framework::MenuConfiguration::Attributes* pMenuAttributes = - reinterpret_cast< ::framework::MenuConfiguration::Attributes*>(_pMenu->GetUserValue( nId )); + ::framework::MenuAttributes* pMenuAttributes = + reinterpret_cast< ::framework::MenuAttributes*>(_pMenu->GetUserValue( nId )); if ( pMenuAttributes ) aImageId = pMenuAttributes->aImageId; // Retrieve image id from menu attributes diff --git a/framework/source/fwe/classes/addonmenu.cxx b/framework/source/fwe/classes/addonmenu.cxx index 54c1fa9089a8..5161e62cc978 100644 --- a/framework/source/fwe/classes/addonmenu.cxx +++ b/framework/source/fwe/classes/addonmenu.cxx @@ -330,8 +330,8 @@ void AddonMenuManager::BuildMenu( PopupMenu* pCurrent // Store values from configuration to the New and Wizard menu entries to enable // sfx2 based code to support high contrast mode correctly! - sal_uIntPtr nAttributePtr = MenuConfiguration::Attributes::CreateAttribute(aTarget, aImageId); - pCurrentMenu->SetUserValue(nId, nAttributePtr, MenuConfiguration::Attributes::ReleaseAttribute); + sal_uIntPtr nAttributePtr = MenuAttributes::CreateAttribute(aTarget, aImageId); + pCurrentMenu->SetUserValue(nId, nAttributePtr, MenuAttributes::ReleaseAttribute); pCurrentMenu->SetItemCommand( nId, aURL ); if ( pSubMenu ) diff --git a/framework/source/fwe/classes/bmkmenu.cxx b/framework/source/fwe/classes/bmkmenu.cxx index a3f42905b536..cc9c31f4617b 100644 --- a/framework/source/fwe/classes/bmkmenu.cxx +++ b/framework/source/fwe/classes/bmkmenu.cxx @@ -164,8 +164,8 @@ void BmkMenu::Initialize() else InsertItem( nId, aTitle ); - sal_uIntPtr nAttributePtr = MenuConfiguration::Attributes::CreateAttribute(aTargetFrame, aImageId); - SetUserValue(nId, nAttributePtr, MenuConfiguration::Attributes::ReleaseAttribute); + sal_uIntPtr nAttributePtr = MenuAttributes::CreateAttribute(aTargetFrame, aImageId); + SetUserValue(nId, nAttributePtr, MenuAttributes::ReleaseAttribute); SetItemCommand( nId, aURL ); } diff --git a/framework/source/fwe/xml/menuconfiguration.cxx b/framework/source/fwe/xml/menuconfiguration.cxx index aabbc47b9751..1d2a8dd78cac 100644 --- a/framework/source/fwe/xml/menuconfiguration.cxx +++ b/framework/source/fwe/xml/menuconfiguration.cxx @@ -139,25 +139,25 @@ void MenuConfiguration::StoreMenuBarConfigurationToXML( } } -sal_uIntPtr MenuConfiguration::Attributes::CreateAttribute(const OUString& rFrame, const OUString& rImageIdStr) +sal_uIntPtr MenuAttributes::CreateAttribute(const OUString& rFrame, const OUString& rImageIdStr) { - Attributes* pAttributes = new Attributes(rFrame, rImageIdStr); + MenuAttributes* pAttributes = new MenuAttributes(rFrame, rImageIdStr); pAttributes->acquire(); return reinterpret_cast<sal_uIntPtr>(pAttributes); } -sal_uIntPtr MenuConfiguration::Attributes::CreateAttribute(const css::uno::WeakReference<css::frame::XDispatchProvider>& rDispatchProvider) +sal_uIntPtr MenuAttributes::CreateAttribute(const css::uno::WeakReference<css::frame::XDispatchProvider>& rDispatchProvider) { - Attributes* pAttributes = new Attributes(rDispatchProvider); + MenuAttributes* pAttributes = new MenuAttributes(rDispatchProvider); pAttributes->acquire(); return reinterpret_cast<sal_uIntPtr>(pAttributes); } -void MenuConfiguration::Attributes::ReleaseAttribute(sal_uIntPtr nAttributePtr) +void MenuAttributes::ReleaseAttribute(sal_uIntPtr nAttributePtr) { if (!nAttributePtr) return; - Attributes* pAttributes = reinterpret_cast<Attributes*>(nAttributePtr); + MenuAttributes* pAttributes = reinterpret_cast<MenuAttributes*>(nAttributePtr); pAttributes->release(); } diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx index d97c96d85aa2..de1b06b5fe12 100644 --- a/framework/source/uielement/menubarmanager.cxx +++ b/framework/source/uielement/menubarmanager.cxx @@ -1255,7 +1255,7 @@ void MenuBarManager::FillMenuManager( Menu* pMenu, const Reference< XFrame >& rF Reference< XDispatchProvider > xPopupMenuDispatchProvider( rDispatchProvider ); // Retrieve possible attributes struct - MenuConfiguration::Attributes* pAttributes = reinterpret_cast<MenuConfiguration::Attributes *>(pMenu->GetUserValue( nItemId )); + MenuAttributes* pAttributes = reinterpret_cast<MenuAttributes *>(pMenu->GetUserValue( nItemId )); if ( pAttributes ) xPopupMenuDispatchProvider = pAttributes->xDispatchProvider; @@ -1325,8 +1325,8 @@ void MenuBarManager::FillMenuManager( Menu* pMenu, const Reference< XFrame >& rF Image aImage; OUString aImageId; - MenuConfiguration::Attributes* pMenuAttributes = - reinterpret_cast<MenuConfiguration::Attributes*>(pMenu->GetUserValue( nItemId )); + MenuAttributes* pMenuAttributes = + reinterpret_cast<MenuAttributes*>(pMenu->GetUserValue( nItemId )); if ( pMenuAttributes && !pMenuAttributes->aImageId.isEmpty() ) { @@ -1687,8 +1687,8 @@ void MenuBarManager::FillMenu( if ( xDispatchProvider.is() ) { // Use attributes struct to transport special dispatch provider - sal_uIntPtr nAttributePtr = MenuConfiguration::Attributes::CreateAttribute(xDispatchProvider); - pMenu->SetUserValue(nId, nAttributePtr, MenuConfiguration::Attributes::ReleaseAttribute); + sal_uIntPtr nAttributePtr = MenuAttributes::CreateAttribute(xDispatchProvider); + pMenu->SetUserValue(nId, nAttributePtr, MenuAttributes::ReleaseAttribute); } // Use help command to transport module identifier @@ -1944,7 +1944,7 @@ void MenuBarManager::Init(const Reference< XFrame >& rFrame,AddonMenu* pAddonMen { if ( pAddonMenu->GetItemType( i ) != MenuItemType::SEPARATOR ) { - MenuConfiguration::Attributes* pAddonAttributes = reinterpret_cast<MenuConfiguration::Attributes *>(pAddonMenu->GetUserValue( nItemId )); + MenuAttributes* pAddonAttributes = reinterpret_cast<MenuAttributes *>(pAddonMenu->GetUserValue( nItemId )); MenuItemHandler* pMenuItemHandler = new MenuItemHandler( nItemId, xStatusListener, xDispatch ); if ( pAddonAttributes ) diff --git a/framework/source/uielement/newmenucontroller.cxx b/framework/source/uielement/newmenucontroller.cxx index 12e13fa02292..c02f1f11674e 100644 --- a/framework/source/uielement/newmenucontroller.cxx +++ b/framework/source/uielement/newmenucontroller.cxx @@ -84,7 +84,7 @@ void NewMenuController::setMenuImages( PopupMenu* pPopupMenu, bool bSetImages ) OUString aImageId; sal_uIntPtr nAttributePtr = pPopupMenu->GetUserValue(sal::static_int_cast<sal_uInt16>(i)); - MenuConfiguration::Attributes* pAttributes = reinterpret_cast<MenuConfiguration::Attributes *>(nAttributePtr); + MenuAttributes* pAttributes = reinterpret_cast<MenuAttributes *>(nAttributePtr); if (pAttributes) aImageId = pAttributes->aImageId; @@ -349,9 +349,9 @@ void NewMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >& rPopup sal_uIntPtr nAttributePtr = pSubMenu->GetUserValue(nItemId); if (nAttributePtr) { - MenuConfiguration::Attributes* pAttributes = reinterpret_cast<MenuConfiguration::Attributes *>(nAttributePtr); + MenuAttributes* pAttributes = reinterpret_cast<MenuAttributes *>(nAttributePtr); pAttributes->acquire(); - pVCLPopupMenu->SetUserValue(nItemId, nAttributePtr, MenuConfiguration::Attributes::ReleaseAttribute); + pVCLPopupMenu->SetUserValue(nItemId, nAttributePtr, MenuAttributes::ReleaseAttribute); } } } @@ -412,7 +412,7 @@ void SAL_CALL NewMenuController::itemSelected( const css::awt::MenuEvent& rEvent PopupMenu* pVCLPopupMenu = static_cast<PopupMenu *>(pPopupMenu->GetMenu()); aTargetURL.Complete = pVCLPopupMenu->GetItemCommand(rEvent.MenuId); sal_uIntPtr nAttributePtr = pVCLPopupMenu->GetUserValue(rEvent.MenuId); - MenuConfiguration::Attributes* pAttributes = reinterpret_cast<MenuConfiguration::Attributes *>(nAttributePtr); + MenuAttributes* pAttributes = reinterpret_cast<MenuAttributes *>(nAttributePtr); if (pAttributes) aTargetFrame = pAttributes->aTargetFrame; } diff --git a/framework/source/uielement/popuptoolbarcontroller.cxx b/framework/source/uielement/popuptoolbarcontroller.cxx index e0e0ad955df3..259601ea8855 100644 --- a/framework/source/uielement/popuptoolbarcontroller.cxx +++ b/framework/source/uielement/popuptoolbarcontroller.cxx @@ -431,7 +431,7 @@ throw ( css::uno::RuntimeException, std::exception ) if ( m_xPopupMenu.is() ) { // TODO investigate how to wrap Get/SetUserValue in css::awt::XMenu - MenuConfiguration::Attributes* pMenuAttributes( 0 ); + MenuAttributes* pMenuAttributes( 0 ); VCLXPopupMenu* pTkPopupMenu = static_cast<VCLXPopupMenu *>( VCLXMenu::GetImplementation( m_xPopupMenu ) ); @@ -440,7 +440,7 @@ throw ( css::uno::RuntimeException, std::exception ) dynamic_cast< PopupMenu * >( pTkPopupMenu->GetMenu() ) : NULL; if ( pVCLPopupMenu ) - pMenuAttributes = reinterpret_cast< MenuConfiguration::Attributes* >( + pMenuAttributes = reinterpret_cast< MenuAttributes* >( pVCLPopupMenu->GetUserValue( pVCLPopupMenu->GetCurItemId() ) ); if ( pMenuAttributes ) |