LibreOffice Module sc (master) 1
|
Helper functions for font export. More...
Functions | |
sal_Int16 | GetFirstUsedScript (const XclExpRoot &rRoot, const SfxItemSet &rItemSet) |
Returns the script type of the first font item found in the item set and its parents. More... | |
vcl::Font | GetFontFromItemSet (const XclExpRoot &rRoot, const SfxItemSet &rItemSet, sal_Int16 nScript) |
Returns a VCL font object filled from the passed item set. More... | |
ScDxfFont | GetDxfFontFromItemSet (const XclExpRoot &rRoot, const SfxItemSet &rSet) |
Get a dxf related font object from the item set. More... | |
bool | CheckItems (const XclExpRoot &rRoot, const SfxItemSet &rItemSet, sal_Int16 nScript, bool bDeep) |
Returns true, if at least one font related item is set in the passed item set. More... | |
Helper functions for font export.
bool XclExpFontHelper::CheckItems | ( | const XclExpRoot & | rRoot, |
const SfxItemSet & | rItemSet, | ||
sal_Int16 | nScript, | ||
bool | bDeep | ||
) |
Returns true, if at least one font related item is set in the passed item set.
bDeep | true = Searches in parent item sets too. |
Definition at line 909 of file xestyle.cxx.
References ATTR_CJK_FONT(), ATTR_CJK_FONT_HEIGHT(), ATTR_CJK_FONT_POSTURE(), ATTR_CJK_FONT_WEIGHT(), ATTR_CTL_FONT(), ATTR_CTL_FONT_HEIGHT(), ATTR_CTL_FONT_POSTURE(), ATTR_CTL_FONT_WEIGHT(), ATTR_FONT(), ATTR_FONT_COLOR(), ATTR_FONT_CONTOUR(), ATTR_FONT_CROSSEDOUT(), ATTR_FONT_HEIGHT(), ATTR_FONT_LANGUAGE(), ATTR_FONT_POSTURE(), ATTR_FONT_SHADOWED(), ATTR_FONT_UNDERLINE(), ATTR_FONT_WEIGHT(), ScfTools::CheckItems(), and GetFirstUsedScript().
Referenced by XclExpXF::Init().
ScDxfFont XclExpFontHelper::GetDxfFontFromItemSet | ( | const XclExpRoot & | rRoot, |
const SfxItemSet & | rSet | ||
) |
Get a dxf related font object from the item set.
Only items that are explicitly set in the item set are also set in the returned object.
Definition at line 900 of file xestyle.cxx.
References SvtLanguageOptions::FromI18NToSvtScriptType(), ScPatternAttr::GetDxfFont(), and GetFirstUsedScript().
Referenced by XclExpDxfFont::XclExpDxfFont().
sal_Int16 XclExpFontHelper::GetFirstUsedScript | ( | const XclExpRoot & | rRoot, |
const SfxItemSet & | rItemSet | ||
) |
Returns the script type of the first font item found in the item set and its parents.
Definition at line 834 of file xestyle.cxx.
References ATTR_CJK_FONT(), ATTR_CTL_FONT(), ATTR_FONT(), XclRoot::GetDefApiScript(), and SfxItemSet::GetParent().
Referenced by CheckItems(), GetDxfFontFromItemSet(), and GetFontFromItemSet().
vcl::Font XclExpFontHelper::GetFontFromItemSet | ( | const XclExpRoot & | rRoot, |
const SfxItemSet & | rItemSet, | ||
sal_Int16 | nScript | ||
) |
Returns a VCL font object filled from the passed item set.
Definition at line 885 of file xestyle.cxx.
References ScPatternAttr::fillFontOnly(), SvtLanguageOptions::FromI18NToSvtScriptType(), and GetFirstUsedScript().
Referenced by XclExpFontBuffer::Insert().