1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef OOX_DRAWINGML_TABLESTYLE_HXX
25 #define OOX_DRAWINGML_TABLESTYLE_HXX
26 
27 #include "oox/drawingml/table/tablestylepart.hxx"
28 #include "oox/drawingml/drawingmltypes.hxx"
29 #include "oox/drawingml/shape.hxx"
30 
31 namespace oox { namespace drawingml { namespace table {
32 
33 class TableStyle
34 {
35 public:
36 
37 	TableStyle();
38     ~TableStyle();
39 
getStyleId()40 	rtl::OUString&	getStyleId(){ return maStyleId; }
getStyleName()41 	rtl::OUString&	getStyleName() { return maStyleName; }
42 
getBackgroundFillStyleRef()43 	::oox::drawingml::ShapeStyleRef&		getBackgroundFillStyleRef(){ return maFillStyleRef; }
44 
getBackgroundFillProperties()45 	::oox::drawingml::FillPropertiesPtr&	getBackgroundFillProperties(){ return mpFillProperties; }
46 
getWholeTbl()47 	TableStylePart&	getWholeTbl()	{ return maWholeTbl; }
getBand1H()48 	TableStylePart&	getBand1H()		{ return maBand1H; }
getBand2H()49 	TableStylePart&	getBand2H()		{ return maBand2H; }
getBand1V()50 	TableStylePart&	getBand1V()		{ return maBand1V; }
getBand2V()51 	TableStylePart&	getBand2V()		{ return maBand2V; }
getLastCol()52 	TableStylePart&	getLastCol()	{ return maLastCol; }
getFirstCol()53 	TableStylePart&	getFirstCol()	{ return maFirstCol; }
getLastRow()54 	TableStylePart&	getLastRow()	{ return maLastRow; }
getSeCell()55 	TableStylePart&	getSeCell()		{ return maSeCell; }
getSwCell()56 	TableStylePart&	getSwCell()		{ return maSwCell; }
getFirstRow()57 	TableStylePart&	getFirstRow()	{ return maFirstRow; }
getNeCell()58 	TableStylePart&	getNeCell()		{ return maNeCell; }
getNwCell()59 	TableStylePart&	getNwCell()		{ return maNwCell; }
60 
61 private:
62 
63 	rtl::OUString			maStyleId;
64 	rtl::OUString			maStyleName;
65 
66     ::oox::drawingml::ShapeStyleRef maFillStyleRef;
67 
68 	::oox::drawingml::FillPropertiesPtr	mpFillProperties;
69 
70 	TableStylePart	maWholeTbl;
71 	TableStylePart	maBand1H;
72 	TableStylePart	maBand2H;
73 	TableStylePart	maBand1V;
74 	TableStylePart	maBand2V;
75 	TableStylePart	maLastCol;
76 	TableStylePart	maFirstCol;
77 	TableStylePart	maLastRow;
78 	TableStylePart	maSeCell;
79 	TableStylePart	maSwCell;
80 	TableStylePart	maFirstRow;
81 	TableStylePart	maNeCell;
82 	TableStylePart	maNwCell;
83 };
84 
85 } } }
86 
87 #endif  //  OOX_DRAWINGML_TABLESTYLE_HXX
88