Represents a <office:automatic-styles> element. More...
#include <ODe_AutomaticStyles.h>
Represents a <office:automatic-styles> element.
ODe_AutomaticStyles::~ODe_AutomaticStyles | ( | ) |
void ODe_AutomaticStyles::_storeStyle | ( | ODe_Style_Style *& | rpStyle, | |
UT_GenericStringMap< ODe_Style_Style * > & | rStyles, | |||
const char * | pNamingPrefix | |||
) | [private] |
Store the style in this automatic styles holder.
As the specified style get's stored here, this class takes care of freeing its memory later, so you don't have to worry about freeing the memory of the stored style.
The style also get's it's unique name on this method.
After calling this method you may end up with your style pointer pointing to a different style. It happens when there is already a stored style equivalent to the one that you sent to be stored. The one that was passed is deleted.
References UT_GenericStringMap< T >::enumerate(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), UT_GenericStringMap< T >::insert(), ODe_Style_Style::isEquivalentTo(), ODe_Style_Style::setStyleName(), UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by storeGraphicStyle(), storeParagraphStyle(), storeSectionStyle(), and storeTextStyle().
ODe_Style_List * ODe_AutomaticStyles::addListStyle | ( | ) |
ODe_Style_PageLayout * ODe_AutomaticStyles::addPageLayout | ( | ) |
void ODe_AutomaticStyles::addPageLayout | ( | ODe_Style_PageLayout *& | pPageLayout | ) |
References ODe_Style_PageLayout::getName(), UT_GenericStringMap< T >::insert(), and m_pageLayouts.
ODe_Style_Style * ODe_AutomaticStyles::addTableCellStyle | ( | const UT_UTF8String & | rStyleName | ) |
ODe_Style_Style * ODe_AutomaticStyles::addTableColumnStyle | ( | const UT_UTF8String & | rStyleName | ) |
ODe_Style_Style * ODe_AutomaticStyles::addTableRowStyle | ( | const UT_UTF8String & | rStyleName | ) |
ODe_Style_Style * ODe_AutomaticStyles::addTableStyle | ( | const UT_UTF8String & | rStyleName | ) |
UT_GenericVector<ODe_Style_List*>* ODe_AutomaticStyles::getListStyles | ( | ) | [inline] |
References UT_GenericStringMap< T >::enumerate(), and m_listStyles.
Referenced by ODe_DocumentData::doPostListeningWork().
ODe_Style_PageLayout* ODe_AutomaticStyles::getMasterPage | ( | const gchar * | pName | ) | [inline] |
References m_pageLayouts, and UT_GenericStringMap< T >::pick().
ODe_Style_PageLayout* ODe_AutomaticStyles::getPageLayout | ( | const gchar * | pName | ) | [inline] |
References m_pageLayouts, and UT_GenericStringMap< T >::pick().
Referenced by ODe_Frame_Listener::_openODTextbox(), ODe_Text_Listener::insertPositionedImage(), and ODe_Main_Listener::openSection().
UT_GenericVector<ODe_Style_Style*>* ODe_AutomaticStyles::getParagraphStyles | ( | ) | [inline] |
References UT_GenericStringMap< T >::enumerate(), and m_paragraphStyles.
Referenced by ODe_DocumentData::doPostListeningWork().
UT_uint32 ODe_AutomaticStyles::getSectionStylesCount | ( | ) | const [inline] |
References m_sectionStyles, and UT_GenericStringMap< T >::size().
Referenced by ODe_Frame_Listener::_openODTextbox(), ODe_Text_Listener::insertPositionedImage(), and ODe_Main_Listener::openSection().
UT_GenericVector<ODe_Style_Style*>* ODe_AutomaticStyles::getTextStyles | ( | ) | [inline] |
References UT_GenericStringMap< T >::enumerate(), and m_textStyles.
Referenced by ODe_DocumentData::doPostListeningWork().
void ODe_AutomaticStyles::storeGraphicStyle | ( | ODe_Style_Style *& | rpGraphicStyle | ) |
See ODe_AutomaticStyles::_storeStyle.
References _storeStyle(), and m_graphicStyles.
Referenced by ODe_Frame_Listener::_openODTextbox(), ODe_Text_Listener::insertInlinedImage(), and ODe_Text_Listener::insertPositionedImage().
void ODe_AutomaticStyles::storeParagraphStyle | ( | ODe_Style_Style *& | rpParagraphStyle | ) |
See ODe_AutomaticStyles::_storeStyle.
References _storeStyle(), and m_paragraphStyles.
Referenced by ODe_Text_Listener::_openParagraphDelayed().
void ODe_AutomaticStyles::storeSectionStyle | ( | ODe_Style_Style *& | rpSectionStyle | ) |
See ODe_AutomaticStyles::_storeStyle.
References _storeStyle(), and m_sectionStyles.
Referenced by ODe_Main_Listener::openSection().
void ODe_AutomaticStyles::storeTextStyle | ( | ODe_Style_Style *& | rpTextStyle | ) |
See ODe_AutomaticStyles::_storeStyle.
References _storeStyle(), and m_textStyles.
Referenced by ODe_Text_Listener::openSpan().
void ODe_AutomaticStyles::write | ( | GsfOutput * | pContentStream | ) | const |
Writes <office:automatic-styles> element.
References UT_GenericStringMap< T >::enumerate(), UT_GenericVector< T >::getItemCount(), m_graphicStyles, m_listStyles, m_pageLayouts, m_paragraphStyles, m_sectionStyles, m_tableCellStyles, m_tableColumnStyles, m_tableRowStyles, m_tableStyles, m_textStyles, ODE_WRITE_STYLES, and ODe_writeUTF8String().
Referenced by ODe_DocumentData::writeContentXML(), and ODe_DocumentData::writeStylesXML().
Referenced by storeGraphicStyle(), write(), and ~ODe_AutomaticStyles().
Referenced by addListStyle(), getListStyles(), write(), and ~ODe_AutomaticStyles().
Referenced by addPageLayout(), getMasterPage(), getPageLayout(), write(), and ~ODe_AutomaticStyles().
Referenced by getParagraphStyles(), storeParagraphStyle(), write(), and ~ODe_AutomaticStyles().
Referenced by getSectionStylesCount(), storeSectionStyle(), write(), and ~ODe_AutomaticStyles().
Referenced by addTableCellStyle(), write(), and ~ODe_AutomaticStyles().
Referenced by addTableColumnStyle(), write(), and ~ODe_AutomaticStyles().
Referenced by addTableRowStyle(), write(), and ~ODe_AutomaticStyles().
Referenced by addTableStyle(), write(), and ~ODe_AutomaticStyles().
Referenced by getTextStyles(), storeTextStyle(), write(), and ~ODe_AutomaticStyles().