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

◆ CheckItems()

bool XclExpFontHelper::CheckItems ( const XclExpRoot rRoot,
const SfxItemSet rItemSet,
sal_Int16  nScript,
bool  bDeep 
)

◆ GetDxfFontFromItemSet()

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

◆ GetFirstUsedScript()

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

◆ 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().