#include <xap_Win32PropertySheet.h>
Public Member Functions | |
| XAP_Win32PropertySheet () | |
| int | runModal (XAP_Win32App *pWin32App, XAP_Frame *pFrame, XAP_String_Id nID=0) |
| int | runModeless (XAP_Win32App *pWin32App, XAP_Frame *pFrame, XAP_String_Id nID=0) |
| void | addPage (XAP_Win32PropertyPage *pPage) |
| PROPSHEETPAGEW * | _buildPageArray (void) |
| virtual void | _onInitDialog (HWND) |
| virtual void | destroy (void) |
| virtual void | cleanup (void) |
| HWND | getHandle () |
| void | setCallBack (PFNPROPSHEETCALLBACK pCallback) |
| void | setDialogProc (DLGPROC pfnDlgProc) |
| void | setApplyButton (bool b) |
| void | setOkButton (bool b) |
| void | setCancelButton (bool b) |
| virtual BOOL | _onCommand (HWND, WPARAM, LPARAM) |
| virtual void | _onOK () |
| virtual void | _onApply () |
| virtual void | _onCancel () |
Static Public Member Functions | |
| static INT_PTR CALLBACK | s_sheetWndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) |
Public Attributes | |
| int | m_nRslt |
Private Attributes | |
| HWND | m_hWnd |
| UT_Vector | m_vecPages |
| PROPSHEETHEADERW | m_psh |
| PFNPROPSHEETCALLBACK | m_pCallback |
| DLGPROC | m_pfnDlgProc |
| WHICHPROC | m_lpfnDefSheet |
| bool | m_bApplyButton |
| bool | m_bOkButton |
| bool | m_bCancelButton |
| PROPSHEETPAGEW * | m_pages |
| bool | m_modeless |
| XAP_Win32PropertySheet::XAP_Win32PropertySheet | ( | ) |
References m_lpfnDefSheet, m_modeless, m_pages, m_pCallback, m_pfnDlgProc, setApplyButton(), setCancelButton(), and setOkButton().
| PROPSHEETPAGEW * XAP_Win32PropertySheet::_buildPageArray | ( | void | ) |
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), XAP_Win32PropertyPage::getStruct(), and m_vecPages.
Referenced by runModal(), and runModeless().
| virtual void XAP_Win32PropertySheet::_onApply | ( | ) | [inline, virtual] |
Referenced by s_sheetWndProc().
| virtual void XAP_Win32PropertySheet::_onCancel | ( | ) | [inline, virtual] |
Referenced by s_sheetWndProc().
| virtual BOOL XAP_Win32PropertySheet::_onCommand | ( | HWND | , | |
| WPARAM | , | |||
| LPARAM | ||||
| ) | [inline, virtual] |
Reimplemented in AP_Win32Dialog_Options_Sheet.
Referenced by s_sheetWndProc().
| virtual void XAP_Win32PropertySheet::_onInitDialog | ( | HWND | ) | [inline, virtual] |
Reimplemented in AP_Win32Dialog_FormatTOC_Sheet, and AP_Win32Dialog_Options_Sheet.
Referenced by runModal(), and runModeless().
| virtual void XAP_Win32PropertySheet::_onOK | ( | ) | [inline, virtual] |
Reimplemented in AP_Win32Dialog_FormatTOC_Sheet.
Referenced by s_sheetWndProc().
| void XAP_Win32PropertySheet::addPage | ( | XAP_Win32PropertyPage * | pPage | ) |
| void XAP_Win32PropertySheet::cleanup | ( | void | ) | [virtual] |
Reimplemented in AP_Win32Dialog_FormatTOC_Sheet.
References m_pages.
Referenced by destroy(), and s_sheetWndProc().
| void XAP_Win32PropertySheet::destroy | ( | void | ) | [virtual] |
References cleanup(), m_hWnd, m_modeless, and m_psh.
Referenced by AP_Win32Dialog_FormatTOC_Sheet::_onOK(), runModal(), and s_sheetWndProc().
| HWND XAP_Win32PropertySheet::getHandle | ( | ) | [inline] |
| int XAP_Win32PropertySheet::runModal | ( | XAP_Win32App * | pWin32App, | |
| XAP_Frame * | pFrame, | |||
| XAP_String_Id | nID = 0 | |||
| ) |
References _buildPageArray(), _onInitDialog(), UT_Win32LocaleString::c_str(), destroy(), UT_Win32LocaleString::fromUTF8(), XAP_Frame::getFrameImpl(), XAP_Win32App::getInstance(), UT_GenericVector< T >::getItemCount(), XAP_Win32App::getStringSet(), XAP_StringSet::getValue(), m_bApplyButton, m_hWnd, m_lpfnDefSheet, m_nRslt, m_pages, m_pCallback, m_pfnDlgProc, m_psh, and m_vecPages.
Referenced by AP_Win32Dialog_PageSetup::runModal(), AP_Win32Dialog_Options::runModal(), and AP_Win32Dialog_MetaData::runModal().
| int XAP_Win32PropertySheet::runModeless | ( | XAP_Win32App * | pWin32App, | |
| XAP_Frame * | pFrame, | |||
| XAP_String_Id | nID = 0 | |||
| ) |
References _buildPageArray(), _onInitDialog(), UT_Win32LocaleString::c_str(), UT_Win32LocaleString::fromUTF8(), XAP_Frame::getFrameImpl(), XAP_Win32App::getInstance(), UT_GenericVector< T >::getItemCount(), XAP_Win32App::getStringSet(), XAP_StringSet::getValue(), ID_APPLY, m_bApplyButton, m_bCancelButton, m_bOkButton, m_hWnd, m_lpfnDefSheet, m_modeless, m_nRslt, m_pages, m_pCallback, m_pfnDlgProc, m_psh, m_vecPages, XAP_Win32DialogHelper::s_centerDialog(), and XAP_Win32DialogBase::setDlgItemText().
Referenced by AP_Win32Dialog_FormatTOC::runModeless().
| INT_PTR CALLBACK XAP_Win32PropertySheet::s_sheetWndProc | ( | HWND | hWnd, | |
| UINT | msg, | |||
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) | [static] |
| void XAP_Win32PropertySheet::setApplyButton | ( | bool | b | ) | [inline] |
| void XAP_Win32PropertySheet::setCallBack | ( | PFNPROPSHEETCALLBACK | pCallback | ) | [inline] |
| void XAP_Win32PropertySheet::setCancelButton | ( | bool | b | ) | [inline] |
Referenced by AP_Win32Dialog_FormatTOC::runModeless(), and XAP_Win32PropertySheet().
| void XAP_Win32PropertySheet::setDialogProc | ( | DLGPROC | pfnDlgProc | ) | [inline] |
| void XAP_Win32PropertySheet::setOkButton | ( | bool | b | ) | [inline] |
Referenced by AP_Win32Dialog_FormatTOC::runModeless(), and XAP_Win32PropertySheet().
bool XAP_Win32PropertySheet::m_bApplyButton [private] |
Referenced by runModal(), and runModeless().
bool XAP_Win32PropertySheet::m_bCancelButton [private] |
Referenced by runModeless().
bool XAP_Win32PropertySheet::m_bOkButton [private] |
Referenced by runModeless().
HWND XAP_Win32PropertySheet::m_hWnd [private] |
Referenced by destroy(), runModal(), and runModeless().
WHICHPROC XAP_Win32PropertySheet::m_lpfnDefSheet [private] |
Referenced by runModal(), runModeless(), s_sheetWndProc(), and XAP_Win32PropertySheet().
bool XAP_Win32PropertySheet::m_modeless [private] |
Referenced by destroy(), runModeless(), s_sheetWndProc(), and XAP_Win32PropertySheet().
Referenced by runModal(), runModeless(), and s_sheetWndProc().
PROPSHEETPAGEW* XAP_Win32PropertySheet::m_pages [private] |
Referenced by cleanup(), runModal(), runModeless(), and XAP_Win32PropertySheet().
PFNPROPSHEETCALLBACK XAP_Win32PropertySheet::m_pCallback [private] |
Referenced by runModal(), runModeless(), and XAP_Win32PropertySheet().
DLGPROC XAP_Win32PropertySheet::m_pfnDlgProc [private] |
Referenced by runModal(), runModeless(), and XAP_Win32PropertySheet().
PROPSHEETHEADERW XAP_Win32PropertySheet::m_psh [private] |
Referenced by destroy(), runModal(), and runModeless().
UT_Vector XAP_Win32PropertySheet::m_vecPages [private] |
Referenced by _buildPageArray(), addPage(), runModal(), runModeless(), and s_sheetWndProc().
1.7.1