#include <ap_Win32Dialog_Lists.h>
AP_Win32Dialog_Lists::AP_Win32Dialog_Lists | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
Referenced by static_constructor().
AP_Win32Dialog_Lists::~AP_Win32Dialog_Lists | ( | void | ) | [virtual] |
References DELETEP, m_pAutoUpdateLists, m_pPreviewWidget, and UT_Timer::stop().
void AP_Win32Dialog_Lists::_enableControls | ( | void | ) | [protected] |
References _enableCustomControls(), _getTypeComboCurSel(), _isApplyToCurrentChecked(), _isNewListChecked(), _isResumeListChecked(), _win32Dialog, XAP_Win32DialogHelper::enableControl(), and AP_Dialog_Lists::isDirty().
Referenced by _foldingChanged(), _onApply(), _onCommand(), _onDeltaPos(), _resetCustomValues(), _selectFont(), _styleChanged(), _typeChanged(), activate(), and autoupdateLists().
void AP_Win32Dialog_Lists::_enableCustomControls | ( | bool | bEnable = true |
) | [private] |
References _win32Dialog, XAP_Win32DialogHelper::enableControl(), and rgCustomIds.
Referenced by _enableControls().
void AP_Win32Dialog_Lists::_fillFoldingList | ( | ) | [private] |
References _win32Dialog, XAP_Win32DialogHelper::addItemToCombo(), XAP_App::getStringSet(), XAP_StringSet::getValue(), XAP_Dialog::m_pApp, and UT_return_if_fail.
Referenced by _onInitDialog().
void AP_Win32Dialog_Lists::_fillStyleList | ( | int | iType | ) | [private] |
void AP_Win32Dialog_Lists::_fillTypeList | ( | ) | [private] |
References _win32Dialog, XAP_Win32DialogHelper::addItemToCombo(), XAP_App::getStringSet(), XAP_StringSet::getValue(), XAP_Dialog::m_pApp, and UT_return_if_fail.
Referenced by _onInitDialog().
void AP_Win32Dialog_Lists::_foldingChanged | ( | ) | [private] |
References _enableControls(), AP_Dialog_Lists::setDirty(), and AP_Dialog_Lists::setFoldingLevelChanged().
Referenced by _onCommand().
void AP_Win32Dialog_Lists::_getDisplayedData | ( | UT_sint32 | controlId = -1 |
) | [private] |
References _win32Dialog, AP_Dialog_Lists::copyCharToDecimal(), AP_Dialog_Lists::copyCharToDelim(), XAP_Win32DialogHelper::getControlInt(), XAP_Win32DialogHelper::getControlText(), XAP_Win32DialogHelper::setControlText(), UT_convertDimensionless(), and UT_convertToDimensionlessString().
Referenced by _onApply(), _onCommand(), and _onDeltaPos().
int AP_Win32Dialog_Lists::_getFoldingComboCurSel | ( | ) | const [private] |
References _win32Dialog, and XAP_Win32DialogHelper::getComboSelectedIndex().
Referenced by _onApply().
FL_ListType AP_Win32Dialog_Lists::_getListTypeFromCombos | ( | ) | const [private] |
References _getStyleComboCurSel(), _getTypeComboCurSel(), BULLETED_LIST, IS_NUMBERED_LIST_TYPE, OTHER_NUMBERED_LISTS, and UT_ASSERT_HARMLESS.
Referenced by _onCommand(), and _styleChanged().
int AP_Win32Dialog_Lists::_getStyleComboCurSel | ( | ) | const [private] |
References _win32Dialog, and XAP_Win32DialogHelper::getComboSelectedIndex().
Referenced by _getListTypeFromCombos().
int AP_Win32Dialog_Lists::_getTypeComboCurSel | ( | ) | const [private] |
References _win32Dialog, and XAP_Win32DialogHelper::getComboSelectedIndex().
Referenced by _enableControls(), _getListTypeFromCombos(), _selectFont(), and _typeChanged().
bool AP_Win32Dialog_Lists::_isApplyToCurrentChecked | ( | ) | const [private] |
References _win32Dialog, and XAP_Win32DialogHelper::isChecked().
Referenced by _enableControls(), and _onApply().
bool AP_Win32Dialog_Lists::_isNewListChecked | ( | ) | const [private] |
References _win32Dialog, and XAP_Win32DialogHelper::isChecked().
Referenced by _enableControls(), and _onApply().
bool AP_Win32Dialog_Lists::_isResumeListChecked | ( | ) | const [private] |
References _win32Dialog, and XAP_Win32DialogHelper::isChecked().
Referenced by _enableControls(), and _onApply().
void AP_Win32Dialog_Lists::_onApply | ( | ) | [protected] |
References _enableControls(), _getDisplayedData(), _getFoldingComboCurSel(), _isApplyToCurrentChecked(), _isNewListChecked(), _isResumeListChecked(), _previewExposed(), _setDisplayedData(), _win32Dialog, AP_Dialog_Lists::a_OK, AP_Dialog_Lists::Apply(), XAP_Win32DialogHelper::checkButton(), AP_Dialog_Lists::clearDirty(), AP_Dialog_Lists::isModal(), m_hThisDlg, AP_Dialog_Lists::PopulateDialogData(), AP_Dialog_Lists::setAnswer(), AP_Dialog_Lists::setCurrentFold(), and UT_return_if_fail.
Referenced by _onCommand().
BOOL AP_Win32Dialog_Lists::_onCommand | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [protected, virtual] |
Reimplemented from XAP_Win32DialogBase.
References _enableControls(), _foldingChanged(), _getDisplayedData(), _getListTypeFromCombos(), _onApply(), _previewExposed(), _resetCustomValues(), _selectFont(), _setListType(), _styleChanged(), _typeChanged(), _win32Dialog, XAP_Win32DialogHelper::checkButton(), destroy(), AP_Dialog_Lists::PopulateDialogData(), and AP_Dialog_Lists::setDirty().
BOOL AP_Win32Dialog_Lists::_onDeltaPos | ( | NM_UPDOWN * | pnmud | ) | [protected, virtual] |
Reimplemented from XAP_Win32DialogBase.
References _enableControls(), _getDisplayedData(), _previewExposed(), _win32Dialog, XAP_Win32DialogHelper::getControlText(), AP_Dialog_Lists::isDirty(), XAP_Win32DialogHelper::setControlText(), AP_Dialog_Lists::setDirty(), UT_convertDimensionless(), UT_convertToDimensionlessString(), and UT_DEBUGMSG.
BOOL AP_Win32Dialog_Lists::_onInitDialog | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [protected, virtual] |
Reimplemented from XAP_Win32DialogBase.
References AP_Dialog_Lists::_createPreviewFromGC(), _DS, _DSX, _fillFoldingList(), _fillTypeList(), _resetCustomValues(), _setDisplayedData(), _win32Dialog, activate(), autoupdateLists(), XAP_Win32DialogBase::centerDialog(), AP_Dialog_Lists::clearDirty(), XAP_Win32PreviewWidget::getGraphics(), AP_Dialog_Lists::getListsPreview(), XAP_App::getStringSet(), XAP_StringSet::getValue(), XAP_Win32PreviewWidget::getWindowSize(), AP_Dialog_Lists::isModal(), m_bDestroy_says_stopupdating, m_hThisDlg, XAP_Dialog::m_pApp, m_pAutoUpdateLists, m_pPreviewWidget, UT_Timer::set(), XAP_Win32DialogBase::setDialogTitle(), setFoldLevelInGUI(), XAP_Win32PreviewWidget::setPreview(), XAP_Win32DialogHelper::showControl(), static_constructor(), and UT_return_val_if_fail.
void AP_Win32Dialog_Lists::_previewExposed | ( | ) | [private] |
References AP_Dialog_Lists::event_PreviewAreaExposed(), m_hThisDlg, m_pPreviewWidget, and UT_return_if_fail.
Referenced by _onApply(), _onCommand(), _onDeltaPos(), _resetCustomValues(), _selectFont(), _styleChanged(), activate(), and notifyActiveFrame().
void AP_Win32Dialog_Lists::_resetCustomValues | ( | ) | [private] |
References _enableControls(), _previewExposed(), _setDisplayedData(), AP_Dialog_Lists::fillUncustomizedValues(), and AP_Dialog_Lists::setDirty().
Referenced by _onCommand(), _onInitDialog(), and runModeless().
void AP_Win32Dialog_Lists::_selectFont | ( | ) | [private] |
References _enableControls(), _getTypeComboCurSel(), _previewExposed(), _win32Dialog, XAP_Dialog_FontChooser::a_OK, AP_Dialog_Lists::copyCharToFont(), XAP_Win32DialogHelper::enableControl(), XAP_Dialog_Modeless::getActiveFrame(), XAP_Dialog_FontChooser::getAnswer(), XAP_Dialog_FontChooser::getChangedFontFamily(), FV_View::getCharFormat(), XAP_Frame::getDialogFactory(), FV_View::getGraphics(), AP_Dialog_Modeless::getView(), PP_getAttribute(), XAP_DialogFactory::requestDialog(), XAP_Dialog_FontChooser::runModal(), s, XAP_Dialog_FontChooser::setColor(), AP_Dialog_Lists::setDirty(), XAP_Dialog_FontChooser::setFontDecoration(), XAP_Dialog_FontChooser::setFontFamily(), XAP_Dialog_FontChooser::setFontSize(), XAP_Dialog_FontChooser::setFontStyle(), XAP_Dialog_FontChooser::setFontWeight(), XAP_Dialog_FontChooser::setGraphicsContext(), UT_ASSERT_HARMLESS, UT_return_if_fail, and XAP_DIALOG_ID_FONT.
Referenced by _onCommand().
void AP_Win32Dialog_Lists::_setDisplayedData | ( | ) | [private] |
References _setListType(), _win32Dialog, XAP_Win32DialogHelper::enableControl(), AP_Dialog_Lists::getDecimal(), AP_Dialog_Lists::getDelim(), updateControlValue(), and UT_convertToDimensionlessString().
Referenced by _onApply(), _onInitDialog(), _resetCustomValues(), _styleChanged(), _typeChanged(), activate(), autoupdateLists(), notifyActiveFrame(), and runModeless().
void AP_Win32Dialog_Lists::_setFoldingComboCurSel | ( | int | iSel | ) | [private] |
References _win32Dialog, and XAP_Win32DialogHelper::selectComboItem().
Referenced by setFoldLevelInGUI().
void AP_Win32Dialog_Lists::_setListType | ( | FL_ListType | type | ) | [private] |
References _fillStyleList(), _setStyleComboCurSel(), _setTypeComboCurSel(), _win32Dialog, BULLETED_LIST, XAP_Win32DialogHelper::enableControl(), IS_BULLETED_LIST_TYPE, IS_NONE_LIST_TYPE, IS_NUMBERED_LIST_TYPE, OTHER_NUMBERED_LISTS, and UT_ASSERT_HARMLESS.
Referenced by _onCommand(), _setDisplayedData(), and _typeChanged().
void AP_Win32Dialog_Lists::_setStyleComboCurSel | ( | int | iSel | ) | [private] |
References _win32Dialog, and XAP_Win32DialogHelper::selectComboItem().
Referenced by _setListType().
void AP_Win32Dialog_Lists::_setTypeComboCurSel | ( | int | iSel | ) | [private] |
References _win32Dialog, and XAP_Win32DialogHelper::selectComboItem().
Referenced by _setListType().
void AP_Win32Dialog_Lists::_styleChanged | ( | ) | [private] |
References _enableControls(), _getListTypeFromCombos(), _previewExposed(), _setDisplayedData(), and AP_Dialog_Lists::setDirty().
Referenced by _onCommand(), and _typeChanged().
void AP_Win32Dialog_Lists::_typeChanged | ( | ) | [private] |
void AP_Win32Dialog_Lists::_updateCaption | ( | ) | [private] |
References _win32Dialog, AP_Dialog_Modeless::ConstructWindowName(), AP_Dialog_Lists::getWindowName(), and XAP_Win32DialogHelper::setDialogTitle().
Referenced by activate(), and notifyActiveFrame().
void AP_Win32Dialog_Lists::activate | ( | void | ) | [virtual] |
References _enableControls(), _previewExposed(), _setDisplayedData(), _updateCaption(), _win32Dialog, XAP_Win32DialogHelper::bringWindowToTop(), XAP_Win32DialogHelper::checkButton(), AP_Dialog_Lists::clearDirty(), AP_Dialog_Lists::isModal(), AP_Dialog_Lists::PopulateDialogData(), XAP_Win32DialogHelper::showWindow(), and UT_ASSERT_HARMLESS.
Referenced by _onInitDialog().
void AP_Win32Dialog_Lists::autoupdateLists | ( | UT_Worker * | pTimer | ) | [static] |
References _enableControls(), _setDisplayedData(), AP_Dialog_Lists::clearDirty(), AP_Dialog_Lists::getAvView(), UT_Worker::getInstanceData(), AP_Dialog_Lists::getTick(), AV_View::getTick(), AP_Dialog_Lists::isDirty(), AP_Dialog_Lists::PopulateDialogData(), AP_Dialog_Lists::setTick(), UT_ASSERT_HARMLESS, and UT_return_if_fail.
Referenced by _onInitDialog().
void AP_Win32Dialog_Lists::destroy | ( | void | ) | [virtual] |
References _win32Dialog, AP_Dialog_Lists::a_CLOSE, AP_Dialog_Lists::a_QUIT, XAP_Win32DialogHelper::destroyWindow(), AP_Dialog_Lists::isModal(), m_bDestroy_says_stopupdating, m_hThisDlg, m_pAutoUpdateLists, XAP_Dialog_Modeless::modeless_cleanup(), AP_Dialog_Lists::setAnswer(), and UT_Timer::stop().
Referenced by _onCommand().
bool AP_Win32Dialog_Lists::isPageLists | ( | void | ) | [virtual] |
References AP_Dialog_Lists::isModal().
void AP_Win32Dialog_Lists::notifyActiveFrame | ( | XAP_Frame * | pFrame | ) | [private, virtual] |
virtual void* AP_Win32Dialog_Lists::pGetWindowHandle | ( | ) | [inline, private, virtual] |
void AP_Win32Dialog_Lists::runModal | ( | XAP_Frame * | pFrame | ) | [virtual] |
void AP_Win32Dialog_Lists::runModeless | ( | XAP_Frame * | pFrame | ) | [virtual] |
void AP_Win32Dialog_Lists::setFoldLevelInGUI | ( | void | ) | [virtual] |
References _setFoldingComboCurSel(), and AP_Dialog_Lists::getCurrentFold().
Referenced by _onInitDialog().
XAP_Dialog * AP_Win32Dialog_Lists::static_constructor | ( | XAP_DialogFactory * | pFactory, | |
XAP_Dialog_Id | id | |||
) | [static] |
References AP_Win32Dialog_Lists().
Referenced by _onInitDialog().
Referenced by _enableControls(), _enableCustomControls(), _fillFoldingList(), _fillStyleList(), _fillTypeList(), _getDisplayedData(), _getFoldingComboCurSel(), _getStyleComboCurSel(), _getTypeComboCurSel(), _isApplyToCurrentChecked(), _isNewListChecked(), _isResumeListChecked(), _onApply(), _onCommand(), _onDeltaPos(), _onInitDialog(), _selectFont(), _setDisplayedData(), _setFoldingComboCurSel(), _setListType(), _setStyleComboCurSel(), _setTypeComboCurSel(), _typeChanged(), _updateCaption(), activate(), destroy(), notifyActiveFrame(), runModal(), and runModeless().
bool AP_Win32Dialog_Lists::m_bAutoUpdate_happening_now [private] |
bool AP_Win32Dialog_Lists::m_bDestroy_says_stopupdating [private] |
Referenced by _onInitDialog(), and destroy().
bool AP_Win32Dialog_Lists::m_bEnableCustomControls [private] |
HWND AP_Win32Dialog_Lists::m_hThisDlg [private] |
Referenced by _fillStyleList(), _onApply(), _onInitDialog(), _previewExposed(), destroy(), and runModeless().
UT_Timer* AP_Win32Dialog_Lists::m_pAutoUpdateLists [private] |
Referenced by _onInitDialog(), destroy(), and ~AP_Win32Dialog_Lists().
Referenced by _onInitDialog(), _previewExposed(), and ~AP_Win32Dialog_Lists().