| 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.XmlElement; |
|---|
| 28 | import javax.xml.bind.annotation.XmlType; |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | /** |
|---|
| 32 | * <p>Java class for CT_BaseStylesOverride complex type. |
|---|
| 33 | * |
|---|
| 34 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 35 | * |
|---|
| 36 | * <pre> |
|---|
| 37 | * <complexType name="CT_BaseStylesOverride"> |
|---|
| 38 | * <complexContent> |
|---|
| 39 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 40 | * <sequence> |
|---|
| 41 | * <element name="clrScheme" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_ColorScheme" minOccurs="0"/> |
|---|
| 42 | * <element name="fontScheme" minOccurs="0"> |
|---|
| 43 | * <complexType> |
|---|
| 44 | * <complexContent> |
|---|
| 45 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 46 | * <sequence> |
|---|
| 47 | * <element name="majorFont" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_FontCollection"/> |
|---|
| 48 | * <element name="minorFont" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_FontCollection"/> |
|---|
| 49 | * <element name="extLst" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_OfficeArtExtensionList" minOccurs="0"/> |
|---|
| 50 | * </sequence> |
|---|
| 51 | * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 52 | * </restriction> |
|---|
| 53 | * </complexContent> |
|---|
| 54 | * </complexType> |
|---|
| 55 | * </element> |
|---|
| 56 | * <element name="fmtScheme" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_StyleMatrix" minOccurs="0"/> |
|---|
| 57 | * </sequence> |
|---|
| 58 | * </restriction> |
|---|
| 59 | * </complexContent> |
|---|
| 60 | * </complexType> |
|---|
| 61 | * </pre> |
|---|
| 62 | * |
|---|
| 63 | * |
|---|
| 64 | */ |
|---|
| 65 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 66 | @XmlType(name = "CT_BaseStylesOverride", propOrder = { |
|---|
| 67 | "clrScheme", |
|---|
| 68 | "fontScheme", |
|---|
| 69 | "fmtScheme" |
|---|
| 70 | }) |
|---|
| 71 | public class CTBaseStylesOverride { |
|---|
| 72 | |
|---|
| 73 | protected CTColorScheme clrScheme; |
|---|
| 74 | protected CTBaseStylesOverride.FontScheme fontScheme; |
|---|
| 75 | protected CTStyleMatrix fmtScheme; |
|---|
| 76 | |
|---|
| 77 | /** |
|---|
| 78 | * Gets the value of the clrScheme property. |
|---|
| 79 | * |
|---|
| 80 | * @return |
|---|
| 81 | * possible object is |
|---|
| 82 | * {@link CTColorScheme } |
|---|
| 83 | * |
|---|
| 84 | */ |
|---|
| 85 | public CTColorScheme getClrScheme() { |
|---|
| 86 | return clrScheme; |
|---|
| 87 | } |
|---|
| 88 | |
|---|
| 89 | /** |
|---|
| 90 | * Sets the value of the clrScheme property. |
|---|
| 91 | * |
|---|
| 92 | * @param value |
|---|
| 93 | * allowed object is |
|---|
| 94 | * {@link CTColorScheme } |
|---|
| 95 | * |
|---|
| 96 | */ |
|---|
| 97 | public void setClrScheme(CTColorScheme value) { |
|---|
| 98 | this.clrScheme = value; |
|---|
| 99 | } |
|---|
| 100 | |
|---|
| 101 | /** |
|---|
| 102 | * Gets the value of the fontScheme property. |
|---|
| 103 | * |
|---|
| 104 | * @return |
|---|
| 105 | * possible object is |
|---|
| 106 | * {@link CTBaseStylesOverride.FontScheme } |
|---|
| 107 | * |
|---|
| 108 | */ |
|---|
| 109 | public CTBaseStylesOverride.FontScheme getFontScheme() { |
|---|
| 110 | return fontScheme; |
|---|
| 111 | } |
|---|
| 112 | |
|---|
| 113 | /** |
|---|
| 114 | * Sets the value of the fontScheme property. |
|---|
| 115 | * |
|---|
| 116 | * @param value |
|---|
| 117 | * allowed object is |
|---|
| 118 | * {@link CTBaseStylesOverride.FontScheme } |
|---|
| 119 | * |
|---|
| 120 | */ |
|---|
| 121 | public void setFontScheme(CTBaseStylesOverride.FontScheme value) { |
|---|
| 122 | this.fontScheme = value; |
|---|
| 123 | } |
|---|
| 124 | |
|---|
| 125 | /** |
|---|
| 126 | * Gets the value of the fmtScheme property. |
|---|
| 127 | * |
|---|
| 128 | * @return |
|---|
| 129 | * possible object is |
|---|
| 130 | * {@link CTStyleMatrix } |
|---|
| 131 | * |
|---|
| 132 | */ |
|---|
| 133 | public CTStyleMatrix getFmtScheme() { |
|---|
| 134 | return fmtScheme; |
|---|
| 135 | } |
|---|
| 136 | |
|---|
| 137 | /** |
|---|
| 138 | * Sets the value of the fmtScheme property. |
|---|
| 139 | * |
|---|
| 140 | * @param value |
|---|
| 141 | * allowed object is |
|---|
| 142 | * {@link CTStyleMatrix } |
|---|
| 143 | * |
|---|
| 144 | */ |
|---|
| 145 | public void setFmtScheme(CTStyleMatrix value) { |
|---|
| 146 | this.fmtScheme = value; |
|---|
| 147 | } |
|---|
| 148 | |
|---|
| 149 | |
|---|
| 150 | /** |
|---|
| 151 | * <p>Java class for anonymous complex type. |
|---|
| 152 | * |
|---|
| 153 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 154 | * |
|---|
| 155 | * <pre> |
|---|
| 156 | * <complexType> |
|---|
| 157 | * <complexContent> |
|---|
| 158 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 159 | * <sequence> |
|---|
| 160 | * <element name="majorFont" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_FontCollection"/> |
|---|
| 161 | * <element name="minorFont" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_FontCollection"/> |
|---|
| 162 | * <element name="extLst" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_OfficeArtExtensionList" minOccurs="0"/> |
|---|
| 163 | * </sequence> |
|---|
| 164 | * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 165 | * </restriction> |
|---|
| 166 | * </complexContent> |
|---|
| 167 | * </complexType> |
|---|
| 168 | * </pre> |
|---|
| 169 | * |
|---|
| 170 | * |
|---|
| 171 | */ |
|---|
| 172 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 173 | @XmlType(name = "", propOrder = { |
|---|
| 174 | "majorFont", |
|---|
| 175 | "minorFont", |
|---|
| 176 | "extLst" |
|---|
| 177 | }) |
|---|
| 178 | public static class FontScheme { |
|---|
| 179 | |
|---|
| 180 | @XmlElement(required = true) |
|---|
| 181 | protected FontCollection majorFont; |
|---|
| 182 | @XmlElement(required = true) |
|---|
| 183 | protected FontCollection minorFont; |
|---|
| 184 | protected CTOfficeArtExtensionList extLst; |
|---|
| 185 | @XmlAttribute(required = true) |
|---|
| 186 | protected String name; |
|---|
| 187 | |
|---|
| 188 | /** |
|---|
| 189 | * Gets the value of the majorFont property. |
|---|
| 190 | * |
|---|
| 191 | * @return |
|---|
| 192 | * possible object is |
|---|
| 193 | * {@link FontCollection } |
|---|
| 194 | * |
|---|
| 195 | */ |
|---|
| 196 | public FontCollection getMajorFont() { |
|---|
| 197 | return majorFont; |
|---|
| 198 | } |
|---|
| 199 | |
|---|
| 200 | /** |
|---|
| 201 | * Sets the value of the majorFont property. |
|---|
| 202 | * |
|---|
| 203 | * @param value |
|---|
| 204 | * allowed object is |
|---|
| 205 | * {@link FontCollection } |
|---|
| 206 | * |
|---|
| 207 | */ |
|---|
| 208 | public void setMajorFont(FontCollection value) { |
|---|
| 209 | this.majorFont = value; |
|---|
| 210 | } |
|---|
| 211 | |
|---|
| 212 | /** |
|---|
| 213 | * Gets the value of the minorFont property. |
|---|
| 214 | * |
|---|
| 215 | * @return |
|---|
| 216 | * possible object is |
|---|
| 217 | * {@link FontCollection } |
|---|
| 218 | * |
|---|
| 219 | */ |
|---|
| 220 | public FontCollection getMinorFont() { |
|---|
| 221 | return minorFont; |
|---|
| 222 | } |
|---|
| 223 | |
|---|
| 224 | /** |
|---|
| 225 | * Sets the value of the minorFont property. |
|---|
| 226 | * |
|---|
| 227 | * @param value |
|---|
| 228 | * allowed object is |
|---|
| 229 | * {@link FontCollection } |
|---|
| 230 | * |
|---|
| 231 | */ |
|---|
| 232 | public void setMinorFont(FontCollection value) { |
|---|
| 233 | this.minorFont = value; |
|---|
| 234 | } |
|---|
| 235 | |
|---|
| 236 | /** |
|---|
| 237 | * Gets the value of the extLst property. |
|---|
| 238 | * |
|---|
| 239 | * @return |
|---|
| 240 | * possible object is |
|---|
| 241 | * {@link CTOfficeArtExtensionList } |
|---|
| 242 | * |
|---|
| 243 | */ |
|---|
| 244 | public CTOfficeArtExtensionList getExtLst() { |
|---|
| 245 | return extLst; |
|---|
| 246 | } |
|---|
| 247 | |
|---|
| 248 | /** |
|---|
| 249 | * Sets the value of the extLst property. |
|---|
| 250 | * |
|---|
| 251 | * @param value |
|---|
| 252 | * allowed object is |
|---|
| 253 | * {@link CTOfficeArtExtensionList } |
|---|
| 254 | * |
|---|
| 255 | */ |
|---|
| 256 | public void setExtLst(CTOfficeArtExtensionList value) { |
|---|
| 257 | this.extLst = value; |
|---|
| 258 | } |
|---|
| 259 | |
|---|
| 260 | /** |
|---|
| 261 | * Gets the value of the name property. |
|---|
| 262 | * |
|---|
| 263 | * @return |
|---|
| 264 | * possible object is |
|---|
| 265 | * {@link String } |
|---|
| 266 | * |
|---|
| 267 | */ |
|---|
| 268 | public String getName() { |
|---|
| 269 | return name; |
|---|
| 270 | } |
|---|
| 271 | |
|---|
| 272 | /** |
|---|
| 273 | * Sets the value of the name property. |
|---|
| 274 | * |
|---|
| 275 | * @param value |
|---|
| 276 | * allowed object is |
|---|
| 277 | * {@link String } |
|---|
| 278 | * |
|---|
| 279 | */ |
|---|
| 280 | public void setName(String value) { |
|---|
| 281 | this.name = value; |
|---|
| 282 | } |
|---|
| 283 | |
|---|
| 284 | } |
|---|
| 285 | |
|---|
| 286 | } |
|---|