tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / vba / vbaaxis.hxx
blob8fcb9a39909260f643f85bee3a3488e73e18c024
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
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>
23 #include <vbahelper/vbahelperinterface.hxx>
24 #include <rtl/ref.hxx>
25 #include <memory>
27 class ScVbaChart;
29 typedef InheritedHelperInterfaceWeakImpl< ov::excel::XAxis > ScVbaAxis_BASE;
30 class ScVbaAxis : public ScVbaAxis_BASE
32 rtl::Reference< ScVbaChart > moChartParent;
33 css::uno::Reference< css::beans::XPropertySet > mxPropertySet;
34 sal_Int32 mnType;
35 sal_Int32 mnGroup;
36 ov::ShapeHelper maShapeHelper;
38 bool bCrossesAreCustomized;
39 /// @throws css::uno::RuntimeException
40 ScVbaChart* getChartPtr();
41 /// @throws css::script::BasicErrorException
42 bool isValueAxis();
44 public:
45 ScVbaAxis( const rtl::Reference< ScVbaChart >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, css::uno::Reference< css::beans::XPropertySet > _xPropertySet, sal_Int32 _nType, sal_Int32 _nGroup );
46 // Methods
47 virtual void SAL_CALL Delete( ) override;
48 virtual css::uno::Reference< ::ooo::vba::excel::XAxisTitle > SAL_CALL getAxisTitle( ) override;
49 virtual void SAL_CALL setDisplayUnit( ::sal_Int32 DisplayUnit ) override;
50 virtual ::sal_Int32 SAL_CALL getDisplayUnit( ) override;
51 virtual void SAL_CALL setCrosses( ::sal_Int32 Crosses ) override;
52 virtual ::sal_Int32 SAL_CALL getCrosses( ) override;
53 virtual void SAL_CALL setCrossesAt( double CrossesAt ) override;
54 virtual double SAL_CALL getCrossesAt( ) override;
55 virtual void SAL_CALL setType( ::sal_Int32 Type ) override;
56 virtual ::sal_Int32 SAL_CALL getType( ) override;
57 virtual void SAL_CALL setHasTitle( sal_Bool HasTitle ) override;
58 virtual sal_Bool SAL_CALL getHasTitle( ) override;
59 virtual void SAL_CALL setMinorUnit( double MinorUnit ) override;
60 virtual double SAL_CALL getMinorUnit( ) override;
61 virtual void SAL_CALL setMinorUnitIsAuto( sal_Bool MinorUnitIsAuto ) override;
62 virtual sal_Bool SAL_CALL getMinorUnitIsAuto( ) override;
63 virtual void SAL_CALL setReversePlotOrder( sal_Bool ReversePlotOrder ) override;
64 virtual sal_Bool SAL_CALL getReversePlotOrder( ) override;
65 virtual void SAL_CALL setMajorUnit( double MajorUnit ) override;
66 virtual double SAL_CALL getMajorUnit( ) override;
67 virtual void SAL_CALL setMajorUnitIsAuto( sal_Bool MajorUnitIsAuto ) override;
68 virtual sal_Bool SAL_CALL getMajorUnitIsAuto( ) override;
69 virtual void SAL_CALL setMaximumScale( double MaximumScale ) override;
70 virtual double SAL_CALL getMaximumScale( ) override;
71 virtual void SAL_CALL setMaximumScaleIsAuto( sal_Bool MaximumScaleIsAuto ) override;
72 virtual sal_Bool SAL_CALL getMaximumScaleIsAuto( ) override;
73 virtual void SAL_CALL setMinimumScale( double MinimumScale ) override;
74 virtual double SAL_CALL getMinimumScale( ) override;
75 virtual void SAL_CALL setMinimumScaleIsAuto( sal_Bool MinimumScaleIsAuto ) override;
76 virtual sal_Bool SAL_CALL getMinimumScaleIsAuto( ) override;
77 virtual ::sal_Int32 SAL_CALL getAxisGroup( ) override;
78 virtual void SAL_CALL setScaleType( ::sal_Int32 ScaleType ) override;
79 virtual ::sal_Int32 SAL_CALL getScaleType( ) override;
80 virtual double SAL_CALL getHeight( ) override;
81 virtual void SAL_CALL setHeight( double height ) override;
82 virtual double SAL_CALL getWidth( ) override;
83 virtual void SAL_CALL setWidth( double width ) override;
84 virtual double SAL_CALL getTop( ) override;
85 virtual void SAL_CALL setTop( double top ) override;
86 virtual double SAL_CALL getLeft( ) override;
87 virtual void SAL_CALL setLeft( double left ) override;
89 // XHelperInterface
90 virtual OUString getServiceImplName() override;
91 virtual css::uno::Sequence<OUString> getServiceNames() override;
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */