LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
ScVbaChart Class Reference

#include <vbachart.hxx>

Inheritance diagram for ScVbaChart:
[legend]
Collaboration diagram for ScVbaChart:
[legend]

Public Member Functions

 ScVbaChart (const css::uno::Reference< ov::XHelperInterface > &_xParent, const css::uno::Reference< css::uno::XComponentContext > &_xContext, const css::uno::Reference< css::lang::XComponent > &_xChartComponent, css::uno::Reference< css::table::XTableChart > _xTableChart)
 
const css::uno::Reference< css::beans::XPropertySet > & xDiagramPropertySet () const
 
bool is3D ()
 
css::uno::Reference< css::beans::XPropertySetgetAxisPropertySet (sal_Int32 _nAxisType, sal_Int32 _nAxisGroup)
 
virtual OUString SAL_CALL getName () override
 
virtual css::uno::Any SAL_CALL SeriesCollection (const css::uno::Any &) override
 
virtual ::sal_Int32 SAL_CALL getChartType () override
 
virtual void SAL_CALL setChartType (::sal_Int32 _charttype) override
 
virtual void SAL_CALL Activate () override
 
virtual void SAL_CALL setSourceData (const css::uno::Reference< ::ooo::vba::excel::XRange > &range, const css::uno::Any &PlotBy) override
 
virtual ::sal_Int32 SAL_CALL Location () override
 
virtual ::sal_Int32 SAL_CALL getLocation () override
 
virtual void SAL_CALL setLocation (::sal_Int32 where, const css::uno::Any &Name) override
 
virtual sal_Bool SAL_CALL getHasTitle () override
 
virtual void SAL_CALL setHasTitle (sal_Bool bTitle) override
 
virtual sal_Bool SAL_CALL getHasLegend () override
 
virtual void SAL_CALL setHasLegend (sal_Bool bLegend) override
 
virtual void SAL_CALL setPlotBy (::sal_Int32 xlRowCol) override
 
virtual ::sal_Int32 SAL_CALL getPlotBy () override
 
virtual css::uno::Reference< ov::excel::XChartTitle > SAL_CALL getChartTitle () override
 
virtual css::uno::Any SAL_CALL Axes (const css::uno::Any &Type, const css::uno::Any &AxisGroup) override
 
virtual OUString getServiceImplName () override
 
virtual css::uno::Sequence< OUString > getServiceNames () override
 
- Public Member Functions inherited from InheritedHelperInterfaceWeakImpl< typename... Ifc >
 InheritedHelperInterfaceWeakImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
- Public Member Functions inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >
 InheritedHelperInterfaceImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, css::uno::Reference< css::uno::XComponentContext > xContext)
 
virtual OUString getServiceImplName ()=0
 
virtual css::uno::Sequence< OUString > getServiceNames ()=0
 
virtual ::sal_Int32 SAL_CALL getCreator () override
 
virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL getParent () override
 
virtual css::uno::Any SAL_CALL Application () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 

Private Member Functions

void setDefaultChartType ()
 
void setDiagram (const OUString &_sDiagramType)
 
bool isStacked ()
 
bool is100PercentStacked ()
 
sal_Int32 getStackedType (sal_Int32 _nStacked, sal_Int32 _n100PercentStacked, sal_Int32 _nUnStacked)
 
sal_Int32 getSolidType (sal_Int32 _nDeep, sal_Int32 _nVertiStacked, sal_Int32 _nVerti100PercentStacked, sal_Int32 _nVertiUnStacked, sal_Int32 _nHoriStacked, sal_Int32 _nHori100PercentStacked, sal_Int32 _nHoriUnStacked)
 
sal_Int32 getStockUpDownValue (sal_Int32 _nUpDown, sal_Int32 _nNotUpDown)
 
bool hasMarkers ()
 
sal_Int32 getMarkerType (sal_Int32 _nWithMarkers, sal_Int32 _nWithoutMarkers)
 
void assignDiagramAttributes ()
 

Static Private Member Functions

static css::uno::Sequence< OUString > getDefaultSeriesDescriptions (sal_Int32 nCount)
 

Private Attributes

css::uno::Reference< css::chart::XChartDocument > mxChartDocument
 
css::uno::Reference< css::table::XTableChart > mxTableChart
 
css::uno::Reference< css::beans::XPropertySetmxDiagramPropertySet
 
css::uno::Reference< css::beans::XPropertySetmxChartPropertySet
 
css::uno::Reference< css::chart::XAxisXSupplier > xAxisXSupplier
 
css::uno::Reference< css::chart::XAxisYSupplier > xAxisYSupplier
 
css::uno::Reference< css::chart::XAxisZSupplier > xAxisZSupplier
 
css::uno::Reference< css::chart::XTwoAxisXSupplier > xTwoAxisXSupplier
 
css::uno::Reference< css::chart::XTwoAxisYSupplier > xTwoAxisYSupplier
 

Friends

class ScVbaAxis
 

Additional Inherited Members

- Protected Attributes inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >
css::uno::WeakReference< ov::XHelperInterface > mxParent
 
css::uno::Reference< css::uno::XComponentContext > mxContext
 

Detailed Description

Definition at line 35 of file vbachart.hxx.

Constructor & Destructor Documentation

◆ ScVbaChart()

ScVbaChart::ScVbaChart ( const css::uno::Reference< ov::XHelperInterface > &  _xParent,
const css::uno::Reference< css::uno::XComponentContext > &  _xContext,
const css::uno::Reference< css::lang::XComponent > &  _xChartComponent,
css::uno::Reference< css::table::XTableChart >  _xTableChart 
)

Definition at line 70 of file vbachart.cxx.

References _xContext, mxChartDocument, mxChartPropertySet, and mxDiagramPropertySet.

Member Function Documentation

◆ Activate()

void SAL_CALL ScVbaChart::Activate ( )
overridevirtual

◆ assignDiagramAttributes()

void ScVbaChart::assignDiagramAttributes ( )
private

◆ Axes()

uno::Any SAL_CALL ScVbaChart::Axes ( const css::uno::Any &  Type,
const css::uno::Any &  AxisGroup 
)
overridevirtual

◆ getAxisPropertySet()

uno::Reference< beans::XPropertySet > ScVbaChart::getAxisPropertySet ( sal_Int32  _nAxisType,
sal_Int32  _nAxisGroup 
)
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 1010 of file vbachart.cxx.

References assignDiagramAttributes(), xAxisXSupplier, xAxisYSupplier, xAxisZSupplier, xTwoAxisXSupplier, and xTwoAxisYSupplier.

Referenced by ScVbaAxes::createAxis().

◆ getChartTitle()

uno::Reference< excel::XChartTitle > SAL_CALL ScVbaChart::getChartTitle ( )
overridevirtual

◆ getChartType()

sal_Int32 SAL_CALL ScVbaChart::getChartType ( )
override

◆ getDefaultSeriesDescriptions()

uno::Sequence< OUString > ScVbaChart::getDefaultSeriesDescriptions ( sal_Int32  nCount)
staticprivate

Definition at line 625 of file vbachart.cxx.

References i.

Referenced by setSourceData().

◆ getHasLegend()

sal_Bool SAL_CALL ScVbaChart::getHasLegend ( )
overridevirtual

Definition at line 834 of file vbachart.cxx.

References ERRCODE_BASIC_METHOD_FAILED, HASLEGEND(), and mxChartPropertySet.

◆ getHasTitle()

sal_Bool SAL_CALL ScVbaChart::getHasTitle ( )
overridevirtual

Definition at line 805 of file vbachart.cxx.

References ERRCODE_BASIC_METHOD_FAILED, HASMAINTITLE(), and mxChartPropertySet.

◆ getLocation()

sal_Int32 SAL_CALL ScVbaChart::getLocation ( )
override

Definition at line 711 of file vbachart.cxx.

Referenced by Location().

◆ getMarkerType()

sal_Int32 ScVbaChart::getMarkerType ( sal_Int32  _nWithMarkers,
sal_Int32  _nWithoutMarkers 
)
private
Exceptions
css::script::BasicErrorException

