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_CHARTOBJECT_HXX
29 : : #define SC_VBA_CHARTOBJECT_HXX
30 : : #include <cppuhelper/implbase1.hxx>
31 : : #include <com/sun/star/uno/XComponentContext.hpp>
32 : : #include <com/sun/star/table/XTableChart.hpp>
33 : : #include <com/sun/star/drawing/XDrawPageSupplier.hpp>
34 : : #include <com/sun/star/container/XNamed.hpp>
35 : : #include <com/sun/star/document/XEmbeddedObjectSupplier.hpp>
36 : : #include <ooo/vba/excel/XChartObject.hpp>
37 : : #include <vbahelper/vbahelperinterface.hxx>
38 : : #include <memory>
39 : :
40 : : typedef InheritedHelperInterfaceImpl1<ov::excel::XChartObject > ChartObjectImpl_BASE;
41 : :
42 [ # # ][ # # ]: 0 : class ScVbaChartObject : public ChartObjectImpl_BASE
43 : : {
44 : :
45 : : css::uno::Reference< css::table::XTableChart > xTableChart;
46 : : css::uno::Reference< css::document::XEmbeddedObjectSupplier > xEmbeddedObjectSupplier;
47 : : css::uno::Reference< css::beans::XPropertySet > xPropertySet;
48 : : css::uno::Reference< css::drawing::XDrawPageSupplier > xDrawPageSupplier;
49 : : css::uno::Reference< css::drawing::XDrawPage > xDrawPage;
50 : : css::uno::Reference< css::drawing::XShape > xShape;
51 : : css::uno::Reference< css::container::XNamed > xNamed;
52 : : rtl::OUString sPersistName;
53 : : SAL_WNODEPRECATED_DECLARATIONS_PUSH
54 : : std::auto_ptr<ov::ShapeHelper> oShapeHelper;
55 : : SAL_WNODEPRECATED_DECLARATIONS_POP
56 : : css::uno::Reference< css::container::XNamed > xNamedShape;
57 : : rtl::OUString getPersistName();
58 : : css::uno::Reference< css::drawing::XShape > setShape() throw ( css::script::BasicErrorException );
59 : : public:
60 : : ScVbaChartObject( const css::uno::Reference< ov::XHelperInterface >& _xParent, const css::uno::Reference< css::uno::XComponentContext >& _xContext, const css::uno::Reference< css::table::XTableChart >& _xTableChart, const css::uno::Reference< css::drawing::XDrawPageSupplier >& _xDrawPageSupplier );
61 : : virtual ::rtl::OUString SAL_CALL getName() throw (css::uno::RuntimeException);
62 : : virtual void SAL_CALL setName( const ::rtl::OUString& sName ) throw (css::uno::RuntimeException);
63 : : virtual css::uno::Reference< ov::excel::XChart > SAL_CALL getChart() throw (css::uno::RuntimeException);
64 : : virtual void SAL_CALL Delete() throw ( css::script::BasicErrorException );
65 : : virtual void Activate() throw ( css::script::BasicErrorException );
66 : : // XHelperInterface
67 : : virtual rtl::OUString getServiceImplName();
68 : : virtual css::uno::Sequence<rtl::OUString> getServiceNames();
69 : : };
70 : :
71 : : #endif //SC_VBA_WINDOW_HXX
72 : :
73 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|