summaryrefslogtreecommitdiff
path: root/sfx2/source/menu
diff options
context:
space:
mode:
authorRelease Engineers <releng@openoffice.org>2009-04-14 17:47:15 +0000
committerRelease Engineers <releng@openoffice.org>2009-04-14 17:47:15 +0000
commitad1abf647df65ec7b7bced355cb3da4ee6bbdfb2 (patch)
tree0b74bfcfe1d734b639c9b3ba2fc9f8a1e63a763b /sfx2/source/menu
parentc7961e7145ecf2a9531cf416222f7ecda8b81167 (diff)
CWS-TOOLING: integrate CWS gtkmenuimages
2009-04-03 14:02:10 +0200 jsk r270485 : #i100820 2009-04-02 17:03:55 +0200 pl r270425 : CWS-TOOLING: rebase CWS gtkmenuimages to trunk@270033 (milestone: DEV300:m45) 2009-03-06 16:39:53 +0100 cmc r269021 : #i95318# pretty dialog up 2009-03-05 21:01:40 +0100 cmc r268944 : #i95318# pretty dialog up 2009-03-03 15:03:28 +0100 cmc r268731 : #i95318# pretty dialog up 2009-03-03 15:02:52 +0100 cmc r268730 : #i95318# pretty dialog up 2009-02-04 18:09:37 +0100 cmc r267397 : #i95318# follow system theme for defaults for icons on or off in menus
Diffstat (limited to 'sfx2/source/menu')
-rw-r--r--sfx2/source/menu/mnuitem.cxx4
-rw-r--r--sfx2/source/menu/virtmenu.cxx15
2 files changed, 8 insertions, 11 deletions
diff --git a/sfx2/source/menu/mnuitem.cxx b/sfx2/source/menu/mnuitem.cxx
index 762468dea7da..988bbf3b4118 100644
--- a/sfx2/source/menu/mnuitem.cxx
+++ b/sfx2/source/menu/mnuitem.cxx
@@ -452,7 +452,7 @@ SfxAppMenuControl_Impl::SfxAppMenuControl_Impl(
const StyleSettings& rSettings = Application::GetSettings().GetStyleSettings();
m_nSymbolsStyle = rSettings.GetSymbolsStyle();
m_bWasHiContrastMode = rSettings.GetMenuColor().IsDark();
- m_bShowMenuImages = SvtMenuOptions().IsMenuIconsEnabled();
+ m_bShowMenuImages = rSettings.GetUseImagesInMenus();
Reference<com::sun::star::lang::XMultiServiceFactory> aXMultiServiceFactory(::comphelper::getProcessServiceFactory());
::framework::MenuConfiguration aConf( aXMultiServiceFactory );
@@ -478,7 +478,7 @@ IMPL_LINK( SfxAppMenuControl_Impl, Activate, Menu *, pActMenu )
const StyleSettings& rSettings = Application::GetSettings().GetStyleSettings();
ULONG nSymbolsStyle = rSettings.GetSymbolsStyle();
BOOL bIsHiContrastMode = rSettings.GetMenuColor().IsDark();
- BOOL bShowMenuImages = SvtMenuOptions().IsMenuIconsEnabled();
+ BOOL bShowMenuImages = rSettings.GetUseImagesInMenus();
if (( nSymbolsStyle != m_nSymbolsStyle ) ||
( bIsHiContrastMode != m_bWasHiContrastMode ) ||
diff --git a/sfx2/source/menu/virtmenu.cxx b/sfx2/source/menu/virtmenu.cxx
index 4cb72a425625..88c9ba8aa757 100644
--- a/sfx2/source/menu/virtmenu.cxx
+++ b/sfx2/source/menu/virtmenu.cxx
@@ -443,7 +443,7 @@ void SfxVirtualMenu::CreateFromSVMenu()
pMnuCtrl->Bind( this, nSlotId, pSVMenu->GetItemText(nSlotId),
pSVMenu->GetHelpText(nSlotId), *pBindings);
- if ( aOptions.IsMenuIconsEnabled() )
+ if ( Application::GetSettings().GetStyleSettings().GetUseImagesInMenus() )
{
rtl::OUString aSlotURL( RTL_CONSTASCII_USTRINGPARAM( "slot:" ));
aSlotURL += rtl::OUString::valueOf( sal_Int32( nSlotId ));
@@ -540,7 +540,7 @@ void SfxVirtualMenu::CreateFromSVMenu()
pMnuCtrl->Bind( this, nSlotId, pSVMenu->GetItemText(nSlotId), pSVMenu->GetHelpText(nSlotId), *pBindings);
}
- if ( aOptions.IsMenuIconsEnabled() )
+ if ( Application::GetSettings().GetStyleSettings().GetUseImagesInMenus() )
{
Image aImage;
if ( bIsAddonPopupMenu || framework::AddonMenuManager::IsAddonMenuId( nSlotId ))
@@ -611,10 +611,9 @@ IMPL_LINK( SfxVirtualMenu, Highlight, Menu *, pMenu )
IMPL_LINK( SfxVirtualMenu, SettingsChanged, void*, EMPTYARG )
{
- SvtMenuOptions aOptions;
USHORT nItemCount = pSVMenu->GetItemCount();
SfxViewFrame *pViewFrame = pBindings->GetDispatcher()->GetFrame();
- BOOL bIcons = aOptions.IsMenuIconsEnabled();
+ BOOL bIcons = Application::GetSettings().GetStyleSettings().GetUseImagesInMenus();
BOOL bIsHiContrastMode = IsHiContrastMode();
Reference<com::sun::star::frame::XFrame> xFrame( pViewFrame->GetFrame()->GetFrameInterface() );
@@ -681,8 +680,7 @@ IMPL_LINK( SfxVirtualMenu, SettingsChanged, void*, EMPTYARG )
void SfxVirtualMenu::UpdateImages()
{
- SvtMenuOptions aOptions;
- BOOL bIcons = aOptions.IsMenuIconsEnabled();
+ BOOL bIcons = Application::GetSettings().GetStyleSettings().GetUseImagesInMenus();
if ( bIcons )
{
@@ -731,10 +729,9 @@ void SfxVirtualMenu::UpdateImages( Menu* pMenu )
if ( !pMenu )
return;
- SvtMenuOptions aOptions;
framework::AddonsOptions aAddonOptions;
- BOOL bIcons = aOptions.IsMenuIconsEnabled();
+ BOOL bIcons = Application::GetSettings().GetStyleSettings().GetUseImagesInMenus();
if ( bIcons )
{
BOOL bIsHiContrastMode = IsHiContrastMode();
@@ -929,7 +926,7 @@ void SfxVirtualMenu::InsertAddOnsMenuItem( Menu* pMenu )
pMenu->InsertItem( SID_ADDONS, aAddonsTitle );
pMenu->SetPopupMenu( SID_ADDONS, pAddonMenu );
- if ( SvtMenuOptions().IsMenuIconsEnabled() )
+ if ( Application::GetSettings().GetStyleSettings().GetUseImagesInMenus() )
{
rtl::OUString aSlotURL( RTL_CONSTASCII_USTRINGPARAM( "slot:" ));
aSlotURL += rtl::OUString::valueOf( sal_Int32( SID_ADDONS ));