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 : #ifndef INCLUDED_SC_SOURCE_UI_VBA_VBAPAGEBREAKS_HXX
20 : #define INCLUDED_SC_SOURCE_UI_VBA_VBAPAGEBREAKS_HXX
21 :
22 : #include <cppuhelper/implbase1.hxx>
23 : #include <ooo/vba/excel/XHPageBreaks.hpp>
24 : #include <ooo/vba/excel/XHPageBreak.hpp>
25 : #include <ooo/vba/excel/XVPageBreaks.hpp>
26 : #include <ooo/vba/excel/XVPageBreak.hpp>
27 : #include <ooo/vba/excel/XRange.hpp>
28 : #include <com/sun/star/uno/XComponentContext.hpp>
29 : #include <com/sun/star/script/BasicErrorException.hpp>
30 : #include <com/sun/star/sheet/XSheetPageBreak.hpp>
31 : #include <com/sun/star/sheet/TablePageBreakData.hpp>
32 : #include <com/sun/star/beans/XPropertySet.hpp>
33 : #include <com/sun/star/container/XIndexAccess.hpp>
34 : #include <com/sun/star/table/XColumnRowRange.hpp>
35 : #include <vbahelper/vbahelperinterface.hxx>
36 : #include <vbahelper/vbacollectionimpl.hxx>
37 :
38 : typedef CollTestImplHelper< ov::excel::XHPageBreaks > ScVbaHPageBreaks_BASE;
39 :
40 : class ScVbaHPageBreaks : public ScVbaHPageBreaks_BASE
41 : {
42 : css::uno::Reference< css::sheet::XSheetPageBreak > mxSheetPageBreak;
43 : public:
44 : ScVbaHPageBreaks( const css::uno::Reference< ov::XHelperInterface >& xParent,
45 : const css::uno::Reference< css::uno::XComponentContext >& xContext,
46 : css::uno::Reference< css::sheet::XSheetPageBreak >& xSheetPageBreak) throw (css::uno::RuntimeException);
47 2 : virtual ~ScVbaHPageBreaks(){}
48 :
49 : // XHPageBreaks
50 : virtual css::uno::Any SAL_CALL Add( const css::uno::Any& Before) throw ( css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
51 :
52 : // XEnumerationAccess
53 : virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException) SAL_OVERRIDE;
54 : virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw (css::uno::RuntimeException) SAL_OVERRIDE;
55 : virtual css::uno::Any createCollectionObject(const css::uno::Any&) SAL_OVERRIDE;
56 :
57 : // XHelperInterface
58 : virtual OUString getServiceImplName() SAL_OVERRIDE;
59 : virtual css::uno::Sequence<OUString> getServiceNames() SAL_OVERRIDE;
60 : };
61 :
62 : //VPageBreaks
63 : typedef CollTestImplHelper< ov::excel::XVPageBreaks > ScVbaVPageBreaks_BASE;
64 :
65 : class ScVbaVPageBreaks : public ScVbaVPageBreaks_BASE
66 : {
67 : css::uno::Reference< css::sheet::XSheetPageBreak > mxSheetPageBreak;
68 :
69 : public:
70 : ScVbaVPageBreaks( const css::uno::Reference< ov::XHelperInterface >& xParent,
71 : const css::uno::Reference< css::uno::XComponentContext >& xContext,
72 : css::uno::Reference< css::sheet::XSheetPageBreak >& xSheetPageBreak ) throw ( css::uno::RuntimeException );
73 :
74 : virtual ~ScVbaVPageBreaks();
75 :
76 : // XVPageBreaks
77 : virtual css::uno::Any SAL_CALL Add( const css::uno::Any& Before ) throw ( css::script::BasicErrorException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
78 :
79 : // XEnumerationAccess
80 : virtual css::uno::Type SAL_CALL getElementType() throw ( css::uno::RuntimeException ) SAL_OVERRIDE;
81 : virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw ( css::uno::RuntimeException ) SAL_OVERRIDE;
82 : virtual css::uno::Any createCollectionObject( const css::uno::Any& ) SAL_OVERRIDE;
83 :
84 : // XHelperInterface
85 : virtual OUString getServiceImplName() SAL_OVERRIDE;
86 : virtual css::uno::Sequence<OUString> getServiceNames() SAL_OVERRIDE;
87 : };
88 :
89 : #endif
90 :
91 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|