diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-22 14:34:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-22 14:35:44 +0200 |
commit | 03c3cd90930d6fb7d0f498e4b21871b1746d9b2d (patch) | |
tree | 2dc9f99f5fdf5c12152ebfb18dfb85cd3dbf059a /chart2 | |
parent | d664f279602ae6ea9275b222f3f33634aeec97b3 (diff) |
fix maybevoid attributes
..from commit d256dbede60533369d1aac64cca34721183f6a8a
"Convert chart2::Title service to new style"
Change-Id: Ib4b8a9126f1042c7d0b8cc07505444f25fe9c55a
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/model/main/Title.cxx | 8 | ||||
-rw-r--r-- | chart2/source/model/main/Title.hxx | 8 |
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)); } |