bump product version to 6.3.0.0.beta1
[LibreOffice.git] / oox / inc / drawingml / table / tablecell.hxx
blobc803d86707b8ffbe5c657c5c0699de135903c2a2
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/helper/propertymap.hxx>
24 #include <oox/drawingml/color.hxx>
25 #include <oox/drawingml/drawingmltypes.hxx>
26 #include <drawingml/textliststyle.hxx>
27 #include <com/sun/star/table/XCell.hpp>
29 #include <drawingml/fillproperties.hxx>
30 #include <drawingml/lineproperties.hxx>
32 #include <vector>
33 #include <map>
35 namespace oox { namespace drawingml { namespace table {
37 class TableCellContext;
38 class TableProperties;
39 class TableStyle;
41 class TableCell
43 friend class TableCellContext;
45 public:
47 TableCell();
48 ~TableCell();
50 sal_Int32 getRowSpan() const { return mnRowSpan; };
51 void setRowSpan( sal_Int32 nRowSpan ){ mnRowSpan = nRowSpan; };
52 sal_Int32 getGridSpan() const { return mnGridSpan; };
53 void setGridSpan( sal_Int32 nGridSpan ){ mnGridSpan = nGridSpan; };
54 bool gethMerge() const { return mbhMerge; };
55 void sethMerge( bool bhMerge ){ mbhMerge = bhMerge; };
56 bool getvMerge() const { return mbvMerge; };
57 void setvMerge( bool bvMerge ){ mbvMerge = bvMerge; };
58 sal_Int32 getLeftMargin() const { return mnMarL; };
59 void setLeftMargin( sal_Int32 nMargin ){ mnMarL = nMargin; };
60 sal_Int32 getRightMargin() const { return mnMarR; };
61 void setRightMargin( sal_Int32 nMargin ){ mnMarR = nMargin; };
62 sal_Int32 getTopMargin() const { return mnMarT; };
63 void setTopMargin( sal_Int32 nMargin ){ mnMarT = nMargin; };
64 sal_Int32 getBottomMargin() const { return mnMarB; };
65 void setBottomMargin( sal_Int32 nMargin ){ mnMarB = nMargin; };
66 sal_Int32 getVertToken() const { return mnVertToken; };
67 void setVertToken( sal_Int32 nToken ){ mnVertToken = nToken; };
68 sal_Int32 getAnchorToken() const { return mnAnchorToken; };
69 void setAnchorToken( sal_Int32 nToken ){ mnAnchorToken = nToken; };
70 void setAnchorCtr( bool bAnchorCtr ){ mbAnchorCtr = bAnchorCtr; };
71 void setHorzOverflowToken( sal_Int32 nToken ){ mnHorzOverflowToken = nToken; };
73 void setTextBody( const oox::drawingml::TextBodyPtr& pTextBody ){ mpTextBody = pTextBody; };
74 const oox::drawingml::TextBodyPtr& getTextBody(){ return mpTextBody; };
76 void pushToXCell( const ::oox::core::XmlFilterBase& rFilterBase,
77 const ::oox::drawingml::TextListStylePtr& pMasterTextListStyle,
78 const css::uno::Reference < css::table::XCell >& rxCell,
79 const TableProperties& rTableProperties,
80 const TableStyle& rTable,
81 sal_Int32 nColumn, sal_Int32 nMaxColumn, sal_Int32 nRow, sal_Int32 nMaxRow );
83 private:
85 oox::drawingml::TextBodyPtr mpTextBody;
87 oox::drawingml::LineProperties maLinePropertiesLeft;
88 oox::drawingml::LineProperties maLinePropertiesRight;
89 oox::drawingml::LineProperties maLinePropertiesTop;
90 oox::drawingml::LineProperties maLinePropertiesBottom;
91 oox::drawingml::LineProperties maLinePropertiesTopLeftToBottomRight;
92 oox::drawingml::LineProperties maLinePropertiesBottomLeftToTopRight;
94 oox::drawingml::FillProperties maFillProperties;
96 sal_Int32 mnRowSpan;
97 sal_Int32 mnGridSpan;
98 bool mbhMerge;
99 bool mbvMerge;
101 sal_Int32 mnMarL;
102 sal_Int32 mnMarR;
103 sal_Int32 mnMarT;
104 sal_Int32 mnMarB;
105 sal_Int32 mnVertToken;
106 sal_Int32 mnAnchorToken;
107 bool mbAnchorCtr;
108 sal_Int32 mnHorzOverflowToken;
111 } } }
113 #endif // INCLUDED_OOX_DRAWINGML_TABLE_TABLECELL_HXX
115 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */