#include <ap_Dialog_FormatTOC.h>
AP_Dialog_FormatTOC::AP_Dialog_FormatTOC | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
AP_Dialog_FormatTOC::~AP_Dialog_FormatTOC | ( | void | ) | [virtual] |
References stopUpdater().
void AP_Dialog_FormatTOC::Apply | ( | void | ) |
Apply current style to the current selection in the current view
References applyTOCPropsToDoc(), XAP_Dialog_Modeless::getActiveFrame(), XAP_Frame::getCurrentView(), FV_View::getPoint(), FV_View::isTOCSelected(), and setSensitivity().
Referenced by AP_Win32Dialog_FormatTOC_Layout::_onApply(), AP_Win32Dialog_FormatTOC_General::_onApply(), and AP_UnixDialog_FormatTOC::event_Apply().
void AP_Dialog_FormatTOC::applyTOCPropsToDoc | ( | void | ) |
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::fillTOCPropsFromDoc | ( | void | ) |
References XAP_Dialog_Modeless::getActiveFrame(), fl_ContainerLayout::getAP(), PD_Document::getAPIFromSDH(), XAP_Dialog::getApp(), PD_Document::getAttrProp(), FV_View::getCurrentBlock(), XAP_Frame::getCurrentView(), FV_View::getDocument(), FV_View::getSelectionAnchor(), XAP_App::getStringSet(), PD_Document::getStruxOfTypeFromPosition(), XAP_StringSet::getValueUTF8(), FV_View::isTOCSelected(), m_bTOCFilled, m_pAP, m_pDoc, PTX_SectionTOC, setPropFromDoc(), setTOCProperty(), and UT_return_if_fail.
Referenced by AP_UnixDialog_FormatTOC::_populateWindowData(), and updateDialog().
void AP_Dialog_FormatTOC::finalize | ( | void | ) |
Finalize the dialog.
References XAP_Dialog_Modeless::modeless_cleanup(), and stopUpdater().
Referenced by AP_Win32Dialog_FormatTOC::destroy(), AP_UnixDialog_FormatTOC::destroy(), and AP_CocoaDialog_FormatTOC::destroy.
UT_sint32 AP_Dialog_FormatTOC::getDetailsLevel | ( | void | ) | [inline] |
Referenced by AP_UnixDialog_FormatTOC::_fillGUI(), AP_UnixDialog_FormatTOC::event_Apply(), AP_UnixDialog_FormatTOC::event_IndentChanged(), AP_UnixDialog_FormatTOC::event_StartAtChanged(), s_check_changedDetails(), AP_UnixDialog_FormatTOC::s_NumType_changed(), s_TabLeader_changed(), s_Text_changed(), AP_Win32Dialog_FormatTOC::setDetailsLevel(), and AP_UnixDialog_FormatTOC::setDetailsLevel().
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. |
References dim, DIM_CM, DIM_IN, DIM_MM, DIM_PI, DIM_PT, DIM_PX, and UT_determineDimension().
Referenced by incrementIndent().
UT_sint32 AP_Dialog_FormatTOC::getMainLevel | ( | void | ) | [inline] |
Referenced by AP_UnixDialog_FormatTOC::_fillGUI(), AP_Win32Dialog_FormatTOC_General::_onCommand(), AP_UnixDialog_FormatTOC::event_HasHeadingChanged(), AP_UnixDialog_FormatTOC::event_HasLabelChanged(), AP_Win32Dialog_FormatTOC::setMainLevel(), AP_UnixDialog_FormatTOC::setMainLevel(), AP_Win32Dialog_FormatTOC::setStyle(), and AP_UnixDialog_FormatTOC::setStyle().
UT_UTF8String AP_Dialog_FormatTOC::getNewStyle | ( | UT_UTF8String & | sProp | ) |
References AP_DIALOG_ID_STYLIST, XAP_Dialog_Modeless::getActiveFrame(), XAP_Frame::getCurrentView(), XAP_Frame::getDialogFactory(), AV_View::getParentData(), FV_View::getPoint(), AP_Dialog_Stylist::getSelectedStyle(), getTOCPropVal(), AP_Dialog_Stylist::isStyleValid(), XAP_DialogFactory::justMakeTheDialog(), XAP_DialogFactory::releaseDialog(), AP_Dialog_Stylist::runModal(), AP_Dialog_Stylist::setCurStyle(), and UT_return_val_if_fail.
Referenced by AP_Win32Dialog_FormatTOC::setStyle(), and AP_UnixDialog_FormatTOC::setStyle().
UT_UTF8String AP_Dialog_FormatTOC::getTOCPropVal | ( | UT_UTF8String & | sProp | ) |
References m_sTOCProps, and UT_UTF8String_getPropVal().
Referenced by AP_Win32Dialog_FormatTOC_Layout::_fillGUI(), AP_Win32Dialog_FormatTOC_General::_fillGUI(), AP_UnixDialog_FormatTOC::_fillGUI(), AP_Win32Dialog_FormatTOC_General::_onCommand(), AP_Win32Dialog_FormatTOC_Layout::_onNotify(), AP_UnixDialog_FormatTOC::event_IndentChanged(), AP_UnixDialog_FormatTOC::event_StartAtChanged(), getNewStyle(), incrementIndent(), incrementStartAt(), AP_Win32Dialog_FormatTOC_Layout::loadCtrlsValuesForDetailsLevel(), AP_Win32Dialog_FormatTOC::setDetailsLevel(), AP_UnixDialog_FormatTOC::setDetailsLevel(), AP_Win32Dialog_FormatTOC::setMainLevel(), and AP_UnixDialog_FormatTOC::setMainLevel().
UT_UTF8String AP_Dialog_FormatTOC::getTOCPropVal | ( | const char * | szProp | ) |
References m_sTOCProps, and UT_UTF8String_getPropVal().
UT_UTF8String AP_Dialog_FormatTOC::getTOCPropVal | ( | const char * | szProp, | |
UT_sint32 | i | |||
) |
References m_sTOCProps, UT_UTF8String_getPropVal(), and UT_UTF8String_sprintf().
const UT_GenericVector<const gchar*>* AP_Dialog_FormatTOC::getVecTABLeadersLabel | ( | void | ) | [inline] |
const UT_GenericVector<const gchar*>* AP_Dialog_FormatTOC::getVecTABLeadersProp | ( | void | ) | [inline] |
Referenced by AP_UnixDialog_FormatTOC::_createTABTypeItems().
void AP_Dialog_FormatTOC::incrementIndent | ( | UT_sint32 | iLevel, | |
bool | bInc | |||
) |
Increment the "indent" property
References getIncrement(), getTOCPropVal(), setTOCProperty(), UT_incrementDimString(), UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by AP_UnixDialog_FormatTOC::event_IndentChanged().
void AP_Dialog_FormatTOC::incrementStartAt | ( | UT_sint32 | iLevel, | |
bool | bInc | |||
) |
Increment the "start at" property
References getTOCPropVal(), setTOCProperty(), UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by AP_Win32Dialog_FormatTOC_Layout::_onNotify(), and AP_UnixDialog_FormatTOC::event_StartAtChanged().
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] |
Reimplemented from XAP_Dialog_Modeless.
References XAP_Dialog_Modeless::getActiveFrame(), XAP_Dialog_Modeless::notifyActiveFrame(), and updateDialog().
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 |
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 | ( | UT_UTF8String & | sProp, | |
UT_UTF8String & | sVal | |||
) |
References m_sTOCProps, UT_DEBUGMSG, UT_UTF8String_setProperty(), and UT_UTF8String::utf8_str().
Referenced by AP_Win32Dialog_FormatTOC_General::_onApply(), AP_Win32Dialog_FormatTOC_General::_onCommand(), AP_UnixDialog_FormatTOC::event_Apply(), AP_UnixDialog_FormatTOC::event_HasHeadingChanged(), AP_UnixDialog_FormatTOC::event_HasLabelChanged(), fillTOCPropsFromDoc(), incrementIndent(), incrementStartAt(), s_check_changedDetails(), AP_UnixDialog_FormatTOC::s_NumType_changed(), s_TabLeader_changed(), s_Text_changed(), AP_Win32Dialog_FormatTOC_Layout::saveCtrlsValuesForDetailsLevel(), setPropFromDoc(), AP_Win32Dialog_FormatTOC::setStyle(), and AP_UnixDialog_FormatTOC::setStyle().
void AP_Dialog_FormatTOC::setTOCProperty | ( | const char * | szProp, | |
const char * | szVal | |||
) |
References m_sTOCProps, UT_DEBUGMSG, UT_UTF8String_setProperty(), and UT_UTF8String::utf8_str().
virtual void AP_Dialog_FormatTOC::setTOCPropsInGUI | ( | void | ) | [pure virtual] |
Implemented in AP_CocoaDialog_FormatTOC, and AP_UnixDialog_FormatTOC.
Referenced by updateDialog().
void AP_Dialog_FormatTOC::startUpdater | ( | void | ) |
void AP_Dialog_FormatTOC::stopUpdater | ( | void | ) |
References DELETEP, m_pAutoUpdater, and UT_Timer::stop().
Referenced by finalize(), and ~AP_Dialog_FormatTOC().
void AP_Dialog_FormatTOC::updateDialog | ( | void | ) |
This method actually updates the dialog, in particular the style Tree and the current style.
References fillTOCPropsFromDoc(), XAP_Dialog_Modeless::getActiveFrame(), XAP_Frame::getCurrentView(), FV_View::getDocument(), FV_View::getPoint(), AV_View::getTick(), FV_View::isTOCSelected(), m_bTOCFilled, m_iTick, m_pDoc, setSensitivity(), and setTOCPropsInGUI().
Referenced by autoUpdate(), and setActiveFrame().
bool AP_Dialog_FormatTOC::m_bTOCFilled [private] |
Referenced by fillTOCPropsFromDoc(), and updateDialog().
UT_sint32 AP_Dialog_FormatTOC::m_iMainLevel [private] |
UT_uint32 AP_Dialog_FormatTOC::m_iTick [private] |
Referenced by updateDialog().
const PP_AttrProp* AP_Dialog_FormatTOC::m_pAP [private] |
Referenced by fillTOCPropsFromDoc(), and setPropFromDoc().
UT_Timer* AP_Dialog_FormatTOC::m_pAutoUpdater [private] |
Referenced by startUpdater(), and stopUpdater().
PD_Document* AP_Dialog_FormatTOC::m_pDoc [private] |
Referenced by fillTOCPropsFromDoc(), and updateDialog().
Referenced by applyTOCPropsToDoc(), getTOCPropVal(), and setTOCProperty().
UT_GenericVector<const gchar*> AP_Dialog_FormatTOC::m_vecTABLeadersLabel [private] |
Referenced by AP_Dialog_FormatTOC().
UT_GenericVector<const gchar*> AP_Dialog_FormatTOC::m_vecTABLeadersProp [private] |
Referenced by AP_Dialog_FormatTOC().