| 1 | /* |
|---|
| 2 | * Copyright 2007-2008, Plutext Pty Ltd. |
|---|
| 3 | * |
|---|
| 4 | * This file is part of docx4j. |
|---|
| 5 | |
|---|
| 6 | docx4j is licensed under the Apache License, Version 2.0 (the "License"); |
|---|
| 7 | you may not use this file except in compliance with the License. |
|---|
| 8 | |
|---|
| 9 | 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, software |
|---|
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
|---|
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|---|
| 16 | See the License for the specific language governing permissions and |
|---|
| 17 | limitations under the License. |
|---|
| 18 | |
|---|
| 19 | */ |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | package org.docx4j.dml; |
|---|
| 23 | |
|---|
| 24 | import javax.xml.bind.annotation.XmlAccessType; |
|---|
| 25 | import javax.xml.bind.annotation.XmlAccessorType; |
|---|
| 26 | import javax.xml.bind.annotation.XmlAttribute; |
|---|
| 27 | import javax.xml.bind.annotation.XmlType; |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | /** |
|---|
| 31 | * <p>Java class for CT_TableStyleTextStyle complex type. |
|---|
| 32 | * |
|---|
| 33 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 34 | * |
|---|
| 35 | * <pre> |
|---|
| 36 | * <complexType name="CT_TableStyleTextStyle"> |
|---|
| 37 | * <complexContent> |
|---|
| 38 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 39 | * <sequence> |
|---|
| 40 | * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_ThemeableFontStyles" minOccurs="0"/> |
|---|
| 41 | * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_ColorChoice" minOccurs="0"/> |
|---|
| 42 | * <element name="extLst" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_OfficeArtExtensionList" minOccurs="0"/> |
|---|
| 43 | * </sequence> |
|---|
| 44 | * <attribute name="b" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_OnOffStyleType" default="def" /> |
|---|
| 45 | * <attribute name="i" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_OnOffStyleType" default="def" /> |
|---|
| 46 | * </restriction> |
|---|
| 47 | * </complexContent> |
|---|
| 48 | * </complexType> |
|---|
| 49 | * </pre> |
|---|
| 50 | * |
|---|
| 51 | * |
|---|
| 52 | */ |
|---|
| 53 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 54 | @XmlType(name = "CT_TableStyleTextStyle", propOrder = { |
|---|
| 55 | "font", |
|---|
| 56 | "fontRef", |
|---|
| 57 | "scrgbClr", |
|---|
| 58 | "srgbClr", |
|---|
| 59 | "hslClr", |
|---|
| 60 | "sysClr", |
|---|
| 61 | "schemeClr", |
|---|
| 62 | "prstClr", |
|---|
| 63 | "extLst" |
|---|
| 64 | }) |
|---|
| 65 | public class CTTableStyleTextStyle { |
|---|
| 66 | |
|---|
| 67 | protected FontCollection font; |
|---|
| 68 | protected CTFontReference fontRef; |
|---|
| 69 | protected CTScRgbColor scrgbClr; |
|---|
| 70 | protected CTSRgbColor srgbClr; |
|---|
| 71 | protected CTHslColor hslClr; |
|---|
| 72 | protected CTSystemColor sysClr; |
|---|
| 73 | protected CTSchemeColor schemeClr; |
|---|
| 74 | protected CTPresetColor prstClr; |
|---|
| 75 | protected CTOfficeArtExtensionList extLst; |
|---|
| 76 | @XmlAttribute |
|---|
| 77 | protected STOnOffStyleType b; |
|---|
| 78 | @XmlAttribute |
|---|
| 79 | protected STOnOffStyleType i; |
|---|
| 80 | |
|---|
| 81 | /** |
|---|
| 82 | * Gets the value of the font property. |
|---|
| 83 | * |
|---|
| 84 | * @return |
|---|
| 85 | * possible object is |
|---|
| 86 | * {@link FontCollection } |
|---|
| 87 | * |
|---|
| 88 | */ |
|---|
| 89 | public FontCollection getFont() { |
|---|
| 90 | return font; |
|---|
| 91 | } |
|---|
| 92 | |
|---|
| 93 | /** |
|---|
| 94 | * Sets the value of the font property. |
|---|
| 95 | * |
|---|
| 96 | * @param value |
|---|
| 97 | * allowed object is |
|---|
| 98 | * {@link FontCollection } |
|---|
| 99 | * |
|---|
| 100 | */ |
|---|
| 101 | public void setFont(FontCollection value) { |
|---|
| 102 | this.font = value; |
|---|
| 103 | } |
|---|
| 104 | |
|---|
| 105 | /** |
|---|
| 106 | * Gets the value of the fontRef property. |
|---|
| 107 | * |
|---|
| 108 | * @return |
|---|
| 109 | * possible object is |
|---|
| 110 | * {@link CTFontReference } |
|---|
| 111 | * |
|---|
| 112 | */ |
|---|
| 113 | public CTFontReference getFontRef() { |
|---|
| 114 | return fontRef; |
|---|
| 115 | } |
|---|
| 116 | |
|---|
| 117 | /** |
|---|
| 118 | * Sets the value of the fontRef property. |
|---|
| 119 | * |
|---|
| 120 | * @param value |
|---|
| 121 | * allowed object is |
|---|
| 122 | * {@link CTFontReference } |
|---|
| 123 | * |
|---|
| 124 | */ |
|---|
| 125 | public void setFontRef(CTFontReference value) { |
|---|
| 126 | this.fontRef = value; |
|---|
| 127 | } |
|---|
| 128 | |
|---|
| 129 | /** |
|---|
| 130 | * Gets the value of the scrgbClr property. |
|---|
| 131 | * |
|---|
| 132 | * @return |
|---|
| 133 | * possible object is |
|---|
| 134 | * {@link CTScRgbColor } |
|---|
| 135 | * |
|---|
| 136 | */ |
|---|
| 137 | public CTScRgbColor getScrgbClr() { |
|---|
| 138 | return scrgbClr; |
|---|
| 139 | } |
|---|
| 140 | |
|---|
| 141 | /** |
|---|
| 142 | * Sets the value of the scrgbClr property. |
|---|
| 143 | * |
|---|
| 144 | * @param value |
|---|
| 145 | * allowed object is |
|---|
| 146 | * {@link CTScRgbColor } |
|---|
| 147 | * |
|---|
| 148 | */ |
|---|
| 149 | public void setScrgbClr(CTScRgbColor value) { |
|---|
| 150 | this.scrgbClr = value; |
|---|
| 151 | } |
|---|
| 152 | |
|---|
| 153 | /** |
|---|
| 154 | * Gets the value of the srgbClr property. |
|---|
| 155 | * |
|---|
| 156 | * @return |
|---|
| 157 | * possible object is |
|---|
| 158 | * {@link CTSRgbColor } |
|---|
| 159 | * |
|---|
| 160 | */ |
|---|
| 161 | public CTSRgbColor getSrgbClr() { |
|---|
| 162 | return srgbClr; |
|---|
| 163 | } |
|---|
| 164 | |
|---|
| 165 | /** |
|---|
| 166 | * Sets the value of the srgbClr property. |
|---|
| 167 | * |
|---|
| 168 | * @param value |
|---|
| 169 | * allowed object is |
|---|
| 170 | * {@link CTSRgbColor } |
|---|
| 171 | * |
|---|
| 172 | */ |
|---|
| 173 | public void setSrgbClr(CTSRgbColor value) { |
|---|
| 174 | this.srgbClr = value; |
|---|
| 175 | } |
|---|
| 176 | |
|---|
| 177 | /** |
|---|
| 178 | * Gets the value of the hslClr property. |
|---|
| 179 | * |
|---|
| 180 | * @return |
|---|
| 181 | * possible object is |
|---|
| 182 | * {@link CTHslColor } |
|---|
| 183 | * |
|---|
| 184 | */ |
|---|
| 185 | public CTHslColor getHslClr() { |
|---|
| 186 | return hslClr; |
|---|
| 187 | } |
|---|
| 188 | |
|---|
| 189 | /** |
|---|
| 190 | * Sets the value of the hslClr property. |
|---|
| 191 | * |
|---|
| 192 | * @param value |
|---|
| 193 | * allowed object is |
|---|
| 194 | * {@link CTHslColor } |
|---|
| 195 | * |
|---|
| 196 | */ |
|---|
| 197 | public void setHslClr(CTHslColor value) { |
|---|
| 198 | this.hslClr = value; |
|---|
| 199 | } |
|---|
| 200 | |
|---|
| 201 | /** |
|---|
| 202 | * Gets the value of the sysClr property. |
|---|
| 203 | * |
|---|
| 204 | * @return |
|---|
| 205 | * possible object is |
|---|
| 206 | * {@link CTSystemColor } |
|---|
| 207 | * |
|---|
| 208 | */ |
|---|
| 209 | public CTSystemColor getSysClr() { |
|---|
| 210 | return sysClr; |
|---|
| 211 | } |
|---|
| 212 | |
|---|
| 213 | /** |
|---|
| 214 | * Sets the value of the sysClr property. |
|---|
| 215 | * |
|---|
| 216 | * @param value |
|---|
| 217 | * allowed object is |
|---|
| 218 | * {@link CTSystemColor } |
|---|
| 219 | * |
|---|
| 220 | */ |
|---|
| 221 | public void setSysClr(CTSystemColor value) { |
|---|
| 222 | this.sysClr = value; |
|---|
| 223 | } |
|---|
| 224 | |
|---|
| 225 | /** |
|---|
| 226 | * Gets the value of the schemeClr property. |
|---|
| 227 | * |
|---|
| 228 | * @return |
|---|
| 229 | * possible object is |
|---|
| 230 | * {@link CTSchemeColor } |
|---|
| 231 | * |
|---|
| 232 | */ |
|---|
| 233 | public CTSchemeColor getSchemeClr() { |
|---|
| 234 | return schemeClr; |
|---|
| 235 | } |
|---|
| 236 | |
|---|
| 237 | /** |
|---|
| 238 | * Sets the value of the schemeClr property. |
|---|
| 239 | * |
|---|
| 240 | * @param value |
|---|
| 241 | * allowed object is |
|---|
| 242 | * {@link CTSchemeColor } |
|---|
| 243 | * |
|---|
| 244 | */ |
|---|
| 245 | public void setSchemeClr(CTSchemeColor value) { |
|---|
| 246 | this.schemeClr = value; |
|---|
| 247 | } |
|---|
| 248 | |
|---|
| 249 | /** |
|---|
| 250 | * Gets the value of the prstClr property. |
|---|
| 251 | * |
|---|
| 252 | * @return |
|---|
| 253 | * possible object is |
|---|
| 254 | * {@link CTPresetColor } |
|---|
| 255 | * |
|---|
| 256 | */ |
|---|
| 257 | public CTPresetColor getPrstClr() { |
|---|
| 258 | return prstClr; |
|---|
| 259 | } |
|---|
| 260 | |
|---|
| 261 | /** |
|---|
| 262 | * Sets the value of the prstClr property. |
|---|
| 263 | * |
|---|
| 264 | * @param value |
|---|
| 265 | * allowed object is |
|---|
| 266 | * {@link CTPresetColor } |
|---|
| 267 | * |
|---|
| 268 | */ |
|---|
| 269 | public void setPrstClr(CTPresetColor value) { |
|---|
| 270 | this.prstClr = value; |
|---|
| 271 | } |
|---|
| 272 | |
|---|
| 273 | /** |
|---|
| 274 | * Gets the value of the extLst property. |
|---|
| 275 | * |
|---|
| 276 | * @return |
|---|
| 277 | * possible object is |
|---|
| 278 | * {@link CTOfficeArtExtensionList } |
|---|
| 279 | * |
|---|
| 280 | */ |
|---|
| 281 | public CTOfficeArtExtensionList getExtLst() { |
|---|
| 282 | return extLst; |
|---|
| 283 | } |
|---|
| 284 | |
|---|
| 285 | /** |
|---|
| 286 | * Sets the value of the extLst property. |
|---|
| 287 | * |
|---|
| 288 | * @param value |
|---|
| 289 | * allowed object is |
|---|
| 290 | * {@link CTOfficeArtExtensionList } |
|---|
| 291 | * |
|---|
| 292 | */ |
|---|
| 293 | public void setExtLst(CTOfficeArtExtensionList value) { |
|---|
| 294 | this.extLst = value; |
|---|
| 295 | } |
|---|
| 296 | |
|---|
| 297 | /** |
|---|
| 298 | * Gets the value of the b property. |
|---|
| 299 | * |
|---|
| 300 | * @return |
|---|
| 301 | * possible object is |
|---|
| 302 | * {@link STOnOffStyleType } |
|---|
| 303 | * |
|---|
| 304 | */ |
|---|
| 305 | public STOnOffStyleType getB() { |
|---|
| 306 | if (b == null) { |
|---|
| 307 | return STOnOffStyleType.DEF; |
|---|
| 308 | } else { |
|---|
| 309 | return b; |
|---|
| 310 | } |
|---|
| 311 | } |
|---|
| 312 | |
|---|
| 313 | /** |
|---|
| 314 | * Sets the value of the b property. |
|---|
| 315 | * |
|---|
| 316 | * @param value |
|---|
| 317 | * allowed object is |
|---|
| 318 | * {@link STOnOffStyleType } |
|---|
| 319 | * |
|---|
| 320 | */ |
|---|
| 321 | public void setB(STOnOffStyleType value) { |
|---|
| 322 | this.b = value; |
|---|
| 323 | } |
|---|
| 324 | |
|---|
| 325 | /** |
|---|
| 326 | * Gets the value of the i property. |
|---|
| 327 | * |
|---|
| 328 | * @return |
|---|
| 329 | * possible object is |
|---|
| 330 | * {@link STOnOffStyleType } |
|---|
| 331 | * |
|---|
| 332 | */ |
|---|
| 333 | public STOnOffStyleType getI() { |
|---|
| 334 | if (i == null) { |
|---|
| 335 | return STOnOffStyleType.DEF; |
|---|
| 336 | } else { |
|---|
| 337 | return i; |
|---|
| 338 | } |
|---|
| 339 | } |
|---|
| 340 | |
|---|
| 341 | /** |
|---|
| 342 | * Sets the value of the i property. |
|---|
| 343 | * |
|---|
| 344 | * @param value |
|---|
| 345 | * allowed object is |
|---|
| 346 | * {@link STOnOffStyleType } |
|---|
| 347 | * |
|---|
| 348 | */ |
|---|
| 349 | public void setI(STOnOffStyleType value) { |
|---|
| 350 | this.i = value; |
|---|
| 351 | } |
|---|
| 352 | |
|---|
| 353 | } |
|---|