LibreOffice Module svtools (master) 1
|
#include <ctrltool.hxx>
Public Member Functions | |
FontList (OutputDevice *pDevice, OutputDevice *pDevice2=nullptr) | |
~FontList () | |
std::unique_ptr< FontList > | Clone () 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 FontMetric & | GetFontName (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 FontMetric & | GetFontMetric (sal_Handle hFontMetric) |
static const int * | GetStdSizeAry () |
Private Member Functions | |
SVT_DLLPRIVATE ImplFontListNameInfo * | ImplFind (std::u16string_view rSearchName, sal_uInt32 *pIndex) const |
SVT_DLLPRIVATE ImplFontListNameInfo * | ImplFindByName (std::u16string_view rStr) const |
SVT_DLLPRIVATE void | ImplInsertFonts (OutputDevice *pDev, bool bInsertData) |
FontList (const FontList &)=delete | |
FontList & | operator= (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< OutputDevice > | mpDev |
VclPtr< OutputDevice > | mpDev2 |
std::vector< std::unique_ptr< ImplFontListNameInfo > > | m_Entries |
Static Private Attributes | |
static const int | aStdSizeAry [] |
Definition at line 130 of file ctrltool.hxx.
FontList::FontList | ( | OutputDevice * | pDevice, |
OutputDevice * | pDevice2 = nullptr |
||
) |
Definition at line 340 of file ctrltool.cxx.
References Application::GetDefaultDevice(), OutputDevice::GetOutDevType(), ImplInsertFonts(), maBlack, maBlackItalic, maBold, maBoldItalic, maLight, maLightItalic, maNormal, maNormalItalic, mpDev, mpDev2, OUTDEV_PRINTER, and SvtResId().
Referenced by Clone().
FontList::~FontList | ( | ) |
Definition at line 372 of file ctrltool.cxx.
References m_Entries.
|
privatedelete |
std::unique_ptr< FontList > FontList::Clone | ( | ) | const |
Definition at line 388 of file ctrltool.cxx.
References FontList(), mpDev, and mpDev2.
FontMetric FontList::Get | ( | const OUString & | rName, |
const OUString & | rStyleName | ||
) | const |
Definition at line 597 of file ctrltool.cxx.
References GetStyleName(), ImplFindByName(), ITALIC_NONE, ITALIC_NORMAL, maBlack, maBlackItalic, maBold, maBoldItalic, maLight, maLightItalic, maNormal, maNormalItalic, pData, vcl::Font::SetFamilyName(), vcl::Font::SetStyleName(), WEIGHT_BLACK, WEIGHT_BOLD, WEIGHT_DONTKNOW, WEIGHT_LIGHT, and WEIGHT_NORMAL.
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().
|
inline |
Definition at line 167 of file ctrltool.hxx.
Referenced by FontStyleBox::Fill().
|
inline |
Definition at line 166 of file ctrltool.hxx.
Referenced by FontStyleBox::Fill().
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().
OUString FontList::GetFontMapText | ( | const FontMetric & | rFontMetric | ) | const |
Definition at line 512 of file ctrltool.cxx.
References vcl::Font::GetFamilyName(), vcl::Font::GetItalic(), vcl::Font::GetStyleName(), vcl::Font::GetWeight(), ImplFindByName(), maMapBoth, maMapNotAvailable, maMapPrinterOnly, maMapStyleNotAvailable, nType, pData, and SvtResId().
|
static |
Definition at line 741 of file ctrltool.cxx.
Referenced by FontStyleBox::Fill().
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().
|
inline |
Definition at line 178 of file ctrltool.hxx.
Referenced by FontNameBox::Fill(), and GetFontName().
|
inline |
Definition at line 165 of file ctrltool.hxx.
Referenced by FontStyleBox::Fill().
|
static |
Definition at line 735 of file ctrltool.cxx.
Referenced by FontStyleBox::Fill().
|
inline |
Definition at line 164 of file ctrltool.hxx.
Referenced by FontStyleBox::Fill().
|
inlinestatic |
Definition at line 187 of file ctrltool.hxx.
Referenced by FontSizeBox::Fill().
OUString FontList::GetStyleName | ( | const FontMetric & | rFontMetric | ) | const |
Definition at line 432 of file ctrltool.cxx.
References vcl::Font::GetItalic(), vcl::Font::GetStyleName(), GetStyleName(), vcl::Font::GetWeight(), ITALIC_NONE, maBlack, maBlackItalic, maBold, maBoldItalic, maLight, maLightItalic, maNormal, maNormalItalic, and SvtResId().
const OUString & FontList::GetStyleName | ( | FontWeight | eWeight, |
FontItalic | eItalic | ||
) | const |
Definition at line 393 of file ctrltool.cxx.
References ITALIC_NONE, maBlack, maBlackItalic, maBold, maBoldItalic, maLight, maLightItalic, maNormal, maNormalItalic, WEIGHT_BOLD, WEIGHT_DONTKNOW, WEIGHT_LIGHT, and WEIGHT_MEDIUM.
Referenced by FontStyleBox::Fill(), Get(), and GetStyleName().
|
private |
Definition at line 171 of file ctrltool.cxx.
References m_Entries, ImplFontListNameInfo::maSearchName, and SAL_MAX_UINT32.
Referenced by ImplFindByName(), and ImplInsertFonts().
|
private |
Definition at line 240 of file ctrltool.cxx.
References ImplFind(), and ImplMakeSearchStringFromName().
Referenced by Get(), GetFirstFontMetric(), GetFontMapText(), and IsAvailable().
|
private |
Definition at line 246 of file ctrltool.cxx.
References vcl::Font::GetFamilyName(), OutputDevice::GetFontFaceCollectionCount(), OutputDevice::GetFontMetricFromCollection(), OutputDevice::GetOutDevType(), i, ImplCompareFontMetric(), ImplFind(), ImplMakeSearchString(), comphelper::LibreOfficeKit::isActive(), m_Entries, n, nIndex, nType, OUTDEV_PRINTER, pData, and OutputDevice::RefreshFontData().
Referenced by FontList().
bool FontList::IsAvailable | ( | std::u16string_view | rName | ) | const |
Definition at line 714 of file ctrltool.cxx.
References ImplFindByName().
|
staticprivate |
Definition at line 133 of file ctrltool.hxx.
|
private |
Definition at line 149 of file ctrltool.hxx.
Referenced by GetFontName(), ImplFind(), ImplInsertFonts(), and ~FontList().
|
private |
Definition at line 145 of file ctrltool.hxx.
Referenced by FontList(), Get(), and GetStyleName().
|
private |
Definition at line 146 of file ctrltool.hxx.
Referenced by FontList(), Get(), and GetStyleName().
|
private |
Definition at line 143 of file ctrltool.hxx.
Referenced by FontList(), Get(), and GetStyleName().
|
private |
Definition at line 144 of file ctrltool.hxx.
Referenced by FontList(), Get(), and GetStyleName().
|
private |
Definition at line 139 of file ctrltool.hxx.
Referenced by FontList(), Get(), and GetStyleName().
|
private |
Definition at line 140 of file ctrltool.hxx.
Referenced by FontList(), Get(), and GetStyleName().
|
private |
Definition at line 135 of file ctrltool.hxx.
Referenced by GetFontMapText().
|
mutableprivate |
Definition at line 138 of file ctrltool.hxx.
Referenced by GetFontMapText().
|
private |
Definition at line 136 of file ctrltool.hxx.
Referenced by GetFontMapText().
|
private |
Definition at line 137 of file ctrltool.hxx.
Referenced by GetFontMapText().
|
private |
Definition at line 141 of file ctrltool.hxx.
Referenced by FontList(), Get(), and GetStyleName().
|
private |
Definition at line 142 of file ctrltool.hxx.
Referenced by FontList(), Get(), and GetStyleName().
|
private |
Definition at line 147 of file ctrltool.hxx.
Referenced by Clone(), and FontList().
|
private |
Definition at line 148 of file ctrltool.hxx.
Referenced by Clone(), and FontList().