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_TABLESTYLEPART_HXX
25 #define OOX_DRAWINGML_TABLESTYLEPART_HXX
26 
27 #include <rtl/ustring.hxx>
28 #include <boost/optional.hpp>
29 #include "oox/drawingml/color.hxx"
30 #include "oox/drawingml/textfont.hxx"
31 #include "oox/drawingml/fillproperties.hxx"
32 #include "oox/drawingml/lineproperties.hxx"
33 #include "oox/drawingml/shape.hxx"
34 #include <map>
35 
36 namespace oox { namespace drawingml { namespace table {
37 
38 class TableStylePart
39 {
40 public:
41 
42 	TableStylePart();
43     ~TableStylePart();
44 
getTextColor()45 	::oox::drawingml::Color&			getTextColor(){ return maTextColor; }
getTextBoldStyle()46 	::boost::optional< sal_Bool >&		getTextBoldStyle(){ return maTextBoldStyle; }
getTextItalicStyle()47 	::boost::optional< sal_Bool >&		getTextItalicStyle(){ return maTextItalicStyle; }
getAsianFont()48 	::oox::drawingml::TextFont&			getAsianFont(){ return maAsianFont; }
getComplexFont()49 	::oox::drawingml::TextFont&			getComplexFont(){ return maComplexFont; }
getSymbolFont()50 	::oox::drawingml::TextFont&			getSymbolFont(){ return maSymbolFont; }
getLatinFont()51 	::oox::drawingml::TextFont&			getLatinFont(){ return maLatinFont; }
52 
getFillProperties()53 	::oox::drawingml::FillPropertiesPtr&                            getFillProperties(){ return mpFillProperties; }
getLineBorders()54 	std::map < sal_Int32, ::oox::drawingml::LinePropertiesPtr >&	getLineBorders(){ return maLineBorders; }
55 
getStyleRefs()56     ::oox::drawingml::ShapeStyleRefMap& getStyleRefs(){ return maStyleRefs; }
57 
58 private:
59 
60 	::oox::drawingml::Color				maTextColor;
61 	::boost::optional< sal_Bool >		maTextBoldStyle;
62 	::boost::optional< sal_Bool >		maTextItalicStyle;
63 	::oox::drawingml::TextFont			maAsianFont;
64 	::oox::drawingml::TextFont			maComplexFont;
65 	::oox::drawingml::TextFont			maSymbolFont;
66 	::oox::drawingml::TextFont			maLatinFont;
67 
68 	::oox::drawingml::FillPropertiesPtr	mpFillProperties;
69 	std::map < sal_Int32, ::oox::drawingml::LinePropertiesPtr > maLineBorders;
70     ::oox::drawingml::ShapeStyleRefMap  maStyleRefs;
71 };
72 
73 } } }
74 
75 #endif  //  OOX_DRAWINGML_TABLESTYLEPART_HXX
76