#include <ie_exp_OpenWriter.h>
Public Member Functions | |
OO_StylesContainer () | |
~OO_StylesContainer () | |
void | addSpanStyle (const std::string &key) |
void | addBlockStyle (const std::string &styleAtts, const std::string &styleProps) |
void | addFont (const std::string &font) |
int | getSpanStyleNum (const std::string &key) const |
int | getBlockStyleNum (const std::string &styleAtts, const std::string &styleProps) const |
UT_GenericVector< int * > * | enumerateSpanStyles () const |
UT_String * | pickBlockAtts (const UT_String *key) |
UT_GenericVector< const UT_String * > * | getSpanStylesKeys () const |
UT_GenericVector< const UT_String * > * | getBlockStylesKeys () const |
UT_GenericVector< const UT_String * > * | getFontsKeys () const |
Private Attributes | |
UT_GenericStringMap< int * > | m_spanStylesHash |
UT_GenericStringMap< UT_String * > | m_blockAttsHash |
UT_GenericStringMap< int * > | m_fontsHash |
OO_StylesContainer::OO_StylesContainer | ( | ) | [inline] |
OO_StylesContainer::~OO_StylesContainer | ( | ) | [inline] |
References m_blockAttsHash, m_fontsHash, m_spanStylesHash, and UT_GenericStringMap< T >::purgeData().
void OO_StylesContainer::addBlockStyle | ( | const std::string & | styleAtts, | |
const std::string & | styleProps | |||
) |
References UT_GenericStringMap< T >::insert(), m_blockAttsHash, UT_GenericStringMap< T >::pick(), and UT_DEBUGMSG.
Referenced by OO_AccumulatorImpl::openBlock().
void OO_StylesContainer::addFont | ( | const std::string & | font | ) |
void OO_StylesContainer::addSpanStyle | ( | const std::string & | key | ) |
References UT_GenericStringMap< T >::insert(), m_spanStylesHash, UT_GenericStringMap< T >::pick(), UT_GenericStringMap< T >::size(), and UT_DEBUGMSG.
Referenced by OO_AccumulatorImpl::openSpan().
UT_GenericVector< int * > * OO_StylesContainer::enumerateSpanStyles | ( | ) | const |
References UT_GenericStringMap< T >::enumerate(), and m_spanStylesHash.
Referenced by OO_WriterImpl::OO_WriterImpl().
int OO_StylesContainer::getBlockStyleNum | ( | const std::string & | styleAtts, | |
const std::string & | styleProps | |||
) | const |
References UT_GenericVector< T >::getNthItem(), UT_GenericStringMap< T >::keys(), m_blockAttsHash, UT_GenericVector< T >::size(), and UT_ASSERT_NOT_REACHED.
Referenced by OO_WriterImpl::openBlock().
UT_GenericVector< const UT_String * > * OO_StylesContainer::getBlockStylesKeys | ( | ) | const |
References UT_GenericStringMap< T >::keys(), and m_blockAttsHash.
Referenced by OO_WriterImpl::OO_WriterImpl().
UT_GenericVector< const UT_String * > * OO_StylesContainer::getFontsKeys | ( | ) | const |
References UT_GenericStringMap< T >::keys(), and m_fontsHash.
Referenced by OO_StylesWriter::addFontDecls().
int OO_StylesContainer::getSpanStyleNum | ( | const std::string & | key | ) | const |
References m_spanStylesHash, and UT_GenericStringMap< T >::pick().
Referenced by OO_WriterImpl::openSpan().
UT_GenericVector< const UT_String * > * OO_StylesContainer::getSpanStylesKeys | ( | ) | const |
References UT_GenericStringMap< T >::keys(), and m_spanStylesHash.
Referenced by OO_WriterImpl::OO_WriterImpl().
References UT_String::c_str(), m_blockAttsHash, and UT_GenericStringMap< T >::pick().
Referenced by OO_WriterImpl::OO_WriterImpl().
Referenced by addBlockStyle(), getBlockStyleNum(), getBlockStylesKeys(), pickBlockAtts(), and ~OO_StylesContainer().
UT_GenericStringMap<int*> OO_StylesContainer::m_fontsHash [private] |
Referenced by addFont(), getFontsKeys(), and ~OO_StylesContainer().
UT_GenericStringMap<int*> OO_StylesContainer::m_spanStylesHash [private] |
Referenced by addSpanStyle(), enumerateSpanStyles(), getSpanStyleNum(), getSpanStylesKeys(), and ~OO_StylesContainer().