LibreOffice Module sw (master) 1
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
wwFontHelper Class Reference

#include <wrtww8.hxx>

Public Member Functions

 wwFontHelper ()
 
void InitFontTable (const SwDoc &rDoc)
 rDoc used only to get the initial standard font(s) in use. More...
 
sal_uInt16 GetId (const SvxFontItem &rFont)
 
sal_uInt16 GetId (const wwFont &rFont)
 
void WriteFontTable (SvStream *pTableStream, WW8Fib &pFib)
 
void WriteFontTable (DocxAttributeOutput &rAttrOutput)
 
void WriteFontTable (const RtfAttributeOutput &rAttrOutput)
 

Public Attributes

bool m_bLoadAllFonts: 1
 If true, all fonts are loaded before processing the document. More...
 

Private Member Functions

std::vector< const wwFont * > AsVector () const
 Convert from fast insertion map to linear vector in the order that we want to write. More...
 

Private Attributes

std::map< wwFont, sal_uInt16 > maFonts
 Keep track of fonts that need to be exported. More...
 

Detailed Description

Definition at line 318 of file wrtww8.hxx.

Constructor & Destructor Documentation

◆ wwFontHelper()

wwFontHelper::wwFontHelper ( )
inline

Definition at line 328 of file wrtww8.hxx.

Member Function Documentation

◆ AsVector()

std::vector< const wwFont * > wwFontHelper::AsVector ( ) const
private

Convert from fast insertion map to linear vector in the order that we want to write.

Definition at line 957 of file wrtw8sty.cxx.

References maFonts.

Referenced by WriteFontTable().

◆ GetId() [1/2]

sal_uInt16 wwFontHelper::GetId ( const SvxFontItem rFont)

◆ GetId() [2/2]

sal_uInt16 wwFontHelper::GetId ( const wwFont rFont)

Definition at line 897 of file wrtw8sty.cxx.

References maFonts.

◆ InitFontTable()

void wwFontHelper::InitFontTable ( const SwDoc rDoc)

◆ WriteFontTable() [1/3]

void wwFontHelper::WriteFontTable ( const RtfAttributeOutput rAttrOutput)

Definition at line 1002 of file wrtw8sty.cxx.

References AsVector().

◆ WriteFontTable() [2/3]

void wwFontHelper::WriteFontTable ( DocxAttributeOutput rAttrOutput)

Definition at line 994 of file wrtw8sty.cxx.

References AsVector().

◆ WriteFontTable() [3/3]

void wwFontHelper::WriteFontTable ( SvStream pTableStream,
WW8Fib pFib 
)

Member Data Documentation

◆ m_bLoadAllFonts

bool wwFontHelper::m_bLoadAllFonts

If true, all fonts are loaded before processing the document.

Definition at line 338 of file wrtww8.hxx.

Referenced by InitFontTable(), and RtfExport::RtfExport().

◆ maFonts

std::map<wwFont, sal_uInt16> wwFontHelper::maFonts
private

Keep track of fonts that need to be exported.

Definition at line 322 of file wrtww8.hxx.

Referenced by AsVector(), GetId(), and WriteFontTable().


The documentation for this class was generated from the following files: