diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-12-03 10:30:57 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-12-03 10:37:15 +0100 |
commit | 3a5f4018d85d20d0a8ddcf8c3ab6792be239a4ab (patch) | |
tree | f4f3c13bc1af4a59832a98dd3601610758c1f539 /sfx2/source/appl | |
parent | ac4d26e3fc2728ee80f33a485540d50b48927ddc (diff) |
New template manager out of experimental features
Change-Id: Ieb6b590060b1ca7a497049e974909c9661f1cc14
Diffstat (limited to 'sfx2/source/appl')
-rw-r--r-- | sfx2/source/appl/appopen.cxx | 37 |
1 files changed, 8 insertions, 29 deletions
diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx index e7c0f6da1e62..6e11151071ae 100644 --- a/sfx2/source/appl/appopen.cxx +++ b/sfx2/source/appl/appopen.cxx @@ -566,37 +566,16 @@ void SfxApplication::NewDocExec_Impl( SfxRequest& rReq ) sal_Bool bNewWin = sal_False; Window* pTopWin = GetTopWindow(); - SvtMiscOptions aMiscOptions; - if ( !aMiscOptions.IsExperimentalMode() ) + SfxTemplateManagerDlg aTemplDlg(NULL); + int nRet = aTemplDlg.Execute(); + if ( nRet == RET_OK ) { - SvtDocumentTemplateDialog* pDocTemplDlg = new SvtDocumentTemplateDialog( NULL ); - int nRet = pDocTemplDlg->Execute(); - if ( nRet == RET_OK ) + rReq.Done(); + if ( pTopWin != GetTopWindow() ) { - rReq.Done(); - if ( pTopWin != GetTopWindow() ) - { - // the dialogue opens a document -> a new TopWindow appears - pTopWin = GetTopWindow(); - bNewWin = sal_True; - } - } - - delete pDocTemplDlg; - } - else - { - SfxTemplateManagerDlg aTemplDlg(NULL); - int nRet = aTemplDlg.Execute(); - if ( nRet == RET_OK ) - { - rReq.Done(); - if ( pTopWin != GetTopWindow() ) - { - // the dialogue opens a document -> a new TopWindow appears - pTopWin = GetTopWindow(); - bNewWin = sal_True; - } + // the dialogue opens a document -> a new TopWindow appears + pTopWin = GetTopWindow(); + bNewWin = sal_True; } } |