• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ap_UnixDialog_Spell.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 1998,1999 AbiSource, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 USA.
00018  */
00019 
00020 #ifndef AP_UNIXDIALOG_SPELL_H
00021 #define AP_UNIXDIALOG_SPELL_H
00022 
00023 #include "ap_Dialog_Spell.h"
00024 
00025 
00026 class XAP_Frame;
00027 
00028 
00029 class AP_UnixDialog_Spell : public AP_Dialog_Spell
00030 {
00031 public:
00032 
00033     AP_UnixDialog_Spell (XAP_DialogFactory * pDlgFactory,
00034                          XAP_Dialog_Id id);
00035     virtual ~AP_UnixDialog_Spell (void);
00036 
00037     static XAP_Dialog * static_constructor (XAP_DialogFactory *, XAP_Dialog_Id id);
00038 
00039     virtual void runModal (XAP_Frame * pFrame);
00040 
00041     // callbacks can fire these events
00042     virtual void onChangeClicked      (void);
00043     virtual void onChangeAllClicked   (void);
00044     virtual void onIgnoreClicked      (void);
00045     virtual void onIgnoreAllClicked   (void);
00046     virtual void onAddClicked         (void);
00047     virtual void onSuggestionSelected (void);
00048     virtual void onSuggestionChanged  (void);
00049 
00050     const GtkWidget * getWindow (void) const { return m_wDialog; }
00051 
00052 protected:
00053 
00054    virtual GtkWidget * _constructWindow    (void);
00055    void                _populateWindowData (void);
00056    void                _updateWindow       (void);
00057 
00058 private:
00059 
00060    char       * _convertToMB   (const UT_UCSChar *wword);
00061    char       * _convertToMB   (const UT_UCSChar *wword,
00062                                 UT_sint32 iLength);
00063    UT_UCSChar * _convertFromMB (const char *word);
00064 
00065    // pointers to widgets we need to query/set
00066    GtkWidget * m_wDialog;
00067    GtkWidget * m_txWrong;
00068    GtkWidget * m_eChange;
00069    GtkWidget * m_lvSuggestions;
00070 
00071    GdkColor m_highlight;
00072 
00073    guint m_listHandlerID;
00074    guint m_replaceHandlerID;
00075 };
00076 
00077 #endif /* AP_UNIXDIALOG_SPELL_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1