LibreOffice Module sw (master)  1
Functions
olmenu.cxx File Reference
#include <SwRewriter.hxx>
#include <cmdid.h>
#include <strings.hrc>
#include <doc.hxx>
#include <docsh.hxx>
#include <edtwin.hxx>
#include <helpids.h>
#include <hintids.hxx>
#include <langhelper.hxx>
#include <ndtxt.hxx>
#include <bitmaps.hlst>
#include <olmenu.hxx>
#include <swabstdlg.hxx>
#include <swmodule.hxx>
#include <swtypes.hxx>
#include <swundo.hxx>
#include <uitool.hxx>
#include <unomid.h>
#include <view.hxx>
#include <viewopt.hxx>
#include <wrtsh.hxx>
#include <wview.hxx>
#include <textsh.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/langitem.hxx>
#include <editeng/splwrap.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/unolingu.hxx>
#include <editeng/editview.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <linguistic/lngprops.hxx>
#include <linguistic/misc.hxx>
#include <osl/file.hxx>
#include <rtl/string.hxx>
#include <vcl/commandinfoprovider.hxx>
#include <vcl/graphicfilter.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/request.hxx>
#include <sfx2/sfxdlg.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/itemset.hxx>
#include <svl/languageoptions.hxx>
#include <svl/stritem.hxx>
#include <svtools/langtab.hxx>
#include <svx/dlgutil.hxx>
#include <svx/svxids.hrc>
#include <unotools/lingucfg.hxx>
#include <unotools/linguprops.hxx>
#include <vcl/layout.hxx>
#include <vcl/settings.hxx>
#include <sal/macros.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/i18n/ScriptType.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

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 106 of file olmenu.cxx.

References SvtLanguageOptions::GetScriptTypeOfLanguage().

Referenced by SwSpellPopup::fillLangPopupMenu().