diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-01 17:25:30 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-29 08:09:25 +0100 |
commit | 5b23e59f035af0b28ee4f3532e4f29d52c58420d (patch) | |
tree | 9637661ff4829efb8e371796a7f9400d50617e84 /chart2 | |
parent | efaefc2e2ce3a6a14f9064cf77c19d8669ec5a52 (diff) |
add some code to list the properties for debugging
Change-Id: I0ebad4112899965dea0da9da44c5f4b7b444948e
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/DummyXShape.cxx | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx index 1c4e8b96f0f8..8d5f8faacbfc 100644 --- a/chart2/source/view/main/DummyXShape.cxx +++ b/chart2/source/view/main/DummyXShape.cxx @@ -25,7 +25,6 @@ #include <cppuhelper/supportsservice.hxx> #include <editeng/unoprnms.hxx> - #include <algorithm> using namespace com::sun::star; @@ -36,6 +35,23 @@ namespace chart { namespace dummy { +namespace { + +struct PrintProperties +{ + void operator()(const std::pair<OUString, uno::Any>& rProp) + { + SAL_WARN("chart2.opengl", "Property: " << rProp.first); + } +}; + +void debugProperties(std::map<OUString, uno::Any>& rProperties) +{ + for_each(rProperties.begin(), rProperties.end(), PrintProperties()); +} + +} + DummyXShape::DummyXShape(): mpParent(NULL) { @@ -355,6 +371,7 @@ DummyCircle::DummyCircle(const awt::Point& rPos, const awt::Size& rSize) void DummyCircle::render() { + debugProperties(maProperties); long color = 0x3465AF; DummyChart* pChart = getRootShape(); pChart->m_GLRender.SetColor(color); |