summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorPeter Rabi <prabi@caesar.elte.hu>2011-07-28 12:17:36 +0200
committerMichael Meeks <michael.meeks@novell.com>2011-07-29 15:25:56 +0100
commit131e582f86bb754ae11617baed2b5716be313bad (patch)
treeb97daf9ae70f60e57e2aea6e31511d668196c3c2 /sd
parent076df1e3a3aced76f844901787d2785e1825c0bc (diff)
Clean-up of bugfix fdo#32895 for the -3-4 branch
Contributed under license LGPLv3+/MPL. Signed-off-by: Michael Meeks <michael.meeks@novell.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/dlg/TemplateScanner.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/ui/dlg/TemplateScanner.cxx b/sd/source/ui/dlg/TemplateScanner.cxx
index e98618856fab..797c3c9e415a 100644
--- a/sd/source/ui/dlg/TemplateScanner.cxx
+++ b/sd/source/ui/dlg/TemplateScanner.cxx
@@ -40,6 +40,8 @@
#include <tools/debug.hxx>
#include <osl/mutex.hxx>
#include <vcl/svapp.hxx>
+#include <sfx2/doctempl.hxx>
+#include <sfx2/templatelocnames.hrc>
#include <com/sun/star/frame/XDocumentTemplates.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
@@ -266,7 +268,7 @@ TemplateScanner::State TemplateScanner::ScanEntry (void)
|| (sContentType == IMPRESS_XML_TEMPLATE)
|| (sContentType == IMPRESS_XML_TEMPLATE_B))
{
- ::rtl::OUString sLocalisedTitle = ConvertResourceString(
+ ::rtl::OUString sLocalisedTitle = SfxDocumentTemplates::ConvertResourceString(
STR_TEMPLATE_NAME1_DEF, STR_TEMPLATE_NAME1, NUM_TEMPLATE_NAMES, sTitle );
mpLastAddedEntry = new TemplateEntry(sLocalisedTitle, sTargetURL);
mpTemplateDirectory->maEntries.push_back(mpLastAddedEntry);