LibreOffice Module emfio (master) 1
|
#include <mtftools.hxx>
Public Member Functions | |
ScaledFontDetectCorrectHelper () | |
void | endCurrentMetaFontAction () |
void | newCurrentMetaFontAction (const rtl::Reference< MetaFontAction > &rNewMetaFontAction) |
void | evaluateAlternativeFontScale (OUString const &rText, tools::Long nImportedTextLength) |
void | applyAlternativeFontScale () |
Private Attributes | |
rtl::Reference< MetaFontAction > | maCurrentMetaFontAction |
std::vector< double > | maAlternativeFontScales |
std::vector< std::pair< rtl::Reference< MetaFontAction >, double > > | maPositiveIdentifiedCases |
std::vector< std::pair< rtl::Reference< MetaFontAction >, double > > | maNegativeIdentifiedCases |
Definition at line 617 of file mtftools.hxx.
emfio::ScaledFontDetectCorrectHelper::ScaledFontDetectCorrectHelper | ( | ) |
Definition at line 302 of file mtftools.cxx.
void emfio::ScaledFontDetectCorrectHelper::applyAlternativeFontScale | ( | ) |
Definition at line 449 of file mtftools.cxx.
References endCurrentMetaFontAction(), maNegativeIdentifiedCases, and maPositiveIdentifiedCases.
Referenced by emfio::EmfReader::ReadEnhWMF(), and emfio::WmfReader::ReadRecordParams().
void emfio::ScaledFontDetectCorrectHelper::endCurrentMetaFontAction | ( | ) |
Definition at line 306 of file mtftools.cxx.
References maAlternativeFontScales, maCurrentMetaFontAction, maNegativeIdentifiedCases, and maPositiveIdentifiedCases.
Referenced by applyAlternativeFontScale(), and emfio::MtfTools::DrawText().
void emfio::ScaledFontDetectCorrectHelper::evaluateAlternativeFontScale | ( | OUString const & | rText, |
tools::Long | nImportedTextLength | ||
) |
Definition at line 374 of file mtftools.cxx.
References vcl::Font::GetAverageFontWidth(), vcl::Font::GetFontHeight(), vcl::Font::GetOrCalculateAverageFontWidth(), maAlternativeFontScales, maCurrentMetaFontAction, and vcl::Font::SetAverageFontWidth().
Referenced by emfio::MtfTools::DrawText().
void emfio::ScaledFontDetectCorrectHelper::newCurrentMetaFontAction | ( | const rtl::Reference< MetaFontAction > & | rNewMetaFontAction | ) |
Definition at line 349 of file mtftools.cxx.
References vcl::Font::GetAverageFontWidth(), vcl::Font::GetFontHeight(), vcl::Font::GetOrCalculateAverageFontWidth(), maAlternativeFontScales, and maCurrentMetaFontAction.
Referenced by emfio::MtfTools::DrawText().
|
private |
Definition at line 621 of file mtftools.hxx.
Referenced by endCurrentMetaFontAction(), evaluateAlternativeFontScale(), and newCurrentMetaFontAction().
|
private |
Definition at line 620 of file mtftools.hxx.
Referenced by endCurrentMetaFontAction(), evaluateAlternativeFontScale(), and newCurrentMetaFontAction().
|
private |
Definition at line 623 of file mtftools.hxx.
Referenced by applyAlternativeFontScale(), and endCurrentMetaFontAction().
|
private |
Definition at line 622 of file mtftools.hxx.
Referenced by applyAlternativeFontScale(), and endCurrentMetaFontAction().