LibreOffice Module chart2 (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
chart::VLegend Class Reference

#include <VLegend.hxx>

Collaboration diagram for chart::VLegend:
[legend]

Public Member Functions

 VLegend (rtl::Reference< ::chart::Legend > xLegend, const css::uno::Reference< css::uno::XComponentContext > &xContext, std::vector< LegendEntryProvider * > &&rLegendEntryProviderList, rtl::Reference< SvxShapeGroupAnyD > xTargetPage, ChartModel &rModel)
 
void setDefaultWritingMode (sal_Int16 nDefaultWritingMode)
 
void createShapes (const css::awt::Size &rAvailableSpace, const css::awt::Size &rPageSize, css::awt::Size &rDefaultLegendSize)
 
void changePosition (css::awt::Rectangle &rOutAvailableSpace, const css::awt::Size &rReferenceSize, const css::awt::Size &rDefaultLegendSize)
 Sets the position according to its internal anchor. More...
 

Static Public Member Functions

static bool isVisible (const rtl::Reference< ::chart::Legend > &xLegend)
 

Private Attributes

rtl::Reference< SvxShapeGroupAnyDm_xTarget
 
rtl::Reference<::chart::Legendm_xLegend
 
rtl::Reference< SvxShapeGroupm_xShape
 
ChartModel & mrModel
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
std::vector< LegendEntryProvider * > m_aLegendEntryProviderList
 
sal_Int16 m_nDefaultWritingMode
 

Detailed Description

Definition at line 43 of file VLegend.hxx.

Constructor & Destructor Documentation

◆ VLegend()

chart::VLegend::VLegend ( rtl::Reference< ::chart::Legend xLegend,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
std::vector< LegendEntryProvider * > &&  rLegendEntryProviderList,
rtl::Reference< SvxShapeGroupAnyD xTargetPage,
ChartModel &  rModel 
)

Definition at line 883 of file VLegend.cxx.

References m_xTarget, and text().

Member Function Documentation

◆ changePosition()

void chart::VLegend::changePosition ( css::awt::Rectangle &  rOutAvailableSpace,
const css::awt::Size &  rReferenceSize,
const css::awt::Size &  rDefaultLegendSize 
)

Sets the position according to its internal anchor.

Parameters
rOutAvailableSpaceis modified by the method, if the legend is in a standard position, such that the space allocated by the legend is removed from it.
rReferenceSizeis used to calculate the offset (default 2%) from the edge.

Definition at line 1053 of file VLegend.cxx.

References DBG_UNHANDLED_EXCEPTION, ePos, m_xLegend, and m_xShape.

◆ createShapes()

void chart::VLegend::createShapes ( const css::awt::Size &  rAvailableSpace,
const css::awt::Size &  rPageSize,
css::awt::Size &  rDefaultLegendSize 
)

◆ isVisible()

bool chart::VLegend::isVisible ( const rtl::Reference< ::chart::Legend > &  xLegend)
static

Definition at line 903 of file VLegend.cxx.

References DBG_UNHANDLED_EXCEPTION.

◆ setDefaultWritingMode()

void chart::VLegend::setDefaultWritingMode ( sal_Int16  nDefaultWritingMode)

Definition at line 898 of file VLegend.cxx.

References m_nDefaultWritingMode.

Member Data Documentation

◆ m_aLegendEntryProviderList

std::vector< LegendEntryProvider* > chart::VLegend::m_aLegendEntryProviderList
private

Definition at line 84 of file VLegend.hxx.

Referenced by createShapes().

◆ m_nDefaultWritingMode

sal_Int16 chart::VLegend::m_nDefaultWritingMode
private

Definition at line 86 of file VLegend.hxx.

Referenced by createShapes(), and setDefaultWritingMode().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > chart::VLegend::m_xContext
private

Definition at line 82 of file VLegend.hxx.

Referenced by createShapes().

◆ m_xLegend

rtl::Reference<::chart::Legend> chart::VLegend::m_xLegend
private

Definition at line 77 of file VLegend.hxx.

Referenced by changePosition(), and createShapes().

◆ m_xShape

rtl::Reference< SvxShapeGroup > chart::VLegend::m_xShape
private

Definition at line 78 of file VLegend.hxx.

Referenced by changePosition(), and createShapes().

◆ m_xTarget

rtl::Reference<SvxShapeGroupAnyD> chart::VLegend::m_xTarget
private

Definition at line 76 of file VLegend.hxx.

Referenced by createShapes().

◆ mrModel

ChartModel& chart::VLegend::mrModel
private

Definition at line 80 of file VLegend.hxx.

Referenced by createShapes().


The documentation for this class was generated from the following files: