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/helper/propertymap.hxx>
24 #include <oox/drawingml/color.hxx>
25 #include <oox/drawingml/drawingmltypes.hxx>
26 #include <oox/drawingml/lineproperties.hxx>
27 #include <oox/drawingml/fillproperties.hxx>
28 #include <drawingml/textliststyle.hxx>
29 #include <com/sun/star/table/XCell.hpp>
31 #include <boost/shared_ptr.hpp>
32 #include <boost/optional.hpp>
36 namespace oox
{ namespace drawingml
{ namespace table
{
38 class TableCellContext
;
39 class TableProperties
;
44 friend class TableCellContext
;
51 sal_Int32
getRowSpan() const { return mnRowSpan
; };
52 void setRowSpan( sal_Int32 nRowSpan
){ mnRowSpan
= nRowSpan
; };
53 sal_Int32
getGridSpan() const { return mnGridSpan
; };
54 void setGridSpan( sal_Int32 nGridSpan
){ mnGridSpan
= nGridSpan
; };
55 bool gethMerge() const { return mbhMerge
; };
56 void sethMerge( bool bhMerge
){ mbhMerge
= bhMerge
; };
57 bool getvMerge() const { return mbvMerge
; };
58 void setvMerge( bool bvMerge
){ mbvMerge
= bvMerge
; };
59 sal_Int32
getLeftMargin() const { return mnMarL
; };
60 void setLeftMargin( sal_Int32 nMargin
){ mnMarL
= nMargin
; };
61 sal_Int32
getRightMargin() const { return mnMarR
; };
62 void setRightMargin( sal_Int32 nMargin
){ mnMarR
= nMargin
; };
63 sal_Int32
getTopMargin() const { return mnMarT
; };
64 void setTopMargin( sal_Int32 nMargin
){ mnMarT
= nMargin
; };
65 sal_Int32
getBottomMargin() const { return mnMarB
; };
66 void setBottomMargin( sal_Int32 nMargin
){ mnMarB
= nMargin
; };
67 sal_Int32
getVertToken() const { return mnVertToken
; };
68 void setVertToken( sal_Int32 nToken
){ mnVertToken
= nToken
; };
69 sal_Int32
getAnchorToken() const { return mnAnchorToken
; };
70 void setAnchorToken( sal_Int32 nToken
){ mnAnchorToken
= nToken
; };
71 bool getAnchorCtr() const { return mbAnchorCtr
; };
72 void setAnchorCtr( bool bAnchorCtr
){ mbAnchorCtr
= bAnchorCtr
; };
73 sal_Int32
getHorzOverflowToken() const { return mnHorzOverflowToken
; };
74 void setHorzOverflowToken( sal_Int32 nToken
){ mnHorzOverflowToken
= nToken
; };
76 void setTextBody( const oox::drawingml::TextBodyPtr
& pTextBody
){ mpTextBody
= pTextBody
; };
77 oox::drawingml::TextBodyPtr
getTextBody(){ return mpTextBody
; };
79 void pushToXCell( const ::oox::core::XmlFilterBase
& rFilterBase
, ::oox::drawingml::TextListStylePtr pMasterTextListStyle
,
80 const ::com::sun::star::uno::Reference
< ::com::sun::star::table::XCell
>& rxCell
, const TableProperties
& rTableProperties
,
81 const TableStyle
& rTable
, sal_Int32 nColumn
, sal_Int32 nMaxColumn
, sal_Int32 nRow
, sal_Int32 nMaxRow
);
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
;
105 sal_Int32 mnVertToken
;
106 sal_Int32 mnAnchorToken
;
108 sal_Int32 mnHorzOverflowToken
;
113 #endif // INCLUDED_OOX_DRAWINGML_TABLE_TABLECELL_HXX
115 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */