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, const 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< 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, const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
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 36 of file vbachart.hxx.

Constructor & Destructor Documentation

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,
const css::uno::Reference< css::table::XTableChart > &  _xTableChart 
)

Definition at line 69 of file vbachart.cxx.

References mxChartDocument, mxChartPropertySet, and mxDiagramPropertySet.

Member Function Documentation

void SAL_CALL ScVbaChart::Activate ( )
overridevirtual
void ScVbaChart::assignDiagramAttributes ( )
private
uno::Any SAL_CALL ScVbaChart::Axes ( const css::uno::Any &  Type,
const css::uno::Any &  AxisGroup 
)
overridevirtual
uno::Reference< beans::XPropertySet > ScVbaChart::getAxisPropertySet ( sal_Int32  _nAxisType,
sal_Int32  _nAxisGroup 
)
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 1012 of file vbachart.cxx.

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

Referenced by ScVbaAxes::createAxis().

uno::Reference< excel::XChartTitle > SAL_CALL ScVbaChart::getChartTitle ( )
overridevirtual
sal_Int32 SAL_CALL ScVbaChart::getChartType ( )
override
uno::Sequence< OUString > ScVbaChart::getDefaultSeriesDescriptions ( sal_Int32  nCount)
staticprivate

Definition at line 627 of file vbachart.cxx.

References DEFAULTSERIESPREFIX(), and i.

Referenced by setSourceData().

sal_Bool SAL_CALL ScVbaChart::getHasLegend ( )
overridevirtual

Definition at line 836 of file vbachart.cxx.

References ERRCODE_BASIC_METHOD_FAILED, HASLEGEND(), and mxChartPropertySet.

sal_Bool SAL_CALL ScVbaChart::getHasTitle ( )
overridevirtual

Definition at line 807 of file vbachart.cxx.

References ERRCODE_BASIC_METHOD_FAILED, HASMAINTITLE(), and mxChartPropertySet.

sal_Int32 SAL_CALL ScVbaChart::getLocation ( )
override

Definition at line 713 of file vbachart.cxx.

Referenced by Location().

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

Definition at line 994 of file vbachart.cxx.

References hasMarkers().

Referenced by getChartType().

OUString SAL_CALL ScVbaChart::getName ( )
overridevirtual

Definition at line 82 of file vbachart.cxx.

References CHART_NAME(), mxChartDocument, and sName.

sal_Int32 SAL_CALL ScVbaChart::getPlotBy ( )
override

Definition at line 667 of file vbachart.cxx.

References DATAROWSOURCE(), ERRCODE_BASIC_METHOD_FAILED, and mxDiagramPropertySet.

OUString ScVbaChart::getServiceImplName ( )
overridevirtual
uno::Sequence< OUString > ScVbaChart::getServiceNames ( )
overridevirtual
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 923 of file vbachart.cxx.

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

Referenced by getChartType().

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

Definition at line 890 of file vbachart.cxx.

References is100PercentStacked(), and isStacked().

Referenced by getChartType(), and getSolidType().

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

Definition at line 955 of file vbachart.cxx.

References ERRCODE_BASIC_METHOD_FAILED, mxDiagramPropertySet, and UPDOWN().

Referenced by getChartType().

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

Definition at line 977 of file vbachart.cxx.

References ERRCODE_BASIC_METHOD_FAILED, mxDiagramPropertySet, chart::NONE, and SYMBOLTYPE().

Referenced by getChartType(), and getMarkerType().

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

Definition at line 914 of file vbachart.cxx.

References mxDiagramPropertySet, and PERCENT().

Referenced by getStackedType().

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

Definition at line 881 of file vbachart.cxx.

References DIM3D(), and mxDiagramPropertySet.

Referenced by getChartType().

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

Definition at line 905 of file vbachart.cxx.

References mxDiagramPropertySet, and STACKED().

Referenced by getStackedType().

sal_Int32 SAL_CALL ScVbaChart::Location ( )
override

Definition at line 707 of file vbachart.cxx.

References getLocation().

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

Definition at line 97 of file vbachart.cxx.

void SAL_CALL ScVbaChart::setChartType ( ::sal_Int32  _charttype)
overridevirtual
void ScVbaChart::setDefaultChartType ( )
private
Exceptions
css::script::BasicErrorException

Definition at line 636 of file vbachart.cxx.

References setChartType().

Referenced by setPlotBy().

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

Definition at line 689 of file vbachart.cxx.

References ERRCODE_BASIC_METHOD_FAILED, mxChartDocument, and mxDiagramPropertySet.

Referenced by setChartType().

void SAL_CALL ScVbaChart::setHasLegend ( sal_Bool  bLegend)
overridevirtual

Definition at line 851 of file vbachart.cxx.

References ERRCODE_BASIC_METHOD_FAILED, HASLEGEND(), and mxChartPropertySet.

void SAL_CALL ScVbaChart::setHasTitle ( sal_Bool  bTitle)
overridevirtual

Definition at line 822 of file vbachart.cxx.

References ERRCODE_BASIC_METHOD_FAILED, HASMAINTITLE(), and mxChartPropertySet.

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

Definition at line 719 of file vbachart.cxx.

void ScVbaChart::setPlotBy ( ::sal_Int32  xlRowCol)
overridevirtual
void SAL_CALL ScVbaChart::setSourceData ( const css::uno::Reference< ::ooo::vba::excel::XRange > &  range,
const css::uno::Any &  PlotBy 
)
overridevirtual
const css::uno::Reference< css::beans::XPropertySet >& ScVbaChart::xDiagramPropertySet ( ) const
inline

Definition at line 74 of file vbachart.hxx.

References mxDiagramPropertySet.

Friends And Related Function Documentation

friend class ScVbaAxis
friend

Definition at line 38 of file vbachart.hxx.

Member Data Documentation

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

Definition at line 40 of file vbachart.hxx.

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

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

Definition at line 43 of file vbachart.hxx.

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

css::uno::Reference< css::beans::XPropertySet > ScVbaChart::mxDiagramPropertySet
private
css::uno::Reference< css::table::XTableChart > ScVbaChart::mxTableChart
private

Definition at line 41 of file vbachart.hxx.

Referenced by setSourceData().

css::uno::Reference< css::chart::XAxisXSupplier > ScVbaChart::xAxisXSupplier
private
css::uno::Reference< css::chart::XAxisYSupplier> ScVbaChart::xAxisYSupplier
private
css::uno::Reference< css::chart::XAxisZSupplier > ScVbaChart::xAxisZSupplier
private
css::uno::Reference< css::chart::XTwoAxisXSupplier > ScVbaChart::xTwoAxisXSupplier
private

Definition at line 47 of file vbachart.hxx.

Referenced by assignDiagramAttributes(), and getAxisPropertySet().

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

Definition at line 48 of file vbachart.hxx.

Referenced by assignDiagramAttributes(), and getAxisPropertySet().


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