#include <ap_Win32Dialog_Paragraph.h>
Public Member Functions | |
AP_Win32Dialog_Paragraph (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
virtual | ~AP_Win32Dialog_Paragraph (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) |
BOOL | _onDeltaPos (NM_UPDOWN *pnmud) |
BOOL | _onInitTab (HWND hWnd, WPARAM wParam, LPARAM lParam) |
virtual void | _syncControls (tControl changed, bool bAll=false) |
Static Protected Member Functions | |
static BOOL CALLBACK | s_tabProc (HWND, UINT, WPARAM, LPARAM) |
Protected Attributes | |
XAP_Win32PreviewWidget * | m_pPreviewWidget |
HWND | m_hwndDlg |
HWND | m_hwndTab |
HWND | m_hwndSpacing |
HWND | m_hwndBreaks |
bool | m_bEditChanged |
AP_Win32Dialog_Paragraph::AP_Win32Dialog_Paragraph | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
References m_bEditChanged, and m_pPreviewWidget.
Referenced by static_constructor().
AP_Win32Dialog_Paragraph::~AP_Win32Dialog_Paragraph | ( | void | ) | [virtual] |
References DELETEP, and m_pPreviewWidget.
BOOL AP_Win32Dialog_Paragraph::_onCommand | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [protected, virtual] |
Reimplemented from XAP_Win32DialogBase.
References _CHECK, _COMBO, _EDIT, AP_Dialog_Paragraph::id_CHECK_DOMDIRECTION, AP_Dialog_Paragraph::id_CHECK_KEEP_LINES, AP_Dialog_Paragraph::id_CHECK_KEEP_NEXT, AP_Dialog_Paragraph::id_CHECK_NO_HYPHENATE, AP_Dialog_Paragraph::id_CHECK_PAGE_BREAK, AP_Dialog_Paragraph::id_CHECK_SUPPRESS, AP_Dialog_Paragraph::id_CHECK_WIDOW_ORPHAN, AP_Dialog_Paragraph::id_MENU_ALIGNMENT, AP_Dialog_Paragraph::id_MENU_SPECIAL_INDENT, AP_Dialog_Paragraph::id_MENU_SPECIAL_SPACING, AP_Dialog_Paragraph::id_SPIN_AFTER_SPACING, AP_Dialog_Paragraph::id_SPIN_BEFORE_SPACING, AP_Dialog_Paragraph::id_SPIN_LEFT_INDENT, AP_Dialog_Paragraph::id_SPIN_RIGHT_INDENT, AP_Dialog_Paragraph::id_SPIN_SPECIAL_INDENT, AP_Dialog_Paragraph::id_SPIN_SPECIAL_SPACING, AP_Dialog_Paragraph::m_answer, and UT_DEBUGMSG.
Referenced by s_dlgProc(), and s_tabProc().
BOOL AP_Win32Dialog_Paragraph::_onDeltaPos | ( | NM_UPDOWN * | pnmud | ) | [protected, virtual] |
Reimplemented from XAP_Win32DialogBase.
References _SPIN, AP_Dialog_Paragraph::id_SPIN_AFTER_SPACING, AP_Dialog_Paragraph::id_SPIN_BEFORE_SPACING, AP_Dialog_Paragraph::id_SPIN_LEFT_INDENT, AP_Dialog_Paragraph::id_SPIN_RIGHT_INDENT, AP_Dialog_Paragraph::id_SPIN_SPECIAL_INDENT, AP_Dialog_Paragraph::id_SPIN_SPECIAL_SPACING, LEFT, m_hwndSpacing, RIGHT, UT_ASSERT_HARMLESS, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by s_tabProc().
BOOL AP_Win32Dialog_Paragraph::_onInitDialog | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [protected, virtual] |
Reimplemented from XAP_Win32DialogBase.
References _DS, _DSX, _GV, _syncControls(), UT_Win32LocaleString::c_str(), XAP_Win32DialogBase::centerDialog(), UT_Win32LocaleString::fromUTF8(), XAP_Win32App::getInstance(), XAP_App::getStringSet(), XAP_StringSet::getValue(), AP_Dialog_Paragraph::id_MENU_ALIGNMENT, m_hwndBreaks, m_hwndDlg, m_hwndSpacing, m_hwndTab, XAP_Dialog::m_pApp, _tabParam::pThis, s_tabProc(), XAP_Win32DialogBase::setDialogTitle(), UT_ASSERT_HARMLESS, UT_LockDlgRes(), and _tabParam::which.
Referenced by s_dlgProc().
BOOL AP_Win32Dialog_Paragraph::_onInitTab | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [protected] |
References _CAS, _CDB, AP_Dialog_Paragraph::_createPreviewFromGC(), _DS, AP_Dialog_Paragraph::_getMenuItemValue(), _SST, XAP_Win32PreviewWidget::getGraphics(), XAP_App::getStringSet(), XAP_Win32PreviewWidget::getWindowSize(), AP_Dialog_Paragraph::id_CHECK_DOMDIRECTION, AP_Dialog_Paragraph::id_CHECK_KEEP_LINES, AP_Dialog_Paragraph::id_CHECK_KEEP_NEXT, AP_Dialog_Paragraph::id_CHECK_NO_HYPHENATE, AP_Dialog_Paragraph::id_CHECK_PAGE_BREAK, AP_Dialog_Paragraph::id_CHECK_SUPPRESS, AP_Dialog_Paragraph::id_CHECK_WIDOW_ORPHAN, AP_Dialog_Paragraph::id_MENU_ALIGNMENT, AP_Dialog_Paragraph::id_MENU_SPECIAL_INDENT, AP_Dialog_Paragraph::id_MENU_SPECIAL_SPACING, AP_Dialog_Paragraph::id_SPIN_AFTER_SPACING, AP_Dialog_Paragraph::id_SPIN_BEFORE_SPACING, AP_Dialog_Paragraph::id_SPIN_LEFT_INDENT, AP_Dialog_Paragraph::id_SPIN_RIGHT_INDENT, AP_Dialog_Paragraph::id_SPIN_SPECIAL_INDENT, AP_Dialog_Paragraph::id_SPIN_SPECIAL_SPACING, m_hwndBreaks, m_hwndDlg, m_hwndSpacing, m_hwndTab, XAP_Dialog::m_pApp, AP_Dialog_Paragraph::m_paragraphPreview, m_pPreviewWidget, XAP_Win32PreviewWidget::setPreview(), UT_ASSERT_HARMLESS, UT_SHOULD_NOT_HAPPEN, and _tabParam::which.
Referenced by s_tabProc().
void AP_Win32Dialog_Paragraph::_syncControls | ( | tControl | changed, | |
bool | bAll = false | |||
) | [protected, virtual] |
References AP_Dialog_Paragraph::_getMenuItemValue(), AP_Dialog_Paragraph::_getSpinItemValue(), _syncSPIN, AP_Dialog_Paragraph::id_MENU_SPECIAL_INDENT, AP_Dialog_Paragraph::id_MENU_SPECIAL_SPACING, AP_Dialog_Paragraph::id_SPIN_AFTER_SPACING, AP_Dialog_Paragraph::id_SPIN_BEFORE_SPACING, AP_Dialog_Paragraph::id_SPIN_LEFT_INDENT, AP_Dialog_Paragraph::id_SPIN_RIGHT_INDENT, AP_Dialog_Paragraph::id_SPIN_SPECIAL_INDENT, AP_Dialog_Paragraph::id_SPIN_SPECIAL_SPACING, AP_Dialog_Paragraph::indent_FIRSTLINE, AP_Dialog_Paragraph::indent_NONE, m_hwndSpacing, AP_Dialog_Paragraph::spacing_DOUBLE, AP_Dialog_Paragraph::spacing_MULTIPLE, AP_Dialog_Paragraph::spacing_ONEANDHALF, and AP_Dialog_Paragraph::spacing_SINGLE.
Referenced by _onInitDialog().
void AP_Win32Dialog_Paragraph::runModal | ( | XAP_Frame * | pFrame | ) | [virtual] |
BOOL CALLBACK AP_Win32Dialog_Paragraph::s_dlgProc | ( | HWND | hWnd, | |
UINT | msg, | |||
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [static] |
Reimplemented from XAP_Win32DialogBase.
References _onCommand(), _onInitDialog(), code, GWL, m_hwndBreaks, m_hwndSpacing, m_hwndTab, XAP_Win32DialogBase::setHandle(), and SWL.
Referenced by runModal().
BOOL CALLBACK AP_Win32Dialog_Paragraph::s_tabProc | ( | HWND | hWnd, | |
UINT | msg, | |||
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [static, protected] |
References _onCommand(), _onDeltaPos(), _onInitTab(), code, GWL, _tabParam::pThis, and SWL.
Referenced by _onInitDialog().
XAP_Dialog * AP_Win32Dialog_Paragraph::static_constructor | ( | XAP_DialogFactory * | pFactory, | |
XAP_Dialog_Id | id | |||
) | [static] |
References AP_Win32Dialog_Paragraph().
bool AP_Win32Dialog_Paragraph::m_bEditChanged [protected] |
Referenced by AP_Win32Dialog_Paragraph().
HWND AP_Win32Dialog_Paragraph::m_hwndBreaks [protected] |
Referenced by _onInitDialog(), _onInitTab(), and s_dlgProc().
HWND AP_Win32Dialog_Paragraph::m_hwndDlg [protected] |
Referenced by _onInitDialog(), and _onInitTab().
HWND AP_Win32Dialog_Paragraph::m_hwndSpacing [protected] |
Referenced by _onDeltaPos(), _onInitDialog(), _onInitTab(), _syncControls(), and s_dlgProc().
HWND AP_Win32Dialog_Paragraph::m_hwndTab [protected] |
Referenced by _onInitDialog(), _onInitTab(), and s_dlgProc().
Referenced by _onInitTab(), AP_Win32Dialog_Paragraph(), and ~AP_Win32Dialog_Paragraph().