LibreOffice Module oox (master) 1
tablecell.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
20#ifndef INCLUDED_OOX_DRAWINGML_TABLE_TABLECELL_HXX
21#define INCLUDED_OOX_DRAWINGML_TABLE_TABLECELL_HXX
22
25#include <com/sun/star/table/XCell.hpp>
26
29
30namespace oox::drawingml::table {
31
32class TableCellContext;
33class TableProperties;
34class TableStyle;
35
37{
38 friend class TableCellContext;
39
40public:
41
42 TableCell();
43
44 sal_Int32 getRowSpan() const { return mnRowSpan; };
45 void setRowSpan( sal_Int32 nRowSpan ){ mnRowSpan = nRowSpan; };
46 sal_Int32 getGridSpan() const { return mnGridSpan; };
47 void setGridSpan( sal_Int32 nGridSpan ){ mnGridSpan = nGridSpan; };
48 bool gethMerge() const { return mbhMerge; };
49 void sethMerge( bool bhMerge ){ mbhMerge = bhMerge; };
50 bool getvMerge() const { return mbvMerge; };
51 void setvMerge( bool bvMerge ){ mbvMerge = bvMerge; };
52 sal_Int32 getLeftMargin() const { return mnMarL; };
53 void setLeftMargin( sal_Int32 nMargin ){ mnMarL = nMargin; };
54 sal_Int32 getRightMargin() const { return mnMarR; };
55 void setRightMargin( sal_Int32 nMargin ){ mnMarR = nMargin; };
56 sal_Int32 getTopMargin() const { return mnMarT; };
57 void setTopMargin( sal_Int32 nMargin ){ mnMarT = nMargin; };
58 sal_Int32 getBottomMargin() const { return mnMarB; };
59 void setBottomMargin( sal_Int32 nMargin ){ mnMarB = nMargin; };
60 sal_Int32 getVertToken() const { return mnVertToken; };
61 void setVertToken( sal_Int32 nToken ){ mnVertToken = nToken; };
62 sal_Int32 getAnchorToken() const { return mnAnchorToken; };
63 void setAnchorToken( sal_Int32 nToken ){ mnAnchorToken = nToken; };
64 void setAnchorCtr( bool bAnchorCtr ){ mbAnchorCtr = bAnchorCtr; };
65 void setHorzOverflowToken( sal_Int32 nToken ){ mnHorzOverflowToken = nToken; };
66
67 void setTextBody( const oox::drawingml::TextBodyPtr& pTextBody ){ mpTextBody = pTextBody; };
69
70 void pushToXCell( const ::oox::core::XmlFilterBase& rFilterBase,
71 const ::oox::drawingml::TextListStylePtr& pMasterTextListStyle,
72 const css::uno::Reference < css::table::XCell >& rxCell,
73 const TableProperties& rTableProperties,
74 const TableStyle& rTable,
75 sal_Int32 nColumn, sal_Int32 nMaxColumn, sal_Int32 nRow, sal_Int32 nMaxRow );
76
77private:
78
80
89
91
92 sal_Int32 mnRowSpan;
93 sal_Int32 mnGridSpan;
96
97 sal_Int32 mnMarL;
98 sal_Int32 mnMarR;
99 sal_Int32 mnMarT;
100 sal_Int32 mnMarB;
101 sal_Int32 mnVertToken;
102 sal_Int32 mnAnchorToken;
105};
106
107}
108
109#endif // INCLUDED_OOX_DRAWINGML_TABLE_TABLECELL_HXX
110
111/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
oox::drawingml::FillProperties maFillProperties
Definition: tablecell.hxx:90
const oox::drawingml::TextBodyPtr & getTextBody() const
Definition: tablecell.hxx:68
oox::drawingml::TextBodyPtr mpTextBody
Definition: tablecell.hxx:79
sal_Int32 getTopMargin() const
Definition: tablecell.hxx:56
oox::drawingml::LineProperties maLinePropertiesTopLeftToBottomRight
Definition: tablecell.hxx:87
void setLeftMargin(sal_Int32 nMargin)
Definition: tablecell.hxx:53
sal_Int32 getGridSpan() const
Definition: tablecell.hxx:46
sal_Int32 getRowSpan() const
Definition: tablecell.hxx:44
void setRightMargin(sal_Int32 nMargin)
Definition: tablecell.hxx:55
void setAnchorToken(sal_Int32 nToken)
Definition: tablecell.hxx:63
oox::drawingml::LineProperties maLinePropertiesBottomLeftToTopRight
Definition: tablecell.hxx:88
void setTopMargin(sal_Int32 nMargin)
Definition: tablecell.hxx:57
void setTextBody(const oox::drawingml::TextBodyPtr &pTextBody)
Definition: tablecell.hxx:67
void setBottomMargin(sal_Int32 nMargin)
Definition: tablecell.hxx:59
sal_Int32 getBottomMargin() const
Definition: tablecell.hxx:58
void setGridSpan(sal_Int32 nGridSpan)
Definition: tablecell.hxx:47
sal_Int32 getLeftMargin() const
Definition: tablecell.hxx:52
sal_Int32 getVertToken() const
Definition: tablecell.hxx:60
void sethMerge(bool bhMerge)
Definition: tablecell.hxx:49
sal_Int32 getRightMargin() const
Definition: tablecell.hxx:54
void setHorzOverflowToken(sal_Int32 nToken)
Definition: tablecell.hxx:65
oox::drawingml::LineProperties maLinePropertiesInsideV
Definition: tablecell.hxx:86
oox::drawingml::LineProperties maLinePropertiesLeft
Definition: tablecell.hxx:81
void pushToXCell(const ::oox::core::XmlFilterBase &rFilterBase, const ::oox::drawingml::TextListStylePtr &pMasterTextListStyle, const css::uno::Reference< css::table::XCell > &rxCell, const TableProperties &rTableProperties, const TableStyle &rTable, sal_Int32 nColumn, sal_Int32 nMaxColumn, sal_Int32 nRow, sal_Int32 nMaxRow)
Definition: tablecell.cxx:245
oox::drawingml::LineProperties maLinePropertiesTop
Definition: tablecell.hxx:83
oox::drawingml::LineProperties maLinePropertiesRight
Definition: tablecell.hxx:82
void setvMerge(bool bvMerge)
Definition: tablecell.hxx:51
void setAnchorCtr(bool bAnchorCtr)
Definition: tablecell.hxx:64
oox::drawingml::LineProperties maLinePropertiesBottom
Definition: tablecell.hxx:84
void setVertToken(sal_Int32 nToken)
Definition: tablecell.hxx:61
sal_Int32 getAnchorToken() const
Definition: tablecell.hxx:62
void setRowSpan(sal_Int32 nRowSpan)
Definition: tablecell.hxx:45
oox::drawingml::LineProperties maLinePropertiesInsideH
Definition: tablecell.hxx:85
std::shared_ptr< TextListStyle > TextListStylePtr
std::shared_ptr< TextBody > TextBodyPtr
DefTokenId nToken