LCOV - code coverage report
Current view: top level - sc/source/ui/vba - vbachartobjects.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-08-25 Functions: 0 2 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 2 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : #ifndef SC_VBA_CHARTOBJECTS_HXX
      29                 :            : #define SC_VBA_CHARTOBJECTS_HXX
      30                 :            : #include <ooo/vba/excel/XChartObjects.hpp>
      31                 :            : #include <ooo/vba/excel/XChartObject.hpp>
      32                 :            : #include <cppuhelper/implbase1.hxx>
      33                 :            : #include <com/sun/star/uno/XComponentContext.hpp>
      34                 :            : #include <com/sun/star/table/XTableCharts.hpp>
      35                 :            : #include <com/sun/star/drawing/XDrawPageSupplier.hpp>
      36                 :            : #include <com/sun/star/container/XEnumerationAccess.hpp>
      37                 :            : #include <vbahelper/vbacollectionimpl.hxx>
      38                 :            : #include "excelvbahelper.hxx"
      39                 :            : #include <boost/unordered_map.hpp>
      40                 :            : 
      41                 :            : typedef CollTestImplHelper< ov::excel::XChartObjects > ChartObjects_BASE;
      42                 :            : /* #TODO see if this hash table is 'really' necessary
      43                 :            : typedef ::boost::unordered_map< ::rtl::OUString,
      44                 :            : css::uno::Reference< ov::excel::XChartObject >,
      45                 :            :     ::rtl::OUStringHash,
      46                 :            :     ::std::equal_to< ::rtl::OUString > > aHashTable;
      47                 :            : */
      48                 :            : 
      49         [ #  # ]:          0 : class ScVbaChartObjects : public ChartObjects_BASE
      50                 :            : {
      51                 :            : 
      52                 :            :     css::uno::Reference< css::table::XTableCharts > xTableCharts;
      53                 :            :     css::uno::Reference< css::drawing::XDrawPageSupplier > xDrawPageSupplier;
      54                 :            :     // method associated with populating the hashmap ( I'm not convinced this is necessary )
      55                 :            :     //css::uno::Reference< ov::excel::XChartObject > putByPersistName( const rtl:::OUString& _sPersistChartName );
      56                 :            : public:
      57                 :            :     ScVbaChartObjects( const css::uno::Reference< ov::XHelperInterface >& _xParent, const css::uno::Reference< css::uno::XComponentContext >& _xContext, const css::uno::Reference< css::table::XTableCharts >& _xTableCharts, const css::uno::Reference< css::drawing::XDrawPageSupplier >&  _xDrawPageSupplier );
      58                 :            : 
      59                 :            :     css::uno::Sequence< rtl::OUString > getChartObjectNames() throw( css::script::BasicErrorException );
      60                 :            :     void removeByName(const rtl::OUString& _sChartName);
      61                 :            : 
      62                 :            :     // XChartObjects
      63                 :            :     virtual ::com::sun::star::uno::Any SAL_CALL Add( double Left, double Top, double Width, double Height ) throw (::com::sun::star::script::BasicErrorException);
      64                 :            :     virtual void SAL_CALL Delete(  ) throw (::com::sun::star::script::BasicErrorException);
      65                 :            :     // XEnumerationAccess
      66                 :            :     virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw (css::uno::RuntimeException);
      67                 :            :     // XElementAccess
      68                 :            :     virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException);
      69                 :            :     // ScVbaCollectionBaseImpl
      70                 :            :     virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource );
      71                 :            :     // ChartObjects_BASE
      72                 :            :     virtual rtl::OUString getServiceImplName();
      73                 :            :     virtual css::uno::Sequence<rtl::OUString> getServiceNames();
      74                 :            : };
      75                 :            : 
      76                 :            : #endif //SC_VBA_WINDOW_HXX
      77                 :            : 
      78                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10