From 4cc579ee792fbc81007bb8e0b31b6ae45429b349 Mon Sep 17 00:00:00 2001 From: Rafael Dominguez Date: Mon, 25 Jun 2012 14:10:04 -0430 Subject: Add missing argument to lcl_createTemplate. Change-Id: Icb19405a3fa0aad63f10181185f94872662247a6 --- sfx2/source/doc/templatedlg.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index f69e74c3cac7..39796dd60b63 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -41,7 +41,7 @@ using namespace ::com::sun::star; using namespace ::com::sun::star::beans; using namespace ::com::sun::star::frame; -void lcl_createTemplate(const FILTER_APPLICATION eApp); +void lcl_createTemplate(uno::Reference xDesktop, const FILTER_APPLICATION eApp); SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent) : ModalDialog(parent, SfxResId(DLG_TEMPLATE_MANAGER)), @@ -424,7 +424,8 @@ void SfxTemplateManagerDlg::OnTemplateDelete () } } -void lcl_createTemplate(const FILTER_APPLICATION eApp) +void lcl_createTemplate(uno::Reference< com::sun::star::frame::XComponentLoader > xDesktop, + const FILTER_APPLICATION eApp) { rtl::OUString aURL; @@ -449,7 +450,7 @@ void lcl_createTemplate(const FILTER_APPLICATION eApp) if (!aURL.isEmpty()) { uno::Sequence aArgs; - mxDesktop->loadComponentFromURL(aURL,rtl::OUString("_blank"), 0, aArgs ); + xDesktop->loadComponentFromURL(aURL,rtl::OUString("_blank"), 0, aArgs ); } } -- cgit