LibreOffice Module sw (master) 1
vbarows.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_SW_SOURCE_UI_VBA_VBAROWS_HXX
20#define INCLUDED_SW_SOURCE_UI_VBA_VBAROWS_HXX
21
23#include <ooo/vba/word/XRows.hpp>
24#include <ooo/vba/word/XColumns.hpp>
25#include <com/sun/star/table/XTableRows.hpp>
26#include <com/sun/star/text/XTextTable.hpp>
27
29
31{
32private:
33 css::uno::Reference< css::text::XTextTable > mxTextTable;
34 css::uno::Reference< css::table::XTableRows > mxTableRows;
35 sal_Int32 mnStartRowIndex;
36 sal_Int32 mnEndRowIndex;
37
38private:
40 void setIndentWithAdjustNone( sal_Int32 indent );
42 void setIndentWithAdjustFirstColumn( const css::uno::Reference< ooo::vba::word::XColumns >& xColumns, sal_Int32 indent );
44 void setIndentWithAdjustProportional( const css::uno::Reference< ooo::vba::word::XColumns >& xColumns, sal_Int32 indent );
46 void setIndentWithAdjustSameWidth( const css::uno::Reference< ooo::vba::word::XColumns >& xColumns, sal_Int32 indent );
47
48public:
50 SwVbaRows( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, css::uno::Reference< css::text::XTextTable > xTextTable, const css::uno::Reference< css::table::XTableRows >& xTableRows );
52 SwVbaRows( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, css::uno::Reference< css::text::XTextTable > xTextTable, const css::uno::Reference< css::table::XTableRows >& xTableRows, sal_Int32 nStarIndex, sal_Int32 nEndIndex );
53
54 // Attributes
55 virtual ::sal_Int32 SAL_CALL getAlignment() override;
56 virtual void SAL_CALL setAlignment( ::sal_Int32 _alignment ) override;
57 virtual css::uno::Any SAL_CALL getAllowBreakAcrossPages() override;
58 virtual void SAL_CALL setAllowBreakAcrossPages( const css::uno::Any& _allowbreakacrosspages ) override;
59 virtual float SAL_CALL getSpaceBetweenColumns() override;
60 virtual void SAL_CALL setSpaceBetweenColumns( float _spacebetweencolumns ) override;
61
62 // Methods
63 virtual void SAL_CALL Delete( ) override;
64 virtual void SAL_CALL SetLeftIndent( float LeftIndent, ::sal_Int32 RulerStyle ) override;
65 virtual void SAL_CALL Select( ) override;
66
67 //XCollection
68 virtual ::sal_Int32 SAL_CALL getCount() override;
69 virtual css::uno::Any SAL_CALL Item( const css::uno::Any& Index1, const css::uno::Any& /*not processed in this base class*/ ) override;
70 // XEnumerationAccess
71 virtual css::uno::Type SAL_CALL getElementType() override;
72 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override;
73
74 // SwVbaRows_BASE
75 virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource ) override;
76 virtual OUString getServiceImplName() override;
77 virtual css::uno::Sequence<OUString> getServiceNames() override;
78};
79
80#endif // INCLUDED_SW_SOURCE_UI_VBA_VBAROWS_HXX
81
82/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL Select() override
Definition: vbarows.cxx:312
virtual void SAL_CALL SetLeftIndent(float LeftIndent, ::sal_Int32 RulerStyle) override
Definition: vbarows.cxx:202
virtual css::uno::Sequence< OUString > getServiceNames() override
Definition: vbarows.cxx:361
void setIndentWithAdjustFirstColumn(const css::uno::Reference< ooo::vba::word::XColumns > &xColumns, sal_Int32 indent)
Definition: vbarows.cxx:244
SwVbaRows(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::text::XTextTable > xTextTable, const css::uno::Reference< css::table::XTableRows > &xTableRows, sal_Int32 nStarIndex, sal_Int32 nEndIndex)
SwVbaRows(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::text::XTextTable > xTextTable, const css::uno::Reference< css::table::XTableRows > &xTableRows)
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
Definition: vbarows.cxx:343
void setIndentWithAdjustSameWidth(const css::uno::Reference< ooo::vba::word::XColumns > &xColumns, sal_Int32 indent)
Definition: vbarows.cxx:289
virtual void SAL_CALL Delete() override
Definition: vbarows.cxx:197
css::uno::Reference< css::text::XTextTable > mxTextTable
Definition: vbarows.hxx:33
virtual void SAL_CALL setAlignment(::sal_Int32 _alignment) override
Definition: vbarows.cxx:110
virtual float SAL_CALL getSpaceBetweenColumns() override
Definition: vbarows.cxx:167
virtual css::uno::Any createCollectionObject(const css::uno::Any &aSource) override
Definition: vbarows.cxx:349
virtual css::uno::Any SAL_CALL getAllowBreakAcrossPages() override
Definition: vbarows.cxx:134
virtual ::sal_Int32 SAL_CALL getAlignment() override
get the alignment of the rows: SO format com.sun.star.text.HoriOrientation is mapped to WdRowAlignmen...
Definition: vbarows.cxx:84
virtual css::uno::Any SAL_CALL Item(const css::uno::Any &Index1, const css::uno::Any &) override
Definition: vbarows.cxx:322
virtual void SAL_CALL setSpaceBetweenColumns(float _spacebetweencolumns) override
Definition: vbarows.cxx:179
virtual OUString getServiceImplName() override
Definition: vbarows.cxx:355
virtual void SAL_CALL setAllowBreakAcrossPages(const css::uno::Any &_allowbreakacrosspages) override
Definition: vbarows.cxx:155
virtual css::uno::Type SAL_CALL getElementType() override
Definition: vbarows.cxx:338
css::uno::Reference< css::table::XTableRows > mxTableRows
Definition: vbarows.hxx:34
void setIndentWithAdjustProportional(const css::uno::Reference< ooo::vba::word::XColumns > &xColumns, sal_Int32 indent)
Definition: vbarows.cxx:254
sal_Int32 mnStartRowIndex
Definition: vbarows.hxx:35
sal_Int32 mnEndRowIndex
Definition: vbarows.hxx:36
void setIndentWithAdjustNone(sal_Int32 indent)
Definition: vbarows.cxx:235
virtual ::sal_Int32 SAL_CALL getCount() override
Definition: vbarows.cxx:317
CollTestImplHelper< ooo::vba::word::XRows > SwVbaRows_BASE
Definition: vbarows.hxx:28