summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-03-27 03:24:35 +0100
committerJan Holesovsky <kendy@collabora.com>2015-04-09 11:39:26 +0200
commitd776e6ddeed09bbff17679e9946ae75ab588f12c (patch)
treeedec666da2870c30e983f69f019b5a5d0c36b686
parentfix getPropertyValue/setPropertyValue for ScCondFormatEntry UNO object (diff)
downloadcore-d776e6ddeed09bbff17679e9946ae75ab588f12c.tar.gz
core-d776e6ddeed09bbff17679e9946ae75ab588f12c.zip
implement some more properties for databars
Change-Id: Ib6c7f4f316ff49d433c8810ef9a7bbfe64c0576d
-rw-r--r--sc/source/ui/unoobj/condformatuno.cxx17
1 files changed, 17 insertions, 0 deletions
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;
}
}