summaryrefslogtreecommitdiff
path: root/sfx2/source/menu
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
commit7e37ceda28587f513cffcf5430fc9847fdfc5d90 (patch)
treedf25852edef25d7005e4507e209a224185c33046 /sfx2/source/menu
parent8458bfa33ce5bf3f98fc9d0a353b956fd4b42617 (diff)
HC Cleanup - libs-core
Diffstat (limited to 'sfx2/source/menu')
-rw-r--r--sfx2/source/menu/mnumgr.cxx3
-rw-r--r--sfx2/source/menu/virtmenu.cxx13
2 files changed, 4 insertions, 12 deletions
diff --git a/sfx2/source/menu/mnumgr.cxx b/sfx2/source/menu/mnumgr.cxx
index 601ec9fd4395..a61b12143424 100644
--- a/sfx2/source/menu/mnumgr.cxx
+++ b/sfx2/source/menu/mnumgr.cxx
@@ -228,11 +228,10 @@ PopupMenu* InsertThesaurusSubmenu_Impl( SfxBindings* pBindings, Menu* pSVMenu )
if (nNumSynonyms > 0)
{
SvtLinguConfig aCfg;
- const bool bHC = Application::GetSettings().GetStyleSettings().GetHighContrastMode();
Image aImage;
String sThesImplName( aHelper.GetThesImplName( aLocale ) );
- ::rtl::OUString aSynonymsImageUrl( aCfg.GetSynonymsContextImage( sThesImplName, bHC ) );
+ ::rtl::OUString aSynonymsImageUrl( aCfg.GetSynonymsContextImage( sThesImplName ) );
if (sThesImplName.Len() > 0 && aSynonymsImageUrl.getLength() > 0)
aImage = Image( lcl_GetImageFromPngUrl( aSynonymsImageUrl ) );
diff --git a/sfx2/source/menu/virtmenu.cxx b/sfx2/source/menu/virtmenu.cxx
index 415cde10efdf..f13591687838 100644
--- a/sfx2/source/menu/virtmenu.cxx
+++ b/sfx2/source/menu/virtmenu.cxx
@@ -134,7 +134,8 @@ void SfxMenuImageControl_Impl::Update()
static Image RetrieveAddOnImage( Reference< com::sun::star::frame::XFrame >& rFrame,
const rtl::OUString& aImageId,
const rtl::OUString& aURL,
- BOOL bBigImage )
+ BOOL bBigImage
+)
{
Image aImage;
@@ -194,7 +195,7 @@ SfxVirtualMenu::SfxVirtualMenu( USHORT nOwnId,
SfxVirtualMenu* pOwnParent, Menu& rMenu, BOOL bWithHelp,
SfxBindings &rBindings, BOOL bOLEServer, BOOL bRes, BOOL bIsAddonMenu ):
pItems(0),
- pImageControl(0),
+ pImageControl(0),
pBindings(&rBindings),
pResMgr(0),
pAutoDeactivate(0),
@@ -320,14 +321,6 @@ SfxVirtualMenu::~SfxVirtualMenu()
DBG_ASSERT( !nLocks, "destroying active menu" );
}
//--------------------------------------------------------------------
-
-BOOL SfxVirtualMenu::IsHiContrastMode() const
-{
- const StyleSettings& rSettings = Application::GetSettings().GetStyleSettings();
- return rSettings.GetHighContrastMode();
-}
-
-//--------------------------------------------------------------------
// internal: creates the virtual menu from the pSVMenu
void SfxVirtualMenu::CreateFromSVMenu()