Update git submodules
[LibreOffice.git] / oox / inc / drawingml / table / tablecell.hxx
blob988b0d057a13ef17bfe2488120bd41a26d1ff27c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_OOX_DRAWINGML_TABLE_TABLECELL_HXX
21 #define INCLUDED_OOX_DRAWINGML_TABLE_TABLECELL_HXX
23 #include <oox/drawingml/drawingmltypes.hxx>
24 #include <drawingml/textfont.hxx>
25 #include <com/sun/star/table/XCell.hpp>
27 #include <drawingml/fillproperties.hxx>
28 #include <drawingml/lineproperties.hxx>
30 namespace oox::drawingml::table {
32 class TableCellContext;
33 class TableProperties;
34 class TableStyle;
36 class TableCell
38 friend class TableCellContext;
40 public:
42 TableCell();
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; };
67 void setTextBody( const oox::drawingml::TextBodyPtr& pTextBody ){ mpTextBody = pTextBody; };
68 const oox::drawingml::TextBodyPtr& getTextBody() const { return mpTextBody; };
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 );
77 private:
79 oox::drawingml::TextBodyPtr mpTextBody;
81 oox::drawingml::LineProperties maLinePropertiesLeft;
82 oox::drawingml::LineProperties maLinePropertiesRight;
83 oox::drawingml::LineProperties maLinePropertiesTop;
84 oox::drawingml::LineProperties maLinePropertiesBottom;
85 oox::drawingml::LineProperties maLinePropertiesInsideH;
86 oox::drawingml::LineProperties maLinePropertiesInsideV;
87 oox::drawingml::LineProperties maLinePropertiesTopLeftToBottomRight;
88 oox::drawingml::LineProperties maLinePropertiesBottomLeftToTopRight;
90 oox::drawingml::FillProperties maFillProperties;
92 sal_Int32 mnRowSpan;
93 sal_Int32 mnGridSpan;
94 bool mbhMerge;
95 bool mbvMerge;
97 sal_Int32 mnMarL;
98 sal_Int32 mnMarR;
99 sal_Int32 mnMarT;
100 sal_Int32 mnMarB;
101 sal_Int32 mnVertToken;
102 sal_Int32 mnAnchorToken;
103 bool mbAnchorCtr;
104 sal_Int32 mnHorzOverflowToken;
109 #endif // INCLUDED_OOX_DRAWINGML_TABLE_TABLECELL_HXX
111 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */