fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / vba / vbachartobjects.hxx
blob810d6474a1a3006f56320596bd10cf9560dbb5b2
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 .
20 #ifndef INCLUDED_SC_SOURCE_UI_VBA_VBACHARTOBJECTS_HXX
21 #define INCLUDED_SC_SOURCE_UI_VBA_VBACHARTOBJECTS_HXX
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"
33 typedef CollTestImplHelper< ov::excel::XChartObjects > ChartObjects_BASE;
35 class ScVbaChartObjects : public ChartObjects_BASE
38 css::uno::Reference< css::table::XTableCharts > xTableCharts;
39 css::uno::Reference< css::drawing::XDrawPageSupplier > xDrawPageSupplier;
40 // method associated with populating the hashmap ( I'm not convinced this is necessary )
41 //css::uno::Reference< ov::excel::XChartObject > putByPersistName( const rtl:::OUString& _sPersistChartName );
42 public:
43 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 );
45 css::uno::Sequence< OUString > getChartObjectNames() throw( css::script::BasicErrorException );
46 void removeByName(const OUString& _sChartName);
48 // XChartObjects
49 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;
50 virtual void SAL_CALL Delete( ) throw (::com::sun::star::script::BasicErrorException, std::exception) SAL_OVERRIDE;
51 // XEnumerationAccess
52 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw (css::uno::RuntimeException) SAL_OVERRIDE;
53 // XElementAccess
54 virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException) SAL_OVERRIDE;
55 // ScVbaCollectionBaseImpl
56 virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource ) SAL_OVERRIDE;
57 // ChartObjects_BASE
58 virtual OUString getServiceImplName() SAL_OVERRIDE;
59 virtual css::uno::Sequence<OUString> getServiceNames() SAL_OVERRIDE;
62 #endif // INCLUDED_SC_SOURCE_UI_VBA_VBACHARTOBJECTS_HXX
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */