LibreOffice Module sw (master) 1
Functions
olmenu.cxx File Reference
#include <SwRewriter.hxx>
#include <cmdid.h>
#include <strings.hrc>
#include <doc.hxx>
#include <edtwin.hxx>
#include <helpids.h>
#include <langhelper.hxx>
#include <bitmaps.hlst>
#include <olmenu.hxx>
#include <swmodule.hxx>
#include <swtypes.hxx>
#include <swundo.hxx>
#include <utility>
#include <view.hxx>
#include <wrtsh.hxx>
#include <comphelper/lok.hxx>
#include <comphelper/anytostring.hxx>
#include <comphelper/processfactory.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <editeng/acorrcfg.hxx>
#include <editeng/svxacorr.hxx>
#include <editeng/splwrap.hxx>
#include <editeng/unolingu.hxx>
#include <editeng/editview.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <linguistic/misc.hxx>
#include <rtl/string.hxx>
#include <vcl/commandinfoprovider.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/request.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/itemset.hxx>
#include <svl/languageoptions.hxx>
#include <svl/stritem.hxx>
#include <svtools/langtab.hxx>
#include <unotools/lingucfg.hxx>
#include <unotools/linguprops.hxx>
#include <vcl/settings.hxx>
#include <osl/diagnose.h>
#include <map>
#include <com/sun/star/document/XDocumentLanguages.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/linguistic2/XLanguageGuessing.hpp>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/system/SystemShellExecuteFlags.hpp>
#include <com/sun/star/system/SystemShellExecute.hpp>
#include <com/sun/star/linguistic2/XSearchableDictionaryList.hpp>
Include dependency graph for olmenu.cxx:

Go to the source code of this file.

Functions

static bool lcl_checkScriptType (SvtScriptType nScriptType, LanguageType nLang)
 

Function Documentation

◆ lcl_checkScriptType()

static bool lcl_checkScriptType ( SvtScriptType  nScriptType,
LanguageType  nLang 
)
static
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.
Parameters
nLangWhichId: one of RES_CHRATR_LANGUAGE, RES_CHRATR_CJK_LANGUAGE, RES_CHRATR_CTL_LANGUAGE,
Returns
: the language in use for the selected text. 'In use' means the language(s) matching the script type(s) of the selected text. Or in other words, the language a spell checker would use. If there is more than one language LANGUAGE_DONTKNOW will be returned.

Definition at line 87 of file olmenu.cxx.

References SvtLanguageOptions::GetScriptTypeOfLanguage(), and nLang.

Referenced by SwSpellPopup::fillLangPopupMenu().