void AP_Win32Dialog_MailMerge::runModeless(XAP_Frame * pFrame) { UT_return_if_fail (pFrame); UT_return_if_fail (m_id == AP_DIALOG_ID_MAILMERGE); createModeless(pFrame, MAKEINTRESOURCEW(AP_RID_DIALOG_MAILMERGE)); // Save dialog the ID number and pointer to the widget m_pFrame = pFrame; UT_sint32 sid =(UT_sint32) getDialogId(); m_pApp->rememberModelessId( sid, (XAP_Dialog_Modeless *) m_pDialog); }
void AP_Win32Dialog_MergeCells::runModeless(XAP_Frame * pFrame) { UT_return_if_fail (pFrame); UT_return_if_fail (m_id == AP_DIALOG_ID_MERGE_CELLS); createModeless(pFrame, MAKEINTRESOURCEW(AP_RID_DIALOG_MERGECELLS)); // Save dialog the ID number and pointer to the widget UT_sint32 sid =(UT_sint32) getDialogId(); m_pApp->rememberModelessId( sid, (XAP_Dialog_Modeless *) m_pDialog); startUpdater(); }
void XAP_Win32Dialog_Insert_Symbol::runModeless(XAP_Frame * pFrame) { UT_ASSERT(pFrame); UT_ASSERT(m_id == XAP_DIALOG_ID_INSERT_SYMBOL); setDialog(this); HWND hWndDialog = createModeless( pFrame, MAKEINTRESOURCE(XAP_RID_DIALOG_INSERT_SYMBOL) ); UT_ASSERT((hWndDialog != NULL)); ShowWindow(hWndDialog, SW_SHOW); m_pApp->rememberModelessId(m_id, this); }
void AP_Win32Dialog_Latex::runModeless(XAP_Frame * pFrame) { UT_return_if_fail(pFrame); UT_return_if_fail(m_id == AP_DIALOG_ID_LATEX); setDialog(this); HWND hWndDialog = createModeless( pFrame, MAKEINTRESOURCEW(AP_RID_DIALOG_LATEX) ); UT_return_if_fail((hWndDialog != NULL)); ShowWindow(hWndDialog, SW_SHOW); m_pApp->rememberModelessId(m_id, this); }
void AP_Win32Dialog_FormatFrame::runModeless(XAP_Frame * pFrame) { UT_return_if_fail (pFrame); UT_return_if_fail (m_id == AP_DIALOG_ID_FORMAT_FRAME); createModeless(pFrame, MAKEINTRESOURCEW(AP_RID_DIALOG_FORMATFRAME)); // Save dialog the ID number and pointer to the widget UT_sint32 sid =(UT_sint32) getDialogId(); m_pApp->rememberModelessId( sid, (XAP_Dialog_Modeless *) m_pDialog); ShowWindow(m_hDlg, SW_SHOW); BringWindowToTop(m_hDlg); }
void AP_Win32Dialog_Stylist::runModeless(XAP_Frame * pFrame) { // raise the dialog int iResult; XAP_Win32App * pWin32App = static_cast<XAP_Win32App *>(m_pApp); m_bIsModal = false; UT_return_if_fail (m_id == AP_DIALOG_ID_STYLIST); createModeless (pFrame, MAKEINTRESOURCEW(AP_RID_DIALOG_STYLIST)); // Save dialog the ID number and pointer to the widget UT_sint32 sid =(UT_sint32) getDialogId(); m_pApp->rememberModelessId( sid, (XAP_Dialog_Modeless *) m_pDialog); iResult = ShowWindow( m_hDlg, SW_SHOW ); iResult = BringWindowToTop( m_hDlg ); UT_ASSERT_HARMLESS((iResult != 0)); }