LibreOffice Module chart2 (master) 1
|
#include <VLegend.hxx>
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< SvxShapeGroupAnyD > | m_xTarget |
rtl::Reference<::chart::Legend > | m_xLegend |
rtl::Reference< SvxShapeGroup > | m_xShape |
ChartModel & | mrModel |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
std::vector< LegendEntryProvider * > | m_aLegendEntryProviderList |
sal_Int16 | m_nDefaultWritingMode |
Definition at line 43 of file VLegend.hxx.
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.
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.
rOutAvailableSpace | is modified by the method, if the legend is in a standard position, such that the space allocated by the legend is removed from it. |
rReferenceSize | is 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.
void chart::VLegend::createShapes | ( | const css::awt::Size & | rAvailableSpace, |
const css::awt::Size & | rPageSize, | ||
css::awt::Size & | rDefaultLegendSize | ||
) |
Definition at line 921 of file VLegend.cxx.
References chart::ShapeFactory::Bottom, chart::ObjectIdentifier::createClassifiedIdentifierForParticle(), chart::ShapeFactory::createGroup2D(), chart::ObjectIdentifier::createParticleForLegend(), chart::ShapeFactory::createRectangle(), DBG_UNHANDLED_EXCEPTION, Height, m_aLegendEntryProviderList, m_nDefaultWritingMode, m_xContext, m_xLegend, m_xShape, m_xTarget, mrModel, RelativeSize, and chart::ShapeFactory::setShapeName().
|
static |
Definition at line 903 of file VLegend.cxx.
References DBG_UNHANDLED_EXCEPTION.
void chart::VLegend::setDefaultWritingMode | ( | sal_Int16 | nDefaultWritingMode | ) |
Definition at line 898 of file VLegend.cxx.
References m_nDefaultWritingMode.
|
private |
Definition at line 84 of file VLegend.hxx.
Referenced by createShapes().
|
private |
Definition at line 86 of file VLegend.hxx.
Referenced by createShapes(), and setDefaultWritingMode().
|
private |
Definition at line 82 of file VLegend.hxx.
Referenced by createShapes().
|
private |
Definition at line 77 of file VLegend.hxx.
Referenced by changePosition(), and createShapes().
|
private |
Definition at line 78 of file VLegend.hxx.
Referenced by changePosition(), and createShapes().
|
private |
Definition at line 76 of file VLegend.hxx.
Referenced by createShapes().
|
private |
Definition at line 80 of file VLegend.hxx.
Referenced by createShapes().