diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-01-02 20:49:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-01-03 07:46:45 +0100 |
commit | 7c36f46a1ea35633d64c44a2ee1e834b1f88cc8d (patch) | |
tree | 9cd0edfd08b67053ed5ff64e6d523166478baf34 /chart2/source/view/main/VButton.cxx | |
parent | 5f41e5741fa3abe59dd14a50e692d425eed472d5 (diff) |
add new SvxShape hierarchy class
to serve as a shared/common base class, so I can plumb
SvxShape types through chart2.
Change-Id: I8758fff1599c92a214b334ee44cf7b4e582c1915
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127873
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/view/main/VButton.cxx')
-rw-r--r-- | chart2/source/view/main/VButton.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chart2/source/view/main/VButton.cxx b/chart2/source/view/main/VButton.cxx index b28f42d6f52f..d19f3ef4fa0d 100644 --- a/chart2/source/view/main/VButton.cxx +++ b/chart2/source/view/main/VButton.cxx @@ -35,7 +35,7 @@ VButton::VButton() { } -void VButton::init(const uno::Reference<drawing::XShapes>& xTargetPage, +void VButton::init(const rtl::Reference<SvxShapeGroupAnyD>& xTargetPage, const uno::Reference<lang::XMultiServiceFactory>& xFactory) { m_xTarget = xTargetPage; @@ -102,8 +102,7 @@ void VButton::createShapes(const uno::Reference<beans::XPropertySet>& xTextProp) m_xShape->setPosition(m_aPosition); m_xShape->setSize(m_aSize); - uno::Reference<drawing::XShapes> xContainer(static_cast<cppu::OWeakObject*>(m_xShape.get()), - uno::UNO_QUERY_THROW); + rtl::Reference<SvxShapeGroupAnyD> xContainer = m_xShape; tPropertyNameValueMap aTextValueMap; aTextValueMap["CharHeight"] <<= 10.0f; |