[Libreoffice-commits] .: Branch 'feature/template-dialog' - sfx2/source
Rafael Dominguez
rdominguez at kemper.freedesktop.org
Mon Jun 25 11:39:04 PDT 2012
sfx2/source/doc/templatedlg.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 4cc579ee792fbc81007bb8e0b31b6ae45429b349
Author: Rafael Dominguez <venccsralph at gmail.com>
Date: Mon Jun 25 14:10:04 2012 -0430
Add missing argument to lcl_createTemplate.
Change-Id: Icb19405a3fa0aad63f10181185f94872662247a6
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index f69e74c..39796dd 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<XComponentLoader> 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<PropertyValue> aArgs;
- mxDesktop->loadComponentFromURL(aURL,rtl::OUString("_blank"), 0, aArgs );
+ xDesktop->loadComponentFromURL(aURL,rtl::OUString("_blank"), 0, aArgs );
}
}
More information about the Libreoffice-commits
mailing list