LibreOffice Module sc (master)  1
vbapagebreak.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 #pragma once
20 
21 #include <ooo/vba/excel/XHPageBreak.hpp>
22 #include <ooo/vba/excel/XVPageBreak.hpp>
23 #include <com/sun/star/sheet/TablePageBreakData.hpp>
25 
26 namespace com::sun::star::beans { class XPropertySet; }
27 namespace com::sun::star::uno { class XComponentContext; }
28 namespace ooo::vba::excel { class XRange; }
29 
30 template< typename... Ifc >
32 {
34 protected:
35  css::uno::Reference< css::beans::XPropertySet > mxRowColPropertySet;
36  css::sheet::TablePageBreakData maTablePageBreakData;
37 public:
39  ScVbaPageBreak( const css::uno::Reference< ov::XHelperInterface >& xParent,
40  const css::uno::Reference< css::uno::XComponentContext >& xContext,
41  const css::uno::Reference< css::beans::XPropertySet >& xProps,
42  css::sheet::TablePageBreakData aTablePageBreakData);
43 
44  virtual sal_Int32 SAL_CALL getType( ) override;
45  virtual void SAL_CALL setType(sal_Int32 type) override;
46 
47  virtual void SAL_CALL Delete() override;
48  virtual css::uno::Reference< ov::excel::XRange> SAL_CALL Location() override;
49 };
50 
52 
54 {
55 public:
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 ){}
62 
63  // XHelperInterface
64  virtual OUString getServiceImplName() override;
65  virtual css::uno::Sequence<OUString> getServiceNames() override;
66 };
67 
68 //VPageBreak
70 
72 {
73 public:
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);
79 
80  virtual ~ScVbaVPageBreak() override;
81 
82  // XHelperInterface
83  virtual OUString getServiceImplName() override;
84  virtual css::uno::Sequence<OUString> getServiceNames() override;
85 };
86 
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
InheritedHelperInterfaceWeakImpl< Ifc... > ScVbaPageBreak_BASE
virtual OUString getServiceImplName() override
css::uno::Reference< css::beans::XPropertySet > mxRowColPropertySet
virtual css::uno::Sequence< OUString > getServiceNames() override
ScVbaPageBreak< ov::excel::XHPageBreak > ScVbaHPageBreak_BASE
virtual css::uno::Sequence< OUString > getServiceNames() override
class SAL_NO_VTABLE XPropertySet
css::sheet::TablePageBreakData maTablePageBreakData
virtual void SAL_CALL setType(sal_Int32 type) override
virtual OUString getServiceImplName() override
virtual sal_Int32 SAL_CALL getType() override
ScVbaHPageBreak(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::beans::XPropertySet > &xProps, css::sheet::TablePageBreakData aTablePageBreakData)
ScVbaVPageBreak(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::beans::XPropertySet > &xProps, css::sheet::TablePageBreakData aTablePageBreakData)
virtual css::uno::Reference< ov::excel::XRange > SAL_CALL Location() override
virtual void SAL_CALL Delete() override
ScVbaPageBreak< ov::excel::XVPageBreak > ScVbaVPageBreak_BASE
ScVbaPageBreak(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::beans::XPropertySet > &xProps, css::sheet::TablePageBreakData aTablePageBreakData)
virtual ~ScVbaVPageBreak() override