21#include <ooo/vba/excel/XlAxisCrosses.hpp>
22#include <ooo/vba/excel/XlAxisType.hpp>
23#include <ooo/vba/excel/XlScaleType.hpp>
29using namespace ::ooo::vba::excel::XlAxisCrosses;
30using namespace ::ooo::vba::excel::XlAxisType;
31using namespace ::ooo::vba::excel::XlScaleType;
33constexpr OUStringLiteral
ORIGIN(u
"Origin");
42 throw uno::RuntimeException(
"Can't access parent chart impl" );
57 const uno::Reference< uno::XComponentContext > & xContext,
58 uno::Reference< beans::XPropertySet > _xPropertySet,
59 sal_Int32 _nType, sal_Int32 _nGroup )
62 mnType( _nType ), mnGroup( _nGroup ),
64 bCrossesAreCustomized( false )
74 uno::Reference< lang::XComponent > xComponent(
mxPropertySet, uno::UNO_QUERY_THROW );
75 xComponent->dispose();
78 uno::Reference< ::ooo::vba::excel::XAxisTitle > SAL_CALL
81 uno::Reference< excel::XAxisTitle > xAxisTitle;
103 catch (
const uno::Exception& e)
105 DebugHelper::basicexception(e);
132 case xlAxisCrossesAutomatic:
136 case xlAxisCrossesMinimum:
141 case xlAxisCrossesMaximum:
152 catch (
const uno::Exception&)
160 sal_Int32 nCrosses = xlAxisCrossesCustom;
163 bool bisAutoOrigin =
false;
166 nCrosses = xlAxisCrossesAutomatic;
170 nCrosses = xlAxisCrossesCustom;
173 double forigin = 0.0;
178 nCrosses = xlAxisCrossesMinimum;
180 nCrosses = xlAxisCrossesMaximum;
184 catch (uno::Exception& )
200 catch (
const uno::Exception& e)
202 DebugHelper::basicexception(e);
209 double fCrosses = 0.0;
214 catch (uno::Exception& )
253 catch (
const uno::Exception& e)
255 DebugHelper::basicexception(e);
262 bool bHasTitle =
false;
279 catch (
const uno::Exception& e)
281 DebugHelper::basicexception(e);
294 catch (uno::Exception& )
309 catch (uno::Exception& )
324 catch (uno::Exception& )
333 bool bIsAuto =
false;
341 catch (
const uno::Exception&)
371 catch (
const uno::Exception&)
386 catch (
const uno::Exception&)
403 catch (
const uno::Exception&)
412 bool bIsAuto =
false;
420 catch (
const uno::Exception&)
437 catch (
const uno::Exception&)
454 catch (
const uno::Exception&)
471 catch (
const uno::Exception&)
480 bool bIsAuto =
false;
486 catch (
const uno::Exception&)
501 catch ( uno::Exception& )
516 catch (
const uno::Exception& e)
518 DebugHelper::basicexception(e);
533 catch (
const uno::Exception&)
542 bool bIsAuto =
false;
550 catch (
const uno::Exception&)
575 case xlScaleLogarithmic:
584 catch (
const uno::Exception&)
593 sal_Int32 nScaleType = xlScaleLinear;
598 bool bisLogarithmic =
false;
599 mxPropertySet->getPropertyValue(
"Logarithmic" ) >>= bisLogarithmic;
601 nScaleType = xlScaleLogarithmic;
603 nScaleType = xlScaleLinear;
606 catch (
const uno::Exception&)
654uno::Sequence< OUString >
css::uno::Reference< css::uno::XComponentContext > mxContext
virtual void SAL_CALL setMinorUnitIsAuto(sal_Bool MinorUnitIsAuto) override
virtual ::sal_Int32 SAL_CALL getType() override
virtual void SAL_CALL setScaleType(::sal_Int32 ScaleType) override
virtual OUString getServiceImplName() override
virtual ::sal_Int32 SAL_CALL getDisplayUnit() override
virtual double SAL_CALL getMajorUnit() override
virtual sal_Bool SAL_CALL getHasTitle() override
virtual sal_Bool SAL_CALL getMaximumScaleIsAuto() override
ScVbaAxis(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::beans::XPropertySet > _xPropertySet, sal_Int32 _nType, sal_Int32 _nGroup)
virtual void SAL_CALL setHasTitle(sal_Bool HasTitle) override
virtual void SAL_CALL setMajorUnitIsAuto(sal_Bool MajorUnitIsAuto) override
virtual double SAL_CALL getCrossesAt() override
virtual double SAL_CALL getHeight() override
virtual ::sal_Int32 SAL_CALL getScaleType() override
virtual void SAL_CALL setMinorUnit(double MinorUnit) override
virtual void SAL_CALL setLeft(double left) override
css::uno::Reference< ov::excel::XChart > moChartParent
virtual void SAL_CALL setHeight(double height) override
virtual void SAL_CALL setType(::sal_Int32 Type) override
virtual double SAL_CALL getTop() override
virtual void SAL_CALL setCrosses(::sal_Int32 Crosses) override
virtual double SAL_CALL getMaximumScale() override
virtual css::uno::Reference< ::ooo::vba::excel::XAxisTitle > SAL_CALL getAxisTitle() override
virtual void SAL_CALL setMinimumScale(double MinimumScale) override
virtual void SAL_CALL setCrossesAt(double CrossesAt) override
virtual sal_Bool SAL_CALL getMinimumScaleIsAuto() override
virtual double SAL_CALL getLeft() override
bool bCrossesAreCustomized
virtual void SAL_CALL setTop(double top) override
virtual void SAL_CALL setMaximumScaleIsAuto(sal_Bool MaximumScaleIsAuto) override
virtual ::sal_Int32 SAL_CALL getAxisGroup() override
virtual void SAL_CALL setReversePlotOrder(sal_Bool ReversePlotOrder) override
virtual sal_Bool SAL_CALL getMinorUnitIsAuto() override
css::uno::Reference< css::beans::XPropertySet > mxPropertySet
virtual sal_Bool SAL_CALL getMajorUnitIsAuto() override
virtual void SAL_CALL Delete() override
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual sal_Bool SAL_CALL getReversePlotOrder() override
ScVbaChart * getChartPtr()
virtual void SAL_CALL setDisplayUnit(::sal_Int32 DisplayUnit) override
virtual double SAL_CALL getWidth() override
virtual double SAL_CALL getMinorUnit() override
virtual ::sal_Int32 SAL_CALL getCrosses() override
virtual void SAL_CALL setWidth(double width) override
virtual double SAL_CALL getMinimumScale() override
ov::ShapeHelper maShapeHelper
virtual void SAL_CALL setMaximumScale(double MaximumScale) override
virtual void SAL_CALL setMajorUnit(double MajorUnit) override
virtual void SAL_CALL setMinimumScaleIsAuto(sal_Bool MinimumScaleIsAuto) override
css::uno::Reference< css::beans::XPropertySet > mxDiagramPropertySet
css::uno::Reference< css::chart::XAxisXSupplier > xAxisXSupplier
css::uno::Reference< css::chart::XAxisZSupplier > xAxisZSupplier
css::uno::Reference< css::chart::XAxisYSupplier > xAxisYSupplier
Sequence< OUString > aServiceNames
Reference< XPropertySet > _xPropertySet
#define ERRCODE_BASIC_METHOD_FAILED
#define ERRCODE_BASIC_NOT_IMPLEMENTED
constexpr OUStringLiteral ORIGIN(u"Origin")
constexpr OUStringLiteral VBA_MIN(u"Max")
constexpr OUStringLiteral VBA_MAX(u"Min")
constexpr OUStringLiteral AUTOORIGIN(u"AutoOrigin")