summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-05-22 14:34:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-05-23 09:48:52 +0200
commitab554c32e705ccdd6d67fceb215d18257399023c (patch)
tree0bdbe98185fad565dd2ffa542fd1ef3195a435b1 /chart2
parent90212f0a0cd42bb1895843ec6d66677f16bbb151 (diff)
fix maybevoid attributes
..from commit d256dbede60533369d1aac64cca34721183f6a8a "Convert chart2::Title service to new style" Change-Id: Ib4b8a9126f1042c7d0b8cc07505444f25fe9c55a (cherry picked from commit 03c3cd90930d6fb7d0f498e4b21871b1746d9b2d)
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/model/main/Title.cxx8
-rw-r--r--chart2/source/model/main/Title.hxx8
2 files changed, 8 insertions, 8 deletions
diff --git a/chart2/source/model/main/Title.cxx b/chart2/source/model/main/Title.cxx
index 5eb9686106c5..70db368d5abe 100644
--- a/chart2/source/model/main/Title.cxx
+++ b/chart2/source/model/main/Title.cxx
@@ -386,18 +386,18 @@ double Title::getPropertyDouble(const OUString& aPropertyName) throw (css::uno::
return b;
}
-awt::Size Title::getReferencePageSize() throw(css::uno::RuntimeException)
+beans::Optional<awt::Size> Title::getReferencePageSize() throw(css::uno::RuntimeException)
{
uno::Any any = getPropertyValue("ReferencePageSize");
- awt::Size b;
+ beans::Optional<awt::Size> b;
any >>= b;
return b;
}
-chart2::RelativePosition Title::getRelativePosition() throw(css::uno::RuntimeException)
+beans::Optional<chart2::RelativePosition> Title::getRelativePosition() throw(css::uno::RuntimeException)
{
uno::Any any = getPropertyValue("RelativePosition");
- chart2::RelativePosition b;
+ beans::Optional<chart2::RelativePosition> b;
any >>= b;
return b;
}
diff --git a/chart2/source/model/main/Title.hxx b/chart2/source/model/main/Title.hxx
index 32c7c1726576..62a2e0cd3e52 100644
--- a/chart2/source/model/main/Title.hxx
+++ b/chart2/source/model/main/Title.hxx
@@ -89,11 +89,11 @@ public:
{ return getPropertyBool("StackCharacters"); }
virtual void SAL_CALL setStackCharacters(sal_Bool p1) throw(css::uno::RuntimeException)
{ setPropertyBool("StackCharacters", p1); }
- virtual com::sun::star::chart2::RelativePosition SAL_CALL getRelativePosition() throw(css::uno::RuntimeException);
- virtual void SAL_CALL setRelativePosition(const com::sun::star::chart2::RelativePosition& p1) throw(css::uno::RuntimeException)
+ virtual css::beans::Optional<com::sun::star::chart2::RelativePosition> SAL_CALL getRelativePosition() throw(css::uno::RuntimeException);
+ virtual void SAL_CALL setRelativePosition(const css::beans::Optional<css::chart2::RelativePosition>& p1) throw(css::uno::RuntimeException)
{ setPropertyValue("RelativePosition", css::uno::Any(p1)); }
- virtual com::sun::star::awt::Size SAL_CALL getReferencePageSize() throw(css::uno::RuntimeException);
- virtual void SAL_CALL setReferencePageSize(const com::sun::star::awt::Size& p1) throw(css::uno::RuntimeException)
+ virtual css::beans::Optional<com::sun::star::awt::Size> SAL_CALL getReferencePageSize() throw(css::uno::RuntimeException);
+ virtual void SAL_CALL setReferencePageSize(const css::beans::Optional<css::awt::Size>& p1) throw(css::uno::RuntimeException)
{ setPropertyValue("ReferencePageSize", css::uno::Any(p1)); }