diff options
Diffstat (limited to 'sw/source/ui/lingu/olmenu.cxx')
-rw-r--r-- | sw/source/ui/lingu/olmenu.cxx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sw/source/ui/lingu/olmenu.cxx b/sw/source/ui/lingu/olmenu.cxx index c2591a4966ac..f5909da430d1 100644 --- a/sw/source/ui/lingu/olmenu.cxx +++ b/sw/source/ui/lingu/olmenu.cxx @@ -93,12 +93,10 @@ #include <com/sun/star/system/SystemShellExecute.hpp> #include <com/sun/star/frame/theUICommandDescription.hpp> - using namespace ::com::sun::star; extern void sw_CharDialog( SwWrtShell &rWrtSh, bool bUseDialog, sal_uInt16 nSlot,const SfxItemSet *pArgs, SfxRequest *pReq ); - /// @returns : the language for the selected text that is set for the /// specified attribute (script type). /// If there are more than one languages used LANGUAGE_DONTKNOW will be returned. @@ -197,7 +195,6 @@ void SwSpellPopup::fillLangPopupMenu( } } - sal_uInt16 nItemId = nLangItemIdStart; std::set< OUString >::const_iterator it; for (it = aLangItems.begin(); it != aLangItems.end(); ++it) @@ -267,7 +264,6 @@ OUString RetrieveLabelFromCommand( const OUString& aCmdURL ) return aLabel; } - SwSpellPopup::SwSpellPopup( SwWrtShell* pWrtSh, const uno::Reference< linguistic2::XSpellAlternatives > &xAlt, @@ -414,7 +410,7 @@ SwSpellPopup::SwSpellPopup( EnableItem( MN_ADD_TO_DIC_SINGLE, ((nItemId - MN_DICTIONARIES_START) == 1)?sal_True:sal_False ); //ADD NEW LANGUAGE MENU ITEM - /////////////////////////////////////////////////////////////////////////// + OUString aScriptTypesInUse( OUString::number( pWrtSh->GetScriptType() ) ); SvtLanguageTable aLanguageTable; @@ -453,14 +449,10 @@ SwSpellPopup::SwSpellPopup( SetItemImage( MN_SPELLING_DLG, rImg ); } - ////////////////////////////////////////////////////////////////////////////////// - checkRedline(); RemoveDisabledEntries( true, true ); } - - SwSpellPopup::SwSpellPopup( SwWrtShell *pWrtSh, const linguistic2::ProofreadingResult &rResult, @@ -568,7 +560,7 @@ m_aInfo16( SW_RES(IMG_INFO_16) ) EnableItem( MN_ADD_TO_DIC_SINGLE, false ); //ADD NEW LANGUAGE MENU ITEM - /////////////////////////////////////////////////////////////////////////// + OUString aScriptTypesInUse( OUString::number( pWrtSh->GetScriptType() ) ); SvtLanguageTable aLanguageTable; @@ -607,8 +599,6 @@ m_aInfo16( SW_RES(IMG_INFO_16) ) SetItemImage( MN_SPELLING_DLG, rImg ); } - ////////////////////////////////////////////////////////////////////////////////// - checkRedline(); RemoveDisabledEntries( true, true ); } |