LibreOffice Module toolkit (master) 1
|
#include <vclxfont.hxx>
Public Member Functions | |
VCLXFont () | |
virtual | ~VCLXFont () override |
void | Init (css::awt::XDevice &rxDev, const vcl::Font &rFont) |
const vcl::Font & | GetFont () const |
css::awt::FontDescriptor SAL_CALL | getFontDescriptor () override |
css::awt::SimpleFontMetric SAL_CALL | getFontMetric () override |
sal_Int16 SAL_CALL | getCharWidth (sal_Unicode c) override |
css::uno::Sequence< sal_Int16 > SAL_CALL | getCharWidths (sal_Unicode nFirst, sal_Unicode nLast) override |
sal_Int32 SAL_CALL | getStringWidth (const OUString &str) override |
sal_Int32 SAL_CALL | getStringWidthArray (const OUString &str, css::uno::Sequence< sal_Int32 > &rDXArray) override |
void SAL_CALL | getKernPairs (css::uno::Sequence< sal_Unicode > &rnChars1, css::uno::Sequence< sal_Unicode > &rnChars2, css::uno::Sequence< sal_Int16 > &rnKerns) override |
sal_Bool SAL_CALL | hasGlyphs (const OUString &aText) override |
Private Member Functions | |
bool | ImplAssertValidFontMetric () |
Private Attributes | |
std::mutex | maMutex |
css::uno::Reference< css::awt::XDevice > | mxDevice |
vcl::Font | maFont |
std::unique_ptr< FontMetric > | mpFontMetric |
Definition at line 38 of file vclxfont.hxx.
VCLXFont::VCLXFont | ( | ) |
Definition at line 33 of file vclxfont.cxx.
References mpFontMetric.
|
overridevirtual |
Definition at line 38 of file vclxfont.cxx.
|
override |
Definition at line 85 of file vclxfont.cxx.
References OutputDevice::GetFont(), VCLUnoHelper::GetOutputDevice(), OutputDevice::GetTextWidth(), maFont, maMutex, mxDevice, and OutputDevice::SetFont().
|
override |
Definition at line 104 of file vclxfont.cxx.
References aSeq, OutputDevice::GetFont(), VCLUnoHelper::GetOutputDevice(), OutputDevice::GetTextWidth(), maFont, maMutex, mxDevice, n, nCount, and OutputDevice::SetFont().
|
inline |
Definition at line 55 of file vclxfont.hxx.
Referenced by VCLUnoHelper::CreateFont().
|
override |
Definition at line 67 of file vclxfont.cxx.
References VCLUnoHelper::CreateFontDescriptor(), maFont, and maMutex.
|
override |
Definition at line 75 of file vclxfont.cxx.
References VCLUnoHelper::CreateFontMetric(), ImplAssertValidFontMetric(), maMutex, and mpFontMetric.
|
override |
Definition at line 166 of file vclxfont.cxx.
|
override |
Definition at line 129 of file vclxfont.cxx.
References OutputDevice::GetFont(), VCLUnoHelper::GetOutputDevice(), OutputDevice::GetTextWidth(), maFont, maMutex, mxDevice, and OutputDevice::SetFont().
|
override |
Definition at line 145 of file vclxfont.cxx.
References OutputDevice::GetFont(), VCLUnoHelper::GetOutputDevice(), OutputDevice::GetTextArray(), i, maFont, maMutex, mxDevice, OutputDevice::SetFont(), and KernArray::size().
|
override |
Definition at line 172 of file vclxfont.cxx.
References VCLUnoHelper::GetOutputDevice(), OutputDevice::HasGlyphs(), maFont, maMutex, and mxDevice.
|
private |
Definition at line 51 of file vclxfont.cxx.
References OutputDevice::GetFont(), OutputDevice::GetFontMetric(), VCLUnoHelper::GetOutputDevice(), maFont, mpFontMetric, mxDevice, and OutputDevice::SetFont().
Referenced by getFontMetric().
void VCLXFont::Init | ( | css::awt::XDevice & | rxDev, |
const vcl::Font & | rFont | ||
) |
Definition at line 42 of file vclxfont.cxx.
References maFont, mpFontMetric, and mxDevice.
|
private |
Definition at line 44 of file vclxfont.hxx.
Referenced by getCharWidth(), getCharWidths(), getFontDescriptor(), getStringWidth(), getStringWidthArray(), hasGlyphs(), ImplAssertValidFontMetric(), and Init().
|
private |
Definition at line 42 of file vclxfont.hxx.
Referenced by getCharWidth(), getCharWidths(), getFontDescriptor(), getFontMetric(), getStringWidth(), getStringWidthArray(), and hasGlyphs().
|
private |
Definition at line 46 of file vclxfont.hxx.
Referenced by getFontMetric(), ImplAssertValidFontMetric(), Init(), and VCLXFont().
|
private |
Definition at line 43 of file vclxfont.hxx.
Referenced by getCharWidth(), getCharWidths(), getStringWidth(), getStringWidthArray(), hasGlyphs(), ImplAssertValidFontMetric(), and Init().