From d93915b2aeabbde90b7eb539116b9be49e0d1a5c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 14 May 2015 15:28:57 +0200 Subject: conver MENU_FLAG_ constants to scoped enum Change-Id: I969d99fa8881cc89601696a2d8621905a82b147b --- sw/source/uibase/lingu/olmenu.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sw/source/uibase') diff --git a/sw/source/uibase/lingu/olmenu.cxx b/sw/source/uibase/lingu/olmenu.cxx index 879b1b685cf4..70ef25cffe4a 100644 --- a/sw/source/uibase/lingu/olmenu.cxx +++ b/sw/source/uibase/lingu/olmenu.cxx @@ -272,7 +272,7 @@ SwSpellPopup::SwSpellPopup( { OSL_ENSURE(m_xSpellAlt.is(), "no spelling alternatives available"); - SetMenuFlags(MENU_FLAG_NOAUTOMNEMONICS); + SetMenuFlags(MenuFlags::NoAutoMnemonics); bool bUseImagesInMenus = Application::GetSettings().GetStyleSettings().GetUseImagesInMenus(); m_nCheckedLanguage = LANGUAGE_NONE; @@ -286,7 +286,7 @@ SwSpellPopup::SwSpellPopup( SvtLinguConfig aCfg; PopupMenu *pMenu = GetPopupMenu(MN_AUTOCORR); - pMenu->SetMenuFlags(MENU_FLAG_NOAUTOMNEMONICS); + pMenu->SetMenuFlags(MenuFlags::NoAutoMnemonics); bool bEnable = false; if( nStringCount ) { @@ -350,7 +350,7 @@ SwSpellPopup::SwSpellPopup( } pMenu = GetPopupMenu(MN_ADD_TO_DIC); - pMenu->SetMenuFlags(MENU_FLAG_NOAUTOMNEMONICS); //! necessary to retrieve the correct dictionary name in 'Execute' below + pMenu->SetMenuFlags(MenuFlags::NoAutoMnemonics); //! necessary to retrieve the correct dictionary name in 'Execute' below uno::Reference< linguistic2::XSearchableDictionaryList > xDicList( SvxGetDictionaryList() ); sal_uInt16 nItemId = MN_DICTIONARIES_START; if (xDicList.is()) @@ -494,7 +494,7 @@ m_aInfo16( SW_RES(IMG_INFO_16) ) InsertItem(MN_EXPLANATION_LINK, SW_RESSTR(STR_EXPLANATION_LINK), MenuItemBits::TEXT | MenuItemBits::HELP, OString(), nPos++); } - SetMenuFlags(MENU_FLAG_NOAUTOMNEMONICS); + SetMenuFlags(MenuFlags::NoAutoMnemonics); InsertSeparator(OString(), nPos++); sal_Int32 nStringCount = m_aSuggestions.getLength(); -- cgit