From 9220cf55396795cb710633aedb63f10e9edcaf9f Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Wed, 25 Apr 2012 23:12:24 -0400 Subject: Fixed API test. --- sc/source/ui/unoobj/fielduno.cxx | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/unoobj/fielduno.cxx b/sc/source/ui/unoobj/fielduno.cxx index ecc660ecb336..fcc5f3b13f13 100644 --- a/sc/source/ui/unoobj/fielduno.cxx +++ b/sc/source/ui/unoobj/fielduno.cxx @@ -778,17 +778,7 @@ uno::Any ScEditFieldObj::getPropertyValueURL(const rtl::OUString& rName) // anchor type is always "as character", text wrap always "none" - if (rName == SC_UNONAME_ANCTYPE) - aRet <<= text::TextContentAnchorType_AS_CHARACTER; - else if (rName == SC_UNONAME_ANCTYPES) - { - uno::Sequence aSeq(1); - aSeq[0] = text::TextContentAnchorType_AS_CHARACTER; - aRet <<= aSeq; - } - else if (rName == SC_UNONAME_TEXTWRAP) - aRet <<= text::WrapTextMode_NONE; - else if (mpEditSource) + if (mpEditSource) { //! Feld-Funktionen muessen an den Forwarder !!! ScEditEngineDefaulter* pEditEngine = mpEditSource->GetEditEngine(); @@ -1082,6 +1072,27 @@ uno::Any SAL_CALL ScEditFieldObj::getPropertyValue( const rtl::OUString& aProper uno::RuntimeException) { SolarMutexGuard aGuard; + if (aPropertyName == SC_UNONAME_ANCTYPE) + { + uno::Any aRet; + aRet <<= text::TextContentAnchorType_AS_CHARACTER; + return aRet; + } + else if (aPropertyName == SC_UNONAME_ANCTYPES) + { + uno::Any aRet; + uno::Sequence aSeq(1); + aSeq[0] = text::TextContentAnchorType_AS_CHARACTER; + aRet <<= aSeq; + return aRet; + } + else if (aPropertyName == SC_UNONAME_TEXTWRAP) + { + uno::Any aRet; + aRet <<= text::WrapTextMode_NONE; + return aRet; + } + switch (meType) { case URL: -- cgit