s_StyleTree Class Reference

Inheritance diagram for s_StyleTree:

PL_Listener

List of all members.

Public Member Functions

 s_StyleTree (PD_Document *pDocument)
 ~s_StyleTree ()
bool add (const char *style_name, PD_Document *pDoc)
const s_StyleTreefindAndUse (const char *style_name)
const s_StyleTreefind (const char *style_name) const
const s_StyleTreefind (PD_Style *style) const
bool descends (const char *style_name) const
template<typename StyleListener>
void print (StyleListener *listener) const
const s_StyleTreeoperator[] (UT_uint32 i) const
UT_uint32 count () const
const UT_UTF8Stringstyle_name () const
const UT_UTF8Stringclass_name () const
const UT_UTF8Stringclass_list () const
const std::string & lookup (const std::string &prop_name) const
bool populate (PL_StruxFmtHandle sfh, const PX_ChangeRecord *pcr)
bool populateStrux (PL_StruxDocHandle sdh, const PX_ChangeRecord *pcr, PL_StruxFmtHandle *psfh)
bool change (PL_StruxFmtHandle sfh, const PX_ChangeRecord *pcr)
bool insertStrux (PL_StruxFmtHandle sfh, const PX_ChangeRecord *pcr, PL_StruxDocHandle sdh, PL_ListenerId lid, void(*pfnBindHandles)(PL_StruxDocHandle sdhNew, PL_ListenerId lid, PL_StruxFmtHandle sfhNew))
bool signal (UT_uint32 iSignal)

Private Types

typedef std::map< std::string,
std::string > 
map_type

Private Member Functions

 s_StyleTree (s_StyleTree *parent, const char *name, PD_Style *style)
bool add (const char *style_name, PD_Style *style)
void inUse ()
void styleCheck (PT_AttrPropIndex api)

Private Attributes

PD_Documentm_pDocument
s_StyleTreem_parent
s_StyleTree ** m_list
UT_uint32 m_count
UT_uint32 m_max
bool m_bInUse
UT_UTF8String m_style_name
UT_UTF8String m_class_name
UT_UTF8String m_class_list
PD_Stylem_style
map_type m_map


Member Typedef Documentation

typedef std::map<std::string, std::string> s_StyleTree::map_type [private]


Constructor & Destructor Documentation

s_StyleTree::s_StyleTree ( s_StyleTree parent,
const char *  name,
PD_Style style 
) [private]

s_StyleTree::s_StyleTree ( PD_Document pDocument  ) 

References m_map.

s_StyleTree::~s_StyleTree (  ) 

References DELETEP, FREEP, m_count, and m_list.


Member Function Documentation

bool s_StyleTree::add ( const char *  style_name,
PD_Style style 
) [private]

bool s_StyleTree::add ( const char *  style_name,
PD_Document pDoc 
)

void s_StyleTree::inUse (  )  [private]

References inUse(), m_bInUse, and m_parent.

Referenced by findAndUse(), and inUse().

const s_StyleTree * s_StyleTree::findAndUse ( const char *  style_name  ) 

References find(), and inUse().

Referenced by styleCheck().

const s_StyleTree * s_StyleTree::find ( const char *  style_name  )  const

const s_StyleTree * s_StyleTree::find ( PD_Style style  )  const

bool s_StyleTree::descends ( const char *  style_name  )  const

template<typename StyleListener>
void s_StyleTree::print ( StyleListener listener  )  const [inline]

const s_StyleTree* s_StyleTree::operator[] ( UT_uint32  i  )  const [inline]

UT_uint32 s_StyleTree::count (  )  const [inline]

const UT_UTF8String& s_StyleTree::style_name (  )  const [inline]

const UT_UTF8String& s_StyleTree::class_name (  )  const [inline]

const UT_UTF8String& s_StyleTree::class_list (  )  const [inline]

const std::string & s_StyleTree::lookup ( const std::string &  prop_name  )  const

void s_StyleTree::styleCheck ( PT_AttrPropIndex  api  )  [private]

bool s_StyleTree::populate ( PL_StruxFmtHandle  sfh,
const PX_ChangeRecord pcr 
) [virtual]

bool s_StyleTree::populateStrux ( PL_StruxDocHandle  sdh,
const PX_ChangeRecord pcr,
PL_StruxFmtHandle psfh 
) [virtual]

bool s_StyleTree::change ( PL_StruxFmtHandle  sfh,
const PX_ChangeRecord pcr 
) [virtual]

Implements PL_Listener.

References UT_ASSERT_HARMLESS.

bool s_StyleTree::insertStrux ( PL_StruxFmtHandle  sfh,
const PX_ChangeRecord pcr,
PL_StruxDocHandle  sdh,
PL_ListenerId  lid,
void(*)(PL_StruxDocHandle sdhNew, PL_ListenerId lid, PL_StruxFmtHandle sfhNew)  pfnBindHandles 
) [virtual]

Implements PL_Listener.

bool s_StyleTree::signal ( UT_uint32  iSignal  )  [virtual]

Implements PL_Listener.

References UT_ASSERT_HARMLESS, and UT_SHOULD_NOT_HAPPEN.


Member Data Documentation

Referenced by styleCheck().

Referenced by add(), descends(), inUse(), lookup(), and print().

Referenced by add(), find(), print(), and ~s_StyleTree().

Referenced by add(), find(), print(), and ~s_StyleTree().

Referenced by add().

bool s_StyleTree::m_bInUse [private]

Referenced by inUse(), and print().

Referenced by descends(), find(), print(), and s_StyleTree().

Referenced by print(), and s_StyleTree().

Referenced by s_StyleTree().

Referenced by lookup(), print(), and s_StyleTree().


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

Generated on Thu Nov 20 00:07:13 2008 for AbiWord by  doxygen 1.5.5