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#pragma once
20#include <com/sun/star/beans/XPropertySet.hpp>
21#include <ooo/vba/excel/XAxis.hpp>
22#include <ooo/vba/excel/XChart.hpp>
24#include <memory>
26class ScVbaChart;
28{
29 css::uno::Reference< ov::excel::XChart > moChartParent;
30 css::uno::Reference< css::beans::XPropertySet > mxPropertySet;
31 sal_Int32 mnType;
32 sal_Int32 mnGroup;
37 bool isValueAxis();
38 std::unique_ptr<ov::ShapeHelper> oShapeHelper;
39
40public:
41 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 );
42 // Methods
43 virtual void SAL_CALL Delete( ) override;
44 virtual css::uno::Reference< ::ooo::vba::excel::XAxisTitle > SAL_CALL getAxisTitle( ) override;
45 virtual void SAL_CALL setDisplayUnit( ::sal_Int32 DisplayUnit ) override;
46 virtual ::sal_Int32 SAL_CALL getDisplayUnit( ) override;
47 virtual void SAL_CALL setCrosses( ::sal_Int32 Crosses ) override;
48 virtual ::sal_Int32 SAL_CALL getCrosses( ) override;
49 virtual void SAL_CALL setCrossesAt( double CrossesAt ) override;
50 virtual double SAL_CALL getCrossesAt( ) override;
51 virtual void SAL_CALL setType( ::sal_Int32 Type ) override;
52 virtual ::sal_Int32 SAL_CALL getType( ) override;
53 virtual void SAL_CALL setHasTitle( sal_Bool HasTitle ) override;
54 virtual sal_Bool SAL_CALL getHasTitle( ) override;
55 virtual void SAL_CALL setMinorUnit( double MinorUnit ) override;
56 virtual double SAL_CALL getMinorUnit( ) override;
57 virtual void SAL_CALL setMinorUnitIsAuto( sal_Bool MinorUnitIsAuto ) override;
58 virtual sal_Bool SAL_CALL getMinorUnitIsAuto( ) override;
59 virtual void SAL_CALL setReversePlotOrder( sal_Bool ReversePlotOrder ) override;
60 virtual sal_Bool SAL_CALL getReversePlotOrder( ) override;
61 virtual void SAL_CALL setMajorUnit( double MajorUnit ) override;
62 virtual double SAL_CALL getMajorUnit( ) override;
63 virtual void SAL_CALL setMajorUnitIsAuto( sal_Bool MajorUnitIsAuto ) override;
64 virtual sal_Bool SAL_CALL getMajorUnitIsAuto( ) override;
65 virtual void SAL_CALL setMaximumScale( double MaximumScale ) override;
66 virtual double SAL_CALL getMaximumScale( ) override;
67 virtual void SAL_CALL setMaximumScaleIsAuto( sal_Bool MaximumScaleIsAuto ) override;
68 virtual sal_Bool SAL_CALL getMaximumScaleIsAuto( ) override;
69 virtual void SAL_CALL setMinimumScale( double MinimumScale ) override;
70 virtual double SAL_CALL getMinimumScale( ) override;
71 virtual void SAL_CALL setMinimumScaleIsAuto( sal_Bool MinimumScaleIsAuto ) override;
72 virtual sal_Bool SAL_CALL getMinimumScaleIsAuto( ) override;
73 virtual ::sal_Int32 SAL_CALL getAxisGroup( ) override;
74 virtual void SAL_CALL setScaleType( ::sal_Int32 ScaleType ) override;
75 virtual ::sal_Int32 SAL_CALL getScaleType( ) override;
76 virtual double SAL_CALL getHeight( ) override;
77 virtual void SAL_CALL setHeight( double height ) override;
78 virtual double SAL_CALL getWidth( ) override;
79 virtual void SAL_CALL setWidth( double width ) override;
80 virtual double SAL_CALL getTop( ) override;
81 virtual void SAL_CALL setTop( double top ) override;
82 virtual double SAL_CALL getLeft( ) override;
83 virtual void SAL_CALL setLeft( double left ) override;
84
85 // XHelperInterface
86 virtual OUString getServiceImplName() override;
87 virtual css::uno::Sequence<OUString> getServiceNames() override;
88};
89
90/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL setMinorUnitIsAuto(sal_Bool MinorUnitIsAuto) override
Definition: vbaaxis.cxx:310
virtual ::sal_Int32 SAL_CALL getType() override
Definition: vbaaxis.cxx:221
virtual void SAL_CALL setScaleType(::sal_Int32 ScaleType) override
Definition: vbaaxis.cxx:557
virtual OUString getServiceImplName() override
Definition: vbaaxis.cxx:642
sal_Int32 mnType
Definition: vbaaxis.hxx:31
virtual ::sal_Int32 SAL_CALL getDisplayUnit() override
Definition: vbaaxis.cxx:111
virtual double SAL_CALL getMajorUnit() override
Definition: vbaaxis.cxx:371
virtual sal_Bool SAL_CALL getHasTitle() override
Definition: vbaaxis.cxx:253
virtual sal_Bool SAL_CALL getMaximumScaleIsAuto() override
Definition: vbaaxis.cxx:471
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)
Definition: vbaaxis.cxx:56
virtual void SAL_CALL setHasTitle(sal_Bool HasTitle) override
Definition: vbaaxis.cxx:227
virtual void SAL_CALL setMajorUnitIsAuto(sal_Bool MajorUnitIsAuto) override
Definition: vbaaxis.cxx:387
virtual double SAL_CALL getCrossesAt() override
Definition: vbaaxis.cxx:200
virtual double SAL_CALL getHeight() override
Definition: vbaaxis.cxx:607
virtual ::sal_Int32 SAL_CALL getScaleType() override
Definition: vbaaxis.cxx:584
virtual void SAL_CALL setMinorUnit(double MinorUnit) override
Definition: vbaaxis.cxx:280
virtual void SAL_CALL setLeft(double left) override
Definition: vbaaxis.cxx:636
sal_Int32 mnGroup
Definition: vbaaxis.hxx:32
css::uno::Reference< ov::excel::XChart > moChartParent
Definition: vbaaxis.hxx:29
virtual void SAL_CALL setHeight(double height) override
Definition: vbaaxis.cxx:612
virtual void SAL_CALL setType(::sal_Int32 Type) override
Definition: vbaaxis.cxx:215
virtual double SAL_CALL getTop() override
Definition: vbaaxis.cxx:624
virtual void SAL_CALL setCrosses(::sal_Int32 Crosses) override
Definition: vbaaxis.cxx:118
virtual double SAL_CALL getMaximumScale() override
Definition: vbaaxis.cxx:437
virtual css::uno::Reference< ::ooo::vba::excel::XAxisTitle > SAL_CALL getAxisTitle() override
Definition: vbaaxis.cxx:72
virtual void SAL_CALL setMinimumScale(double MinimumScale) override
Definition: vbaaxis.cxx:487
virtual void SAL_CALL setCrossesAt(double CrossesAt) override
Definition: vbaaxis.cxx:185
virtual sal_Bool SAL_CALL getMinimumScaleIsAuto() override
Definition: vbaaxis.cxx:533
virtual double SAL_CALL getLeft() override
Definition: vbaaxis.cxx:632
bool bCrossesAreCustomized
Definition: vbaaxis.hxx:33
virtual void SAL_CALL setTop(double top) override
Definition: vbaaxis.cxx:628
virtual void SAL_CALL setMaximumScaleIsAuto(sal_Bool MaximumScaleIsAuto) override
Definition: vbaaxis.cxx:456
virtual ::sal_Int32 SAL_CALL getAxisGroup() override
Definition: vbaaxis.cxx:551
bool isValueAxis()
Definition: vbaaxis.cxx:47
virtual void SAL_CALL setReversePlotOrder(sal_Bool ReversePlotOrder) override
Definition: vbaaxis.cxx:342
virtual sal_Bool SAL_CALL getMinorUnitIsAuto() override
Definition: vbaaxis.cxx:324
css::uno::Reference< css::beans::XPropertySet > mxPropertySet
Definition: vbaaxis.hxx:30
virtual sal_Bool SAL_CALL getMajorUnitIsAuto() override
Definition: vbaaxis.cxx:403
virtual void SAL_CALL Delete() override
Definition: vbaaxis.cxx:65
virtual css::uno::Sequence< OUString > getServiceNames() override
Definition: vbaaxis.cxx:648
virtual sal_Bool SAL_CALL getReversePlotOrder() override
Definition: vbaaxis.cxx:348
ScVbaChart * getChartPtr()
Definition: vbaaxis.cxx:38
virtual void SAL_CALL setDisplayUnit(::sal_Int32 DisplayUnit) override
Definition: vbaaxis.cxx:105
virtual double SAL_CALL getWidth() override
Definition: vbaaxis.cxx:616
virtual double SAL_CALL getMinorUnit() override
Definition: vbaaxis.cxx:294
std::unique_ptr< ov::ShapeHelper > oShapeHelper
Definition: vbaaxis.hxx:38
virtual ::sal_Int32 SAL_CALL getCrosses() override
Definition: vbaaxis.cxx:151
virtual void SAL_CALL setWidth(double width) override
Definition: vbaaxis.cxx:620
virtual double SAL_CALL getMinimumScale() override
Definition: vbaaxis.cxx:501
virtual void SAL_CALL setMaximumScale(double MaximumScale) override
Definition: vbaaxis.cxx:421
virtual void SAL_CALL setMajorUnit(double MajorUnit) override
Definition: vbaaxis.cxx:355
virtual void SAL_CALL setMinimumScaleIsAuto(sal_Bool MinimumScaleIsAuto) override
Definition: vbaaxis.cxx:517
Type
unsigned char sal_Bool
InheritedHelperInterfaceWeakImpl< ov::excel::XAxis > ScVbaAxis_BASE
Definition: vbaaxis.hxx:25