diff options
author | Andras Timar <atimar@suse.com> | 2011-07-22 21:53:52 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2011-07-22 21:53:52 +0200 |
commit | 255401622e4eea28a46c496de245c7318180598c (patch) | |
tree | cde44a82e9c00c6d40a0e114dd0241fd7c4bb0a6 /sd | |
parent | a8ef97f13b16a984d48450b05e4cb337f53a03a1 (diff) |
take strings from sfx<lang>.res, don't duplicate them in sd<lang>.res
Diffstat (limited to 'sd')
-rw-r--r-- | sd/AllLangResTarget_sd.mk | 1 | ||||
-rw-r--r-- | sd/source/ui/dlg/TemplateScanner.cxx | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sd/AllLangResTarget_sd.mk b/sd/AllLangResTarget_sd.mk index a6f256d00ee1..68a5c6bf1cee 100644 --- a/sd/AllLangResTarget_sd.mk +++ b/sd/AllLangResTarget_sd.mk @@ -93,7 +93,6 @@ $(eval $(call gb_SrsTarget_add_files,sd/res,\ sd/source/ui/slidesorter/view/SlsResource.src \ sd/source/ui/table/TableDesignPane.src \ sd/source/ui/view/DocumentRenderer.src \ - sfx2/source/doc/templatelocnames.src \ )) $(eval $(call gb_SrsTarget_add_templates,sd/res,\ diff --git a/sd/source/ui/dlg/TemplateScanner.cxx b/sd/source/ui/dlg/TemplateScanner.cxx index 0dd67622852e..e98618856fab 100644 --- a/sd/source/ui/dlg/TemplateScanner.cxx +++ b/sd/source/ui/dlg/TemplateScanner.cxx @@ -32,7 +32,7 @@ #include "TemplateScanner.hxx" #include <sfx2/templatelocnames.hrc> -#include "sdresid.hxx" +#include <sfx2/sfxresid.hxx> #include <comphelper/processfactory.hxx> #include <comphelper/documentconstants.hxx> @@ -504,9 +504,9 @@ const TemplateEntry* TemplateScanner::GetLastAddedEntry (void) const { for( int i = 0; i < nCount; ++i ) { - if( rString == ResId::toString( (const ResId)SdResId( (sal_uInt16)(nSourceResIds + i) ) ) ) + if( rString == ResId::toString( (const ResId)SfxResId( (sal_uInt16)(nSourceResIds + i) ) ) ) { - return ResId::toString( (const ResId)SdResId( (sal_uInt16)(nDestResIds + i) ) ); + return ResId::toString( (const ResId)SfxResId( (sal_uInt16)(nDestResIds + i) ) ); } } return rString; |