summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorPeter Rabi <prabi@caesar.elte.hu>2011-08-01 09:59:13 +0200
committerAndras Timar <atimar@suse.com>2011-08-01 10:31:34 +0200
commit8b8fee622c29e4d793670c2a6aad91c5dd9549a4 (patch)
tree984c5cb4a8e57194b356a471683525231f9bb849 /sd
parenta06dae5f80493bc1c98ce8d32b97ad53abcf2f01 (diff)
Clean-up of bugfix fdo#32895 for the master branch
Contributed under license LGPLv3+/MPL.
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/dlg/TemplateScanner.cxx19
-rw-r--r--sd/source/ui/inc/TemplateScanner.hxx14
2 files changed, 0 insertions, 33 deletions
diff --git a/sd/source/ui/dlg/TemplateScanner.cxx b/sd/source/ui/dlg/TemplateScanner.cxx
index 797c3c9e415a..d1b75d04a957 100644
--- a/sd/source/ui/dlg/TemplateScanner.cxx
+++ b/sd/source/ui/dlg/TemplateScanner.cxx
@@ -31,9 +31,6 @@
#include "TemplateScanner.hxx"
-#include <sfx2/templatelocnames.hrc>
-#include <sfx2/sfxresid.hxx>
-
#include <comphelper/processfactory.hxx>
#include <comphelper/documentconstants.hxx>
@@ -498,22 +495,6 @@ const TemplateEntry* TemplateScanner::GetLastAddedEntry (void) const
return mpLastAddedEntry;
}
-
-
-
-::rtl::OUString TemplateScanner::ConvertResourceString (
- int nSourceResIds, int nDestResIds, int nCount, const ::rtl::OUString& rString )
-{
- for( int i = 0; i < nCount; ++i )
- {
- if( rString == ResId::toString( (const ResId)SfxResId( (sal_uInt16)(nSourceResIds + i) ) ) )
- {
- return ResId::toString( (const ResId)SfxResId( (sal_uInt16)(nDestResIds + i) ) );
- }
- }
- return rString;
-}
-
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/source/ui/inc/TemplateScanner.hxx b/sd/source/ui/inc/TemplateScanner.hxx
index 87141fa286bc..86c862a298cf 100644
--- a/sd/source/ui/inc/TemplateScanner.hxx
+++ b/sd/source/ui/inc/TemplateScanner.hxx
@@ -214,20 +214,6 @@ private:
Returns one of the states ERROR, SCAN_ENTRY, or SCAN_FOLDER.
*/
State ScanEntry (void);
-
- /** Convert a resource string - a template name - to its localised pair if it exists.
- @param nSourceResIds
- Resource ID where the list of original en-US template names begin.
- @param nDestResIds
- Resource ID where the list of localised template names begin.
- @param nCount
- The number of names that have been localised.
- @param rString
- Name to be translated.
- @return
- The localised pair of rString or rString if the former does not exist.
- */
- ::rtl::OUString ConvertResourceString ( int nSourceResIds, int nDestResIds, int nCount, const ::rtl::OUString& rString );
};
} // end of namespace sd