LibreOffice Module sdext (master) 1
|
#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 PropertyMap * | getProperties (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, RefCountedHashedStyle > | m_aIdToStyle |
std::unordered_map< HashedStyle, sal_Int32, StyleHash > | m_aStyleToId |
Friends | |
struct | StyleHash |
struct | StyleIdNameSort |
void StyleContainer::emit | ( | EmitContext & | rContext, |
ElementTreeVisitor & | rContainedElemVisitor | ||
) |
Definition at line 207 of file style.cxx.
References pdfi::XmlEmitter::beginTag(), pdfi::XmlEmitter::endTag(), getStyleName(), impl_emitStyle(), m_aIdToStyle, n, nElements, and pdfi::EmitContext::rEmitter.
Referenced by pdfi::PDFIProcessor::emit().
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().
|
inline |
Definition at line 153 of file style.hxx.
References impl_getStyleId().
Referenced by getStandardStyleId(), pdfi::WriterXmlFinalizer::setFirstOnPage(), pdfi::DrawXmlFinalizer::visit(), and pdfi::WriterXmlFinalizer::visit().
OUString StyleContainer::getStyleName | ( | sal_Int32 | nStyle | ) | const |
Definition at line 146 of file style.cxx.
References m_aIdToStyle, pdfi::StyleContainer::HashedStyle::Name, nIndex, and pdfi::StyleContainer::HashedStyle::Properties.
Referenced by emit(), pdfi::WriterXmlEmitter::fillFrameProps(), pdfi::DrawXmlEmitter::fillFrameProps(), impl_emitStyle(), pdfi::DrawXmlFinalizer::visit(), pdfi::WriterXmlFinalizer::visit(), pdfi::DrawXmlEmitter::visit(), and pdfi::WriterXmlEmitter::visit().
|
private |
Definition at line 181 of file style.cxx.
References pdfi::XmlEmitter::beginTag(), pdfi::StyleContainer::HashedStyle::ContainedElement, pdfi::StyleContainer::HashedStyle::Contents, pdfi::XmlEmitter::endTag(), getStyleName(), impl_emitStyle(), pdfi::StyleContainer::HashedStyle::IsSubStyle, m_aIdToStyle, pdfi::StyleContainer::HashedStyle::Name, pdfi::StyleContainer::HashedStyle::Properties, pdfi::EmitContext::rEmitter, pdfi::StyleContainer::HashedStyle::SubStyles, pdfi::Element::visitedBy(), and pdfi::XmlEmitter::write().
Referenced by emit(), and impl_emitStyle().
sal_Int32 StyleContainer::impl_getStyleId | ( | const Style & | rStyle, |
bool | bSubStyle | ||
) |
Definition at line 37 of file style.cxx.
References pdfi::StyleContainer::Style::ContainedElement, pdfi::StyleContainer::HashedStyle::ContainedElement, pdfi::StyleContainer::Style::Contents, pdfi::StyleContainer::HashedStyle::Contents, impl_getStyleId(), pdfi::StyleContainer::HashedStyle::IsSubStyle, m_aIdToStyle, m_aStyleToId, m_nNextId, pdfi::StyleContainer::Style::Name, pdfi::StyleContainer::HashedStyle::Name, pdfi::StyleContainer::Style::Properties, pdfi::StyleContainer::HashedStyle::Properties, pdfi::StyleContainer::RefCountedHashedStyle::RefCount, pdfi::StyleContainer::RefCountedHashedStyle::style, pdfi::StyleContainer::Style::SubStyles, and pdfi::StyleContainer::HashedStyle::SubStyles.
Referenced by getStyleId(), impl_getStyleId(), pdfi::DrawXmlFinalizer::visit(), and pdfi::WriterXmlFinalizer::visit().
sal_Int32 StyleContainer::setProperties | ( | sal_Int32 | nStyleId, |
PropertyMap && | rNewProps | ||
) |
Definition at line 93 of file style.cxx.
References pdfi::StyleContainer::HashedStyle::ContainedElement, pdfi::StyleContainer::HashedStyle::Contents, pdfi::StyleContainer::HashedStyle::IsSubStyle, m_aIdToStyle, m_aStyleToId, m_nNextId, pdfi::StyleContainer::HashedStyle::Name, pdfi::StyleContainer::HashedStyle::Properties, pdfi::StyleContainer::RefCountedHashedStyle::RefCount, pdfi::StyleContainer::RefCountedHashedStyle::style, and pdfi::StyleContainer::HashedStyle::SubStyles.
Referenced by pdfi::WriterXmlFinalizer::setFirstOnPage().
|
friend |
|
private |
Definition at line 139 of file style.hxx.
Referenced by emit(), getProperties(), getStyleName(), impl_emitStyle(), impl_getStyleId(), and setProperties().
|
private |
Definition at line 140 of file style.hxx.
Referenced by impl_getStyleId(), and setProperties().
|
private |
Definition at line 138 of file style.hxx.
Referenced by impl_getStyleId(), and setProperties().