1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef OOX_DRAWINGML_TABLESTYLE_HXX 29 #define OOX_DRAWINGML_TABLESTYLE_HXX 30 31 #include "oox/drawingml/table/tablestylepart.hxx" 32 #include "oox/drawingml/drawingmltypes.hxx" 33 #include "oox/drawingml/shape.hxx" 34 35 namespace oox { namespace drawingml { namespace table { 36 37 class TableStyle 38 { 39 public: 40 41 TableStyle(); 42 ~TableStyle(); 43 44 rtl::OUString& getStyleId(){ return maStyleId; } 45 rtl::OUString& getStyleName() { return maStyleName; } 46 47 ::oox::drawingml::ShapeStyleRef& getBackgroundFillStyleRef(){ return maFillStyleRef; } 48 49 ::oox::drawingml::FillPropertiesPtr& getBackgroundFillProperties(){ return mpFillProperties; } 50 51 TableStylePart& getWholeTbl() { return maWholeTbl; } 52 TableStylePart& getBand1H() { return maBand1H; } 53 TableStylePart& getBand2H() { return maBand2H; } 54 TableStylePart& getBand1V() { return maBand1V; } 55 TableStylePart& getBand2V() { return maBand2V; } 56 TableStylePart& getLastCol() { return maLastCol; } 57 TableStylePart& getFirstCol() { return maFirstCol; } 58 TableStylePart& getLastRow() { return maLastRow; } 59 TableStylePart& getSeCell() { return maSeCell; } 60 TableStylePart& getSwCell() { return maSwCell; } 61 TableStylePart& getFirstRow() { return maFirstRow; } 62 TableStylePart& getNeCell() { return maNeCell; } 63 TableStylePart& getNwCell() { return maNwCell; } 64 65 private: 66 67 rtl::OUString maStyleId; 68 rtl::OUString maStyleName; 69 70 ::oox::drawingml::ShapeStyleRef maFillStyleRef; 71 72 ::oox::drawingml::FillPropertiesPtr mpFillProperties; 73 74 TableStylePart maWholeTbl; 75 TableStylePart maBand1H; 76 TableStylePart maBand2H; 77 TableStylePart maBand1V; 78 TableStylePart maBand2V; 79 TableStylePart maLastCol; 80 TableStylePart maFirstCol; 81 TableStylePart maLastRow; 82 TableStylePart maSeCell; 83 TableStylePart maSwCell; 84 TableStylePart maFirstRow; 85 TableStylePart maNeCell; 86 TableStylePart maNwCell; 87 }; 88 89 } } } 90 91 #endif // OOX_DRAWINGML_TABLESTYLE_HXX 92