#include <ap_Win32Dialog_Spell.h>
Public Member Functions | |
AP_Win32Dialog_Spell (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
virtual | ~AP_Win32Dialog_Spell (void) |
virtual void | runModal (XAP_Frame *pFrame) |
Static Public Member Functions | |
static XAP_Dialog * | static_constructor (XAP_DialogFactory *, XAP_Dialog_Id id) |
static BOOL CALLBACK | s_dlgProc (HWND, UINT, WPARAM, LPARAM) |
Protected Member Functions | |
BOOL | _onInitDialog (HWND hWnd, WPARAM wParam, LPARAM lParam) |
BOOL | _onCommand (HWND hWnd, WPARAM wParam, LPARAM lParam) |
void | _toggleChangeButtons (bool bEnable) const |
void | _showMisspelledWord (void) |
void | _suggestChange (void) |
void | _change (void) |
void | _changeAll (void) |
void | _tryAgain (void) |
Protected Attributes | |
HWND | m_hwndDlg |
HWND | m_hwndSentence |
HWND | m_hwndChangeTo |
HWND | m_hwndSuggest |
BOOL | m_bChangingSelection |
UT_sint32 | m_iWordOffsetInSentence |
AP_Win32Dialog_Spell::AP_Win32Dialog_Spell | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
References m_bChangingSelection.
Referenced by static_constructor().
AP_Win32Dialog_Spell::~AP_Win32Dialog_Spell | ( | void | ) | [virtual] |
void AP_Win32Dialog_Spell::_change | ( | void | ) | [protected] |
void AP_Win32Dialog_Spell::_changeAll | ( | void | ) | [protected] |
BOOL AP_Win32Dialog_Spell::_onCommand | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [protected] |
References _change(), _changeAll(), _suggestChange(), _toggleChangeButtons(), _tryAgain(), AP_Dialog_Spell::addIgnoreAll(), AP_Dialog_Spell::addToDict(), UT_GenericVector< T >::getItemCount(), AP_Dialog_Spell::ignoreWord(), AP_Dialog_Spell::m_bCancelled, m_bChangingSelection, m_hwndSentence, m_hwndSuggest, AP_Dialog_Spell::m_iSelectedRow, m_iWordOffsetInSentence, AP_Dialog_Spell::m_Suggestions, and UT_DEBUGMSG.
Referenced by s_dlgProc().
BOOL AP_Win32Dialog_Spell::_onInitDialog | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [protected] |
References _DS, _DSX, _showMisspelledWord(), UT_Win32LocaleString::c_str(), UT_Win32LocaleString::fromUTF8(), XAP_App::getStringSet(), XAP_StringSet::getValue(), m_hwndChangeTo, m_hwndDlg, m_hwndSentence, m_hwndSuggest, XAP_Dialog::m_pApp, AP_Dialog_Spell::makeWordVisible(), and XAP_Win32DialogHelper::s_centerDialog().
Referenced by s_dlgProc().
void AP_Win32Dialog_Spell::_showMisspelledWord | ( | void | ) | [protected] |
References _suggestChange(), _toggleChangeButtons(), UT_Win32LocaleString::c_str(), UT_Win32LocaleString::fromUCS4(), UT_Win32LocaleString::fromUTF8(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), XAP_App::getStringSet(), XAP_StringSet::getValue(), m_bChangingSelection, m_hwndChangeTo, m_hwndSentence, m_hwndSuggest, AP_Dialog_Spell::m_iSelectedRow, m_iWordOffsetInSentence, XAP_Dialog::m_pApp, AP_Dialog_Spell::m_pWordIterator, AP_Dialog_Spell::m_Suggestions, and UT_UCS4_strlen().
Referenced by _onInitDialog(), and _tryAgain().
void AP_Win32Dialog_Spell::_suggestChange | ( | void | ) | [protected] |
References UT_GenericVector< T >::getItemCount(), m_hwndChangeTo, m_hwndSuggest, AP_Dialog_Spell::m_iSelectedRow, AP_Dialog_Spell::m_Suggestions, and UT_return_if_fail.
Referenced by _onCommand(), and _showMisspelledWord().
void AP_Win32Dialog_Spell::_toggleChangeButtons | ( | bool | bEnable | ) | const [protected] |
References m_hwndDlg.
Referenced by _onCommand(), and _showMisspelledWord().
void AP_Win32Dialog_Spell::_tryAgain | ( | void | ) | [protected] |
void AP_Win32Dialog_Spell::runModal | ( | XAP_Frame * | pFrame | ) | [virtual] |
BOOL CALLBACK AP_Win32Dialog_Spell::s_dlgProc | ( | HWND | hWnd, | |
UINT | msg, | |||
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [static] |
References _onCommand(), and _onInitDialog().
Referenced by runModal().
XAP_Dialog * AP_Win32Dialog_Spell::static_constructor | ( | XAP_DialogFactory * | pFactory, | |
XAP_Dialog_Id | id | |||
) | [static] |
References AP_Win32Dialog_Spell().
BOOL AP_Win32Dialog_Spell::m_bChangingSelection [protected] |
Referenced by _onCommand(), _showMisspelledWord(), and AP_Win32Dialog_Spell().
HWND AP_Win32Dialog_Spell::m_hwndChangeTo [protected] |
Referenced by _change(), _changeAll(), _onInitDialog(), _showMisspelledWord(), and _suggestChange().
HWND AP_Win32Dialog_Spell::m_hwndDlg [protected] |
Referenced by _onInitDialog(), _toggleChangeButtons(), and _tryAgain().
HWND AP_Win32Dialog_Spell::m_hwndSentence [protected] |
Referenced by _onCommand(), _onInitDialog(), and _showMisspelledWord().
HWND AP_Win32Dialog_Spell::m_hwndSuggest [protected] |
Referenced by _onCommand(), _onInitDialog(), _showMisspelledWord(), and _suggestChange().
Referenced by _onCommand(), and _showMisspelledWord().