1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
;
38 friend class TableCellContext
;
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
);
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
;
101 sal_Int32 mnVertToken
;
102 sal_Int32 mnAnchorToken
;
104 sal_Int32 mnHorzOverflowToken
;
109 #endif // INCLUDED_OOX_DRAWINGML_TABLE_TABLECELL_HXX
111 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */