diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-12-12 10:07:24 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-12-12 10:17:02 +0100 |
commit | ea5589dc61f12f949a2fe1a8dae02e6290bf4294 (patch) | |
tree | c1d58a118e6653b57bf6756712b61c7348ee8833 /sfx2 | |
parent | 95b42b099474c1f2b527c417a15a6b1bc08f7a9a (diff) |
Template manager: dialog has no parent to show 'X' button
Change-Id: I1d7806a125fb34000f588f0936b48dd7ce411356
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/templatedlg.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/appl/appopen.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/inc/templatedlg.hxx b/sfx2/inc/templatedlg.hxx index c0d1284249c5..ae2cb1697289 100644 --- a/sfx2/inc/templatedlg.hxx +++ b/sfx2/inc/templatedlg.hxx @@ -37,7 +37,7 @@ class SfxTemplateManagerDlg : public ModelessDialog { public: - SfxTemplateManagerDlg (Window *parent = NULL); + SfxTemplateManagerDlg (Window *parent = DIALOG_NO_PARENT); ~SfxTemplateManagerDlg (); diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx index afddf87e28fb..9a295b726c38 100644 --- a/sfx2/source/appl/appopen.cxx +++ b/sfx2/source/appl/appopen.cxx @@ -566,7 +566,7 @@ void SfxApplication::NewDocExec_Impl( SfxRequest& rReq ) sal_Bool bNewWin = sal_False; Window* pTopWin = GetTopWindow(); - SfxTemplateManagerDlg aTemplDlg(NULL); + SfxTemplateManagerDlg aTemplDlg; int nRet = aTemplDlg.Execute(); if ( nRet == RET_OK ) { diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 722c00fb42b4..7d313e7867de 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -863,7 +863,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) case SID_DOCTEMPLATE: { // save as document templates - SfxTemplateManagerDlg aDlg(NULL); + SfxTemplateManagerDlg aDlg; aDlg.setDocumentModel(GetModel()); aDlg.setSaveMode(true); aDlg.Execute(); |