[Libreoffice-commits] .: Branch 'feature/template-dialog' - sfx2/source
Cédric Bosdonnat
cbosdo at kemper.freedesktop.org
Tue Jul 3 11:23:28 PDT 2012
sfx2/source/doc/templatedlg.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 71d8a8de222b160cc0a3a1a3eaa2a8c4da34e5b6
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
Date: Tue Jul 3 20:24:18 2012 +0200
templates dlg: close window and use _default target for template creation
Change-Id: Icc9d7acca1669620b53bdc634a3d188323ee9440
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 60e68a6..4488bc9 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -419,15 +419,19 @@ IMPL_LINK(SfxTemplateManagerDlg, MenuSelectHdl, Menu*, pMenu)
{
case MNI_CREATE_TEXT:
lcl_createTemplate(mxDesktop,FILTER_APP_WRITER);
+ Close( );
break;
case MNI_CREATE_SHEET:
lcl_createTemplate(mxDesktop,FILTER_APP_CALC);
+ Close( );
break;
case MNI_CREATE_PRESENT:
lcl_createTemplate(mxDesktop,FILTER_APP_IMPRESS);
+ Close( );
break;
case MNI_CREATE_DRAW:
lcl_createTemplate(mxDesktop,FILTER_APP_DRAW);
+ Close( );
break;
case MNI_ACTION_SORT_NAME:
if (maView->isOverlayVisible())
@@ -662,7 +666,7 @@ void lcl_createTemplate(uno::Reference< com::sun::star::frame::XComponentLoader
if (!aURL.isEmpty())
{
uno::Sequence<PropertyValue> aArgs;
- xDesktop->loadComponentFromURL(aURL,rtl::OUString("_blank"), 0, aArgs );
+ xDesktop->loadComponentFromURL(aURL,rtl::OUString("_default"), 0, aArgs );
}
}
More information about the Libreoffice-commits
mailing list