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
26namespace com::sun::star::beans { class XPropertySet; }
27namespace com::sun::star::uno { class XComponentContext; }
28namespace ooo::vba::excel { class XRange; }
29
30template< typename... Ifc >
32{
34protected:
35 css::uno::Reference< css::beans::XPropertySet > mxRowColPropertySet;
36 css::sheet::TablePageBreakData maTablePageBreakData;
37public:
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);
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{
55public:
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{
73public:
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: */
virtual css::uno::Sequence< OUString > getServiceNames() 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)
virtual OUString getServiceImplName() override
ScVbaPageBreak(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::beans::XPropertySet > xProps, css::sheet::TablePageBreakData aTablePageBreakData)
virtual sal_Int32 SAL_CALL getType() override
virtual void SAL_CALL Delete() override
virtual void SAL_CALL setType(sal_Int32 type) override
css::sheet::TablePageBreakData maTablePageBreakData
virtual css::uno::Reference< ov::excel::XRange > SAL_CALL Location() override
css::uno::Reference< css::beans::XPropertySet > mxRowColPropertySet
InheritedHelperInterfaceWeakImpl< Ifc... > ScVbaPageBreak_BASE
virtual css::uno::Sequence< OUString > getServiceNames() override
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 ~ScVbaVPageBreak() override
virtual OUString getServiceImplName() override
class SAL_NO_VTABLE XPropertySet
ScVbaPageBreak< ov::excel::XVPageBreak > ScVbaVPageBreak_BASE
ScVbaPageBreak< ov::excel::XHPageBreak > ScVbaHPageBreak_BASE