LibreOffice Module sc (master)  1
vbachartobjects.hxx
Go to the documentation of this file.
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>
25 
26 namespace com::sun::star::container { class XEnumeration; }
27 namespace com::sun::star::drawing { class XDrawPageSupplier; }
28 namespace com::sun::star::table { class XTableCharts; }
29 namespace com::sun::star::uno { class XComponentContext; }
30 
32 
34 {
35 
36  css::uno::Reference< css::table::XTableCharts > xTableCharts;
37  css::uno::Reference< css::drawing::XDrawPageSupplier > xDrawPageSupplier;
38  // method associated with populating the hashmap ( I'm not convinced this is necessary )
39  //css::uno::Reference< ov::excel::XChartObject > putByPersistName( const rtl:::OUString& _sPersistChartName );
40 public:
41  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 );
42 
44  css::uno::Sequence< OUString > getChartObjectNames() const;
45  void removeByName(const OUString& _sChartName);
46 
47  // XChartObjects
48  virtual css::uno::Any SAL_CALL Add( double Left, double Top, double Width, double Height ) override;
49  virtual void SAL_CALL Delete( ) override;
50  // XEnumerationAccess
51  virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override;
52  // XElementAccess
53  virtual css::uno::Type SAL_CALL getElementType() override;
54  // ScVbaCollectionBaseImpl
55  virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource ) override;
56  // ChartObjects_BASE
57  virtual OUString getServiceImplName() override;
58  virtual css::uno::Sequence<OUString> getServiceNames() override;
59 };
60 
61 #endif // INCLUDED_SC_SOURCE_UI_VBA_VBACHARTOBJECTS_HXX
62 
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Any SAL_CALL Add(double Left, double Top, double Width, double Height) override
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
CollTestImplHelper< ov::excel::XChartObjects > ChartObjects_BASE
void removeByName(const OUString &_sChartName)
css::uno::Sequence< OUString > getChartObjectNames() const
virtual css::uno::Any createCollectionObject(const css::uno::Any &aSource) override
virtual void SAL_CALL Delete() override
virtual css::uno::Type SAL_CALL getElementType() override
virtual OUString getServiceImplName() override
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)
css::uno::Reference< css::drawing::XDrawPageSupplier > xDrawPageSupplier
virtual css::uno::Sequence< OUString > getServiceNames() override
css::uno::Reference< css::table::XTableCharts > xTableCharts