LibreOffice Module svtools (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
FontList Class Reference

#include <ctrltool.hxx>

Collaboration diagram for FontList:
[legend]

Public Member Functions

 FontList (OutputDevice *pDevice, OutputDevice *pDevice2=nullptr)
 
 ~FontList ()
 
std::unique_ptr< FontListClone () const
 
OUString GetFontMapText (const FontMetric &rFontMetric) const
 
const OUString & GetNormalStr () const
 
const OUString & GetItalicStr () const
 
const OUString & GetBoldStr () const
 
const OUString & GetBoldItalicStr () const
 
const OUString & GetStyleName (FontWeight eWeight, FontItalic eItalic) const
 
OUString GetStyleName (const FontMetric &rFontMetric) const
 
FontMetric Get (const OUString &rName, const OUString &rStyleName) const
 
FontMetric Get (const OUString &rName, FontWeight eWeight, FontItalic eItalic) const
 
bool IsAvailable (std::u16string_view rName) const
 
size_t GetFontNameCount () const
 
const FontMetricGetFontName (size_t nFont) const
 
sal_Handle GetFirstFontMetric (std::u16string_view rName) const
 

Static Public Member Functions

static sal_Handle GetNextFontMetric (sal_Handle hFontMetric)
 
static const FontMetricGetFontMetric (sal_Handle hFontMetric)
 
static const intGetStdSizeAry ()
 

Private Member Functions

SVT_DLLPRIVATE ImplFontListNameInfoImplFind (std::u16string_view rSearchName, sal_uInt32 *pIndex) const
 
SVT_DLLPRIVATE ImplFontListNameInfoImplFindByName (std::u16string_view rStr) const
 
SVT_DLLPRIVATE void ImplInsertFonts (OutputDevice *pDev, bool bInsertData)
 
 FontList (const FontList &)=delete
 
FontListoperator= (const FontList &)=delete
 

Private Attributes

OUString maMapBoth
 
OUString maMapPrinterOnly
 
OUString maMapStyleNotAvailable
 
OUString maMapNotAvailable
 
OUString maLight
 
OUString maLightItalic
 
OUString maNormal
 
OUString maNormalItalic
 
OUString maBold
 
OUString maBoldItalic
 
OUString maBlack
 
OUString maBlackItalic
 
VclPtr< OutputDevicempDev
 
VclPtr< OutputDevicempDev2
 
std::vector< std::unique_ptr< ImplFontListNameInfo > > m_Entries
 

Static Private Attributes

static const int aStdSizeAry []
 

Detailed Description

Definition at line 130 of file ctrltool.hxx.

Constructor & Destructor Documentation

◆ FontList() [1/2]

FontList::FontList ( OutputDevice pDevice,
OutputDevice pDevice2 = nullptr 
)

◆ ~FontList()

FontList::~FontList ( )

Definition at line 372 of file ctrltool.cxx.

References m_Entries.

◆ FontList() [2/2]

FontList::FontList ( const FontList )
privatedelete

Member Function Documentation

◆ Clone()

std::unique_ptr< FontList > FontList::Clone ( ) const

Definition at line 388 of file ctrltool.cxx.

References FontList(), mpDev, and mpDev2.

◆ Get() [1/2]

FontMetric FontList::Get ( const OUString &  rName,
const OUString &  rStyleName 
) const

◆ Get() [2/2]

FontMetric FontList::Get ( const OUString &  rName,
FontWeight  eWeight,
FontItalic  eItalic 
) const

Definition at line 678 of file ctrltool.cxx.

References ImplFindByName(), pData, and vcl::Font::SetFamilyName().

◆ GetBoldItalicStr()

const OUString & FontList::GetBoldItalicStr ( ) const
inline

Definition at line 167 of file ctrltool.hxx.

Referenced by FontStyleBox::Fill().

◆ GetBoldStr()

const OUString & FontList::GetBoldStr ( ) const
inline

Definition at line 166 of file ctrltool.hxx.

Referenced by FontStyleBox::Fill().

◆ GetFirstFontMetric()

sal_Handle FontList::GetFirstFontMetric ( std::u16string_view  rName) const

Definition at line 726 of file ctrltool.cxx.

References ImplFindByName(), and pData.

Referenced by FontStyleBox::Fill().

◆ GetFontMapText()

OUString FontList::GetFontMapText ( const FontMetric rFontMetric) const

◆ GetFontMetric()

const FontMetric & FontList::GetFontMetric ( sal_Handle  hFontMetric)
static

Definition at line 741 of file ctrltool.cxx.

Referenced by FontStyleBox::Fill().

◆ GetFontName()

const FontMetric & FontList::GetFontName ( size_t  nFont) const

Definition at line 719 of file ctrltool.cxx.

References DBG_ASSERT, GetFontNameCount(), and m_Entries.

Referenced by FontNameBox::Fill().

◆ GetFontNameCount()

size_t FontList::GetFontNameCount ( ) const
inline

Definition at line 178 of file ctrltool.hxx.

Referenced by FontNameBox::Fill(), and GetFontName().

◆ GetItalicStr()

const OUString & FontList::GetItalicStr ( ) const
inline

Definition at line 165 of file ctrltool.hxx.

Referenced by FontStyleBox::Fill().

◆ GetNextFontMetric()

sal_Handle FontList::GetNextFontMetric ( sal_Handle  hFontMetric)
static

Definition at line 735 of file ctrltool.cxx.

Referenced by FontStyleBox::Fill().

◆ GetNormalStr()

const OUString & FontList::GetNormalStr ( ) const
inline

Definition at line 164 of file ctrltool.hxx.

Referenced by FontStyleBox::Fill().

◆ GetStdSizeAry()

static const int * FontList::GetStdSizeAry ( )
inlinestatic

Definition at line 187 of file ctrltool.hxx.

Referenced by FontSizeBox::Fill().

◆ GetStyleName() [1/2]

OUString FontList::GetStyleName ( const FontMetric rFontMetric) const

◆ GetStyleName() [2/2]

const OUString & FontList::GetStyleName ( FontWeight  eWeight,
FontItalic  eItalic 
) const

◆ ImplFind()

ImplFontListNameInfo * FontList::ImplFind ( std::u16string_view  rSearchName,
sal_uInt32 *  pIndex 
) const
private

Definition at line 171 of file ctrltool.cxx.

References m_Entries, ImplFontListNameInfo::maSearchName, and SAL_MAX_UINT32.

Referenced by ImplFindByName(), and ImplInsertFonts().

◆ ImplFindByName()

ImplFontListNameInfo * FontList::ImplFindByName ( std::u16string_view  rStr) const
private

Definition at line 240 of file ctrltool.cxx.

References ImplFind(), and ImplMakeSearchStringFromName().

Referenced by Get(), GetFirstFontMetric(), GetFontMapText(), and IsAvailable().

◆ ImplInsertFonts()

void FontList::ImplInsertFonts ( OutputDevice pDev,
bool  bInsertData 
)
private

◆ IsAvailable()

bool FontList::IsAvailable ( std::u16string_view  rName) const

Definition at line 714 of file ctrltool.cxx.

References ImplFindByName().

◆ operator=()

FontList & FontList::operator= ( const FontList )
privatedelete

Member Data Documentation

◆ aStdSizeAry

const int FontList::aStdSizeAry
staticprivate

Definition at line 133 of file ctrltool.hxx.

◆ m_Entries

std::vector<std::unique_ptr<ImplFontListNameInfo> > FontList::m_Entries
private

Definition at line 149 of file ctrltool.hxx.

Referenced by GetFontName(), ImplFind(), ImplInsertFonts(), and ~FontList().

◆ maBlack

OUString FontList::maBlack
private

Definition at line 145 of file ctrltool.hxx.

Referenced by FontList(), Get(), and GetStyleName().

◆ maBlackItalic

OUString FontList::maBlackItalic
private

Definition at line 146 of file ctrltool.hxx.

Referenced by FontList(), Get(), and GetStyleName().

◆ maBold

OUString FontList::maBold
private

Definition at line 143 of file ctrltool.hxx.

Referenced by FontList(), Get(), and GetStyleName().

◆ maBoldItalic

OUString FontList::maBoldItalic
private

Definition at line 144 of file ctrltool.hxx.

Referenced by FontList(), Get(), and GetStyleName().

◆ maLight

OUString FontList::maLight
private

Definition at line 139 of file ctrltool.hxx.

Referenced by FontList(), Get(), and GetStyleName().

◆ maLightItalic

OUString FontList::maLightItalic
private

Definition at line 140 of file ctrltool.hxx.

Referenced by FontList(), Get(), and GetStyleName().

◆ maMapBoth

OUString FontList::maMapBoth
private

Definition at line 135 of file ctrltool.hxx.

Referenced by GetFontMapText().

◆ maMapNotAvailable

OUString FontList::maMapNotAvailable
mutableprivate

Definition at line 138 of file ctrltool.hxx.

Referenced by GetFontMapText().

◆ maMapPrinterOnly

OUString FontList::maMapPrinterOnly
private

Definition at line 136 of file ctrltool.hxx.

Referenced by GetFontMapText().

◆ maMapStyleNotAvailable

OUString FontList::maMapStyleNotAvailable
private

Definition at line 137 of file ctrltool.hxx.

Referenced by GetFontMapText().

◆ maNormal

OUString FontList::maNormal
private

Definition at line 141 of file ctrltool.hxx.

Referenced by FontList(), Get(), and GetStyleName().

◆ maNormalItalic

OUString FontList::maNormalItalic
private

Definition at line 142 of file ctrltool.hxx.

Referenced by FontList(), Get(), and GetStyleName().

◆ mpDev

VclPtr<OutputDevice> FontList::mpDev
private

Definition at line 147 of file ctrltool.hxx.

Referenced by Clone(), and FontList().

◆ mpDev2

VclPtr<OutputDevice> FontList::mpDev2
private

Definition at line 148 of file ctrltool.hxx.

Referenced by Clone(), and FontList().


The documentation for this class was generated from the following files: