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

AP_UnixDialog_Spell Class Reference

#include <ap_UnixDialog_Spell.h>

Inheritance diagram for AP_UnixDialog_Spell:
AP_Dialog_Spell XAP_Dialog_NonPersistent XAP_Dialog

List of all members.

Public Member Functions

 AP_UnixDialog_Spell (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id)
virtual ~AP_UnixDialog_Spell (void)
virtual void runModal (XAP_Frame *pFrame)
virtual void onChangeClicked (void)
virtual void onChangeAllClicked (void)
virtual void onIgnoreClicked (void)
virtual void onIgnoreAllClicked (void)
virtual void onAddClicked (void)
virtual void onSuggestionSelected (void)
virtual void onSuggestionChanged (void)
const GtkWidget * getWindow (void) const

Static Public Member Functions

static XAP_Dialogstatic_constructor (XAP_DialogFactory *, XAP_Dialog_Id id)

Protected Member Functions

virtual GtkWidget * _constructWindow (void)
void _populateWindowData (void)
void _updateWindow (void)

Private Member Functions

char * _convertToMB (const UT_UCSChar *wword)
char * _convertToMB (const UT_UCSChar *wword, UT_sint32 iLength)
UT_UCSChar_convertFromMB (const char *word)

Private Attributes

GtkWidget * m_wDialog
GtkWidget * m_txWrong
GtkWidget * m_eChange
GtkWidget * m_lvSuggestions
GdkColor m_highlight
guint m_listHandlerID
guint m_replaceHandlerID

Constructor & Destructor Documentation

AP_UnixDialog_Spell::AP_UnixDialog_Spell ( XAP_DialogFactory pDlgFactory,
XAP_Dialog_Id  id 


References m_eChange, m_lvSuggestions, m_txWrong, and m_wDialog.

Referenced by static_constructor().

AP_UnixDialog_Spell::~AP_UnixDialog_Spell ( void   )  [virtual]


Member Function Documentation

UT_UCSChar * AP_UnixDialog_Spell::_convertFromMB ( const char *  word  )  [private]

Conversion helper.

References UT_UCS4String::ucs4_str(), and UT_UCS4_cloneString().

Referenced by onChangeAllClicked(), and onChangeClicked().

char * AP_UnixDialog_Spell::_convertToMB ( const UT_UCSChar wword  )  [private]

Conversion helper.

References UT_UCS4String::utf8_str().

Referenced by _updateWindow().

char * AP_UnixDialog_Spell::_convertToMB ( const UT_UCSChar wword,
UT_sint32  iLength 
) [private]

Conversion helper.

References UT_UCS4String::utf8_str().

void AP_UnixDialog_Spell::_populateWindowData ( void   )  [protected]

Referenced by runModal().

void AP_UnixDialog_Spell::onAddClicked ( void   )  [virtual]

Event-handler for button "Add".

References AP_Dialog_Spell::addToDict(), AP_Dialog_Spell::ignoreWord(), and UT_DEBUGMSG.

Referenced by runModal().

void AP_UnixDialog_Spell::onChangeAllClicked ( void   )  [virtual]
void AP_UnixDialog_Spell::onChangeClicked ( void   )  [virtual]

Event-handler for button "Change".

References _convertFromMB(), AP_Dialog_Spell::changeWordWith(), FREEP, m_eChange, UT_DEBUGMSG, and UT_UCS4_strlen().

Referenced by runModal().

void AP_UnixDialog_Spell::onIgnoreAllClicked ( void   )  [virtual]

Event-handler for button "Ignore All".

References AP_Dialog_Spell::addIgnoreAll(), AP_Dialog_Spell::ignoreWord(), and UT_DEBUGMSG.

Referenced by runModal().

void AP_UnixDialog_Spell::onIgnoreClicked ( void   )  [virtual]

Event-handler for button "Ignore".

References AP_Dialog_Spell::ignoreWord(), and UT_DEBUGMSG.

Referenced by runModal().

void AP_UnixDialog_Spell::onSuggestionChanged ( void   )  [virtual]

Event-handler for editing the suggestion.

References COLUMN_SUGGESTION, gchar, label, m_eChange, m_listHandlerID, m_lvSuggestions, UT_ASSERT, and UT_DEBUGMSG.

Referenced by AP_UnixDialog_Spell__onSuggestionChanged().

void AP_UnixDialog_Spell::onSuggestionSelected ( void   )  [virtual]
XAP_Dialog * AP_UnixDialog_Spell::static_constructor ( XAP_DialogFactory pFactory,
XAP_Dialog_Id  id 
) [static]

Static ctor.

References AP_UnixDialog_Spell().

Member Data Documentation

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