LibreOffice Module sc (master)  1
vbaaxis.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef INCLUDED_SC_SOURCE_UI_VBA_VBAAXIS_HXX
20 #define INCLUDED_SC_SOURCE_UI_VBA_VBAAXIS_HXX
21 #include <com/sun/star/beans/XPropertySet.hpp>
22 #include <ooo/vba/excel/XAxis.hpp>
23 #include <ooo/vba/excel/XChart.hpp>
25 #include <memory>
27 class ScVbaChart;
28 class ScVbaAxis : public ScVbaAxis_BASE
29 {
30  css::uno::Reference< ov::excel::XChart > moChartParent;
31  css::uno::Reference< css::beans::XPropertySet > mxPropertySet;
32  sal_Int32 mnType;
33  sal_Int32 mnGroup;
38  bool isValueAxis();
39  std::unique_ptr<ov::ShapeHelper> oShapeHelper;
40 
41 public:
42  ScVbaAxis( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::beans::XPropertySet >& _xPropertySet, sal_Int32 _nType, sal_Int32 _nGroup );
43  // Methods
44  virtual void SAL_CALL Delete( ) override;
45  virtual css::uno::Reference< ::ooo::vba::excel::XAxisTitle > SAL_CALL getAxisTitle( ) override;
46  virtual void SAL_CALL setDisplayUnit( ::sal_Int32 DisplayUnit ) override;
47  virtual ::sal_Int32 SAL_CALL getDisplayUnit( ) override;
48  virtual void SAL_CALL setCrosses( ::sal_Int32 Crosses ) override;
49  virtual ::sal_Int32 SAL_CALL getCrosses( ) override;
50  virtual void SAL_CALL setCrossesAt( double CrossesAt ) override;
51  virtual double SAL_CALL getCrossesAt( ) override;
52  virtual void SAL_CALL setType( ::sal_Int32 Type ) override;
53  virtual ::sal_Int32 SAL_CALL getType( ) override;
54  virtual void SAL_CALL setHasTitle( sal_Bool HasTitle ) override;
55  virtual sal_Bool SAL_CALL getHasTitle( ) override;
56  virtual void SAL_CALL setMinorUnit( double MinorUnit ) override;
57  virtual double SAL_CALL getMinorUnit( ) override;
58  virtual void SAL_CALL setMinorUnitIsAuto( sal_Bool MinorUnitIsAuto ) override;
59  virtual sal_Bool SAL_CALL getMinorUnitIsAuto( ) override;
60  virtual void SAL_CALL setReversePlotOrder( sal_Bool ReversePlotOrder ) override;
61  virtual sal_Bool SAL_CALL getReversePlotOrder( ) override;
62  virtual void SAL_CALL setMajorUnit( double MajorUnit ) override;
63  virtual double SAL_CALL getMajorUnit( ) override;
64  virtual void SAL_CALL setMajorUnitIsAuto( sal_Bool MajorUnitIsAuto ) override;
65  virtual sal_Bool SAL_CALL getMajorUnitIsAuto( ) override;
66  virtual void SAL_CALL setMaximumScale( double MaximumScale ) override;
67  virtual double SAL_CALL getMaximumScale( ) override;
68  virtual void SAL_CALL setMaximumScaleIsAuto( sal_Bool MaximumScaleIsAuto ) override;
69  virtual sal_Bool SAL_CALL getMaximumScaleIsAuto( ) override;
70  virtual void SAL_CALL setMinimumScale( double MinimumScale ) override;
71  virtual double SAL_CALL getMinimumScale( ) override;
72  virtual void SAL_CALL setMinimumScaleIsAuto( sal_Bool MinimumScaleIsAuto ) override;
73  virtual sal_Bool SAL_CALL getMinimumScaleIsAuto( ) override;
74  virtual ::sal_Int32 SAL_CALL getAxisGroup( ) override;
75  virtual void SAL_CALL setScaleType( ::sal_Int32 ScaleType ) override;
76  virtual ::sal_Int32 SAL_CALL getScaleType( ) override;
77  virtual double SAL_CALL getHeight( ) override;
78  virtual void SAL_CALL setHeight( double height ) override;
79  virtual double SAL_CALL getWidth( ) override;
80  virtual void SAL_CALL setWidth( double width ) override;
81  virtual double SAL_CALL getTop( ) override;
82  virtual void SAL_CALL setTop( double top ) override;
83  virtual double SAL_CALL getLeft( ) override;
84  virtual void SAL_CALL setLeft( double left ) override;
85 
86  // XHelperInterface
87  virtual OUString getServiceImplName() override;
88  virtual css::uno::Sequence<OUString> getServiceNames() override;
89 };
90 
91 #endif // INCLUDED_SC_SOURCE_UI_VBA_VBAAXIS_HXX
92 
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL setHeight(double height) override
Definition: vbaaxis.cxx:611
sal_Int32 mnType
Definition: vbaaxis.hxx:32
Type
bool isValueAxis()
Definition: vbaaxis.cxx:46
virtual void SAL_CALL setDisplayUnit(::sal_Int32 DisplayUnit) override
Definition: vbaaxis.cxx:104
virtual double SAL_CALL getMajorUnit() override
Definition: vbaaxis.cxx:370
virtual sal_Bool SAL_CALL getMinimumScaleIsAuto() override
Definition: vbaaxis.cxx:532
virtual sal_Bool SAL_CALL getMaximumScaleIsAuto() override
Definition: vbaaxis.cxx:470
virtual void SAL_CALL setScaleType(::sal_Int32 ScaleType) override
Definition: vbaaxis.cxx:556
virtual void SAL_CALL setMaximumScale(double MaximumScale) override
Definition: vbaaxis.cxx:420
virtual double SAL_CALL getTop() override
Definition: vbaaxis.cxx:623
virtual ::sal_Int32 SAL_CALL getScaleType() override
Definition: vbaaxis.cxx:583
ScVbaAxis(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::beans::XPropertySet > &_xPropertySet, sal_Int32 _nType, sal_Int32 _nGroup)
Definition: vbaaxis.cxx:55
virtual OUString getServiceImplName() override
Definition: vbaaxis.cxx:641
InheritedHelperInterfaceWeakImpl< ov::excel::XAxis > ScVbaAxis_BASE
Definition: vbaaxis.hxx:26
std::unique_ptr< ov::ShapeHelper > oShapeHelper
Definition: vbaaxis.hxx:39
virtual double SAL_CALL getCrossesAt() override
Definition: vbaaxis.cxx:199
css::uno::Reference< ov::excel::XChart > moChartParent
Definition: vbaaxis.hxx:30
virtual void SAL_CALL setType(::sal_Int32 Type) override
Definition: vbaaxis.cxx:214
sal_Int32 mnGroup
Definition: vbaaxis.hxx:33
virtual ::sal_Int32 SAL_CALL getType() override
Definition: vbaaxis.cxx:220
virtual sal_Bool SAL_CALL getHasTitle() override
Definition: vbaaxis.cxx:252
virtual double SAL_CALL getLeft() override
Definition: vbaaxis.cxx:631
virtual sal_Bool SAL_CALL getReversePlotOrder() override
Definition: vbaaxis.cxx:347
virtual css::uno::Sequence< OUString > getServiceNames() override
Definition: vbaaxis.cxx:647
virtual void SAL_CALL setHasTitle(sal_Bool HasTitle) override
Definition: vbaaxis.cxx:226
virtual void SAL_CALL setMinorUnitIsAuto(sal_Bool MinorUnitIsAuto) override
Definition: vbaaxis.cxx:309
virtual void SAL_CALL Delete() override
Definition: vbaaxis.cxx:64
virtual void SAL_CALL setMinimumScale(double MinimumScale) override
Definition: vbaaxis.cxx:486
unsigned char sal_Bool
virtual double SAL_CALL getMaximumScale() override
Definition: vbaaxis.cxx:436
virtual ::sal_Int32 SAL_CALL getDisplayUnit() override
Definition: vbaaxis.cxx:110
virtual void SAL_CALL setWidth(double width) override
Definition: vbaaxis.cxx:619
virtual css::uno::Reference< ::ooo::vba::excel::XAxisTitle > SAL_CALL getAxisTitle() override
Definition: vbaaxis.cxx:71
ScVbaChart * getChartPtr()
Definition: vbaaxis.cxx:37
virtual double SAL_CALL getMinorUnit() override
Definition: vbaaxis.cxx:293
virtual void SAL_CALL setMaximumScaleIsAuto(sal_Bool MaximumScaleIsAuto) override
Definition: vbaaxis.cxx:455
virtual void SAL_CALL setReversePlotOrder(sal_Bool ReversePlotOrder) override
Definition: vbaaxis.cxx:341
virtual sal_Bool SAL_CALL getMajorUnitIsAuto() override
Definition: vbaaxis.cxx:402
bool bCrossesAreCustomized
Definition: vbaaxis.hxx:34
virtual void SAL_CALL setMajorUnitIsAuto(sal_Bool MajorUnitIsAuto) override
Definition: vbaaxis.cxx:386
virtual void SAL_CALL setCrossesAt(double CrossesAt) override
Definition: vbaaxis.cxx:184
virtual double SAL_CALL getHeight() override
Definition: vbaaxis.cxx:606
css::uno::Reference< css::beans::XPropertySet > mxPropertySet
Definition: vbaaxis.hxx:31
virtual void SAL_CALL setMinimumScaleIsAuto(sal_Bool MinimumScaleIsAuto) override
Definition: vbaaxis.cxx:516
virtual double SAL_CALL getWidth() override
Definition: vbaaxis.cxx:615
virtual void SAL_CALL setMajorUnit(double MajorUnit) override
Definition: vbaaxis.cxx:354
virtual void SAL_CALL setCrosses(::sal_Int32 Crosses) override
Definition: vbaaxis.cxx:117
virtual void SAL_CALL setMinorUnit(double MinorUnit) override
Definition: vbaaxis.cxx:279
virtual ::sal_Int32 SAL_CALL getAxisGroup() override
Definition: vbaaxis.cxx:550
virtual sal_Bool SAL_CALL getMinorUnitIsAuto() override
Definition: vbaaxis.cxx:323
virtual void SAL_CALL setTop(double top) override
Definition: vbaaxis.cxx:627
virtual void SAL_CALL setLeft(double left) override
Definition: vbaaxis.cxx:635
virtual double SAL_CALL getMinimumScale() override
Definition: vbaaxis.cxx:500
virtual ::sal_Int32 SAL_CALL getCrosses() override
Definition: vbaaxis.cxx:150