summaryrefslogtreecommitdiff
path: root/chart2/source/view/main/VLegend.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-01-02 20:49:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-01-03 07:46:45 +0100
commit7c36f46a1ea35633d64c44a2ee1e834b1f88cc8d (patch)
tree9cd0edfd08b67053ed5ff64e6d523166478baf34 /chart2/source/view/main/VLegend.cxx
parent5f41e5741fa3abe59dd14a50e692d425eed472d5 (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/VLegend.cxx')
-rw-r--r--chart2/source/view/main/VLegend.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/chart2/source/view/main/VLegend.cxx b/chart2/source/view/main/VLegend.cxx
index 370093d636e7..9ed83a77b086 100644
--- a/chart2/source/view/main/VLegend.cxx
+++ b/chart2/source/view/main/VLegend.cxx
@@ -149,7 +149,7 @@ void lcl_getProperties(
awt::Size lcl_createTextShapes(
const std::vector<ViewLegendEntry> & rEntries,
- const Reference< drawing::XShapes > & xTarget,
+ const rtl::Reference<SvxShapeGroupAnyD> & xTarget,
std::vector< rtl::Reference<SvxShapeText> > & rOutTextShapes,
const tPropertyValues & rTextProperties )
{
@@ -265,7 +265,7 @@ awt::Size lcl_placeLegendEntries(
double fViewFontSize,
const awt::Size& rMaxSymbolExtent,
tPropertyValues & rTextProperties,
- const Reference< drawing::XShapes > & xTarget,
+ const rtl::Reference<SvxShapeGroupAnyD> & xTarget,
const awt::Size& rRemainingSpace,
sal_Int32 nYStartPosition,
const awt::Size& rPageSize,
@@ -820,7 +820,7 @@ bool lcl_shouldSymbolsBePlacedOnTheLeftSide( const Reference< beans::XPropertySe
}
std::vector<std::shared_ptr<VButton>> lcl_createButtons(
- uno::Reference<drawing::XShapes> const & xLegendContainer,
+ rtl::Reference<SvxShapeGroupAnyD> const & xLegendContainer,
uno::Reference<lang::XMultiServiceFactory> const & xShapeFactory,
ChartModel& rModel, bool bPlaceButtonsVertically, tools::Long & nUsedHeight)
{
@@ -875,7 +875,7 @@ VLegend::VLegend(
const Reference< XLegend > & xLegend,
const Reference< uno::XComponentContext > & xContext,
std::vector< LegendEntryProvider* >&& rLegendEntryProviderList,
- const Reference< drawing::XShapes >& xTargetPage,
+ const rtl::Reference<SvxShapeGroupAnyD>& xTargetPage,
const Reference< lang::XMultiServiceFactory >& xFactory,
ChartModel& rModel )
: m_xTarget(xTargetPage)
@@ -930,7 +930,7 @@ void VLegend::createShapes(
ObjectIdentifier::createClassifiedIdentifierForParticle( aLegendParticle ) );
// create and insert sub-shapes
- Reference< drawing::XShapes > xLegendContainer = m_xShape;
+ rtl::Reference<SvxShapeGroupAnyD> xLegendContainer = m_xShape;
if( xLegendContainer.is() )
{
// for quickly setting properties