LibreOffice Module svtools (master) 1
Classes | Namespaces | Functions | Variables
ctrltool.cxx File Reference
#include <sal/config.h>
#include <memory>
#include <string.h>
#include <string_view>
#include <tools/debug.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <utility>
#include <vcl/outdev.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <sal/macros.h>
#include <svtools/strings.hrc>
#include <svtools/svtresid.hxx>
#include <svtools/ctrltool.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <o3tl/string_view.hxx>
#include <comphelper/lok.hxx>
Include dependency graph for ctrltool.cxx:

Go to the source code of this file.

Classes

struct  o3tl::typed_flags< FontListFontNameType >
 
class  ImplFontListNameInfo
 
struct  ImplFSNameItem
 

Namespaces

namespace  o3tl
 

Functions

static int sortWeightValue (FontWeight eWeight)
 
static sal_Int32 ImplCompareFontMetric (ImplFontListFontMetric *pInfo1, ImplFontListFontMetric *pInfo2)
 
static OUString ImplMakeSearchString (const OUString &rStr)
 
static OUString ImplMakeSearchStringFromName (std::u16string_view rStr)
 

Variables

const ImplFSNameItem aImplSimplifiedChinese []
 

Function Documentation

◆ ImplCompareFontMetric()

static sal_Int32 ImplCompareFontMetric ( ImplFontListFontMetric *  pInfo1,
ImplFontListFontMetric *  pInfo2 
)
static

Definition at line 136 of file ctrltool.cxx.

References sortWeightValue().

Referenced by FontList::ImplInsertFonts().

◆ ImplMakeSearchString()

static OUString ImplMakeSearchString ( const OUString &  rStr)
static

Definition at line 157 of file ctrltool.cxx.

Referenced by FontList::ImplInsertFonts(), and ImplMakeSearchStringFromName().

◆ ImplMakeSearchStringFromName()

static OUString ImplMakeSearchStringFromName ( std::u16string_view  rStr)
static

Definition at line 162 of file ctrltool.cxx.

References o3tl::getToken(), and ImplMakeSearchString().

Referenced by FontList::ImplFindByName().

◆ sortWeightValue()

static int sortWeightValue ( FontWeight  eWeight)
static

Definition at line 127 of file ctrltool.cxx.

References WEIGHT_NORMAL.

Referenced by ImplCompareFontMetric().

Variable Documentation

◆ aImplSimplifiedChinese

const ImplFSNameItem aImplSimplifiedChinese[]
Initial value:
=
{
{ 50, "\xe5\x85\xab\xe5\x8f\xb7" },
{ 55, "\xe4\xb8\x83\xe5\x8f\xb7" },
{ 65, "\xe5\xb0\x8f\xe5\x85\xad" },
{ 75, "\xe5\x85\xad\xe5\x8f\xb7" },
{ 90, "\xe5\xb0\x8f\xe4\xba\x94" },
{ 105, "\xe4\xba\x94\xe5\x8f\xb7" },
{ 120, "\xe5\xb0\x8f\xe5\x9b\x9b" },
{ 140, "\xe5\x9b\x9b\xe5\x8f\xb7" },
{ 150, "\xe5\xb0\x8f\xe4\xb8\x89" },
{ 160, "\xe4\xb8\x89\xe5\x8f\xb7" },
{ 180, "\xe5\xb0\x8f\xe4\xba\x8c" },
{ 220, "\xe4\xba\x8c\xe5\x8f\xb7" },
{ 240, "\xe5\xb0\x8f\xe4\xb8\x80" },
{ 260, "\xe4\xb8\x80\xe5\x8f\xb7" },
{ 360, "\xe5\xb0\x8f\xe5\x88\x9d" },
{ 420, "\xe5\x88\x9d\xe5\x8f\xb7" }
}

Definition at line 753 of file ctrltool.cxx.