Public Member Functions | Private Member Functions | Private Attributes

ODe_AutomaticStyles Class Reference

Represents a <office:automatic-styles> element. More...

#include <ODe_AutomaticStyles.h>

List of all members.

Public Member Functions

 ~ODe_AutomaticStyles ()
 Destructor.
void storeTextStyle (ODe_Style_Style *&rpTextStyle)
 See ODe_AutomaticStyles::_storeStyle.
void storeParagraphStyle (ODe_Style_Style *&rpParagraphStyle)
 See ODe_AutomaticStyles::_storeStyle.
void storeSectionStyle (ODe_Style_Style *&rpSectionStyle)
 See ODe_AutomaticStyles::_storeStyle.
void storeGraphicStyle (ODe_Style_Style *&rpGraphicStyle)
 See ODe_AutomaticStyles::_storeStyle.
ODe_Style_StyleaddTableStyle (const UT_UTF8String &rStyleName)
ODe_Style_StyleaddTableColumnStyle (const UT_UTF8String &rStyleName)
ODe_Style_StyleaddTableRowStyle (const UT_UTF8String &rStyleName)
ODe_Style_StyleaddTableCellStyle (const UT_UTF8String &rStyleName)
ODe_Style_PageLayoutaddPageLayout ()
ODe_Style_ListaddListStyle ()
void addPageLayout (ODe_Style_PageLayout *&pPageLayout)
ODe_Style_PageLayoutgetPageLayout (const gchar *pName)
ODe_Style_PageLayoutgetMasterPage (const gchar *pName)
UT_uint32 getSectionStylesCount () const
UT_GenericVector
< ODe_Style_Style * > * 
getParagraphStyles ()
UT_GenericVector
< ODe_Style_Style * > * 
getTextStyles ()
UT_GenericVector
< ODe_Style_List * > * 
getListStyles ()
void write (GsfOutput *pContentStream) const
 Writes <office:automatic-styles> element.

Private Member Functions

void _storeStyle (ODe_Style_Style *&rpStyle, UT_GenericStringMap< ODe_Style_Style * > &rStyles, const char *pNamingPrefix)
 Store the style in this automatic styles holder.

Private Attributes

UT_GenericStringMap
< ODe_Style_Style * > 
m_textStyles
UT_GenericStringMap
< ODe_Style_Style * > 
m_paragraphStyles
UT_GenericStringMap
< ODe_Style_Style * > 
m_sectionStyles
UT_GenericStringMap
< ODe_Style_Style * > 
m_tableStyles
UT_GenericStringMap
< ODe_Style_Style * > 
m_tableColumnStyles
UT_GenericStringMap
< ODe_Style_Style * > 
m_tableRowStyles
UT_GenericStringMap
< ODe_Style_Style * > 
m_tableCellStyles
UT_GenericStringMap
< ODe_Style_Style * > 
m_graphicStyles
UT_GenericStringMap
< ODe_Style_PageLayout * > 
m_pageLayouts
UT_GenericStringMap
< ODe_Style_List * > 
m_listStyles

Detailed Description

Represents a <office:automatic-styles> element.


Constructor & Destructor Documentation

ODe_AutomaticStyles::~ODe_AutomaticStyles (  ) 

Member Function Documentation

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  ) 
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]
ODe_Style_PageLayout* ODe_AutomaticStyles::getMasterPage ( const gchar *  pName  )  [inline]
ODe_Style_PageLayout* ODe_AutomaticStyles::getPageLayout ( const gchar *  pName  )  [inline]
UT_GenericVector<ODe_Style_Style*>* ODe_AutomaticStyles::getParagraphStyles (  )  [inline]
UT_uint32 ODe_AutomaticStyles::getSectionStylesCount (  )  const [inline]
UT_GenericVector<ODe_Style_Style*>* ODe_AutomaticStyles::getTextStyles (  )  [inline]
void ODe_AutomaticStyles::storeGraphicStyle ( ODe_Style_Style *&  rpGraphicStyle  ) 
void ODe_AutomaticStyles::storeParagraphStyle ( ODe_Style_Style *&  rpParagraphStyle  ) 
void ODe_AutomaticStyles::storeSectionStyle ( ODe_Style_Style *&  rpSectionStyle  ) 
void ODe_AutomaticStyles::storeTextStyle ( ODe_Style_Style *&  rpTextStyle  ) 
void ODe_AutomaticStyles::write ( GsfOutput *  pContentStream  )  const

Member Data Documentation


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