LibreOffice Module sc (master)  1
Functions
XclExpFontHelper Namespace Reference

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...
 

Detailed Description

Helper functions for font export.

Function Documentation

bool XclExpFontHelper::CheckItems ( const XclExpRoot rRoot,
const SfxItemSet rItemSet,
sal_Int16  nScript,
bool  bDeep 
)
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 895 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 829 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 880 of file xestyle.cxx.

References SvtLanguageOptions::FromI18NToSvtScriptType(), GetFirstUsedScript(), ScPatternAttr::GetFont(), and SC_AUTOCOL_RAW.

Referenced by XclExpFontBuffer::Insert().