From d776e6ddeed09bbff17679e9946ae75ab588f12c Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 27 Mar 2015 03:24:35 +0100 Subject: implement some more properties for databars Change-Id: Ib6c7f4f316ff49d433c8810ef9a7bbfe64c0576d --- sc/source/ui/unoobj/condformatuno.cxx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/sc/source/ui/unoobj/condformatuno.cxx b/sc/source/ui/unoobj/condformatuno.cxx index 9aad8552a66f..9a3876bfbd5c 100644 --- a/sc/source/ui/unoobj/condformatuno.cxx +++ b/sc/source/ui/unoobj/condformatuno.cxx @@ -788,6 +788,19 @@ void SAL_CALL ScDataBarFormatObj::setPropertyValue( { case AxisPosition: { + sal_Int32 nVal; + if (aValue >>= nVal) + { + for (size_t i = 0; i < SAL_N_ELEMENTS(aDataBarAxisMap); ++i) + { + if (aDataBarAxisMap[i].nApiPos == nVal) + { + getCoreObject()->GetDataBarData()->meAxisPosition = + aDataBarAxisMap[i].ePos; + break; + } + } + } } break; case UseGradient: @@ -1038,6 +1051,10 @@ void SAL_CALL ScIconSetFormatObj::setPropertyValue( getCoreObject()->GetIconSetData()->eIconSetType = eType; } break; + case IconSetEntries: + break; + default: + break; } } -- cgit