#include <ap_Win32Dialog_Options.h>
Public Member Functions | |
AP_Win32Dialog_Options (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
virtual | ~AP_Win32Dialog_Options (void) |
virtual void | runModal (XAP_Frame *pFrame) |
HWND | getPage (PSH_PAGES page) |
XAP_DialogFactory * | getDialogFactory () |
XAP_Frame * | getFrame () |
void | checkLanguageChange () |
HFONT | getBoldFontHandle () |
Static Public Member Functions | |
static XAP_Dialog * | static_constructor (XAP_DialogFactory *, XAP_Dialog_Id id) |
Protected Member Functions | |
virtual void | _controlEnable (tControl id, bool value) |
virtual void | _initEnableControlsPlatformSpecific () |
SET_GATHER (SpellCheckAsType, bool) | |
SET_GATHER (SpellHideErrors, bool) | |
SET_GATHER (SpellSuggest, bool) | |
SET_GATHER (SpellMainOnly, bool) | |
SET_GATHER (SpellUppercase, bool) | |
SET_GATHER (SpellNumbers, bool) | |
SET_GATHER (GrammarCheck, bool) | |
SET_GATHER (ViewRulerUnits, UT_Dimension) | |
SET_GATHER (AutoLoadPlugins, bool) | |
SET_GATHER (OtherDirectionRtl, bool) | |
SET_GATHER (AutoSaveFile, bool) | |
SET_GATHER (SmartQuotes, bool) | |
SET_GATHER (CustomSmartQuotes, bool) | |
SET_GATHER (EnableOverwrite, bool) | |
virtual bool | _gatherViewShowToolbar (UT_uint32) |
virtual void | _setViewShowToolbar (UT_uint32, bool) |
SET_GATHER (ViewCursorBlink, bool) | |
SET_GATHER (PrefsAutoSave, bool) | |
SET_GATHER (ViewShowRuler, bool) | |
SET_GATHER (ViewShowStatusBar, bool) | |
SET_GATHER (ViewAll, bool) | |
SET_GATHER (ViewHiddenText, bool) | |
SET_GATHER (ViewUnprintable, bool) | |
SET_GATHER (EnableSmoothScrolling, bool) | |
virtual void | _gatherAutoSaveFilePeriod (UT_String &stRetVal) |
virtual void | _setAutoSaveFilePeriod (const UT_String &stPeriod) |
virtual void | _gatherAutoSaveFileExt (UT_String &stRetVal) |
virtual void | _setAutoSaveFileExt (const UT_String &stExt) |
virtual void | _gatherUILanguage (UT_String &stRetVal) |
virtual void | _setUILanguage (const UT_String &stExt) |
virtual gint | _gatherOuterQuoteStyle () |
virtual gint | _gatherInnerQuoteStyle () |
virtual void | _setOuterQuoteStyle (const gint index) |
virtual void | _setInnerQuoteStyle (const gint index) |
SET_GATHER (NotebookPageNum, int) | |
SET_GATHER (LanguageWithKeyboard, bool) | |
BOOL | _onNotify (HWND hWnd, LPARAM lParam) |
BOOL | _onCommandTab (HWND hWnd, WPARAM wParam, LPARAM lParam) |
Protected Attributes | |
AP_Win32Dialog_Options_General | m_general |
AP_Win32Dialog_Options_Document | m_document |
AP_Win32Dialog_Options_Spelling | m_spelling |
AP_Win32Dialog_Options_SmartQuotes | m_smartquotes |
UT_String | m_curLang |
BOOL | m_langchanged |
HFONT | m_hFont |
bool | m_boolEnableSmoothScrolling |
bool | m_boolPrefsAutoSave |
bool | m_boolViewAll |
bool | m_boolViewHiddenText |
bool | m_boolViewShowRuler |
bool | m_boolViewShowStatusBar |
bool | m_boolViewUnprintable |
bool | m_boolViewCursorBlink |
HWND | m_hwndTab |
int | m_nrSubDlgs |
UT_Vector | m_vecSubDlgHWnd |
Private Attributes | |
XAP_DialogFactory * | m_pDialogFactory |
AP_Win32Dialog_Options::AP_Win32Dialog_Options | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
References m_hFont, and m_langchanged.
Referenced by static_constructor().
AP_Win32Dialog_Options::~AP_Win32Dialog_Options | ( | void | ) | [virtual] |
References m_hFont.
void AP_Win32Dialog_Options::_controlEnable | ( | tControl | id, | |
bool | value | |||
) | [protected, virtual] |
References getPage(), AP_Dialog_Options::id_CHECK_AUTO_LOAD_PLUGINS, AP_Dialog_Options::id_CHECK_AUTO_SAVE_FILE, AP_Dialog_Options::id_CHECK_CUSTOM_SMART_QUOTES, AP_Dialog_Options::id_CHECK_ENABLE_OVERWRITE, AP_Dialog_Options::id_CHECK_GRAMMAR_CHECK, AP_Dialog_Options::id_CHECK_LANG_WITH_KEYBOARD, AP_Dialog_Options::id_CHECK_OTHER_DEFAULT_DIRECTION_RTL, AP_Dialog_Options::id_CHECK_SMART_QUOTES_ENABLE, AP_Dialog_Options::id_CHECK_SPELL_CHECK_AS_TYPE, AP_Dialog_Options::id_CHECK_SPELL_HIDE_ERRORS, AP_Dialog_Options::id_CHECK_SPELL_MAIN_ONLY, AP_Dialog_Options::id_CHECK_SPELL_NUMBERS, AP_Dialog_Options::id_CHECK_SPELL_SUGGEST, AP_Dialog_Options::id_CHECK_SPELL_UPPERCASE, PG_DOCUMENT, PG_GENERAL, PG_SMARTQUOTES, and PG_SPELL.
Referenced by _initEnableControlsPlatformSpecific().
void AP_Win32Dialog_Options::_gatherAutoSaveFileExt | ( | UT_String & | stRetVal | ) | [protected, virtual] |
void AP_Win32Dialog_Options::_gatherAutoSaveFilePeriod | ( | UT_String & | stRetVal | ) | [protected, virtual] |
References getPage().
gint AP_Win32Dialog_Options::_gatherInnerQuoteStyle | ( | ) | [protected, virtual] |
References getPage(), and UT_return_val_if_fail.
gint AP_Win32Dialog_Options::_gatherOuterQuoteStyle | ( | ) | [protected, virtual] |
References getPage(), and UT_return_val_if_fail.
void AP_Win32Dialog_Options::_gatherUILanguage | ( | UT_String & | stRetVal | ) | [protected, virtual] |
References UT_Language::getNthLangCode(), getPage(), and m_curLang.
Referenced by checkLanguageChange().
virtual bool AP_Win32Dialog_Options::_gatherViewShowToolbar | ( | UT_uint32 | ) | [inline, protected, virtual] |
References UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
void AP_Win32Dialog_Options::_initEnableControlsPlatformSpecific | ( | ) | [protected, virtual] |
BOOL AP_Win32Dialog_Options::_onCommandTab | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [protected] |
BOOL AP_Win32Dialog_Options::_onNotify | ( | HWND | hWnd, | |
LPARAM | lParam | |||
) | [protected] |
void AP_Win32Dialog_Options::_setAutoSaveFileExt | ( | const UT_String & | stExt | ) | [protected, virtual] |
References UT_String::c_str(), getPage(), and XAP_Win32DialogBase::setDlgItemText().
void AP_Win32Dialog_Options::_setAutoSaveFilePeriod | ( | const UT_String & | stPeriod | ) | [protected, virtual] |
References UT_String::c_str(), and getPage().
void AP_Win32Dialog_Options::_setInnerQuoteStyle | ( | const gint | index | ) | [protected, virtual] |
References getPage(), and UT_return_if_fail.
void AP_Win32Dialog_Options::_setOuterQuoteStyle | ( | const gint | index | ) | [protected, virtual] |
References getPage(), and UT_return_if_fail.
void AP_Win32Dialog_Options::_setUILanguage | ( | const UT_String & | stExt | ) | [protected, virtual] |
References UT_String::c_str(), UT_Language::getIndxFromCode(), getPage(), m_curLang, and UT_String::size().
virtual void AP_Win32Dialog_Options::_setViewShowToolbar | ( | UT_uint32 | , | |
bool | ||||
) | [inline, protected, virtual] |
void AP_Win32Dialog_Options::checkLanguageChange | ( | ) |
References _gatherUILanguage(), m_curLang, and m_langchanged.
Referenced by AP_Win32Dialog_Options_Sheet::_onCommand().
HFONT AP_Win32Dialog_Options::getBoldFontHandle | ( | ) | [inline] |
XAP_DialogFactory* AP_Win32Dialog_Options::getDialogFactory | ( | void | ) | [inline] |
Referenced by AP_Win32Dialog_Options_General::_onCommand().
XAP_Frame* AP_Win32Dialog_Options::getFrame | ( | void | ) | [inline] |
References m_pFrame.
Referenced by AP_Win32Dialog_Options_General::_onCommand().
HWND AP_Win32Dialog_Options::getPage | ( | PSH_PAGES | page | ) |
References XAP_Win32PropertyPage::getHandle(), m_document, m_general, m_smartquotes, m_spelling, PG_DOCUMENT, PG_GENERAL, PG_SMARTQUOTES, PG_SPELL, and UT_ASSERT_HARMLESS.
Referenced by _controlEnable(), _gatherAutoSaveFileExt(), _gatherAutoSaveFilePeriod(), _gatherInnerQuoteStyle(), _gatherOuterQuoteStyle(), _gatherUILanguage(), AP_Win32Dialog_Options_Sheet::_onCommand(), _setAutoSaveFileExt(), _setAutoSaveFilePeriod(), _setInnerQuoteStyle(), _setOuterQuoteStyle(), and _setUILanguage().
void AP_Win32Dialog_Options::runModal | ( | XAP_Frame * | pFrame | ) | [virtual] |
References AP_Dialog_Options::a_OK, XAP_Win32PropertySheet::addPage(), UT_Win32LocaleString::c_str(), XAP_Win32PropertyPage::createPage(), UT_Win32LocaleString::fromUTF8(), XAP_Dialog::getApp(), XAP_App::getStringSet(), XAP_StringSet::getValue(), AP_Dialog_Options::m_answer, m_document, m_general, m_langchanged, XAP_Dialog::m_pApp, AP_Dialog_Options::m_pFrame, m_smartquotes, m_spelling, XAP_Win32PropertySheet::runModal(), XAP_Win32PropertySheet::setApplyButton(), AP_Win32Dialog_Options_SmartQuotes::setContainer(), AP_Win32Dialog_Options_Spelling::setContainer(), AP_Win32Dialog_Options_Document::setContainer(), AP_Win32Dialog_Options_General::setContainer(), AP_Win32Dialog_Options_Sheet::setParent(), and UT_return_if_fail.
AP_Win32Dialog_Options::SET_GATHER | ( | ViewCursorBlink | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | SmartQuotes | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | SpellSuggest | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | LanguageWithKeyboard | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | CustomSmartQuotes | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | AutoSaveFile | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | NotebookPageNum | , | |
int | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | EnableOverwrite | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | OtherDirectionRtl | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | SpellHideErrors | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | ViewShowRuler | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | SpellNumbers | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | SpellUppercase | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | SpellMainOnly | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | EnableSmoothScrolling | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | SpellCheckAsType | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | AutoLoadPlugins | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | ViewRulerUnits | , | |
UT_Dimension | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | GrammarCheck | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | ViewHiddenText | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | ViewAll | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | ViewShowStatusBar | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | ViewUnprintable | , | |
bool | ||||
) | [protected] |
AP_Win32Dialog_Options::SET_GATHER | ( | PrefsAutoSave | , | |
bool | ||||
) | [protected] |
XAP_Dialog * AP_Win32Dialog_Options::static_constructor | ( | XAP_DialogFactory * | pFactory, | |
XAP_Dialog_Id | id | |||
) | [static] |
References AP_Win32Dialog_Options().
bool AP_Win32Dialog_Options::m_boolEnableSmoothScrolling [protected] |
bool AP_Win32Dialog_Options::m_boolPrefsAutoSave [protected] |
bool AP_Win32Dialog_Options::m_boolViewAll [protected] |
bool AP_Win32Dialog_Options::m_boolViewCursorBlink [protected] |
bool AP_Win32Dialog_Options::m_boolViewHiddenText [protected] |
bool AP_Win32Dialog_Options::m_boolViewShowRuler [protected] |
bool AP_Win32Dialog_Options::m_boolViewShowStatusBar [protected] |
bool AP_Win32Dialog_Options::m_boolViewUnprintable [protected] |
UT_String AP_Win32Dialog_Options::m_curLang [protected] |
Referenced by _gatherUILanguage(), _setUILanguage(), and checkLanguageChange().
Referenced by getPage(), and runModal().
Referenced by getPage(), and runModal().
HFONT AP_Win32Dialog_Options::m_hFont [protected] |
Referenced by AP_Win32Dialog_Options(), and ~AP_Win32Dialog_Options().
HWND AP_Win32Dialog_Options::m_hwndTab [protected] |
BOOL AP_Win32Dialog_Options::m_langchanged [protected] |
Referenced by AP_Win32Dialog_Options(), checkLanguageChange(), and runModal().
int AP_Win32Dialog_Options::m_nrSubDlgs [protected] |
Referenced by getPage(), and runModal().
Referenced by getPage(), and runModal().
UT_Vector AP_Win32Dialog_Options::m_vecSubDlgHWnd [protected] |