1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
21 #include <ooo/vba/excel/XHPageBreak.hpp>
22 #include <ooo/vba/excel/XVPageBreak.hpp>
23 #include <com/sun/star/sheet/TablePageBreakData.hpp>
24 #include <vbahelper/vbahelperinterface.hxx>
26 namespace com::sun::star::beans
{ class XPropertySet
; }
27 namespace com::sun::star::uno
{ class XComponentContext
; }
28 namespace ooo::vba::excel
{ class XRange
; }
30 template< typename
... Ifc
>
31 class ScVbaPageBreak
: public InheritedHelperInterfaceWeakImpl
< Ifc
... >
33 typedef InheritedHelperInterfaceWeakImpl
< Ifc
... > ScVbaPageBreak_BASE
;
35 css::uno::Reference
< css::beans::XPropertySet
> mxRowColPropertySet
;
36 css::sheet::TablePageBreakData maTablePageBreakData
;
38 /// @throws css::uno::RuntimeException
39 ScVbaPageBreak( const css::uno::Reference
< ov::XHelperInterface
>& xParent
,
40 const css::uno::Reference
< css::uno::XComponentContext
>& xContext
,
41 css::uno::Reference
< css::beans::XPropertySet
> xProps
,
42 css::sheet::TablePageBreakData aTablePageBreakData
);
44 virtual sal_Int32 SAL_CALL
getType( ) override
;
45 virtual void SAL_CALL
setType(sal_Int32 type
) override
;
47 virtual void SAL_CALL
Delete() override
;
48 virtual css::uno::Reference
< ov::excel::XRange
> SAL_CALL
Location() override
;
51 typedef ScVbaPageBreak
< ov::excel::XHPageBreak
> ScVbaHPageBreak_BASE
;
53 class ScVbaHPageBreak
: public ScVbaHPageBreak_BASE
56 /// @throws css::uno::RuntimeException
57 ScVbaHPageBreak( const css::uno::Reference
< ov::XHelperInterface
>& xParent
,
58 const css::uno::Reference
< css::uno::XComponentContext
>& xContext
,
59 const css::uno::Reference
< css::beans::XPropertySet
>& xProps
,
60 css::sheet::TablePageBreakData aTablePageBreakData
):
61 ScVbaHPageBreak_BASE( xParent
,xContext
,xProps
,aTablePageBreakData
){}
64 virtual OUString
getServiceImplName() override
;
65 virtual css::uno::Sequence
<OUString
> getServiceNames() override
;
69 typedef ScVbaPageBreak
< ov::excel::XVPageBreak
> ScVbaVPageBreak_BASE
;
71 class ScVbaVPageBreak
: public ScVbaVPageBreak_BASE
74 /// @throws css::uno::RuntimeException
75 ScVbaVPageBreak( const css::uno::Reference
< ov::XHelperInterface
>& xParent
,
76 const css::uno::Reference
< css::uno::XComponentContext
>& xContext
,
77 const css::uno::Reference
< css::beans::XPropertySet
>& xProps
,
78 css::sheet::TablePageBreakData aTablePageBreakData
);
80 virtual ~ScVbaVPageBreak() override
;
83 virtual OUString
getServiceImplName() override
;
84 virtual css::uno::Sequence
<OUString
> getServiceNames() override
;
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */