Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Attributes

AP_UnixDialog_Styles Class Reference

#include <ap_UnixDialog_Styles.h>

Inheritance diagram for AP_UnixDialog_Styles:
AP_Dialog_Styles XAP_Dialog_NonPersistent XAP_Dialog

List of all members.

Public Types

enum  _StyleType { USED_STYLES, ALL_STYLES, USER_STYLES }
typedef enum
AP_UnixDialog_Styles::_StyleType 
StyleType

Public Member Functions

 AP_UnixDialog_Styles (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id)
virtual ~AP_UnixDialog_Styles (void)
virtual void runModal (XAP_Frame *pFrame)
void event_paraPreviewExposed (void)
void event_charPreviewExposed (void)
virtual void event_Apply (void)
virtual void event_Close (void)
virtual void event_DeleteClicked (void)
virtual void event_NewClicked (void)
virtual void event_ModifyClicked (void)
virtual void event_SelectionChanged (GtkTreeSelection *selection)
virtual void event_ListClicked (const char *which)
virtual void event_WindowDelete (void)
void new_styleName (void)
bool event_Modify_OK (void)
void event_Modify_Cancel (void)
void event_ModifyDelete (void)
void event_ModifyParagraph ()
void event_ModifyFont ()
void event_ModifyNumbering ()
void event_ModifyTabs ()
void event_ModifyLanguage ()
void event_ModifyPreviewExposed ()
void event_RemoveProperty (void)
void rebuildDeleteProps (void)
void event_basedOn (void)
void event_followedBy (void)
void event_styleType (void)
void modifyRunModal (void)
void setModifySignalBlocked (bool val)
bool isModifySignalBlocked (void) const
void setIsNew (bool bIsNew)
bool isNew (void) const
const gchar * getNewStyleName (void) const
const gchar * getBasedonName (void) const
const gchar * getFollowedbyName (void) const
const gchar * getStyleType (void) const

Static Public Member Functions

static XAP_Dialogstatic_constructor (XAP_DialogFactory *, XAP_Dialog_Id id)

Protected Types

enum  { BUTTON_APPLY = GTK_RESPONSE_APPLY, BUTTON_CLOSE = GTK_RESPONSE_CLOSE, BUTTON_MODIFY_OK = GTK_RESPONSE_OK, BUTTON_MODIFY_CANCEL = GTK_RESPONSE_CANCEL }

Protected Member Functions

virtual GtkWidget * _constructWindow (void)
GtkWidget * _constructWindowContents (GtkWidget *parent)
void _populateWindowData (void)
void _populateCList (void)
void _storeWindowData (void) const
void _connectSignals (void) const
virtual const char * getCurrentStyle (void) const
virtual void setDescription (const char *desc) const
virtual GtkWidget * _constructModifyDialog (void)
virtual void _constructGnomeModifyButtons (GtkWidget *dialog_action_area1)
void _constructFormatList (GtkWidget *FormatMenu)
void _connectModifySignals (void)
void _constructModifyDialogContents (GtkWidget *modifyDialog)
virtual void setModifyDescription (const char *desc)
bool _populateModify (void)

Protected Attributes

enum AP_UnixDialog_Styles:: { ... }  ResponseId
GR_CairoGraphicsm_pParaPreviewWidget
GR_CairoGraphicsm_pCharPreviewWidget
GtkWidget * m_windowMain
GtkWidget * m_btApply
GtkWidget * m_btClose
GtkWidget * m_btNew
GtkWidget * m_btModify
GtkWidget * m_btDelete
GtkWidget * m_wParaPreviewArea
GtkWidget * m_wCharPreviewArea
GtkWidget * m_wGnomeButtons
GtkListStore * m_listStyles
GtkWidget * m_tvStyles
GtkWidget * m_rbList1
GtkWidget * m_rbList2
GtkWidget * m_rbList3
GtkWidget * m_lbAttributes
GtkTreePath * m_selectedStyle
StyleType m_whichType
GR_CairoGraphicsm_pAbiPreviewWidget
GtkWidget * m_wModifyDialog
GtkWidget * m_wStyleNameEntry
GtkWidget * m_wBasedOnCombo
GtkWidget * m_wBasedOnEntry
GtkWidget * m_wFollowingCombo
GtkWidget * m_wFollowingEntry
GtkWidget * m_wStyleTypeCombo
GtkWidget * m_wStyleTypeEntry
GtkWidget * m_wModifyDrawingArea
GtkWidget * m_wLabDescription
GtkWidget * m_wDeletePropCombo
GtkWidget * m_wDeletePropEntry
GtkWidget * m_wDeletePropButton
GtkWidget * m_wModifyOk
GtkWidget * m_wModifyCancel
GtkWidget * m_wFormatMenu
GtkWidget * m_wModifyShortCutKey
std::list< std::string > m_gbasedOnStyles
std::list< std::string > m_gfollowedByStyles
std::list< std::string > m_gStyleType
gchar m_newStyleName [40]
gchar m_basedonName [40]
gchar m_followedbyName [40]
gchar m_styleType [40]

Private Attributes

bool m_bIsNew
bool m_bBlockModifySignal
UT_UTF8String m_sNewStyleName

Member Typedef Documentation


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
BUTTON_APPLY 
BUTTON_CLOSE 
BUTTON_MODIFY_OK 
BUTTON_MODIFY_CANCEL 
Enumerator:
USED_STYLES 
ALL_STYLES 
USER_STYLES 

Constructor & Destructor Documentation

AP_UnixDialog_Styles::~AP_UnixDialog_Styles ( void   )  [virtual]

Member Function Documentation

void AP_UnixDialog_Styles::_constructFormatList ( GtkWidget *  FormatMenu  )  [protected]
void AP_UnixDialog_Styles::_constructGnomeModifyButtons ( GtkWidget *  dialog_action_area1  )  [protected, virtual]
GtkWidget* AP_UnixDialog_Styles::_constructWindowContents ( GtkWidget *  parent  )  [protected]
void AP_UnixDialog_Styles::_populateWindowData ( void   )  [protected]
void AP_UnixDialog_Styles::_storeWindowData ( void   )  const [protected]
void AP_UnixDialog_Styles::event_Apply ( void   )  [virtual]
void AP_UnixDialog_Styles::event_basedOn ( void   ) 
void AP_UnixDialog_Styles::event_charPreviewExposed ( void   ) 
void AP_UnixDialog_Styles::event_Close ( void   )  [virtual]
void AP_UnixDialog_Styles::event_followedBy ( void   ) 
void AP_UnixDialog_Styles::event_ListClicked ( const char *  which  )  [virtual]
void AP_UnixDialog_Styles::event_Modify_Cancel ( void   ) 

References AP_Dialog_Styles::m_answer.

Referenced by modifyRunModal().

void AP_UnixDialog_Styles::event_ModifyDelete ( void   ) 
void AP_UnixDialog_Styles::event_ModifyFont (  ) 
void AP_UnixDialog_Styles::event_ModifyLanguage (  ) 
void AP_UnixDialog_Styles::event_ModifyNumbering (  ) 
void AP_UnixDialog_Styles::event_ModifyParagraph (  ) 
void AP_UnixDialog_Styles::event_ModifyPreviewExposed ( void   ) 
void AP_UnixDialog_Styles::event_ModifyTabs (  ) 
void AP_UnixDialog_Styles::event_paraPreviewExposed ( void   ) 
void AP_UnixDialog_Styles::event_RemoveProperty ( void   ) 

Remove the property from the current style shown in the remove combo box

References gchar, m_wDeletePropEntry, rebuildDeleteProps(), AP_Dialog_Styles::removeVecProp(), and AP_Dialog_Styles::updateCurrentStyle().

Referenced by s_remove_property().

void AP_UnixDialog_Styles::event_SelectionChanged ( GtkTreeSelection *  selection  )  [virtual]
void AP_UnixDialog_Styles::event_styleType ( void   ) 
void AP_UnixDialog_Styles::event_WindowDelete ( void   )  [virtual]
const gchar* AP_UnixDialog_Styles::getBasedonName ( void   )  const [inline]

References m_basedonName.

Referenced by event_basedOn().

const char * AP_UnixDialog_Styles::getCurrentStyle ( void   )  const [protected, virtual]
const gchar* AP_UnixDialog_Styles::getFollowedbyName ( void   )  const [inline]

References m_followedbyName.

Referenced by event_followedBy().

const gchar* AP_UnixDialog_Styles::getNewStyleName ( void   )  const [inline]

References m_newStyleName.

Referenced by event_NewClicked(), and new_styleName().

const gchar* AP_UnixDialog_Styles::getStyleType ( void   )  const [inline]

References m_styleType.

bool AP_UnixDialog_Styles::isModifySignalBlocked ( void   )  const
bool AP_UnixDialog_Styles::isNew ( void   )  const [inline]
void AP_UnixDialog_Styles::new_styleName ( void   ) 
void AP_UnixDialog_Styles::setDescription ( const char *  desc  )  const [protected, virtual]

Implements AP_Dialog_Styles.

References m_lbAttributes, and UT_ASSERT.

void AP_UnixDialog_Styles::setIsNew ( bool  bIsNew  )  [inline]

References m_bIsNew.

Referenced by event_ModifyClicked(), and event_NewClicked().

void AP_UnixDialog_Styles::setModifyDescription ( const char *  desc  )  [protected, virtual]

Implements AP_Dialog_Styles.

References m_lbAttributes, m_wLabDescription, and UT_ASSERT.

Referenced by _populateModify().

void AP_UnixDialog_Styles::setModifySignalBlocked ( bool  val  ) 

References m_bBlockModifySignal.

Referenced by _populateModify().

XAP_Dialog * AP_UnixDialog_Styles::static_constructor ( XAP_DialogFactory pFactory,
XAP_Dialog_Id  id 
) [static]

Member Data Documentation

gchar AP_UnixDialog_Styles::m_basedonName[40] [protected]

Referenced by event_basedOn(), and getBasedonName().

Referenced by isNew(), and setIsNew().

GtkWidget* AP_UnixDialog_Styles::m_btDelete [protected]
GtkWidget* AP_UnixDialog_Styles::m_btModify [protected]
GtkWidget* AP_UnixDialog_Styles::m_btNew [protected]
std::list<std::string> AP_UnixDialog_Styles::m_gbasedOnStyles [protected]

Referenced by _populateModify(), and modifyRunModal().

std::list<std::string> AP_UnixDialog_Styles::m_gfollowedByStyles [protected]

Referenced by _populateModify(), and modifyRunModal().

std::list<std::string> AP_UnixDialog_Styles::m_gStyleType [protected]

Referenced by _populateModify(), and modifyRunModal().

GtkListStore* AP_UnixDialog_Styles::m_listStyles [protected]
gchar AP_UnixDialog_Styles::m_newStyleName[40] [protected]

Referenced by getNewStyleName(), and new_styleName().

gchar AP_UnixDialog_Styles::m_styleType[40] [protected]

Referenced by event_styleType(), and getStyleType().

GtkWidget* AP_UnixDialog_Styles::m_wGnomeButtons [protected]

Referenced by AP_UnixDialog_Styles().

enum { ... } AP_UnixDialog_Styles::ResponseId [protected]

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