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 #ifndef INCLUDED_SC_SOURCE_UI_VBA_VBAPAGEBREAK_HXX
20 #define INCLUDED_SC_SOURCE_UI_VBA_VBAPAGEBREAK_HXX
21 
22 #include <ooo/vba/excel/XHPageBreak.hpp>
23 #include <ooo/vba/excel/XVPageBreak.hpp>
24 #include <com/sun/star/sheet/TablePageBreakData.hpp>
26 
27 namespace com::sun::star::beans { class XPropertySet; }
28 namespace com::sun::star::uno { class XComponentContext; }
29 namespace ooo::vba::excel { class XRange; }
30 
31 template< typename... Ifc >
33 {
35 protected:
36  css::uno::Reference< css::beans::XPropertySet > mxRowColPropertySet;
37  css::sheet::TablePageBreakData maTablePageBreakData;
38 public:
40  ScVbaPageBreak( const css::uno::Reference< ov::XHelperInterface >& xParent,
41  const css::uno::Reference< css::uno::XComponentContext >& xContext,
42  const css::uno::Reference< css::beans::XPropertySet >& xProps,
43  css::sheet::TablePageBreakData aTablePageBreakData);
44 
45  virtual sal_Int32 SAL_CALL getType( ) override;
46  virtual void SAL_CALL setType(sal_Int32 type) override;
47 
48  virtual void SAL_CALL Delete() override;
49  virtual css::uno::Reference< ov::excel::XRange> SAL_CALL Location() override;
50 };
51 
53 
55 {
56 public:
58  ScVbaHPageBreak( const css::uno::Reference< ov::XHelperInterface >& xParent,
59  const css::uno::Reference< css::uno::XComponentContext >& xContext,
60  const css::uno::Reference< css::beans::XPropertySet >& xProps,
61  css::sheet::TablePageBreakData aTablePageBreakData):
62  ScVbaHPageBreak_BASE( xParent,xContext,xProps,aTablePageBreakData ){}
63 
64  // XHelperInterface
65  virtual OUString getServiceImplName() override;
66  virtual css::uno::Sequence<OUString> getServiceNames() override;
67 };
68 
69 //VPageBreak
71 
73 {
74 public:
76  ScVbaVPageBreak( const css::uno::Reference< ov::XHelperInterface >& xParent,
77  const css::uno::Reference< css::uno::XComponentContext >& xContext,
78  const css::uno::Reference< css::beans::XPropertySet >& xProps,
79  css::sheet::TablePageBreakData aTablePageBreakData);
80 
81  virtual ~ScVbaVPageBreak() override;
82 
83  // XHelperInterface
84  virtual OUString getServiceImplName() override;
85  virtual css::uno::Sequence<OUString> getServiceNames() override;
86 };
87 
88 #endif
89 
90 /* 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