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>


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


struct StyleHash
struct StyleIdNameSort

Detailed Description

Definition at line 37 of file style.hxx.

Constructor & Destructor Documentation

StyleContainer::StyleContainer ( )

Definition at line 32 of file style.cxx.

Member Function Documentation

void StyleContainer::emit ( EmitContext rContext,
ElementTreeVisitor rContainedElemVisitor 
const PropertyMap * StyleContainer::getProperties ( sal_Int32  nStyleId) const

Definition at line 86 of file style.cxx.

References m_aIdToStyle.

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

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

Definition at line 76 of file style.cxx.

References getStyleId().

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

sal_Int32 pdfi::StyleContainer::getStyleId ( const Style rStyle)
OUString StyleContainer::getStyleName ( sal_Int32  nStyle) const
void StyleContainer::impl_emitStyle ( sal_Int32  nStyleId,
EmitContext rContext,
ElementTreeVisitor rContainedElemVisitor 
sal_Int32 StyleContainer::impl_getStyleId ( const Style rStyle,
bool  bSubStyle 
sal_Int32 StyleContainer::setProperties ( sal_Int32  nStyleId,
PropertyMap &&  rNewProps 

Friends And Related Function Documentation

friend struct StyleHash

Definition at line 104 of file style.hxx.

friend struct StyleIdNameSort

Definition at line 114 of file style.hxx.

Referenced by emit().

Member Data Documentation

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

Definition at line 140 of file style.hxx.

Referenced by impl_getStyleId(), and setProperties().

sal_Int32 pdfi::StyleContainer::m_nNextId

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: