#include <ap_UnixDialog_Paragraph.h>
Public Member Functions | |
AP_UnixDialog_Paragraph (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
virtual | ~AP_UnixDialog_Paragraph (void) |
virtual void | runModal (XAP_Frame *pFrame) |
virtual void | event_OK (void) |
virtual void | event_Cancel (void) |
virtual void | event_Tabs (void) |
virtual void | event_MenuChanged (GtkWidget *widget) |
virtual void | event_ComboBoxChanged (GtkWidget *widget) |
virtual void | event_SpinIncrement (GtkWidget *widget) |
virtual void | event_SpinDecrement (GtkWidget *widget) |
virtual void | event_SpinFocusOut (GtkWidget *widget) |
virtual void | event_SpinChanged (GtkWidget *widget) |
virtual void | event_CheckToggled (GtkWidget *widget) |
virtual void | event_PreviewAreaExposed (void) |
Static Public Member Functions | |
static XAP_Dialog * | static_constructor (XAP_DialogFactory *, XAP_Dialog_Id id) |
Protected Types | |
enum | { BUTTON_OK = GTK_RESPONSE_OK, BUTTON_CANCEL = GTK_RESPONSE_CANCEL, BUTTON_TABS = 0 } |
Protected Member Functions | |
virtual GtkWidget * | _constructWindow (void) |
GtkWidget * | _constructWindowContents (GtkWidget *) |
void | _connectCallbackSignals (void) |
void | _populateWindowData (void) |
virtual void | _syncControls (tControl changed, bool bAll=false) |
Protected Attributes | |
enum AP_UnixDialog_Paragraph:: { ... } | ResponseId |
GR_CairoGraphics * | m_unixGraphics |
bool | m_bEditChanged |
GtkWidget * | m_windowMain |
GtkWidget * | m_windowContents |
GtkWidget * | m_listAlignment |
GtkWidget * | m_spinbuttonLeft |
GtkWidget * | m_spinbuttonRight |
GtkWidget * | m_spinbuttonBy |
GtkWidget * | m_listSpecial |
GtkWidget * | m_spinbuttonBefore |
GtkWidget * | m_spinbuttonAfter |
GtkWidget * | m_spinbuttonAt |
GtkWidget * | m_listLineSpacing |
GtkWidget * | m_drawingareaPreview |
GtkWidget * | m_checkbuttonWidowOrphan |
GtkWidget * | m_checkbuttonKeepLines |
GtkWidget * | m_checkbuttonPageBreak |
GtkWidget * | m_checkbuttonSuppress |
GtkWidget * | m_checkbuttonHyphenate |
GtkWidget * | m_checkbuttonKeepNext |
GtkWidget * | m_buttonOK |
GtkWidget * | m_buttonCancel |
GtkWidget * | m_buttonTabs |
GtkWidget * | m_checkbuttonDomDirection |
AP_UnixDialog_Paragraph::AP_UnixDialog_Paragraph | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
References m_bEditChanged, and m_unixGraphics.
Referenced by static_constructor().
AP_UnixDialog_Paragraph::~AP_UnixDialog_Paragraph | ( | void | ) | [virtual] |
References DELETEP, and m_unixGraphics.
void AP_UnixDialog_Paragraph::_connectCallbackSignals | ( | void | ) | [protected] |
References CONNECT_SPIN_SIGNAL_CHANGED, CONNECT_SPIN_SIGNAL_FOCUS_OUT, m_checkbuttonDomDirection, m_checkbuttonHyphenate, m_checkbuttonKeepLines, m_checkbuttonKeepNext, m_checkbuttonPageBreak, m_checkbuttonSuppress, m_checkbuttonWidowOrphan, m_drawingareaPreview, m_listAlignment, m_listLineSpacing, m_listSpecial, m_spinbuttonAfter, m_spinbuttonAt, m_spinbuttonBefore, m_spinbuttonBy, m_spinbuttonLeft, m_spinbuttonRight, s_check_toggled(), s_combobox_changed(), and s_preview_draw().
Referenced by runModal().
GtkWidget * AP_UnixDialog_Paragraph::_constructWindow | ( | void | ) | [protected, virtual] |
References _constructWindowContents(), abiAddButton(), abiDialogNew(), BUTTON_CANCEL, BUTTON_OK, BUTTON_TABS, XAP_Dialog::getApp(), XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), m_buttonCancel, m_buttonOK, m_buttonTabs, m_windowMain, s, and UT_XML_cloneNoAmpersands().
Referenced by runModal().
GtkWidget * AP_UnixDialog_Paragraph::_constructWindowContents | ( | GtkWidget * | windowMain | ) | [protected] |
References XAP_Dialog::getApp(), XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), AP_Dialog_Paragraph::id_CHECK_DOMDIRECTION, AP_Dialog_Paragraph::id_CHECK_KEEP_LINES, AP_Dialog_Paragraph::id_CHECK_KEEP_NEXT, AP_Dialog_Paragraph::id_CHECK_NO_HYPHENATE, AP_Dialog_Paragraph::id_CHECK_PAGE_BREAK, AP_Dialog_Paragraph::id_CHECK_SUPPRESS, AP_Dialog_Paragraph::id_CHECK_WIDOW_ORPHAN, AP_Dialog_Paragraph::id_MENU_ALIGNMENT, AP_Dialog_Paragraph::id_MENU_SPECIAL_INDENT, AP_Dialog_Paragraph::id_MENU_SPECIAL_SPACING, AP_Dialog_Paragraph::id_SPIN_AFTER_SPACING, AP_Dialog_Paragraph::id_SPIN_BEFORE_SPACING, AP_Dialog_Paragraph::id_SPIN_LEFT_INDENT, AP_Dialog_Paragraph::id_SPIN_RIGHT_INDENT, AP_Dialog_Paragraph::id_SPIN_SPECIAL_INDENT, AP_Dialog_Paragraph::id_SPIN_SPECIAL_SPACING, m_checkbuttonDomDirection, m_checkbuttonHyphenate, m_checkbuttonKeepLines, m_checkbuttonKeepNext, m_checkbuttonPageBreak, m_checkbuttonSuppress, m_checkbuttonWidowOrphan, m_drawingareaPreview, m_listAlignment, m_listLineSpacing, m_listSpecial, m_spinbuttonAfter, m_spinbuttonAt, m_spinbuttonBefore, m_spinbuttonBy, m_spinbuttonLeft, m_spinbuttonRight, m_windowContents, s, UT_XML_cloneNoAmpersands(), WIDGET_ID_TAG, XAP_appendComboBoxTextAndInt(), and XAP_makeGtkComboBoxText().
Referenced by _constructWindow().
void AP_UnixDialog_Paragraph::_populateWindowData | ( | void | ) | [protected] |
References AP_Dialog_Paragraph::_getCheckItemValue(), AP_Dialog_Paragraph::_getMenuItemValue(), AP_Dialog_Paragraph::_getSpinItemValue(), AP_Dialog_Paragraph::check_TRUE, gchar, AP_Dialog_Paragraph::id_CHECK_DOMDIRECTION, AP_Dialog_Paragraph::id_CHECK_KEEP_LINES, AP_Dialog_Paragraph::id_CHECK_KEEP_NEXT, AP_Dialog_Paragraph::id_CHECK_NO_HYPHENATE, AP_Dialog_Paragraph::id_CHECK_PAGE_BREAK, AP_Dialog_Paragraph::id_CHECK_SUPPRESS, AP_Dialog_Paragraph::id_CHECK_WIDOW_ORPHAN, AP_Dialog_Paragraph::id_MENU_ALIGNMENT, AP_Dialog_Paragraph::id_MENU_SPECIAL_INDENT, AP_Dialog_Paragraph::id_MENU_SPECIAL_SPACING, AP_Dialog_Paragraph::id_SPIN_AFTER_SPACING, AP_Dialog_Paragraph::id_SPIN_BEFORE_SPACING, AP_Dialog_Paragraph::id_SPIN_LEFT_INDENT, AP_Dialog_Paragraph::id_SPIN_RIGHT_INDENT, AP_Dialog_Paragraph::id_SPIN_SPECIAL_INDENT, AP_Dialog_Paragraph::id_SPIN_SPECIAL_SPACING, m_checkbuttonDomDirection, m_checkbuttonHyphenate, m_checkbuttonKeepLines, m_checkbuttonKeepNext, m_checkbuttonPageBreak, m_checkbuttonSuppress, m_checkbuttonWidowOrphan, m_listAlignment, m_listLineSpacing, m_listSpecial, m_spinbuttonAfter, m_spinbuttonAt, m_spinbuttonBefore, m_spinbuttonBy, m_spinbuttonLeft, m_spinbuttonRight, UT_ASSERT, and XAP_comboBoxSetActiveFromIntCol().
Referenced by runModal().
void AP_UnixDialog_Paragraph::_syncControls | ( | tControl | changed, | |
bool | bAll = false | |||
) | [protected, virtual] |
Reimplemented from AP_Dialog_Paragraph.
References AP_Dialog_Paragraph::_getMenuItemValue(), AP_Dialog_Paragraph::_getSpinItemValue(), AP_Dialog_Paragraph::id_MENU_SPECIAL_INDENT, AP_Dialog_Paragraph::id_MENU_SPECIAL_SPACING, AP_Dialog_Paragraph::id_SPIN_AFTER_SPACING, AP_Dialog_Paragraph::id_SPIN_BEFORE_SPACING, AP_Dialog_Paragraph::id_SPIN_LEFT_INDENT, AP_Dialog_Paragraph::id_SPIN_RIGHT_INDENT, AP_Dialog_Paragraph::id_SPIN_SPECIAL_INDENT, AP_Dialog_Paragraph::id_SPIN_SPECIAL_SPACING, AP_Dialog_Paragraph::indent_FIRSTLINE, AP_Dialog_Paragraph::indent_NONE, m_listLineSpacing, m_listSpecial, m_spinbuttonAfter, m_spinbuttonAt, m_spinbuttonBefore, m_spinbuttonBy, m_spinbuttonLeft, m_spinbuttonRight, AP_Dialog_Paragraph::spacing_DOUBLE, AP_Dialog_Paragraph::spacing_MULTIPLE, AP_Dialog_Paragraph::spacing_ONEANDHALF, AP_Dialog_Paragraph::spacing_SINGLE, and XAP_comboBoxSetActiveFromIntCol().
Referenced by event_SpinFocusOut(), and runModal().
void AP_UnixDialog_Paragraph::event_Cancel | ( | void | ) | [virtual] |
References AP_Dialog_Paragraph::m_answer.
Referenced by runModal().
void AP_UnixDialog_Paragraph::event_CheckToggled | ( | GtkWidget * | widget | ) | [virtual] |
References AP_Dialog_Paragraph::_setCheckItemValue(), UT_ASSERT, and WIDGET_ID_TAG.
Referenced by s_check_toggled().
void AP_UnixDialog_Paragraph::event_ComboBoxChanged | ( | GtkWidget * | widget | ) | [virtual] |
References AP_Dialog_Paragraph::_setMenuItemValue(), UT_ASSERT, WIDGET_ID_TAG, and XAP_comboBoxGetActiveInt().
Referenced by s_combobox_changed().
void AP_UnixDialog_Paragraph::event_MenuChanged | ( | GtkWidget * | widget | ) | [virtual] |
References AP_Dialog_Paragraph::_setMenuItemValue(), UT_ASSERT, and WIDGET_MENU_PARENT_ID_TAG.
void AP_UnixDialog_Paragraph::event_OK | ( | void | ) | [virtual] |
References AP_Dialog_Paragraph::m_answer.
Referenced by runModal().
void AP_UnixDialog_Paragraph::event_PreviewAreaExposed | ( | void | ) | [virtual] |
References AP_Preview_Paragraph::draw(), and AP_Dialog_Paragraph::m_paragraphPreview.
Referenced by s_preview_draw().
void AP_UnixDialog_Paragraph::event_SpinChanged | ( | GtkWidget * | widget | ) | [virtual] |
References m_bEditChanged.
Referenced by s_spin_changed().
void AP_UnixDialog_Paragraph::event_SpinDecrement | ( | GtkWidget * | widget | ) | [virtual] |
References UT_ASSERT, and UT_DEBUG_ONLY_ARG.
void AP_UnixDialog_Paragraph::event_SpinFocusOut | ( | GtkWidget * | widget | ) | [virtual] |
References AP_Dialog_Paragraph::_setSpinItemValue(), _syncControls(), gchar, m_bEditChanged, and WIDGET_ID_TAG.
Referenced by s_spin_focus_out().
void AP_UnixDialog_Paragraph::event_SpinIncrement | ( | GtkWidget * | widget | ) | [virtual] |
References UT_ASSERT, and UT_DEBUG_ONLY_ARG.
void AP_UnixDialog_Paragraph::event_Tabs | ( | void | ) | [virtual] |
References XAP_Frame::getCurrentView(), AP_Dialog_Paragraph::m_answer, AP_Dialog_Paragraph::m_pFrame, and s_doTabDlg().
Referenced by runModal().
void AP_UnixDialog_Paragraph::runModal | ( | XAP_Frame * | pFrame | ) | [virtual] |
Implements AP_Dialog_Paragraph.
References _connectCallbackSignals(), _constructWindow(), AP_Dialog_Paragraph::_createPreviewFromGC(), _populateWindowData(), _syncControls(), abiDestroyWidget(), abiRunModalDialog(), BUTTON_CANCEL, BUTTON_OK, BUTTON_TABS, event_Cancel(), event_OK(), event_Tabs(), XAP_App::getApp(), AP_Dialog_Paragraph::id_MENU_ALIGNMENT, m_drawingareaPreview, AP_Dialog_Paragraph::m_pFrame, m_unixGraphics, XAP_App::newGraphics(), and UT_ASSERT.
XAP_Dialog * AP_UnixDialog_Paragraph::static_constructor | ( | XAP_DialogFactory * | pFactory, | |
XAP_Dialog_Id | id | |||
) | [static] |
References AP_UnixDialog_Paragraph().
bool AP_UnixDialog_Paragraph::m_bEditChanged [protected] |
Referenced by AP_UnixDialog_Paragraph(), event_SpinChanged(), and event_SpinFocusOut().
GtkWidget* AP_UnixDialog_Paragraph::m_buttonCancel [protected] |
Referenced by _constructWindow().
GtkWidget* AP_UnixDialog_Paragraph::m_buttonOK [protected] |
Referenced by _constructWindow().
GtkWidget* AP_UnixDialog_Paragraph::m_buttonTabs [protected] |
Referenced by _constructWindow().
GtkWidget* AP_UnixDialog_Paragraph::m_checkbuttonDomDirection [protected] |
Referenced by _connectCallbackSignals(), _constructWindowContents(), and _populateWindowData().
GtkWidget* AP_UnixDialog_Paragraph::m_checkbuttonHyphenate [protected] |
Referenced by _connectCallbackSignals(), _constructWindowContents(), and _populateWindowData().
GtkWidget* AP_UnixDialog_Paragraph::m_checkbuttonKeepLines [protected] |
Referenced by _connectCallbackSignals(), _constructWindowContents(), and _populateWindowData().
GtkWidget* AP_UnixDialog_Paragraph::m_checkbuttonKeepNext [protected] |
Referenced by _connectCallbackSignals(), _constructWindowContents(), and _populateWindowData().
GtkWidget* AP_UnixDialog_Paragraph::m_checkbuttonPageBreak [protected] |
Referenced by _connectCallbackSignals(), _constructWindowContents(), and _populateWindowData().
GtkWidget* AP_UnixDialog_Paragraph::m_checkbuttonSuppress [protected] |
Referenced by _connectCallbackSignals(), _constructWindowContents(), and _populateWindowData().
GtkWidget* AP_UnixDialog_Paragraph::m_checkbuttonWidowOrphan [protected] |
Referenced by _connectCallbackSignals(), _constructWindowContents(), and _populateWindowData().
GtkWidget* AP_UnixDialog_Paragraph::m_drawingareaPreview [protected] |
Referenced by _connectCallbackSignals(), _constructWindowContents(), and runModal().
GtkWidget* AP_UnixDialog_Paragraph::m_listAlignment [protected] |
Referenced by _connectCallbackSignals(), _constructWindowContents(), and _populateWindowData().
GtkWidget* AP_UnixDialog_Paragraph::m_listLineSpacing [protected] |
Referenced by _connectCallbackSignals(), _constructWindowContents(), _populateWindowData(), and _syncControls().
GtkWidget* AP_UnixDialog_Paragraph::m_listSpecial [protected] |
Referenced by _connectCallbackSignals(), _constructWindowContents(), _populateWindowData(), and _syncControls().
GtkWidget* AP_UnixDialog_Paragraph::m_spinbuttonAfter [protected] |
Referenced by _connectCallbackSignals(), _constructWindowContents(), _populateWindowData(), and _syncControls().
GtkWidget* AP_UnixDialog_Paragraph::m_spinbuttonAt [protected] |
Referenced by _connectCallbackSignals(), _constructWindowContents(), _populateWindowData(), and _syncControls().
GtkWidget* AP_UnixDialog_Paragraph::m_spinbuttonBefore [protected] |
Referenced by _connectCallbackSignals(), _constructWindowContents(), _populateWindowData(), and _syncControls().
GtkWidget* AP_UnixDialog_Paragraph::m_spinbuttonBy [protected] |
Referenced by _connectCallbackSignals(), _constructWindowContents(), _populateWindowData(), and _syncControls().
GtkWidget* AP_UnixDialog_Paragraph::m_spinbuttonLeft [protected] |
Referenced by _connectCallbackSignals(), _constructWindowContents(), _populateWindowData(), and _syncControls().
GtkWidget* AP_UnixDialog_Paragraph::m_spinbuttonRight [protected] |
Referenced by _connectCallbackSignals(), _constructWindowContents(), _populateWindowData(), and _syncControls().
GR_CairoGraphics* AP_UnixDialog_Paragraph::m_unixGraphics [protected] |
Referenced by AP_UnixDialog_Paragraph(), runModal(), and ~AP_UnixDialog_Paragraph().
GtkWidget* AP_UnixDialog_Paragraph::m_windowContents [protected] |
Referenced by _constructWindowContents().
GtkWidget* AP_UnixDialog_Paragraph::m_windowMain [protected] |
Referenced by _constructWindow().
enum { ... } AP_UnixDialog_Paragraph::ResponseId [protected] |