#include <ap_Win32Dialog_New.h>
Public Member Functions | |
AP_Win32Dialog_New (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
virtual | ~AP_Win32Dialog_New (void) |
virtual void | runModal (XAP_Frame *pFrame) |
Static Public Member Functions | |
static XAP_Dialog * | static_constructor (XAP_DialogFactory *, XAP_Dialog_Id id) |
Protected Member Functions | |
BOOL | _onInitDialog (HWND hWnd, WPARAM wParam, LPARAM lParam) |
BOOL | _onCommand (HWND hWnd, WPARAM wParam, LPARAM lParam) |
BOOL | _onDeltaPos (NM_UPDOWN *pnmud) |
void | _doChoose () |
void | _updateControls () |
void | _setFileName (UT_sint32 nIndex) |
Private Attributes | |
HWND | m_hThisDlg |
XAP_Win32DialogHelper | _win32Dialog |
XAP_Frame * | m_pFrame |
AP_Win32Dialog_New::AP_Win32Dialog_New | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
Referenced by static_constructor().
AP_Win32Dialog_New::~AP_Win32Dialog_New | ( | void | ) | [virtual] |
void AP_Win32Dialog_New::_doChoose | ( | ) | [protected] |
References _win32Dialog, IE_Imp::enumerateDlgLabels(), IE_Imp::fileTypeForSuffix(), FREEP, XAP_Dialog_FileOpenSaveAs::getAnswer(), XAP_Frame::getDialogFactory(), IE_Imp::getImporterCount(), XAP_Dialog_FileOpenSaveAs::getPathname(), m_pFrame, XAP_DialogFactory::requestDialog(), XAP_Dialog_FileOpenSaveAs::runModal(), XAP_Win32DialogHelper::setControlText(), XAP_Dialog_FileOpenSaveAs::setCurrentPathname(), XAP_Dialog_FileOpenSaveAs::setDefaultFileType(), AP_Dialog_New::setFileName(), XAP_Dialog_FileOpenSaveAs::setFileTypeList(), XAP_Dialog_FileOpenSaveAs::setSuggestFilename(), UT_ASSERT_HARMLESS, UT_calloc(), UT_go_filename_from_uri(), and UT_return_if_fail.
Referenced by _onCommand().
BOOL AP_Win32Dialog_New::_onCommand | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [protected, virtual] |
Reimplemented from XAP_Win32DialogBase.
References _doChoose(), _setFileName(), _updateControls(), _win32Dialog, AP_Dialog_New::a_CANCEL, AP_Dialog_New::a_OK, XAP_Win32DialogHelper::getListSelectedIndex(), AP_Dialog_New::open_Existing, AP_Dialog_New::open_Template, XAP_Win32DialogHelper::selectListItem(), AP_Dialog_New::setAnswer(), AP_Dialog_New::setOpenType(), and UT_DEBUGMSG.
BOOL AP_Win32Dialog_New::_onDeltaPos | ( | NM_UPDOWN * | pnmud | ) | [protected, virtual] |
Reimplemented from XAP_Win32DialogBase.
BOOL AP_Win32Dialog_New::_onInitDialog | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [protected, virtual] |
Reimplemented from XAP_Win32DialogBase.
References _DS, _DSX, _updateControls(), _win32Dialog, UT_Win32LocaleString::c_str(), UT_String::c_str(), UT_Win32LocaleString::fromLocale(), UT_Win32LocaleString::fromUTF8(), XAP_App::getAbiSuiteLibDir(), XAP_Dialog::getApp(), XAP_App::getStringSet(), XAP_App::getUserPrivateDirectory(), XAP_StringSet::getValue(), m_hThisDlg, XAP_Dialog::m_pApp, XAP_Win32DialogHelper::s_centerDialog(), XAP_Win32DialogHelper::setControlText(), XAP_Win32DialogHelper::setDialogTitle(), UT_UCS2String::size(), UT_Win32LocaleString::substr(), and UT_return_val_if_fail.
void AP_Win32Dialog_New::_setFileName | ( | UT_sint32 | nIndex | ) | [protected] |
References _win32Dialog, UT_String::c_str(), UT_Win32LocaleString::fromLocale(), XAP_App::getAbiSuiteLibDir(), XAP_Dialog::getApp(), XAP_Win32DialogHelper::getListText(), XAP_App::getUserPrivateDirectory(), m_hThisDlg, AP_Dialog_New::setFileName(), UT_ASSERT_HARMLESS, UT_go_filename_to_uri(), UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, UT_UTF8String::utf8_str(), and UT_Win32LocaleString::utf8_str().
Referenced by _onCommand().
void AP_Win32Dialog_New::_updateControls | ( | ) | [protected] |
void AP_Win32Dialog_New::runModal | ( | XAP_Frame * | pFrame | ) | [virtual] |
References _win32Dialog, AP_DIALOG_ID_FILE_NEW, m_pFrame, XAP_Win32DialogHelper::runModal(), and UT_ASSERT_HARMLESS.
XAP_Dialog * AP_Win32Dialog_New::static_constructor | ( | XAP_DialogFactory * | pFactory, | |
XAP_Dialog_Id | id | |||
) | [static] |
References AP_Win32Dialog_New().
Referenced by _doChoose(), _onCommand(), _onInitDialog(), _setFileName(), _updateControls(), and runModal().
HWND AP_Win32Dialog_New::m_hThisDlg [private] |
Referenced by _onInitDialog(), and _setFileName().
XAP_Frame* AP_Win32Dialog_New::m_pFrame [private] |
Referenced by _doChoose(), and runModal().