LCOV - code coverage report
Current view: top level - sc/source/ui/vba - vbachart.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 2 0.0 %
Date: 2014-11-03 Functions: 0 3 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : 
      20             : #ifndef INCLUDED_SC_SOURCE_UI_VBA_VBACHART_HXX
      21             : #define INCLUDED_SC_SOURCE_UI_VBA_VBACHART_HXX
      22             : 
      23             : #include <cppuhelper/implbase1.hxx>
      24             : #include <com/sun/star/uno/XComponentContext.hpp>
      25             : #include <com/sun/star/table/XTableChart.hpp>
      26             : #include <com/sun/star/chart/XChartDocument.hpp>
      27             : #include <com/sun/star/chart/XAxisXSupplier.hpp>
      28             : #include <com/sun/star/chart/XAxisYSupplier.hpp>
      29             : #include <com/sun/star/chart/XAxisZSupplier.hpp>
      30             : #include <com/sun/star/chart/XTwoAxisXSupplier.hpp>
      31             : #include <com/sun/star/chart/XTwoAxisYSupplier.hpp>
      32             : #include <ooo/vba/excel/XChart.hpp>
      33             : #include <ooo/vba/excel/XDataLabels.hpp>
      34             : #include <ooo/vba/excel/XSeries.hpp>
      35             : #include <vbahelper/vbahelperinterface.hxx>
      36             : 
      37             : typedef InheritedHelperInterfaceImpl1<ov::excel::XChart > ChartImpl_BASE;
      38             : 
      39           0 : class ScVbaChart : public ChartImpl_BASE
      40             : {
      41             : friend class ScVbaAxis;
      42             : 
      43             :     css::uno::Reference< css::chart::XChartDocument > mxChartDocument;
      44             :     css::uno::Reference< css::table::XTableChart > mxTableChart;
      45             :     css::uno::Reference< css::beans::XPropertySet > mxDiagramPropertySet;
      46             :     css::uno::Reference< css::beans::XPropertySet > mxChartPropertySet;
      47             :     css::uno::Reference< css::chart::XAxisXSupplier > xAxisXSupplier;
      48             :     css::uno::Reference< css::chart::XAxisYSupplier> xAxisYSupplier;
      49             :     css::uno::Reference< css::chart::XAxisZSupplier > xAxisZSupplier;
      50             :     css::uno::Reference< css::chart::XTwoAxisXSupplier > xTwoAxisXSupplier;
      51             :     css::uno::Reference< css::chart::XTwoAxisYSupplier > xTwoAxisYSupplier;
      52             : 
      53             :     css::uno::Sequence< OUString > getDefaultSeriesDescriptions( sal_Int32 nCount );
      54             :     css::uno::Sequence< css::uno::Sequence< double > > dblValues;
      55             :     void setDefaultChartType()throw ( css::script::BasicErrorException ) ;
      56             :     void setDiagram( const OUString& _sDiagramType) throw( css::script::BasicErrorException );
      57             :     bool isStacked() throw ( css::uno::RuntimeException );
      58             :     bool is100PercentStacked() throw ( css::uno::RuntimeException );
      59             :     sal_Int32 getStackedType( sal_Int32 _nStacked, sal_Int32 _n100PercentStacked, sal_Int32 _nUnStacked ) throw ( css::uno::RuntimeException );
      60             :     sal_Int32 getSolidType(sal_Int32 _nDeep, sal_Int32 _nVertiStacked, sal_Int32 _nVerti100PercentStacked, sal_Int32 _nVertiUnStacked, sal_Int32 _nHoriStacked, sal_Int32 _nHori100PercentStacked, sal_Int32 _nHoriUnStacked) throw ( css::script::BasicErrorException );
      61             :     sal_Int32 getStockUpDownValue(sal_Int32 _nUpDown, sal_Int32 _nNotUpDown) throw (css::script::BasicErrorException);
      62             :     bool hasMarkers() throw ( css::script::BasicErrorException );
      63             :     sal_Int32 getMarkerType(sal_Int32 _nWithMarkers, sal_Int32 _nWithoutMarkers) throw ( css::script::BasicErrorException );
      64             :     void assignDiagramAttributes();
      65             : public:
      66             :     ScVbaChart( const css::uno::Reference< ov::XHelperInterface >& _xParent, const css::uno::Reference< css::uno::XComponentContext >& _xContext, const css::uno::Reference< css::lang::XComponent >& _xChartComponent, const css::uno::Reference< css::table::XTableChart >& _xTableChart );
      67             : 
      68             :     // Non-interface
      69           0 :     css::uno::Reference< css::beans::XPropertySet > xDiagramPropertySet() const { return mxDiagramPropertySet; }
      70             :     bool is3D() throw ( css::uno::RuntimeException );
      71             :     css::uno::Reference< css::beans::XPropertySet > getAxisPropertySet(sal_Int32 _nAxisType, sal_Int32 _nAxisGroup) throw ( css::script::BasicErrorException, css::uno::RuntimeException );
      72             :     // Methods
      73             :     virtual OUString SAL_CALL getName() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      74             :     virtual css::uno::Any SAL_CALL SeriesCollection(const css::uno::Any&) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      75             :     virtual ::sal_Int32 SAL_CALL getChartType() throw ( css::uno::RuntimeException, css::script::BasicErrorException, std::exception) SAL_OVERRIDE;
      76             :     virtual void SAL_CALL setChartType( ::sal_Int32 _charttype ) throw ( css::uno::RuntimeException, css::script::BasicErrorException, std::exception) SAL_OVERRIDE;
      77             :     virtual void SAL_CALL Activate(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      78             :     virtual void SAL_CALL setSourceData( const css::uno::Reference< ::ooo::vba::excel::XRange >& range, const css::uno::Any& PlotBy ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      79             :     virtual ::sal_Int32 SAL_CALL Location(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      80             :     virtual ::sal_Int32 SAL_CALL getLocation(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      81             :     virtual void SAL_CALL setLocation( ::sal_Int32 where, const css::uno::Any& Name ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      82             :     virtual sal_Bool SAL_CALL getHasTitle(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      83             :     virtual void SAL_CALL setHasTitle( sal_Bool bTitle ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      84             :     virtual sal_Bool SAL_CALL getHasLegend(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      85             :     virtual void SAL_CALL setHasLegend( sal_Bool bLegend ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      86             :     virtual void SAL_CALL setPlotBy( ::sal_Int32 xlRowCol ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      87             :     virtual ::sal_Int32 SAL_CALL getPlotBy(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      88             :     virtual css::uno::Reference< ov::excel::XChartTitle > SAL_CALL getChartTitle(  ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      89             :     virtual css::uno::Any SAL_CALL Axes( const css::uno::Any& Type, const css::uno::Any& AxisGroup ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      90             :     // XHelperInterface
      91             :     virtual OUString getServiceImplName() SAL_OVERRIDE;
      92             :     virtual css::uno::Sequence<OUString> getServiceNames() SAL_OVERRIDE;
      93             : 
      94             : };
      95             : 
      96             : #endif // INCLUDED_SC_SOURCE_UI_VBA_VBACHART_HXX
      97             : 
      98             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10