From 9134a9402610af7bff17b2bba9a4ba30e0b5a65f Mon Sep 17 00:00:00 2001 From: Gabor Kelemen <kelemeng@ubuntu.com> Date: Sat, 21 Apr 2018 21:50:09 +0200 Subject: Drop sdr::GetResourceString l10n method from svx A l10n wrapper method above another wrapper method above SvxResId. Just use plain SvxResId instead. Change-Id: I85276caa193c9a20f285e832764cd920df4af3fb Reviewed-on: https://gerrit.libreoffice.org/53273 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> --- include/svx/svdetc.hxx | 5 ----- sd/source/ui/animations/CustomAnimationPane.cxx | 8 ++++---- svx/source/svdraw/svdetc.cxx | 8 -------- 3 files changed, 4 insertions(+), 17 deletions(-) diff --git a/include/svx/svdetc.hxx b/include/svx/svdetc.hxx index 20d37c3c6d4f..c39e77b7d174 100644 --- a/include/svx/svdetc.hxx +++ b/include/svx/svdetc.hxx @@ -201,11 +201,6 @@ public: SVX_DLLPUBLIC SdrGlobalData & GetSdrGlobalData(); -namespace sdr -{ - SVX_DLLPUBLIC OUString GetResourceString(const char* pResID); -} - // #i101872# isolated GetTextEditBackgroundColor for tooling class SdrObjEditView; diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx index c0c5cf887d2c..01c5a1c9283f 100644 --- a/sd/source/ui/animations/CustomAnimationPane.cxx +++ b/sd/source/ui/animations/CustomAnimationPane.cxx @@ -76,8 +76,8 @@ #include <drawdoc.hxx> #include <app.hrc> -#include <svx/svdetc.hxx> #include <svx/strings.hrc> +#include <svx/dialmgr.hxx> #include <basegfx/polygon/b2dpolypolygontools.hxx> #include <basegfx/matrix/b2dhommatrix.hxx> #include <basegfx/range/b2drange.hxx> @@ -2211,9 +2211,9 @@ sal_uInt32 CustomAnimationPane::fillAnimationLB( bool bHasText ) { OUString sMotionPathLabel( SdResId( STR_CUSTOMANIMATION_USERPATH ) ); mpLBAnimation->InsertCategory( sMotionPathLabel ); - mnCurvePathPos = mpLBAnimation->InsertEntry( sdr::GetResourceString(STR_ObjNameSingulCOMBLINE) ); - mnPolygonPathPos = mpLBAnimation->InsertEntry( sdr::GetResourceString(STR_ObjNameSingulPOLY) ); - mnFreeformPathPos = mpLBAnimation->InsertEntry( sdr::GetResourceString(STR_ObjNameSingulFREELINE) ); + mnCurvePathPos = mpLBAnimation->InsertEntry( SvxResId(STR_ObjNameSingulCOMBLINE) ); + mnPolygonPathPos = mpLBAnimation->InsertEntry( SvxResId(STR_ObjNameSingulPOLY) ); + mnFreeformPathPos = mpLBAnimation->InsertEntry( SvxResId(STR_ObjNameSingulFREELINE) ); } while(aCategoryIter != aCategoryEnd) diff --git a/svx/source/svdraw/svdetc.cxx b/svx/source/svdraw/svdetc.cxx index 24479d6e8a06..b1ab9536c7d8 100644 --- a/svx/source/svdraw/svdetc.cxx +++ b/svx/source/svdraw/svdetc.cxx @@ -358,14 +358,6 @@ OUString ImpGetResStr(const char* pResID) return SvxResId(pResID); } -namespace sdr -{ - OUString GetResourceString(const char* pResID) - { - return ImpGetResStr(pResID); - } -} - bool SearchOutlinerItems(const SfxItemSet& rSet, bool bInklDefaults, bool* pbOnlyEE) { bool bHas=false; -- cgit