#include <ap_UnixDialog_FormatTOC.h>
Public Member Functions | |
AP_UnixDialog_FormatTOC (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
virtual | ~AP_UnixDialog_FormatTOC (void) |
virtual void | runModeless (XAP_Frame *pFrame) |
void | event_Close (void) |
void | event_Apply (void) |
void | setStyle (GtkWidget *wid) |
virtual void | destroy (void) |
virtual void | activate (void) |
virtual void | setSensitivity (bool bSensitive) |
virtual void | notifyActiveFrame (XAP_Frame *pFrame) |
virtual void | setTOCPropsInGUI (void) |
void | setMainLevel (UT_sint32 iLevel) |
void | setDetailsLevel (UT_sint32 iLevel) |
void | event_IndentChanged (GtkWidget *wSpin) |
void | event_StartAtChanged (GtkWidget *wSpin) |
void | event_HasHeadingChanged (GtkWidget *wid) |
void | event_HasLabelChanged (GtkWidget *wid) |
Static Public Member Functions | |
static XAP_Dialog * | static_constructor (XAP_DialogFactory *, XAP_Dialog_Id id) |
Private Member Functions | |
GtkWidget * | _constructWindow (void) |
void | _populateWindowData (void) |
void | _connectSignals (void) |
void | _fillGUI (void) |
void | _createLabelTypeItems (void) |
void | _createTABTypeItems (void) |
void | _createLevelItems (void) |
GtkWidget * | _getWidget (const char *szNameBase, UT_sint32 level=0) |
void | _setHasHeadingSensitivity (bool bSensitive) |
Static Private Member Functions | |
static void | s_NumType_changed (GtkWidget *wid, AP_UnixDialog_FormatTOC *me) |
Private Attributes | |
GtkWidget * | m_windowMain |
GtkWidget * | m_wApply |
GtkWidget * | m_wClose |
GtkWidget * | m_wLabelChoose |
GtkWidget * | m_wPageNumberingChoose |
GtkBuilder * | m_pBuilder |
UT_Vector | m_vecChangeStyleBtns |
UT_Vector | m_vecStyleEntries |
UT_Vector | m_vecTextTypes |
UT_sint32 | m_iIndentValue |
UT_sint32 | m_iStartValue |
AP_UnixDialog_FormatTOC::AP_UnixDialog_FormatTOC | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
Referenced by static_constructor().
AP_UnixDialog_FormatTOC::~AP_UnixDialog_FormatTOC | ( | void | ) | [virtual] |
References m_pBuilder.
void AP_UnixDialog_FormatTOC::_connectSignals | ( | void | ) | [private] |
GtkWidget * AP_UnixDialog_FormatTOC::_constructWindow | ( | void | ) | [private] |
References _createLabelTypeItems(), _createLevelItems(), _createTABTypeItems(), _getWidget(), abiDialogSetTitle(), XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), localizeButton(), localizeButtonMarkup(), localizeButtonUnderline(), localizeLabel(), localizeLabelMarkup(), localizeLabelUnderline(), XAP_Dialog::m_pApp, m_pBuilder, m_wApply, m_wClose, m_windowMain, newDialogBuilder(), and s.
Referenced by runModeless().
void AP_UnixDialog_FormatTOC::_createLabelTypeItems | ( | void | ) | [private] |
References _getWidget(), AP_Dialog_FormatFootnotes::getFootnoteTypeLabelList(), FootnoteTypeDesc::label, m_wLabelChoose, m_wPageNumberingChoose, FootnoteTypeDesc::n, FootnoteTypeDesc::prop, UT_DEBUGMSG, XAP_appendComboBoxTextAndIntString(), and XAP_makeGtkComboBoxText2().
Referenced by _constructWindow().
void AP_UnixDialog_FormatTOC::_createLevelItems | ( | void | ) | [private] |
References _getWidget(), XAP_Dialog::getApp(), XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), s, XAP_appendComboBoxTextAndInt(), and XAP_makeGtkComboBoxText().
Referenced by _constructWindow().
void AP_UnixDialog_FormatTOC::_createTABTypeItems | ( | void | ) | [private] |
References _getWidget(), gchar, UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), AP_Dialog_FormatTOC::getVecTABLeadersLabel(), AP_Dialog_FormatTOC::getVecTABLeadersProp(), UT_DEBUGMSG, XAP_appendComboBoxTextAndStringString(), and XAP_makeGtkComboBoxText2().
Referenced by _constructWindow().
void AP_UnixDialog_FormatTOC::_fillGUI | ( | void | ) | [private] |
Fill the GUI tree with the styles as defined in the XP tree.
References _getWidget(), _setHasHeadingSensitivity(), FL_DocLayout::FootnoteTypeFromString(), XAP_Dialog_Modeless::getActiveFrame(), XAP_Frame::getCurrentView(), AP_Dialog_FormatTOC::getDetailsLevel(), FV_View::getLayout(), AP_Dialog_FormatTOC::getMainLevel(), AP_Dialog_FormatTOC::getTOCPropVal(), m_iIndentValue, m_iStartValue, s_check_changedDetails(), pt_PieceTable::s_getLocalisedStyleName(), s_HasHeading_changed(), s_HasLabel_changed(), s_Indent_changed(), s_StartAt_changed(), UT_UTF8String::utf8_str(), and XAP_comboBoxSetActiveFromIntCol().
Referenced by setTOCPropsInGUI().
GtkWidget * AP_UnixDialog_FormatTOC::_getWidget | ( | const char * | szNameBase, | |
UT_sint32 | level = 0 | |||
) | [private] |
References UT_String::c_str(), m_pBuilder, UT_return_val_if_fail, and UT_String_sprintf().
Referenced by _connectSignals(), _constructWindow(), _createLabelTypeItems(), _createLevelItems(), _createTABTypeItems(), _fillGUI(), _setHasHeadingSensitivity(), event_Apply(), event_IndentChanged(), event_StartAtChanged(), runModeless(), setDetailsLevel(), and setMainLevel().
void AP_UnixDialog_FormatTOC::_populateWindowData | ( | void | ) | [private] |
References AP_Dialog_FormatTOC::fillTOCPropsFromDoc(), and setTOCPropsInGUI().
Referenced by runModeless().
void AP_UnixDialog_FormatTOC::_setHasHeadingSensitivity | ( | bool | bSensitive | ) | [private] |
References _getWidget().
Referenced by _fillGUI(), and event_HasHeadingChanged().
void AP_UnixDialog_FormatTOC::activate | ( | void | ) | [virtual] |
Implements XAP_Dialog_Modeless.
References m_windowMain, and UT_ASSERT.
void AP_UnixDialog_FormatTOC::destroy | ( | void | ) | [virtual] |
Implements XAP_Dialog_Modeless.
References AP_Dialog_FormatTOC::finalize(), and m_windowMain.
Referenced by event_Close().
void AP_UnixDialog_FormatTOC::event_Apply | ( | void | ) |
void AP_UnixDialog_FormatTOC::event_Close | ( | void | ) |
References destroy().
Referenced by s_destroy_clicked().
void AP_UnixDialog_FormatTOC::event_HasHeadingChanged | ( | GtkWidget * | wid | ) |
void AP_UnixDialog_FormatTOC::event_HasLabelChanged | ( | GtkWidget * | wid | ) |
References UT_String::c_str(), AP_Dialog_FormatTOC::getMainLevel(), AP_Dialog_FormatTOC::setTOCProperty(), and UT_String_sprintf().
Referenced by s_HasLabel_changed().
void AP_UnixDialog_FormatTOC::event_IndentChanged | ( | GtkWidget * | wSpin | ) |
void AP_UnixDialog_FormatTOC::event_StartAtChanged | ( | GtkWidget * | wSpin | ) |
void AP_UnixDialog_FormatTOC::notifyActiveFrame | ( | XAP_Frame * | pFrame | ) | [virtual] |
Reimplemented from XAP_Dialog_Modeless.
References m_windowMain, and UT_ASSERT.
void AP_UnixDialog_FormatTOC::runModeless | ( | XAP_Frame * | pFrame | ) | [virtual] |
void AP_UnixDialog_FormatTOC::s_NumType_changed | ( | GtkWidget * | wid, | |
AP_UnixDialog_FormatTOC * | me | |||
) | [static, private] |
void AP_UnixDialog_FormatTOC::setDetailsLevel | ( | UT_sint32 | iLevel | ) |
Reimplemented from AP_Dialog_FormatTOC.
References _getWidget(), FL_DocLayout::FootnoteTypeFromString(), XAP_Dialog_Modeless::getActiveFrame(), XAP_Frame::getCurrentView(), AP_Dialog_FormatTOC::getDetailsLevel(), FV_View::getLayout(), AP_Dialog_FormatTOC::getTOCPropVal(), and UT_UTF8String::utf8_str().
Referenced by s_DetailsLevel_changed().
void AP_UnixDialog_FormatTOC::setMainLevel | ( | UT_sint32 | iLevel | ) |
Reimplemented from AP_Dialog_FormatTOC.
References _getWidget(), AP_Dialog_FormatTOC::getMainLevel(), AP_Dialog_FormatTOC::getTOCPropVal(), pt_PieceTable::s_getLocalisedStyleName(), and UT_UTF8String::utf8_str().
Referenced by s_MainLevel_changed().
void AP_UnixDialog_FormatTOC::setSensitivity | ( | bool | bSensitive | ) | [virtual] |
Implements AP_Dialog_FormatTOC.
References m_wApply.
void AP_UnixDialog_FormatTOC::setStyle | ( | GtkWidget * | wid | ) |
void AP_UnixDialog_FormatTOC::setTOCPropsInGUI | ( | void | ) | [virtual] |
XAP_Dialog * AP_UnixDialog_FormatTOC::static_constructor | ( | XAP_DialogFactory * | pFactory, | |
XAP_Dialog_Id | id | |||
) | [static] |
References AP_UnixDialog_FormatTOC().
Referenced by _fillGUI(), and event_IndentChanged().
Referenced by _fillGUI(), and event_StartAtChanged().
GtkBuilder* AP_UnixDialog_FormatTOC::m_pBuilder [private] |
Referenced by _constructWindow(), _getWidget(), and ~AP_UnixDialog_FormatTOC().
GtkWidget* AP_UnixDialog_FormatTOC::m_wApply [private] |
Referenced by _constructWindow(), and setSensitivity().
GtkWidget* AP_UnixDialog_FormatTOC::m_wClose [private] |
Referenced by _constructWindow().
GtkWidget* AP_UnixDialog_FormatTOC::m_windowMain [private] |
Referenced by _connectSignals(), _constructWindow(), activate(), destroy(), and notifyActiveFrame().
GtkWidget* AP_UnixDialog_FormatTOC::m_wLabelChoose [private] |
Referenced by _createLabelTypeItems(), and s_NumType_changed().
GtkWidget* AP_UnixDialog_FormatTOC::m_wPageNumberingChoose [private] |
Referenced by _createLabelTypeItems(), and s_NumType_changed().