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 (const OString &rFamily)
 
const PropertyMapgetProperties (sal_Int32 nStyleId) const
 
sal_Int32 setProperties (sal_Int32 nStyleId, const 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 36 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 ( const OString &  rFamily)

Definition at line 76 of file style.cxx.

References getStyleId().

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

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

Friends And Related Function Documentation

friend struct StyleHash
friend

Definition at line 103 of file style.hxx.

friend struct StyleIdNameSort
friend

Definition at line 113 of file style.hxx.

Referenced by emit().

Member Data Documentation

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

Definition at line 139 of file style.hxx.

Referenced by impl_getStyleId(), and setProperties().

sal_Int32 pdfi::StyleContainer::m_nNextId
private

Definition at line 137 of file style.hxx.

Referenced by impl_getStyleId(), and setProperties().


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