LCOV - code coverage report
Current view: top level - sc/source/ui/vba - vbachartobjects.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 1 0.0 %
Date: 2014-11-03 Functions: 0 2 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_VBACHARTOBJECTS_HXX
      21             : #define INCLUDED_SC_SOURCE_UI_VBA_VBACHARTOBJECTS_HXX
      22             : 
      23             : #include <ooo/vba/excel/XChartObjects.hpp>
      24             : #include <ooo/vba/excel/XChartObject.hpp>
      25             : #include <cppuhelper/implbase1.hxx>
      26             : #include <com/sun/star/uno/XComponentContext.hpp>
      27             : #include <com/sun/star/table/XTableCharts.hpp>
      28             : #include <com/sun/star/drawing/XDrawPageSupplier.hpp>
      29             : #include <com/sun/star/container/XEnumerationAccess.hpp>
      30             : #include <vbahelper/vbacollectionimpl.hxx>
      31             : #include "excelvbahelper.hxx"
      32             : #include <boost/unordered_map.hpp>
      33             : 
      34             : typedef CollTestImplHelper< ov::excel::XChartObjects > ChartObjects_BASE;
      35             : /* #TODO see if this hash table is 'really' necessary
      36             : typedef ::boost::unordered_map< OUString,
      37             : css::uno::Reference< ov::excel::XChartObject >,
      38             :     OUStringHash,
      39             :     ::std::equal_to< OUString > > aHashTable;
      40             : */
      41             : 
      42           0 : class ScVbaChartObjects : public ChartObjects_BASE
      43             : {
      44             : 
      45             :     css::uno::Reference< css::table::XTableCharts > xTableCharts;
      46             :     css::uno::Reference< css::drawing::XDrawPageSupplier > xDrawPageSupplier;
      47             :     // method associated with populating the hashmap ( I'm not convinced this is necessary )
      48             :     //css::uno::Reference< ov::excel::XChartObject > putByPersistName( const rtl:::OUString& _sPersistChartName );
      49             : public:
      50             :     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 );
      51             : 
      52             :     css::uno::Sequence< OUString > getChartObjectNames() throw( css::script::BasicErrorException );
      53             :     void removeByName(const OUString& _sChartName);
      54             : 
      55             :     // XChartObjects
      56             :     virtual ::com::sun::star::uno::Any SAL_CALL Add( double Left, double Top, double Width, double Height ) throw (::com::sun::star::script::BasicErrorException, std::exception) SAL_OVERRIDE;
      57             :     virtual void SAL_CALL Delete(  ) throw (::com::sun::star::script::BasicErrorException, std::exception) SAL_OVERRIDE;
      58             :     // XEnumerationAccess
      59             :     virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw (css::uno::RuntimeException) SAL_OVERRIDE;
      60             :     // XElementAccess
      61             :     virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException) SAL_OVERRIDE;
      62             :     // ScVbaCollectionBaseImpl
      63             :     virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource ) SAL_OVERRIDE;
      64             :     // ChartObjects_BASE
      65             :     virtual OUString getServiceImplName() SAL_OVERRIDE;
      66             :     virtual css::uno::Sequence<OUString> getServiceNames() SAL_OVERRIDE;
      67             : };
      68             : 
      69             : #endif // INCLUDED_SC_SOURCE_UI_VBA_VBACHARTOBJECTS_HXX
      70             : 
      71             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10