Public Member Functions | Static Public Member Functions | Private Attributes

AP_Dialog_FormatTOC Class Reference

#include <ap_Dialog_FormatTOC.h>

Inheritance diagram for AP_Dialog_FormatTOC:
XAP_Dialog_Modeless XAP_Dialog_AppPersistent XAP_Dialog_Persistent XAP_Dialog AP_CocoaDialog_FormatTOC AP_UnixDialog_FormatTOC AP_Win32Dialog_FormatTOC

List of all members.

Public Member Functions

 AP_Dialog_FormatTOC (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id)
virtual ~AP_Dialog_FormatTOC (void)
virtual void runModeless (XAP_Frame *pFrame)=0
void startUpdater (void)
void stopUpdater (void)
void setActiveFrame (XAP_Frame *pFrame)
void event_update (void)
void finalize (void)
void Apply (void)
virtual void setTOCPropsInGUI (void)=0
virtual void setSensitivity (bool bSensitive)=0
void updateDialog (void)
UT_UTF8String getNewStyle (UT_UTF8String &sProp)
bool setPropFromDoc (const char *szProp)
void setTOCProperty (UT_UTF8String &sProp, UT_UTF8String &sVal)
void setTOCProperty (const char *szProp, const char *szVal)
void fillTOCPropsFromDoc (void)
void applyTOCPropsToDoc (void)
UT_UTF8String getTOCPropVal (UT_UTF8String &sProp)
UT_UTF8String getTOCPropVal (const char *szProp)
UT_UTF8String getTOCPropVal (const char *szProp, UT_sint32 i)
const UT_GenericVector< const
gchar * > * 
getVecTABLeadersLabel (void)
const UT_GenericVector< const
gchar * > * 
getVecTABLeadersProp (void)
void incrementStartAt (UT_sint32 iLevel, bool bInc)
double getIncrement (const char *sz)
void incrementIndent (UT_sint32 iLevel, bool bInc)
void setDetailsLevel (UT_sint32 v)
UT_sint32 getDetailsLevel (void)
void setMainLevel (UT_sint32 v)
UT_sint32 getMainLevel (void)

Static Public Member Functions

static void autoUpdate (UT_Worker *pTimer)

Private Attributes

UT_uint32 m_iTick
const PP_AttrPropm_pAP
bool m_bTOCFilled
UT_UTF8String m_sTOCProps
UT_GenericVector< const gchar * > m_vecTABLeadersLabel
UT_GenericVector< const gchar * > m_vecTABLeadersProp
UT_sint32 m_iMainLevel
UT_sint32 m_iDetailsLevel

Constructor & Destructor Documentation

AP_Dialog_FormatTOC::~AP_Dialog_FormatTOC ( void   )  [virtual]

References stopUpdater().

Member Function Documentation

void AP_Dialog_FormatTOC::autoUpdate ( UT_Worker pTimer  )  [static]

Autoupdater of the dialog.

References UT_Worker::getInstanceData(), updateDialog(), and UT_return_if_fail.

Referenced by startUpdater().

void AP_Dialog_FormatTOC::event_update ( void   ) 
void AP_Dialog_FormatTOC::finalize ( void   ) 
double AP_Dialog_FormatTOC::getIncrement ( const char *  sz  ) 

Returns the increment associated with the dimension defined in the string.

const char * sz the dimensioned string.
double - the increment associated with the dimension in sz

References dim, DIM_CM, DIM_IN, DIM_MM, DIM_PI, DIM_PT, DIM_PX, and UT_determineDimension().

Referenced by incrementIndent().

UT_UTF8String AP_Dialog_FormatTOC::getTOCPropVal ( const char *  szProp  ) 
UT_UTF8String AP_Dialog_FormatTOC::getTOCPropVal ( const char *  szProp,
UT_sint32  i 
const UT_GenericVector<const gchar*>* AP_Dialog_FormatTOC::getVecTABLeadersLabel ( void   )  [inline]
const UT_GenericVector<const gchar*>* AP_Dialog_FormatTOC::getVecTABLeadersProp ( void   )  [inline]
void AP_Dialog_FormatTOC::incrementIndent ( UT_sint32  iLevel,
bool  bInc 
void AP_Dialog_FormatTOC::incrementStartAt ( UT_sint32  iLevel,
bool  bInc 
virtual void AP_Dialog_FormatTOC::runModeless ( XAP_Frame pFrame  )  [pure virtual]

Implements XAP_Dialog_Modeless.

Implemented in AP_CocoaDialog_FormatTOC, and AP_UnixDialog_FormatTOC.

Referenced by Defun1().

void AP_Dialog_FormatTOC::setActiveFrame ( XAP_Frame pFrame  )  [virtual]
void AP_Dialog_FormatTOC::setDetailsLevel ( UT_sint32  v  )  [inline]

Reimplemented in AP_UnixDialog_FormatTOC.

void AP_Dialog_FormatTOC::setMainLevel ( UT_sint32  v  )  [inline]

Reimplemented in AP_UnixDialog_FormatTOC.

bool AP_Dialog_FormatTOC::setPropFromDoc ( const char *  szProp  ) 

Retrieves a property value from the document, and stores it in the dialog property list.

szProp The property name to retrieve
true if the property value was retrieved from the document, false if the property value was retrieved from default property values list or could not be retrieved at all.

References PP_AttrProp::getProperty(), m_pAP, PP_Property::m_pszInitial, PP_lookupProperty(), setTOCProperty(), UT_ASSERT_HARMLESS, and UT_return_val_if_fail.

Referenced by fillTOCPropsFromDoc().

virtual void AP_Dialog_FormatTOC::setSensitivity ( bool  bSensitive  )  [pure virtual]

Implemented in AP_CocoaDialog_FormatTOC, and AP_UnixDialog_FormatTOC.

Referenced by Apply(), and updateDialog().

void AP_Dialog_FormatTOC::setTOCProperty ( const char *  szProp,
const char *  szVal 
virtual void AP_Dialog_FormatTOC::setTOCPropsInGUI ( void   )  [pure virtual]
void AP_Dialog_FormatTOC::stopUpdater ( void   ) 
void AP_Dialog_FormatTOC::updateDialog ( void   ) 

Member Data Documentation

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