diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-05-13 12:06:16 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-05-13 12:06:16 +0000 |
commit | 739f8e20c3a7d86a2b1f6bf8d2b202eee26b9a72 (patch) | |
tree | 6638d215130ce50c8c603b734b7aaa8bee82e920 /sfx2/source/menu | |
parent | 8281350f28453d05a3f94e41d1b00ba8f8cde9e6 (diff) |
INTEGRATION: CWS fwk86 (1.21.82); FILE MERGED
2008/04/30 15:47:39 pb 1.21.82.2: RESYNC: (1.21-1.23); FILE MERGED
2008/04/07 11:47:44 pb 1.21.82.1: fix: #i86924# reset item images if symbols style has changed
Diffstat (limited to 'sfx2/source/menu')
-rw-r--r-- | sfx2/source/menu/mnuitem.cxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sfx2/source/menu/mnuitem.cxx b/sfx2/source/menu/mnuitem.cxx index 361ad4a59f61..f2dfae067456 100644 --- a/sfx2/source/menu/mnuitem.cxx +++ b/sfx2/source/menu/mnuitem.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: mnuitem.cxx,v $ - * $Revision: 1.23 $ + * $Revision: 1.24 $ * * This file is part of OpenOffice.org. * @@ -444,8 +444,8 @@ SfxAppMenuControl_Impl::SfxAppMenuControl_Impl( // Determine the current background color setting for menus const StyleSettings& rSettings = Application::GetSettings().GetStyleSettings(); - BOOL bIsHiContrastMode = rSettings.GetMenuColor().IsDark(); - m_bWasHiContrastMode = bIsHiContrastMode; + m_nSymbolsStyle = rSettings.GetSymbolsStyle(); + m_bWasHiContrastMode = rSettings.GetMenuColor().IsDark(); m_bShowMenuImages = SvtMenuOptions().IsMenuIconsEnabled(); Reference<com::sun::star::lang::XMultiServiceFactory> aXMultiServiceFactory(::comphelper::getProcessServiceFactory()); @@ -469,13 +469,16 @@ IMPL_LINK( SfxAppMenuControl_Impl, Activate, Menu *, pActMenu ) { if ( pActMenu ) { - BOOL bShowMenuImages = SvtMenuOptions().IsMenuIconsEnabled(); const StyleSettings& rSettings = Application::GetSettings().GetStyleSettings(); + ULONG nSymbolsStyle = rSettings.GetSymbolsStyle(); BOOL bIsHiContrastMode = rSettings.GetMenuColor().IsDark(); + BOOL bShowMenuImages = SvtMenuOptions().IsMenuIconsEnabled(); - if (( bIsHiContrastMode != m_bWasHiContrastMode ) || - ( bShowMenuImages != m_bShowMenuImages ) ) + if (( nSymbolsStyle != m_nSymbolsStyle ) || + ( bIsHiContrastMode != m_bWasHiContrastMode ) || + ( bShowMenuImages != m_bShowMenuImages )) { + m_nSymbolsStyle = nSymbolsStyle; m_bWasHiContrastMode = bIsHiContrastMode; m_bShowMenuImages = bShowMenuImages; |