merge the formfield patch from ooo-build
[ooovba.git] / sc / source / ui / vba / vbapagebreaks.hxx
blob749eea876af154247a694656c4208f6df9364db9
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile$
10 * $Revision$
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef SC_VBA_PAGEBREAKS_HXX
31 #define SC_VBA_PAGEBREAKS_HXX
33 #include <cppuhelper/implbase1.hxx>
34 #include <ooo/vba/excel/XHPageBreaks.hpp>
35 #include <ooo/vba/excel/XHPageBreak.hpp>
36 #include <ooo/vba/excel/XVPageBreaks.hpp>
37 #include <ooo/vba/excel/XVPageBreak.hpp>
38 #include <ooo/vba/excel/XRange.hpp>
39 #include <com/sun/star/uno/XComponentContext.hpp>
40 #include <com/sun/star/script/BasicErrorException.hpp>
41 #include <com/sun/star/sheet/XSheetPageBreak.hpp>
42 #include <com/sun/star/sheet/TablePageBreakData.hpp>
43 #include <com/sun/star/beans/XPropertySet.hpp>
44 #include <com/sun/star/container/XIndexAccess.hpp>
45 #include <com/sun/star/table/XColumnRowRange.hpp>
46 #include <vbahelper/vbahelperinterface.hxx>
47 #include <vbahelper/vbacollectionimpl.hxx>
49 typedef CollTestImplHelper< ov::excel::XHPageBreaks > ScVbaHPageBreaks_BASE;
51 class ScVbaHPageBreaks : public ScVbaHPageBreaks_BASE
53 css::uno::Reference< css::sheet::XSheetPageBreak > mxSheetPageBreak;
54 public:
55 ScVbaHPageBreaks( const css::uno::Reference< ov::XHelperInterface >& xParent,
56 const css::uno::Reference< css::uno::XComponentContext >& xContext,
57 css::uno::Reference< css::sheet::XSheetPageBreak >& xSheetPageBreak) throw (css::uno::RuntimeException);
58 virtual ~ScVbaHPageBreaks(){}
60 // XHPageBreaks
61 virtual css::uno::Any SAL_CALL Add( const css::uno::Any& Before) throw ( css::script::BasicErrorException, css::uno::RuntimeException);
63 // XEnumerationAccess
64 virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException);
65 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw (css::uno::RuntimeException);
66 virtual css::uno::Any createCollectionObject(const css::uno::Any&);
68 // XHelperInterface
69 virtual rtl::OUString& getServiceImplName();
70 virtual css::uno::Sequence<rtl::OUString> getServiceNames();
73 //VPageBreaks
74 typedef CollTestImplHelper< ov::excel::XVPageBreaks > ScVbaVPageBreaks_BASE;
76 class ScVbaVPageBreaks : public ScVbaVPageBreaks_BASE
78 css::uno::Reference< css::sheet::XSheetPageBreak > mxSheetPageBreak;
80 public:
81 ScVbaVPageBreaks( const css::uno::Reference< ov::XHelperInterface >& xParent,
82 const css::uno::Reference< css::uno::XComponentContext >& xContext,
83 css::uno::Reference< css::sheet::XSheetPageBreak >& xSheetPageBreak ) throw ( css::uno::RuntimeException );
85 virtual ~ScVbaVPageBreaks();
87 // XVPageBreaks
88 virtual css::uno::Any SAL_CALL Add( const css::uno::Any& Before ) throw ( css::script::BasicErrorException, css::uno::RuntimeException );
90 // XEnumerationAccess
91 virtual css::uno::Type SAL_CALL getElementType() throw ( css::uno::RuntimeException );
92 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw ( css::uno::RuntimeException );
93 virtual css::uno::Any createCollectionObject( const css::uno::Any& );
95 // XHelperInterface
96 virtual rtl::OUString& getServiceImplName();
97 virtual css::uno::Sequence<rtl::OUString> getServiceNames();
100 #endif