#include <xap_DialogFactory.h>
XAP_DialogFactory::XAP_DialogFactory | ( | XAP_App * | pApp, | |
int | nrElem, | |||
const struct _dlg_table * | pDlgTable, | |||
XAP_Frame * | pFrame = NULL | |||
) |
XAP_DialogFactory::~XAP_DialogFactory | ( | void | ) | [virtual] |
References m_vecDialogs, m_vecDynamicTable, and UT_VECTOR_PURGEALL.
bool XAP_DialogFactory::_findDialogInTable | ( | XAP_Dialog_Id | id, | |
UT_sint32 * | pIndex | |||
) | const [protected] |
void XAP_DialogFactory::addPages | ( | XAP_NotebookDialog * | pDialog, | |
XAP_Dialog_Id | id | |||
) | [private] |
Add registered pages to the dialog instance.
References XAP_NotebookDialog::addPage(), and s_mapNotebookPages.
Referenced by requestDialog().
XAP_App* XAP_DialogFactory::getApp | ( | void | ) | const [inline] |
XAP_Dialog_Id XAP_DialogFactory::getNextId | ( | void | ) |
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), XAP_DialogFactory::_dlg_table::m_id, and m_vec_dlg_table.
Referenced by registerDialog().
XAP_Dialog * XAP_DialogFactory::justMakeTheDialog | ( | XAP_Dialog_Id | id | ) |
This method just creates a new instance of the dialog without remembering anything about it. It's up the to calling prgram to delete the dialog when it is finished with it.
XAP_Dialog_Id | id the identification number of the dialog. |
References _findDialogInTable(), UT_GenericVector< T >::getNthItem(), XAP_DialogFactory::_dlg_table::m_pfnStaticConstructor, and m_vec_dlg_table.
Referenced by AP_Dialog_FormatTOC::getNewStyle(), and AP_Dialog_Styles::ModifyLists().
XAP_Dialog_Id XAP_DialogFactory::registerDialog | ( | XAP_Dialog *(*)(XAP_DialogFactory *, XAP_Dialog_Id id) | pStaticConstructor, | |
XAP_Dialog_Type | iDialogType | |||
) |
References UT_GenericVector< T >::addItem(), getNextId(), XAP_DialogFactory::_dlg_table::m_id, XAP_DialogFactory::_dlg_table::m_pfnStaticConstructor, XAP_DialogFactory::_dlg_table::m_tabbed, XAP_DialogFactory::_dlg_table::m_type, m_vec_dlg_table, and m_vecDynamicTable.
Referenced by ServiceAccountHandler::getDialogGenericInputId(), ServiceAccountHandler::getDialogGenericProgressId(), IE_Exp_EPUB::registerDialogs(), and AbiCollabSessionManager::registerDialogs().
bool XAP_DialogFactory::registerNotebookPage | ( | XAP_Dialog_Id | dialog, | |
const XAP_NotebookDialog::Page * | page | |||
) |
Add a notebook page to a builtin dialog.
References s_mapNotebookPages, UT_ASSERT_HARMLESS, and UT_SHOULD_NOT_HAPPEN.
void XAP_DialogFactory::releaseDialog | ( | XAP_Dialog * | pDialog | ) |
References _findDialogInTable(), getApp(), XAP_App::getDialogFactory(), XAP_Dialog::getDialogId(), UT_GenericVector< T >::getNthItem(), m_dialogType, XAP_DialogFactory::_dlg_table::m_type, m_vec_dlg_table, releaseDialog(), XAP_Dialog_Persistent::useEnd(), UT_ASSERT_HARMLESS, UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, XAP_DLGT_APP_PERSISTENT, XAP_DLGT_FRAME_PERSISTENT, XAP_DLGT_MODELESS, and XAP_DLGT_NON_PERSISTENT.
Referenced by IE_Imp_Text::_doEncodingDialog(), IE_Exp_Text::_doEncodingDialog(), IE_Exp_HTML::_doOptions(), AP_Dialog_CollaborationJoin::_eventAddBuddy(), _getPassword(), XAP_Dialog_Print::_getPrintToFilePathname(), _getTranslationCode(), AP_Win32Dialog_Options_General::_onCommand(), ServiceAccountHandler::_openDocumentSlave(), ServiceAccountHandler::askFilename(), AP_Dialog_FormatTable::askForGraphicPathName(), AP_Dialog_FormatFrame::askForGraphicPathName(), ServiceAccountHandler::askPassword(), FV_View::cmdEditAnnotationWithDialog(), AP_Dialog_CollaborationAccounts::createEditAccount(), AP_Dialog_CollaborationAccounts::createNewAccount(), Defun(), Defun1(), dlgEditLatexEquation(), IE_Exp_EPUB::doOptions(), XAP_Win32Dialog_PluginManager::event_Load(), XAP_UnixDialog_PluginManager::event_Load(), XAP_CocoaDialog_PluginManager::event_Load, AP_UnixDialog_New::event_ToggleOpenExisting(), AP_CocoaDialog_New::event_ToggleOpenExisting, AP_Dialog_MailMerge::eventOpen(), getFileName(), AP_Dialog_FormatTOC::getNewStyle(), insertAnnotation(), FV_View::killAnnotationPreview(), LoadBindingsDlg_invoke(), XAP_Dialog_Modeless::modeless_cleanup(), AP_Dialog_Styles::ModifyFont(), AP_Dialog_Styles::ModifyLang(), AP_Dialog_Styles::ModifyParagraph(), AP_Dialog_Styles::ModifyTabs(), EV_Win32Toolbar::onDropArrow(), AbiCommand::printFiles(), releaseDialog(), InterruptableAsyncWorker< T >::run(), UT_runDialog_AskForPathname::run(), s_abicollab_accounts(), s_abicollab_join(), s_abicollab_offer(), s_AskForGOComponentPathname(), s_AskForGraphicPathname(), s_AskForMathMLPathname(), s_AskForPathname(), s_AskForScriptName(), s_doAboutDlg(), s_doBookmarkDlg(), s_doBreakDlg(), s_doField(), s_doFontDlg(), s_doFormatImageDlg(), s_doHyperlinkDlg(), s_doInsertDateTime(), s_doInsertPageNumbers(), s_doInsertTableDlg(), s_doLangDlg(), s_doListDocuments(), s_doListRevisions(), s_doMarkRevisions(), s_doMoreWindowsDlg(), s_doOptionsDlg(), s_doParagraphDlg(), s_doPrint(), s_doStylesDlg(), s_doTabDlg(), s_doToggleCase(), s_doZoomDlg(), s_xmlidDlg(), AP_CocoaPlugin_Document::selectMailMergeSource, and AD_Document::showHistory().
XAP_Dialog * XAP_DialogFactory::requestDialog | ( | XAP_Dialog_Id | id | ) |
References _findDialogInTable(), UT_GenericVector< T >::addItem(), addPages(), d, UT_GenericVector< T >::findItem(), getApp(), XAP_App::getDialogFactory(), UT_GenericVector< T >::getNthItem(), m_dialogType, XAP_DialogFactory::_dlg_table::m_pfnStaticConstructor, XAP_DialogFactory::_dlg_table::m_tabbed, XAP_DialogFactory::_dlg_table::m_type, m_vec_dlg_table, m_vecDialogIds, m_vecDialogs, requestDialog(), XAP_Dialog_Persistent::useStart(), UT_ASSERT, XAP_DLGT_APP_PERSISTENT, XAP_DLGT_FRAME_PERSISTENT, XAP_DLGT_MODELESS, and XAP_DLGT_NON_PERSISTENT.
Referenced by AP_Win32Dialog_New::_doChoose(), IE_Imp_Text::_doEncodingDialog(), IE_Exp_Text::_doEncodingDialog(), IE_Exp_HTML::_doOptions(), AP_Dialog_CollaborationJoin::_eventAddBuddy(), _getPassword(), XAP_Dialog_Print::_getPrintToFilePathname(), _getTranslationCode(), AP_Win32Dialog_Options_General::_onCommand(), ServiceAccountHandler::_openDocumentSlave(), AP_Win32Dialog_Lists::_selectFont(), AbiMathView_LatexInsert(), ServiceAccountHandler::askFilename(), AP_Dialog_FormatTable::askForGraphicPathName(), AP_Dialog_FormatFrame::askForGraphicPathName(), ServiceAccountHandler::askPassword(), FV_View::cmdEditAnnotationWithDialog(), AP_Dialog_CollaborationAccounts::createEditAccount(), XAP_Frame::createMessageBox(), AP_Dialog_CollaborationAccounts::createNewAccount(), Defun(), Defun1(), dlgEditLatexEquation(), IE_Exp_EPUB::doOptions(), XAP_Win32Dialog_PluginManager::event_Load(), XAP_UnixDialog_PluginManager::event_Load(), XAP_CocoaDialog_PluginManager::event_Load, AP_UnixDialog_New::event_ToggleOpenExisting(), AP_CocoaDialog_New::event_ToggleOpenExisting, AP_Dialog_MailMerge::eventOpen(), getFileName(), insertAnnotation(), FV_View::killAnnotationPreview(), LoadBindingsDlg_invoke(), AP_Dialog_Styles::ModifyFont(), AP_Dialog_Styles::ModifyLang(), AP_Dialog_Styles::ModifyParagraph(), AP_Dialog_Styles::ModifyTabs(), EV_Win32Toolbar::onDropArrow(), AbiCommand::printFiles(), requestDialog(), InterruptableAsyncWorker< T >::run(), UT_runDialog_AskForPathname::run(), s_abicollab_accounts(), s_abicollab_join(), s_abicollab_offer(), s_AskForGOComponentPathname(), s_AskForGraphicPathname(), s_AskForMathMLPathname(), s_AskForPathname(), s_AskForScriptName(), s_doAboutDlg(), s_doBookmarkDlg(), s_doBorderShadingDlg(), s_doBreakDlg(), s_doBullets(), s_doField(), s_doFindOrFindReplaceDlg(), s_doFontDlg(), s_doFormatImageDlg(), s_doFormatTableDlg(), s_doGotoDlg(), s_doHyperlinkDlg(), s_doInsertDateTime(), s_doInsertPageNumbers(), s_doInsertTableDlg(), s_doLangDlg(), s_doListDocuments(), s_doListRevisions(), s_doMarkRevisions(), s_doMergeCellsDlg(), s_doMoreWindowsDlg(), s_doOptionsDlg(), s_doParagraphDlg(), s_doPrint(), s_doRDFEditorDlg(), s_doRDFQueryDlg(), s_doSplitCellsDlg(), s_doStylesDlg(), s_doTabDlg(), s_doToggleCase(), s_doWordCountDlg(), s_doZoomDlg(), s_InsertSymbolDlg(), s_xmlidDlg(), AP_CocoaPlugin_Document::selectMailMergeSource, and AD_Document::showHistory().
void XAP_DialogFactory::unregisterDialog | ( | XAP_Dialog_Id | id | ) |
bool XAP_DialogFactory::unregisterNotebookPage | ( | XAP_Dialog_Id | dialog, | |
const XAP_NotebookDialog::Page * | page | |||
) |
Remove a previously added page from a dialog.
References s_mapNotebookPages.
XAP_Dialog_Type XAP_DialogFactory::m_dialogType [protected] |
Referenced by releaseDialog(), and requestDialog().
UT_uint32 XAP_DialogFactory::m_nrElementsDlgTable [protected] |
XAP_App* XAP_DialogFactory::m_pApp [protected] |
XAP_Frame* XAP_DialogFactory::m_pFrame [protected] |
UT_GenericVector<const _dlg_table *> XAP_DialogFactory::m_vec_dlg_table [protected] |
Referenced by _findDialogInTable(), getNextId(), justMakeTheDialog(), registerDialog(), releaseDialog(), requestDialog(), and XAP_DialogFactory().
UT_NumberVector XAP_DialogFactory::m_vecDialogIds [protected] |
Referenced by requestDialog(), and unregisterDialog().
UT_Vector XAP_DialogFactory::m_vecDialogs [protected] |
Referenced by requestDialog(), unregisterDialog(), and ~XAP_DialogFactory().
UT_GenericVector<_dlg_table *> XAP_DialogFactory::m_vecDynamicTable [protected] |
Referenced by registerDialog(), and ~XAP_DialogFactory().