Public Member Functions | Private Member Functions | Private Attributes

OXML_ObjectWithAttrProp Class Reference

#include <OXML_ObjectWithAttrProp.h>

Inheritance diagram for OXML_ObjectWithAttrProp:
OXML_Document OXML_Element OXML_Image OXML_List OXML_Section OXML_Style OXML_Element_Bookmark OXML_Element_Cell OXML_Element_Field OXML_Element_Hyperlink OXML_Element_Image OXML_Element_List OXML_Element_Paragraph OXML_Element_Row OXML_Element_Run OXML_Element_Table OXML_Element_Text OXML_Element_TextBox

List of all members.

Public Member Functions

 OXML_ObjectWithAttrProp ()
virtual ~OXML_ObjectWithAttrProp ()
UT_Error setAttribute (const gchar *szName, const gchar *szValue)
UT_Error setProperty (const gchar *szName, const gchar *szValue)
UT_Error setProperty (const std::string &szName, const std::string &szValue)
UT_Error getAttribute (const gchar *szName, const gchar *&szValue) const
UT_Error getProperty (const gchar *szName, const gchar *&szValue) const
UT_Error setAttributes (const gchar **attributes)
UT_Error setProperties (const gchar **properties)
UT_Error appendAttributes (const gchar **attributes)
UT_Error appendProperties (const gchar **properties)
const gchar ** getAttributes () const
const gchar ** getProperties () const
UT_Error inheritProperties (OXML_ObjectWithAttrProp *parent)
const gchar ** getAttributesWithProps () const
 Provides the list of attributes including all the properties in one attribute.
bool getNthProperty (int i, const gchar *&szName, const gchar *&szValue)
size_t getPropertyCount ()

Private Member Functions

std::string _generatePropsString () const

Private Attributes

PP_AttrPropm_pAttributes

Constructor & Destructor Documentation

OXML_ObjectWithAttrProp::OXML_ObjectWithAttrProp (  ) 
OXML_ObjectWithAttrProp::~OXML_ObjectWithAttrProp (  )  [virtual]

References DELETEP, and m_pAttributes.


Member Function Documentation

std::string OXML_ObjectWithAttrProp::_generatePropsString (  )  const [private]

References gchar, and getProperties().

Referenced by getAttributesWithProps().

UT_Error OXML_ObjectWithAttrProp::appendAttributes ( const gchar **  attributes  ) 
UT_Error OXML_ObjectWithAttrProp::appendProperties ( const gchar **  properties  ) 
const gchar ** OXML_ObjectWithAttrProp::getAttributes (  )  const
const gchar ** OXML_ObjectWithAttrProp::getAttributesWithProps (  )  const

Provides the list of attributes including all the properties in one attribute.

This method takes all the properties of the object and combines them into one string in CSS format. This string is used as the value of a new attribute whose key is defined by PP_PROPS_ATTRIBUTE_NAME.

Returns:
A list of all the object's attributes and with a new attribute containing all the properties.

References _generatePropsString(), gchar, getAttributes(), and PT_PROPS_ATTRIBUTE_NAME.

Referenced by OXML_Style::addToPT(), OXML_Section::addToPT(), OXML_Element_TextBox::addToPT(), OXML_Element_Table::addToPT(), OXML_Element_Run::addToPT(), OXML_Element_Paragraph::addToPT(), OXML_Element_Image::addToPT(), and OXML_Element_Cell::addToPT().

bool OXML_ObjectWithAttrProp::getNthProperty ( int  i,
const gchar *&  szName,
const gchar *&  szValue 
)
const gchar ** OXML_ObjectWithAttrProp::getProperties (  )  const
size_t OXML_ObjectWithAttrProp::getPropertyCount (  ) 
UT_Error OXML_ObjectWithAttrProp::setAttributes ( const gchar **  attributes  ) 
UT_Error OXML_ObjectWithAttrProp::setProperties ( const gchar **  properties  ) 
UT_Error OXML_ObjectWithAttrProp::setProperty ( const std::string &  szName,
const std::string &  szValue 
)

References setProperty().


Member Data Documentation


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