LibreOffice Module sdext (master) 1
Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
pdfi::StyleContainer Class Reference

#include <style.hxx>

Classes

struct  HashedStyle
 
struct  RefCountedHashedStyle
 
struct  Style
 
struct  StyleHash
 
struct  StyleIdNameSort
 

Public Member Functions

 StyleContainer ()
 
void emit (EmitContext &rContext, ElementTreeVisitor &rContainedElemVisitor)
 
sal_Int32 impl_getStyleId (const Style &rStyle, bool bSubStyle)
 
sal_Int32 getStyleId (const Style &rStyle)
 
sal_Int32 getStandardStyleId (std::string_view rFamily)
 
const PropertyMapgetProperties (sal_Int32 nStyleId) const
 
sal_Int32 setProperties (sal_Int32 nStyleId, PropertyMap &&rNewProps)
 
OUString getStyleName (sal_Int32 nStyle) const
 

Private Member Functions

void impl_emitStyle (sal_Int32 nStyleId, EmitContext &rContext, ElementTreeVisitor &rContainedElemVisitor)
 

Private Attributes

sal_Int32 m_nNextId
 
std::unordered_map< sal_Int32, RefCountedHashedStylem_aIdToStyle
 
std::unordered_map< HashedStyle, sal_Int32, StyleHashm_aStyleToId
 

Friends

struct StyleHash
 
struct StyleIdNameSort
 

Detailed Description

Definition at line 37 of file style.hxx.

Constructor & Destructor Documentation

◆ StyleContainer()

StyleContainer::StyleContainer ( )

Definition at line 32 of file style.cxx.

Member Function Documentation

◆ emit()

void StyleContainer::emit ( EmitContext rContext,
ElementTreeVisitor rContainedElemVisitor 
)

◆ getProperties()

const PropertyMap * StyleContainer::getProperties ( sal_Int32  nStyleId) const

Definition at line 86 of file style.cxx.

References m_aIdToStyle.

Referenced by pdfi::WriterXmlFinalizer::setFirstOnPage().

◆ getStandardStyleId()

sal_Int32 StyleContainer::getStandardStyleId ( std::string_view  rFamily)

Definition at line 76 of file style.cxx.

References getStyleId().

Referenced by pdfi::DrawXmlFinalizer::visit().

◆ getStyleId()

sal_Int32 pdfi::StyleContainer::getStyleId ( const Style rStyle)
inline

◆ getStyleName()

OUString StyleContainer::getStyleName ( sal_Int32  nStyle) const

◆ impl_emitStyle()

void StyleContainer::impl_emitStyle ( sal_Int32  nStyleId,
EmitContext rContext,
ElementTreeVisitor rContainedElemVisitor 
)
private

◆ impl_getStyleId()

sal_Int32 StyleContainer::impl_getStyleId ( const Style rStyle,
bool  bSubStyle 
)

◆ setProperties()

sal_Int32 StyleContainer::setProperties ( sal_Int32  nStyleId,
PropertyMap &&  rNewProps 
)

Friends And Related Function Documentation

◆ StyleHash

friend struct StyleHash
friend

Definition at line 105 of file style.hxx.

◆ StyleIdNameSort

friend struct StyleIdNameSort
friend

Definition at line 115 of file style.hxx.

Member Data Documentation

◆ m_aIdToStyle

std::unordered_map< sal_Int32, RefCountedHashedStyle > pdfi::StyleContainer::m_aIdToStyle
private

◆ m_aStyleToId

std::unordered_map< HashedStyle, sal_Int32, StyleHash > pdfi::StyleContainer::m_aStyleToId
private

Definition at line 140 of file style.hxx.

Referenced by impl_getStyleId(), and setProperties().

◆ m_nNextId

sal_Int32 pdfi::StyleContainer::m_nNextId
private

Definition at line 138 of file style.hxx.

Referenced by impl_getStyleId(), and setProperties().


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