Definition at line 992 of file vbachart.cxx.

References hasMarkers().

Referenced by getChartType().

◆ getName()

OUString SAL_CALL ScVbaChart::getName ( )
overridevirtual

Definition at line 83 of file vbachart.cxx.

References CHART_NAME(), mxChartDocument, and sName.

◆ getPlotBy()

sal_Int32 SAL_CALL ScVbaChart::getPlotBy ( )
override

Definition at line 665 of file vbachart.cxx.

References DATAROWSOURCE(), ERRCODE_BASIC_METHOD_FAILED, and mxDiagramPropertySet.

◆ getServiceImplName()

OUString ScVbaChart::getServiceImplName ( )
overridevirtual

◆ getServiceNames()

uno::Sequence< OUString > ScVbaChart::getServiceNames ( )
overridevirtual

◆ getSolidType()

sal_Int32 ScVbaChart::getSolidType ( sal_Int32  _nDeep,
sal_Int32  _nVertiStacked,
sal_Int32  _nVerti100PercentStacked,
sal_Int32  _nVertiUnStacked,
sal_Int32  _nHoriStacked,
sal_Int32  _nHori100PercentStacked,
sal_Int32  _nHoriUnStacked 
)
private
Exceptions
css::script::BasicErrorException

Definition at line 921 of file vbachart.cxx.

References DEEP(), ERRCODE_BASIC_METHOD_FAILED, getStackedType(), mxDiagramPropertySet, and VERTICAL().

Referenced by getChartType().

◆ getStackedType()

sal_Int32 ScVbaChart::getStackedType ( sal_Int32  _nStacked,
sal_Int32  _n100PercentStacked,
sal_Int32  _nUnStacked 
)
private
Exceptions
css::uno::RuntimeException

Definition at line 888 of file vbachart.cxx.

References is100PercentStacked(), and isStacked().

Referenced by getChartType(), and getSolidType().

◆ getStockUpDownValue()

sal_Int32 ScVbaChart::getStockUpDownValue ( sal_Int32  _nUpDown,
sal_Int32  _nNotUpDown 
)
private
Exceptions
css::script::BasicErrorException

Definition at line 953 of file vbachart.cxx.

References ERRCODE_BASIC_METHOD_FAILED, mxDiagramPropertySet, and UPDOWN().

Referenced by getChartType().

◆ hasMarkers()

bool ScVbaChart::hasMarkers ( )
private
Exceptions
css::script::BasicErrorException

Definition at line 975 of file vbachart.cxx.

References ERRCODE_BASIC_METHOD_FAILED, mxDiagramPropertySet, condformat::dialog::NONE, and SYMBOLTYPE().

Referenced by getChartType(), and getMarkerType().

◆ is100PercentStacked()

bool ScVbaChart::is100PercentStacked ( )
private
Exceptions
css::uno::RuntimeException

Definition at line 912 of file vbachart.cxx.

References mxDiagramPropertySet, and PERCENT().

Referenced by getStackedType().

◆ is3D()

bool ScVbaChart::is3D ( )
Exceptions
css::uno::RuntimeException

Definition at line 879 of file vbachart.cxx.

References DIM3D(), and mxDiagramPropertySet.

Referenced by getChartType().

◆ isStacked()

bool ScVbaChart::isStacked ( )
private
Exceptions
css::uno::RuntimeException

Definition at line 903 of file vbachart.cxx.

References mxDiagramPropertySet, and STACKED().

Referenced by getStackedType().

◆ Location()

sal_Int32 SAL_CALL ScVbaChart::Location ( )
override

Definition at line 705 of file vbachart.cxx.

References getLocation().

◆ SeriesCollection()

uno::Any SAL_CALL ScVbaChart::SeriesCollection ( const css::uno::Any &  )
overridevirtual

Definition at line 98 of file vbachart.cxx.

◆ setChartType()

void SAL_CALL ScVbaChart::setChartType ( ::sal_Int32  _charttype)
overridevirtual

◆ setDefaultChartType()

