diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-14 15:28:57 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-15 10:05:02 +0200 |
commit | d93915b2aeabbde90b7eb539116b9be49e0d1a5c (patch) | |
tree | 0d28a83b9c4633b979c46d8ce6b6054748fa8d13 /sw/source/uibase/lingu | |
parent | 4f4cff08aac32db6fa580423b5fde661c8b0743a (diff) |
conver MENU_FLAG_ constants to scoped enum
Change-Id: I969d99fa8881cc89601696a2d8621905a82b147b
Diffstat (limited to 'sw/source/uibase/lingu')
-rw-r--r-- | sw/source/uibase/lingu/olmenu.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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(); |