summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-26 14:00:23 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-08-26 15:36:52 +0100
commitfe7d0ea6436f9d8468c1729fcae8a0b3339abc44 (patch)
treecb2613274d5526e38ec83fe15f01db9aa5d44ced /sw/source/uibase
parent5d952d4208aa61b6bb0c20d36745d0554be7cec3 (diff)
convert sw use of template manager to new manager
this completes the conversion of resource hosted dialogs and tabpages to .ui gtkbuilder format Change-Id: Ic1b49d5560bfa47f287e04918c01daeebba28163
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/uiview/view2.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx
index c0b6e849fcfe..785bf63bfc7b 100644
--- a/sw/source/uibase/uiview/view2.cxx
+++ b/sw/source/uibase/uiview/view2.cxx
@@ -118,7 +118,7 @@
#include <app.hrc>
#include <fmtclds.hxx>
#include <helpid.h>
-#include <svtools/templdlg.hxx>
+#include <sfx2/templatedlg.hxx>
#include <dbconfig.hxx>
#include <dbmgr.hxx>
#include <reffld.hxx>
@@ -2438,10 +2438,9 @@ void SwView::GenerateFormLetter(bool bUseCurrentDocument)
// call documents and template dialog
SfxApplication* pSfxApp = SfxGetpApp();
Window* pTopWin = pSfxApp->GetTopWindow();
- boost::scoped_ptr<SvtDocumentTemplateDialog> pDocTemplDlg(new SvtDocumentTemplateDialog( pTopWin ));
- pDocTemplDlg->SelectTemplateFolder();
- int nRet = pDocTemplDlg->Execute();
+ SfxTemplateManagerDlg aDocTemplDlg;
+ int nRet = aDocTemplDlg.Execute();
bool bNewWin = false;
if ( nRet == RET_OK )
{
@@ -2453,7 +2452,6 @@ void SwView::GenerateFormLetter(bool bUseCurrentDocument)
}
}
- pDocTemplDlg.reset();
if ( bNewWin )
// after the destruction of the dialogue its parent comes to top,
// but we want that the new document is on top