void ScVbaChart::setDefaultChartType ( )
private
Exceptions
css::script::BasicErrorException

Definition at line 634 of file vbachart.cxx.

References setChartType().

Referenced by setPlotBy().

◆ setDiagram()

void ScVbaChart::setDiagram ( const OUString &  _sDiagramType)
private
Exceptions
css::script::BasicErrorException

Definition at line 687 of file vbachart.cxx.

References ERRCODE_BASIC_METHOD_FAILED, mxChartDocument, and mxDiagramPropertySet.

Referenced by setChartType().

◆ setHasLegend()

void SAL_CALL ScVbaChart::setHasLegend ( sal_Bool  bLegend)
overridevirtual

Definition at line 849 of file vbachart.cxx.

References ERRCODE_BASIC_METHOD_FAILED, HASLEGEND(), and mxChartPropertySet.

◆ setHasTitle()

void SAL_CALL ScVbaChart::setHasTitle ( sal_Bool  bTitle)
overridevirtual

Definition at line 820 of file vbachart.cxx.

References ERRCODE_BASIC_METHOD_FAILED, HASMAINTITLE(), and mxChartPropertySet.

◆ setLocation()

void SAL_CALL ScVbaChart::setLocation ( ::sal_Int32  where,
const css::uno::Any &  Name 
)
overridevirtual

Definition at line 717 of file vbachart.cxx.

◆ setPlotBy()

void ScVbaChart::setPlotBy ( ::sal_Int32  xlRowCol)
overridevirtual

◆ setSourceData()

void SAL_CALL ScVbaChart::setSourceData ( const css::uno::Reference< ::ooo::vba::excel::XRange > &  range,
const css::uno::Any &  PlotBy 
)
overridevirtual

◆ xDiagramPropertySet()

const css::uno::Reference< css::beans::XPropertySet > & ScVbaChart::xDiagramPropertySet ( ) const
inline

Definition at line 73 of file vbachart.hxx.

References mxDiagramPropertySet.

Friends And Related Function Documentation

◆ ScVbaAxis

friend class ScVbaAxis
friend

Definition at line 37 of file vbachart.hxx.

Member Data Documentation

◆ mxChartDocument

css::uno::Reference< css::chart::XChartDocument > ScVbaChart::mxChartDocument
private

Definition at line 39 of file vbachart.hxx.

Referenced by getChartTitle(), getChartType(), getName(), ScVbaChart(), setDiagram(), and setSourceData().

◆ mxChartPropertySet

css::uno::Reference< css::beans::XPropertySet > ScVbaChart::mxChartPropertySet
private

Definition at line 42 of file vbachart.hxx.

Referenced by getHasLegend(), getHasTitle(), ScVbaChart(), setHasLegend(), and setHasTitle().

◆ mxDiagramPropertySet

css::uno::Reference< css::beans::XPropertySet > ScVbaChart::mxDiagramPropertySet
private

◆ mxTableChart

css::uno::Reference< css::table::XTableChart > ScVbaChart::mxTableChart
private

Definition at line 40 of file vbachart.hxx.

Referenced by setSourceData().

◆ xAxisXSupplier

css::uno::Reference< css::chart::XAxisXSupplier > ScVbaChart::xAxisXSupplier
private

◆ xAxisYSupplier

css::uno::Reference< css::chart::XAxisYSupplier> ScVbaChart::xAxisYSupplier
private

◆ xAxisZSupplier

css::uno::Reference< css::chart::XAxisZSupplier > ScVbaChart::xAxisZSupplier
private

◆ xTwoAxisXSupplier

css::uno::Reference< css::chart::XTwoAxisXSupplier > ScVbaChart::xTwoAxisXSupplier
private

Definition at line 46 of file vbachart.hxx.

Referenced by assignDiagramAttributes(), and getAxisPropertySet().

◆ xTwoAxisYSupplier

css::uno::Reference< css::chart::XTwoAxisYSupplier > ScVbaChart::xTwoAxisYSupplier
private

Definition at line 47 of file vbachart.hxx.

Referenced by assignDiagramAttributes(), and getAxisPropertySet().


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