summaryrefslogtreecommitdiff
path: root/chart2/qa
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-06-26 19:35:48 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-06-26 19:36:46 -0400
commitc6da1842956ceced501858d582f7dcaded0a324a (patch)
treed3a1a4b5197a73b91e4bc3e4f6c2968b83641ef5 /chart2/qa
parent95272e7e5b7e38753ab07dbd6503b7cfa2974842 (diff)
Track all uses of ErrorBarX and ErrorBarY UNO property names.
Change-Id: I994424c98d977c3a8f9138cccc17348de813a9d7
Diffstat (limited to 'chart2/qa')
-rw-r--r--chart2/qa/extras/chart2export.cxx6
-rw-r--r--chart2/qa/extras/chart2import.cxx8
-rw-r--r--chart2/qa/extras/charttest.hxx2
3 files changed, 9 insertions, 7 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx
index 80aab3069e06..7ef8dc7c2edf 100644
--- a/chart2/qa/extras/chart2export.cxx
+++ b/chart2/qa/extras/chart2export.cxx
@@ -436,7 +436,7 @@ void Chart2ExportTest::testErrorBarXLSX()
// test that y error bars are there
Reference< beans::XPropertySet > xErrorBarYProps;
- xPropSet->getPropertyValue("ErrorBarY") >>= xErrorBarYProps;
+ xPropSet->getPropertyValue(CHART_UNONAME_ERRORBAR_Y) >>= xErrorBarYProps;
testErrorBar(xErrorBarYProps);
}
@@ -453,7 +453,7 @@ void Chart2ExportTest::testErrorBarXLSX()
// test that y error bars are there
Reference< beans::XPropertySet > xErrorBarYProps;
- xPropSet->getPropertyValue("ErrorBarY") >>= xErrorBarYProps;
+ xPropSet->getPropertyValue(CHART_UNONAME_ERRORBAR_Y) >>= xErrorBarYProps;
testErrorBar(xErrorBarYProps);
}
}
@@ -832,7 +832,7 @@ void Chart2ExportTest::testErrorBarDataRangeODS()
// test that y error bars are there
Reference< beans::XPropertySet > xErrorBarYProps;
- xPropSet->getPropertyValue("ErrorBarY") >>= xErrorBarYProps;
+ xPropSet->getPropertyValue(CHART_UNONAME_ERRORBAR_Y) >>= xErrorBarYProps;
uno::Any aAny = xErrorBarYProps->getPropertyValue("ErrorBarRangePositive");
CPPUNIT_ASSERT(aAny.hasValue());
OUString aPosRange;
diff --git a/chart2/qa/extras/chart2import.cxx b/chart2/qa/extras/chart2import.cxx
index d5a42a1d9b0f..1f31cad1fdae 100644
--- a/chart2/qa/extras/chart2import.cxx
+++ b/chart2/qa/extras/chart2import.cxx
@@ -89,7 +89,7 @@ void Chart2ImportTest::Fdo60083()
// test that y error bars are there
Reference< beans::XPropertySet > xErrorBarYProps;
- xPropSet->getPropertyValue("ErrorBarY") >>= xErrorBarYProps;
+ xPropSet->getPropertyValue(CHART_UNONAME_ERRORBAR_Y) >>= xErrorBarYProps;
CPPUNIT_ASSERT(xErrorBarYProps.is());
{
sal_Int32 nErrorBarStyle;
@@ -121,7 +121,7 @@ void Chart2ImportTest::Fdo60083()
// test that x error bars are not imported
Reference< beans::XPropertySet > xErrorBarXProps;
- xPropSet->getPropertyValue("ErrorBarX") >>= xErrorBarXProps;
+ xPropSet->getPropertyValue(CHART_UNONAME_ERRORBAR_X) >>= xErrorBarXProps;
CPPUNIT_ASSERT(!xErrorBarXProps.is());
}
@@ -139,7 +139,7 @@ void Chart2ImportTest::testErrorBarRange()
// test that y error bars are there
Reference< beans::XPropertySet > xErrorBarYProps;
- xPropSet->getPropertyValue("ErrorBarY") >>= xErrorBarYProps;
+ xPropSet->getPropertyValue(CHART_UNONAME_ERRORBAR_Y) >>= xErrorBarYProps;
CPPUNIT_ASSERT(xErrorBarYProps.is());
sal_Int32 nErrorBarStyle;
@@ -169,7 +169,7 @@ void Chart2ImportTest::testErrorBarFormatting()
// test that y error bars are there
Reference< beans::XPropertySet > xErrorBarYProps;
- xPropSet->getPropertyValue("ErrorBarY") >>= xErrorBarYProps;
+ xPropSet->getPropertyValue(CHART_UNONAME_ERRORBAR_Y) >>= xErrorBarYProps;
CPPUNIT_ASSERT(xErrorBarYProps.is());
util::Color aColor(0);
diff --git a/chart2/qa/extras/charttest.hxx b/chart2/qa/extras/charttest.hxx
index e0969f4e037f..9728454289f7 100644
--- a/chart2/qa/extras/charttest.hxx
+++ b/chart2/qa/extras/charttest.hxx
@@ -49,6 +49,8 @@
#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
#include <com/sun/star/util/NumberFormat.hpp>
+#include <unonames.hxx>
+
#include <iostream>
#include <libxml/xmlwriter.h>