summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorJoseph Powers <jpowers27@cox.net>2010-11-16 19:01:58 -0800
committerJoseph Powers <jpowers27@cox.net>2010-11-16 19:01:58 -0800
commitdf07e0fa0586d2ec9a0d72b00353e4af3510a341 (patch)
tree4a45f55a65a0eb5f9725ba92585cb31110098ce8 /framework
parente80018f8fce130bc7ba6c9bef6b9f927c857afe2 (diff)
HC Cleanup - libs-core
Diffstat (limited to 'framework')
-rw-r--r--framework/inc/classes/addonsoptions.hxx18
-rw-r--r--framework/inc/classes/menumanager.hxx10
-rw-r--r--framework/inc/helper/imageproducer.hxx2
-rw-r--r--framework/inc/uielement/newmenucontroller.hxx14
-rw-r--r--framework/inc/uielement/toolbarmanager.hxx26
-rw-r--r--framework/source/classes/addonsoptions.cxx2
-rw-r--r--framework/source/classes/bmkmenu.cxx4
-rw-r--r--framework/source/classes/menumanager.cxx5
-rw-r--r--framework/source/helper/actiontriggerhelper.cxx6
-rw-r--r--framework/source/uielement/addonstoolbarmanager.cxx15
-rw-r--r--framework/source/uielement/imagebuttontoolbarcontroller.cxx2
-rw-r--r--framework/source/uielement/menubarmanager.cxx2
-rw-r--r--framework/source/uielement/newmenucontroller.cxx4
-rw-r--r--framework/source/uielement/toolbarmanager.cxx44
-rw-r--r--framework/source/uielement/toolbarsmenucontroller.cxx2
15 files changed, 77 insertions, 79 deletions
diff --git a/framework/inc/classes/addonsoptions.hxx b/framework/inc/classes/addonsoptions.hxx
index 8dd1120de8..5dab0b4c95 100644
--- a/framework/inc/classes/addonsoptions.hxx
+++ b/framework/inc/classes/addonsoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -191,7 +191,7 @@ class AddonsOptions
*//*-*****************************************************************************************************/
sal_Bool HasAddonsMenu() const;
-
+
/*-****************************************************************************************************//**
@short returns if an addons help menu is available
@descr Call to retrieve if a addons menu is available
@@ -210,7 +210,7 @@ class AddonsOptions
@return number of addons toolbars
*//*-*****************************************************************************************************/
sal_Int32 GetAddonsToolBarCount() const ;
-
+
/*-****************************************************************************************************//**
@short returns the complete addons menu
@descr Call it to get all entries of the addon menu.
@@ -224,9 +224,9 @@ class AddonsOptions
*//*-*****************************************************************************************************/
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > >& GetAddonsMenu() const;
-
+
/*-****************************************************************************************************//**
- @short Gets the menu bar part of all addon components registered
+ @short Gets the menu bar part of all addon components registered
@descr -
@seealso -
@@ -274,7 +274,7 @@ class AddonsOptions
@onerror We return sal_False
*//*-*****************************************************************************************************/
-
+
const MergeMenuInstructionContainer& GetMergeMenuInstructions() const;
/*-****************************************************************************************************//**
@@ -283,14 +283,14 @@ class AddonsOptions
@seealso -
- @return The filled
+ @return The filled
@onerror We return sal_False
*//*-*****************************************************************************************************/
bool GetMergeToolbarInstructions( const ::rtl::OUString& rToolbarName, MergeToolbarInstructionContainer& rToolbar ) const;
/*-****************************************************************************************************//**
- @short Gets the Add-On help menu part of all addon components registered
+ @short Gets the Add-On help menu part of all addon components registered
@descr -
@seealso -
@@ -314,8 +314,8 @@ class AddonsOptions
*//*-*****************************************************************************************************/
Image GetImageFromURL( const rtl::OUString& aURL, sal_Bool bBig, sal_Bool bNoScale ) const;
-
Image GetImageFromURL( const rtl::OUString& aURL, sal_Bool bBig ) const;
+
//-------------------------------------------------------------------------------------------------------------
// private methods
//-------------------------------------------------------------------------------------------------------------
diff --git a/framework/inc/classes/menumanager.hxx b/framework/inc/classes/menumanager.hxx
index 51dc9c013e..98dd18c901 100644
--- a/framework/inc/classes/menumanager.hxx
+++ b/framework/inc/classes/menumanager.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,7 +77,7 @@ class MenuManager : public ThreadHelpBase ,
{
public:
// #110897#
- MenuManager(
+ MenuManager(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
REFERENCE< XFRAME >& rFrame,
Menu* pMenu,
@@ -102,7 +102,11 @@ class MenuManager : public ThreadHelpBase ,
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& getServiceFactory();
static void UpdateSpecialWindowMenu( Menu* pMenu ,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,IMutex& _rMutex);
- static void FillMenuImages(::com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& xFrame,Menu* _pMenu,sal_Bool bShowMenuImages);
+ static void FillMenuImages(
+ ::com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& xFrame,
+ Menu* _pMenu,
+ sal_Bool bShowMenuImages
+ );
protected:
DECL_LINK( Highlight, Menu * );
diff --git a/framework/inc/helper/imageproducer.hxx b/framework/inc/helper/imageproducer.hxx
index 6da7c58cc5..4cc6e1b2fe 100644
--- a/framework/inc/helper/imageproducer.hxx
+++ b/framework/inc/helper/imageproducer.hxx
@@ -56,6 +56,6 @@ Image SAL_CALL GetImageFromURL(
}
-#endif // __FRAMEWORK_HELPER_IMAGEPRODUCER_HXX_
+#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/inc/uielement/newmenucontroller.hxx b/framework/inc/uielement/newmenucontroller.hxx
index 8859f732c0..e0cfa75829 100644
--- a/framework/inc/uielement/newmenucontroller.hxx
+++ b/framework/inc/uielement/newmenucontroller.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,10 +78,10 @@ namespace framework
public:
NewMenuController( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceManager );
virtual ~NewMenuController();
-
+
// XServiceInfo
DECLARE_XSERVICEINFO
-
+
// XInitialization
virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
@@ -95,8 +95,8 @@ namespace framework
// XEventListener
virtual void SAL_CALL disposing( const com::sun::star::lang::EventObject& Source ) throw ( ::com::sun::star::uno::RuntimeException );
- DECL_STATIC_LINK( NewMenuController, ExecuteHdl_Impl, NewDocument* );
-
+ DECL_STATIC_LINK( NewMenuController, ExecuteHdl_Impl, NewDocument* );
+
private:
virtual void impl_setPopupMenu();
struct AddInfo
@@ -104,9 +104,9 @@ namespace framework
rtl::OUString aTargetFrame;
rtl::OUString aImageId;
};
-
+
typedef ::std::hash_map< int, AddInfo > AddInfoForId;
-
+
void fillPopupMenu( com::sun::star::uno::Reference< com::sun::star::awt::XPopupMenu >& rPopupMenu );
void retrieveShortcutsFromConfiguration( const ::com::sun::star::uno::Reference< ::com::sun::star::ui::XAcceleratorConfiguration >& rAccelCfg,
const ::com::sun::star::uno::Sequence< rtl::OUString >& rCommands,
diff --git a/framework/inc/uielement/toolbarmanager.hxx b/framework/inc/uielement/toolbarmanager.hxx
index 26becf382a..47b999d545 100644
--- a/framework/inc/uielement/toolbarmanager.hxx
+++ b/framework/inc/uielement/toolbarmanager.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -101,8 +101,8 @@ class ToolBarManager : public ::com::sun::star::frame::XFrameActionListener
public ::cppu::OWeakObject
{
public:
- ToolBarManager( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rServicveManager,
- const com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& rFrame,
+ ToolBarManager( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rServicveManager,
+ const com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& rFrame,
const rtl::OUString& rResourceName,
ToolBar* pToolBar );
virtual ~ToolBarManager();
@@ -110,23 +110,23 @@ class ToolBarManager : public ::com::sun::star::frame::XFrameActionListener
// XInterface, XTypeProvider, XServiceInfo
FWK_DECLARE_XINTERFACE
FWK_DECLARE_XTYPEPROVIDER
-
+
ToolBox* GetToolBar() const;
-
+
// XFrameActionListener
virtual void SAL_CALL frameAction( const com::sun::star::frame::FrameActionEvent& Action ) throw ( ::com::sun::star::uno::RuntimeException );
-
+
// XStatusListener
virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException );
-
+
// XEventListener
virtual void SAL_CALL disposing( const com::sun::star::lang::EventObject& Source ) throw ( ::com::sun::star::uno::RuntimeException );
-
+
// XUIConfigurationListener
virtual void SAL_CALL elementInserted( const ::com::sun::star::ui::ConfigurationEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL elementRemoved( const ::com::sun::star::ui::ConfigurationEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL elementReplaced( const ::com::sun::star::ui::ConfigurationEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
-
+ virtual void SAL_CALL elementReplaced( const ::com::sun::star::ui::ConfigurationEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
+
// XComponent
void SAL_CALL dispose() throw ( ::com::sun::star::uno::RuntimeException );
void SAL_CALL addEventListener( const com::sun::star::uno::Reference< XEventListener >& xListener ) throw( com::sun::star::uno::RuntimeException );
@@ -159,7 +159,7 @@ class ToolBarManager : public ::com::sun::star::frame::XFrameActionListener
sal_Int16 nWidth;
};
typedef std::vector< ControllerParams > ControllerParamsVector;
-
+
protected:
//added for 33668 by shizhoubo : 2008:04
DECL_LINK( Command, CommandEvent * );
@@ -198,7 +198,7 @@ class ToolBarManager : public ::com::sun::star::frame::XFrameActionListener
void ImplClearPopupMenu( ToolBox *pToolBar );
void RequestImages();
sal_uInt16 ConvertStyleToToolboxItemBits( sal_Int32 nStyle );
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > GetModelFromFrame() const;
+ ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > GetModelFromFrame() const;
sal_Bool IsPluginMode() const;
Image QueryAddonsImage( const ::rtl::OUString& aCommandURL, bool bBigImages );
long HandleClick(void ( SAL_CALL ::com::sun::star::frame::XToolbarController::*_pClick )( ));
@@ -251,7 +251,7 @@ class ToolBarManager : public ::com::sun::star::frame::XFrameActionListener
::com::sun::star::uno::Reference< ::com::sun::star::ui::XAcceleratorConfiguration > m_xModuleAcceleratorManager;
::com::sun::star::uno::Reference< ::com::sun::star::ui::XAcceleratorConfiguration > m_xGlobalAcceleratorManager;
};
-
+
}
#endif // __FRAMEWORK_UIELEMENT_TOOLBARMANAGER_HXX_
diff --git a/framework/source/classes/addonsoptions.cxx b/framework/source/classes/addonsoptions.cxx
index de84391914..7b78d98649 100644
--- a/framework/source/classes/addonsoptions.cxx
+++ b/framework/source/classes/addonsoptions.cxx
@@ -1778,7 +1778,7 @@ Image AddonsOptions::GetImageFromURL( const rtl::OUString& aURL, sal_Bool bBig,
//*****************************************************************************************************************
// public method
//*****************************************************************************************************************
-Image AddonsOptions::GetImageFromURL( const rtl::OUString& aURL, sal_Bool bBig ) const
+Image AddonsOptions::GetImageFromURL( const rtl::OUString& aURL, sal_Bool bBig ) const
{
return GetImageFromURL( aURL, bBig, sal_False );
}
diff --git a/framework/source/classes/bmkmenu.cxx b/framework/source/classes/bmkmenu.cxx
index fecd1d6425..39df90f52f 100644
--- a/framework/source/classes/bmkmenu.cxx
+++ b/framework/source/classes/bmkmenu.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -210,8 +210,6 @@ void BmkMenu::Initialize()
else
InsertItem( nId, aTitle );
- // Store values from configuration to the New and Wizard menu entries to enable
- // sfx2 based code to support high contrast mode correctly!
MenuConfiguration::Attributes* pUserAttributes = new MenuConfiguration::Attributes( aTargetFrame, aImageId );
SetUserValue( nId, (ULONG)pUserAttributes );
diff --git a/framework/source/classes/menumanager.cxx b/framework/source/classes/menumanager.cxx
index 9817fbfed1..cc5eb533a2 100644
--- a/framework/source/classes/menumanager.cxx
+++ b/framework/source/classes/menumanager.cxx
@@ -309,7 +309,6 @@ MenuManager::MenuManager(
}
}
-
// retrieve label information for all menu items without item text
SetHdl();
@@ -823,10 +822,12 @@ IMPL_LINK( MenuManager, Activate, Menu *, pMenu )
aCommand == aSpecialWindowCommand )
UpdateSpecialWindowMenu( pMenu,getServiceFactory(),m_aLock );
+ // Check if some modes have changed so we have to update our menu images
if ( bShowMenuImages != m_bShowMenuImages )
{
+ // The mode changed so we have to replace all images
m_bShowMenuImages = bShowMenuImages;
- FillMenuImages(m_xFrame,pMenu,bShowMenuImages);
+ FillMenuImages( m_xFrame, pMenu, bShowMenuImages );
}
if ( m_bInitialized )
diff --git a/framework/source/helper/actiontriggerhelper.cxx b/framework/source/helper/actiontriggerhelper.cxx
index 56ee06ea45..12459096cd 100644
--- a/framework/source/helper/actiontriggerhelper.cxx
+++ b/framework/source/helper/actiontriggerhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -210,7 +210,7 @@ void InsertSubMenuItems( Menu* pSubMenu, USHORT& nItemId, Reference< XIndexConta
}
else
aImage = Image( aBitmap );
-
+
if ( !!aImage )
pSubMenu->SetItemImage( nNewItemId, aImage );
}
@@ -393,7 +393,7 @@ void ActionTriggerHelper::FillActionTriggerContainerFromMenu(
FillActionTriggerContainerWithMenu( pMenu, xActionTriggerContainer );
}
-Reference< XIndexContainer > ActionTriggerHelper::CreateActionTriggerContainerFromMenu(
+Reference< XIndexContainer > ActionTriggerHelper::CreateActionTriggerContainerFromMenu(
// #110897#
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
const Menu* pMenu,
diff --git a/framework/source/uielement/addonstoolbarmanager.cxx b/framework/source/uielement/addonstoolbarmanager.cxx
index ab03e3e244..c2ebabc3d7 100644
--- a/framework/source/uielement/addonstoolbarmanager.cxx
+++ b/framework/source/uielement/addonstoolbarmanager.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -142,7 +142,8 @@ static sal_Bool IsCorrectContext( const ::rtl::OUString& rModuleIdentifier, cons
static Image RetrieveImage( Reference< com::sun::star::frame::XFrame >& rFrame,
const rtl::OUString& aImageId,
const rtl::OUString& aURL,
- BOOL bBigImage )
+ BOOL bBigImage
+)
{
Image aImage;
@@ -214,10 +215,10 @@ void AddonsToolBarManager::RefreshImages()
if ( pRuntimeItemData )
aImageId = pRuntimeItemData->aImageId;
- m_pToolBar->SetItemImage( nId, RetrieveImage( m_xFrame,
- aImageId,
- aCommandURL,
- bBigImages ));
+ m_pToolBar->SetItemImage(
+ nId,
+ RetrieveImage( m_xFrame, aImageId, aCommandURL, bBigImages )
+ );
}
}
}
@@ -506,7 +507,6 @@ IMPL_LINK( AddonsToolBarManager, StateChanged, StateChangedType*, pStateChangedT
{
if ( *pStateChangedType == STATE_CHANGE_CONTROLBACKGROUND )
{
- // Check if we need to get new images for normal/high contrast mode
CheckAndUpdateImages();
}
return 1;
@@ -518,7 +518,6 @@ IMPL_LINK( AddonsToolBarManager, DataChanged, DataChangedEvent*, pDataChangedEve
( pDataChangedEvent->GetType() == DATACHANGED_DISPLAY )) &&
( pDataChangedEvent->GetFlags() & SETTINGS_STYLE ))
{
- // Check if we need to get new images for normal/high contrast mode
CheckAndUpdateImages();
}
diff --git a/framework/source/uielement/imagebuttontoolbarcontroller.cxx b/framework/source/uielement/imagebuttontoolbarcontroller.cxx
index 257948a03d..c2268e9560 100644
--- a/framework/source/uielement/imagebuttontoolbarcontroller.cxx
+++ b/framework/source/uielement/imagebuttontoolbarcontroller.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx
index 521118c13d..08f3fe646e 100644
--- a/framework/source/uielement/menubarmanager.cxx
+++ b/framework/source/uielement/menubarmanager.cxx
@@ -876,7 +876,7 @@ IMPL_LINK( MenuBarManager, Activate, Menu *, pMenu )
m_bShowMenuImages = bShowMenuImages;
m_bRetrieveImages = sal_False;
m_nSymbolsStyle = nSymbolsStyle;
- MenuManager::FillMenuImages(m_xFrame,pMenu,bShowMenuImages);
+ MenuManager::FillMenuImages( m_xFrame, pMenu, bShowMenuImages );
}
// Try to map commands to labels
diff --git a/framework/source/uielement/newmenucontroller.cxx b/framework/source/uielement/newmenucontroller.cxx
index 3fdfe93a06..ce69f7e69f 100644
--- a/framework/source/uielement/newmenucontroller.cxx
+++ b/framework/source/uielement/newmenucontroller.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -488,7 +488,6 @@ void SAL_CALL NewMenuController::activate( const css::awt::MenuEvent& ) throw (R
if ( m_bShowImages != bShowImages )
{
m_bShowImages = bShowImages;
-
setMenuImages( pVCLPopupMenu, m_bShowImages );
}
@@ -556,7 +555,6 @@ void SAL_CALL NewMenuController::initialize( const Sequence< Any >& aArguments )
const StyleSettings& rSettings = Application::GetSettings().GetStyleSettings();
m_bShowImages = rSettings.GetUseImagesInMenus();
-
m_bNewMenu = m_aCommandURL.equalsAscii( ".uno:AddDirect" );
}
}
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx
index 6abe6fe58b..1e4334a21a 100644
--- a/framework/source/uielement/toolbarmanager.cxx
+++ b/framework/source/uielement/toolbarmanager.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -340,7 +340,7 @@ void ToolBarManager::Destroy()
/* #i99167# removed change for i93173 since there is some weird crash */
// #i93173# delete toolbar lazily as we can still be in one of its handlers
m_pToolBar->doLazyDelete();
-
+
Link aEmpty;
m_pToolBar->SetSelectHdl( aEmpty );
m_pToolBar->SetActivateHdl( aEmpty );
@@ -746,7 +746,8 @@ void ToolBarManager::impl_elementChanged(bool _bRemove,const ::com::sun::star::u
Reference< XNameAccess > xNameAccess;
sal_Int16 nImageType = sal_Int16();
sal_Int16 nCurrentImageType = getImageTypeFromBools(
- SvtMiscOptions().AreCurrentSymbolsLarge());
+ SvtMiscOptions().AreCurrentSymbolsLarge()
+ );
if (( Event.aInfo >>= nImageType ) &&
( nImageType == nCurrentImageType ) &&
@@ -846,7 +847,7 @@ void ToolBarManager::RemoveControllers()
uno::Sequence< beans::PropertyValue > ToolBarManager::GetPropsForCommand( const ::rtl::OUString& rCmdURL )
{
Sequence< PropertyValue > aPropSeq;
-
+
// Retrieve properties for command
try
{
@@ -854,7 +855,7 @@ uno::Sequence< beans::PropertyValue > ToolBarManager::GetPropsForCommand( const
{
Reference< XModuleManager > xModuleManager( m_xServiceManager->createInstance( SERVICENAME_MODULEMANAGER ), UNO_QUERY_THROW );
Reference< XInterface > xIfac( m_xFrame, UNO_QUERY );
-
+
m_bModuleIdentified = sal_True;
m_aModuleIdentifier = xModuleManager->identify( xIfac );
@@ -865,7 +866,7 @@ uno::Sequence< beans::PropertyValue > ToolBarManager::GetPropsForCommand( const
xNameAccess->getByName( m_aModuleIdentifier ) >>= m_xUICommandLabels;
}
}
-
+
if ( m_xUICommandLabels.is() )
{
if ( rCmdURL.getLength() > 0 )
@@ -1024,9 +1025,9 @@ void ToolBarManager::CreateControllers()
MenuDescriptionMap::iterator it = m_aMenuMap.find( nId );
if ( it == m_aMenuMap.end() )
{
- xController = Reference< XStatusListener >(
+ xController = Reference< XStatusListener >(
new GenericToolbarController( m_xServiceManager, m_xFrame, m_pToolBar, nId, aCommandURL ));
-
+
// Accessibility support: Set toggle button role for specific commands
sal_Int32 nProps = RetrievePropertiesFromCommand( aCommandURL );
if ( nProps & UICOMMANDDESCRIPTION_PROPERTIES_TOGGLEBUTTON )
@@ -1088,7 +1089,7 @@ void ToolBarManager::CreateControllers()
aPropertyVector.push_back( makeAny( aPropValue ));
aPropValue.Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ParentWindow" ));
aPropValue.Value <<= xToolbarWindow;
- aPropertyVector.push_back( makeAny( aPropValue ));
+ aPropertyVector.push_back( makeAny( aPropValue ));
aPropValue.Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ModuleName" ));
aPropValue.Value <<= m_aModuleIdentifier;
aPropertyVector.push_back( makeAny( aPropValue ));
@@ -1103,17 +1104,17 @@ void ToolBarManager::CreateControllers()
Sequence< Any > aArgs( comphelper::containerToSequence( aPropertyVector ));
xInit->initialize( aArgs );
//for Support Visiblitly by shizhoubo
- if (pController)
+ if (pController)
{
// rtl::OUString aCommandURL = pController->m_aCommandURL;
- if(aCommandURL == rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:SwitchXFormsDesignMode" )) ||
- aCommandURL == rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:ViewDataSourceBrowser" )) ||
- aCommandURL == rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:ParaLeftToRight" )) ||
- aCommandURL == rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:ParaRightToLeft" ))
+ if(aCommandURL == rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:SwitchXFormsDesignMode" )) ||
+ aCommandURL == rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:ViewDataSourceBrowser" )) ||
+ aCommandURL == rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:ParaLeftToRight" )) ||
+ aCommandURL == rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:ParaRightToLeft" ))
)
pController->setFastPropertyValue_NoBroadcast(1,makeAny(sal_True));
}
-
+
//end
}
@@ -1313,7 +1314,7 @@ void ToolBarManager::FillToolbar( const Reference< XIndexAccess >& rItemContaine
xMenuContainer = m_xUICfgMgr->getSettings( aCommandURL, sal_False );
if ( xMenuContainer.is() && xMenuContainer->getCount() )
{
- Sequence< PropertyValue > aProps;
+ Sequence< PropertyValue > aProps;
// drop down menu info is currently
// the first ( and only ) menu
// in the menusettings container
@@ -1321,7 +1322,7 @@ void ToolBarManager::FillToolbar( const Reference< XIndexAccess >& rItemContaine
for ( sal_Int32 index=0; index<aProps.getLength(); ++index )
{
if ( aProps[ index ].Name.equalsAsciiL( ITEM_DESCRIPTOR_CONTAINER, ITEM_DESCRIPTOR_CONTAINER_LEN ))
-
+
{
aProps[ index ].Value >>= aMenuDesc;
break;
@@ -1816,9 +1817,8 @@ PopupMenu * ToolBarManager::GetToolBarCustomMeun(ToolBox* pToolBar)
pItemMenu->CheckItem( STARTID_CUSTOMIZE_POPUPMENU+nPos, m_pToolBar->IsItemVisible( nId ) );
pItemMenu->SetItemCommand( STARTID_CUSTOMIZE_POPUPMENU+nPos, aCommandURL );
pItemMenu->SetItemImage( STARTID_CUSTOMIZE_POPUPMENU+nPos,
- GetImageFromURL( m_xFrame,
- aCommandURL,
- sal_False ));
+ GetImageFromURL( m_xFrame, aCommandURL, sal_False )
+ );
}
else
{
@@ -2114,7 +2114,6 @@ IMPL_LINK( ToolBarManager, StateChanged, StateChangedType*, pStateChangedType )
if ( *pStateChangedType == STATE_CHANGE_CONTROLBACKGROUND )
{
- // Check if we need to get new images for normal/high contrast mode
CheckAndUpdateImages();
}
else if ( *pStateChangedType == STATE_CHANGE_VISIBLE )
@@ -2135,7 +2134,6 @@ IMPL_LINK( ToolBarManager, DataChanged, DataChangedEvent*, pDataChangedEvent )
( pDataChangedEvent->GetType() == DATACHANGED_DISPLAY )) &&
( pDataChangedEvent->GetFlags() & SETTINGS_STYLE ))
{
- // Check if we need to get new images for normal/high contrast mode
CheckAndUpdateImages();
}
@@ -2211,7 +2209,7 @@ IMPL_STATIC_LINK_NOINSTANCE( ToolBarManager, ExecuteHdl_Impl, ExecuteInfo*, pExe
{
pExecuteInfo->xLayoutManager->dockAllWindows( UIElementType::TOOLBAR );
}
- }
+ }
catch ( Exception& )
{
}
diff --git a/framework/source/uielement/toolbarsmenucontroller.cxx b/framework/source/uielement/toolbarsmenucontroller.cxx
index 26656b0ea2..55c4b61fe3 100644
--- a/framework/source/uielement/toolbarsmenucontroller.cxx
+++ b/framework/source/uielement/toolbarsmenucontroller.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite