1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef SC_VBA_AXIS_HXX 24 #define SC_VBA_AXIS_HXX 25 #include <com/sun/star/beans/XPropertySet.hpp> 26 #include <ooo/vba/excel/XAxis.hpp> 27 #include <ooo/vba/excel/XChart.hpp> 28 #include <vbahelper/vbahelperinterface.hxx> 29 #include <memory> 30 typedef InheritedHelperInterfaceImpl1< ov::excel::XAxis > ScVbaAxis_BASE; 31 class ScVbaChart; 32 class ScVbaAxis : public ScVbaAxis_BASE 33 { 34 css::uno::Reference< ov::excel::XChart > moChartParent; 35 css::uno::Reference< css::beans::XPropertySet > mxPropertySet; 36 sal_Int32 mnType; 37 sal_Int32 mnGroup; 38 sal_Int32 mnCrosses; 39 sal_Bool bCrossesAreCustomized; 40 ScVbaChart* getChartPtr(); 41 sal_Bool isValueAxis(); 42 std::auto_ptr<ov::ShapeHelper> oShapeHelper; 43 44 public: 45 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 ); 46 // Methods 47 virtual void SAL_CALL Delete( ); 48 virtual css::uno::Reference< ::ooo::vba::excel::XAxisTitle > SAL_CALL getAxisTitle( ); 49 virtual void SAL_CALL setDisplayUnit( ::sal_Int32 DisplayUnit ); 50 virtual ::sal_Int32 SAL_CALL getDisplayUnit( ); 51 virtual void SAL_CALL setCrosses( ::sal_Int32 Crosses ); 52 virtual ::sal_Int32 SAL_CALL getCrosses( ); 53 virtual void SAL_CALL setCrossesAt( double CrossesAt ); 54 virtual double SAL_CALL getCrossesAt( ); 55 virtual void SAL_CALL setType( ::sal_Int32 Type ); 56 virtual ::sal_Int32 SAL_CALL getType( ); 57 virtual void SAL_CALL setHasTitle( ::sal_Bool HasTitle ); 58 virtual ::sal_Bool SAL_CALL getHasTitle( ); 59 virtual void SAL_CALL setMinorUnit( double MinorUnit ); 60 virtual double SAL_CALL getMinorUnit( ); 61 virtual void SAL_CALL setMinorUnitIsAuto( ::sal_Bool MinorUnitIsAuto ); 62 virtual ::sal_Bool SAL_CALL getMinorUnitIsAuto( ); 63 virtual void SAL_CALL setReversePlotOrder( ::sal_Bool ReversePlotOrder ); 64 virtual ::sal_Bool SAL_CALL getReversePlotOrder( ); 65 virtual void SAL_CALL setMajorUnit( double MajorUnit ); 66 virtual double SAL_CALL getMajorUnit( ); 67 virtual void SAL_CALL setMajorUnitIsAuto( ::sal_Bool MajorUnitIsAuto ); 68 virtual ::sal_Bool SAL_CALL getMajorUnitIsAuto( ); 69 virtual void SAL_CALL setMaximumScale( double MaximumScale ); 70 virtual double SAL_CALL getMaximumScale( ); 71 virtual void SAL_CALL setMaximumScaleIsAuto( ::sal_Bool MaximumScaleIsAuto ); 72 virtual ::sal_Bool SAL_CALL getMaximumScaleIsAuto( ); 73 virtual void SAL_CALL setMinimumScale( double MinimumScale ); 74 virtual double SAL_CALL getMinimumScale( ); 75 virtual void SAL_CALL setMinimumScaleIsAuto( ::sal_Bool MinimumScaleIsAuto ); 76 virtual ::sal_Bool SAL_CALL getMinimumScaleIsAuto( ); 77 virtual ::sal_Int32 SAL_CALL getAxisGroup( ); 78 virtual void SAL_CALL setScaleType( ::sal_Int32 ScaleType ); 79 virtual ::sal_Int32 SAL_CALL getScaleType( ); 80 virtual double SAL_CALL getHeight( ); 81 virtual void SAL_CALL setHeight( double height ); 82 virtual double SAL_CALL getWidth( ); 83 virtual void SAL_CALL setWidth( double width ); 84 virtual double SAL_CALL getTop( ); 85 virtual void SAL_CALL setTop( double top ); 86 virtual double SAL_CALL getLeft( ); 87 virtual void SAL_CALL setLeft( double left ); 88 89 // XHelperInterface 90 virtual rtl::OUString& getServiceImplName(); 91 virtual css::uno::Sequence<rtl::OUString> getServiceNames(); 92 }; 93 94 #endif //SC_VBA_AXIS_HXX 95