Девять новых типов диаграмм + XSD-валидация фикстур #42

Merged
pjandro merged 1 commits from feature/chart-types into main 2026-10-25 05:17:32 +03:00
81 changed files with 33512 additions and 87 deletions
Showing only changes of commit fbdada1fda - Show all commits
+9 -9
View File
File diff suppressed because one or more lines are too long
+26 -7
View File
@@ -10,16 +10,15 @@
|`ecma376-part1-5th.md`|Тот же текст, извлечённый из PDF (поиск по номерам секций)|5-е изд.|производный (см. регенерацию)|`86af445c080d9a481eaa426fc1721d50a1c4eff875535f9d03fe93d2b95b21b6`|
|`ms-oi29500.md`|[MS-OI29500] «Office Implementation Information for ISO/IEC-29500 Standards» — как Word реально пишет docx (§2.1 — комментарий к Part 1, §3.1 — к Part 4)|260818 (август 2026)|https://officeprotocoldocs-f5hpbjgea6b8gneq.b02.azurefd.net/files/MS-OI29500/%5bMS-OI29500%5d-260818.docx|`3e3eabb060a3772d096f001e7fee682fc4be12a2dd55ea360430fff14dd5845d`|
|`ms-odrawxml.md`|[MS-ODRAWXML] «Office Drawing Extensions to Office Open XML» — расширения Word/Excel для чартов (ChartEx, стили/цвета)|261006 (октябрь 2026)|https://officeprotocoldocs-f5hpbjgea6b8gneq.b02.azurefd.net/files/MS-ODRAWXML/%5bMS-ODRAWXML%5d-261006.docx|`f5a2517c4984b2ba2f0ade504bd0c9660c74f619290910a9b491c0f2ca9db64a`|
|`schema/dml-chart.xsd`|XSD DrawingML Charts (`c:`-пространство имён)|5-е изд.|вложенный `OfficeOpenXML-XMLSchema-Strict.zip` в ECMA-архиве выше|`189b9631129a7d6c9f971b42b94c8942d260f11f81615f427db059bbf442cdc3`|
|`schema/dml-diagram.xsd`|XSD DrawingML Diagrams (`dgm:`)|5-е изд.|там же|`179cd2fa4b981e1e2faa9ce99bb18c5d4d896dc1edb144af50f5cc8c52eb8569`|
|`schema/dml-main.xsd`|XSD DrawingML Main (`a:`, пресет-геометрия — типы)|5-е изд.|там же|`078871240cff323ddd22a395281421b737fa61508fd39ffaa2947ba2bc01175e`|
|`schema/strict/`|Полный набор XSD Strict (21 файл: `wml`/`sml`/`pml`/`dml-*`/`shared-*`)|5-е изд.|вложенный `OfficeOpenXML-XMLSchema-Strict.zip` в https://ecma-international.org/wp-content/uploads/ECMA-376-1_5th_edition_december_2016.zip|`9d0bcad9cf06054785b03762fcfadbf6bab7e54a5f9d69434e34b7fd464d4129` (zip)|
|`schema/transitional/`|Полный набор XSD Transitional (26 файлов, +5 `vml-*`)|5-е изд.|вложенный `OfficeOpenXML-XMLSchema-Transitional.zip` в https://ecma-international.org/wp-content/uploads/ECMA-376-4_5th_edition_december_2016.zip|`bd25da1109f73762356596918bf5ff8b74a1331642dba5f1c1d1dfc6bed34ecd` (zip)|
SHA-256 `.md`-файлов — справочные: они производные от инструментов извлечения (poppler/pandoc), при регенерации другим инструментом могут измениться; первичен PDF/docx выше.
## Что где искать
- **Диаграммы (`c:chart`)** — ECMA-376 §21.2 (`grep -n "^21.2" ecma376-part1-5th.md`; каждый элемент — секция вида `21.2.2.132 overlay (Overlay)`) + `schema/dml-chart.xsd`; расширения Word — `ms-odrawxml.md`.
- **Диаграммы-схемы SmartArt (`dgm:`)** — ECMA-376 §21.4 + `schema/dml-diagram.xsd`. Кэш разложенной схемы (`word/diagrams/drawing1.xml`, relationship `…/office/2007/relationships/diagramDrawing`) — проприетарный MS-формат, нормативного XSD нет; authoritative источник фактической геометрии — сам `dsp:drawing`.
- **Диаграммы (`c:chart`)** — ECMA-376 §21.2 (`grep -n "^21.2" ecma376-part1-5th.md`; каждый элемент — секция вида `21.2.2.132 overlay (Overlay)`) + `schema/transitional/dml-chart.xsd` (он же в `schema/strict/`); расширения Word — `ms-odrawxml.md`.
- **Диаграммы-схемы SmartArt (`dgm:`)** — ECMA-376 §21.4 + `schema/transitional/dml-diagram.xsd`. Кэш разложенной схемы (`word/diagrams/drawing1.xml`, relationship `…/office/2007/relationships/diagramDrawing`) — проприетарный MS-формат (`dsp:`, [MS-ODRAWXML]), нормативного ECMA-XSD нет; authoritative источник фактической геометрии — сам `dsp:drawing`.
- **Пресет-геометрия (`a:prstGeom`)** — ECMA-376 Annex D; машинная копия таблицы пресетов — `wordpdf-core/src/test/resources/geom/presetShapeDefinitions.xml` (синхрон пинит `PresetGeometryTest#tableMatchesEcmaXml`).
- **Chart Drawings (`c:drawing`)** — ECMA-376 §21.3.
- **Поведение Word (что он реально пишет в `w:r`/`w:t`/`lastRenderedPageBreak`, текстбоксы, чарты)** — `ms-oi29500.md` (указатели на секции Part 1, напр. §2.17.3.3.13 → Part 1 §17.3.3.13).
@@ -41,8 +40,28 @@ curl -sSL -o /tmp/odrawxml.docx "https://officeprotocoldocs-f5hpbjgea6b8gneq.b02
pandoc /tmp/oi29500.docx -t gfm-raw_html --wrap=none -o docs/standards/ms-oi29500.md
pandoc /tmp/odrawxml.docx -t gfm-raw_html --wrap=none -o docs/standards/ms-odrawxml.md
# schema/*.xsd — из официального ECMA-архива
# schema/strict/ и schema/transitional/ — полные наборы из официальных ECMA-архивов
curl -sSL -o /tmp/p1.zip "https://ecma-international.org/wp-content/uploads/ECMA-376-1_5th_edition_december_2016.zip"
unzip -o /tmp/p1.zip "OfficeOpenXML-XMLSchema-Strict.zip" -d /tmp/
unzip -o /tmp/OfficeOpenXML-XMLSchema-Strict.zip dml-chart.xsd dml-diagram.xsd dml-main.xsd -d docs/standards/schema/
unzip -o -d docs/standards/schema/strict /tmp/OfficeOpenXML-XMLSchema-Strict.zip "*.xsd"
curl -sSL -o /tmp/p4.zip "https://ecma-international.org/wp-content/uploads/ECMA-376-4_5th_edition_december_2016.zip"
unzip -o /tmp/p4.zip "OfficeOpenXML-XMLSchema-Transitional.zip" -d /tmp/
unzip -o -d docs/standards/schema/transitional /tmp/OfficeOpenXML-XMLSchema-Transitional.zip "*.xsd"
```
## Валидация фикстур
`samples/*.docx` обязаны быть ECMA-conformant (фикстуры — источник истины по входу,
код под них не подгоняется). Проверка — `validate-fixtures.py` (lxml + схемы
`schema/transitional/`):
```bash
python3 docs/standards/validate-fixtures.py wordpdf-core/src/test/resources/samples/*.docx
```
Допущения валидатора (оба по Part 1): `xml:space` — предопределённый атрибут
§5.1.2, схемам подмешивается импорт XML-namespace; `mc:AlternateContent`/
`mc:Ignorable` (§15.2.15) — валидируется Fallback-ветка, атрибуты и элементы
ignorable-namespace'ов снимаются. Не маппятся (вне ECMA, осознанно):
`word/charts/style*.xml`/`colors*.xml` (c14/chartStyle, MS-расширение),
`word/diagrams/drawing*.xml` (`dsp:`, [MS-ODRAWXML]).
@@ -0,0 +1,144 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:a="http://purl.oclc.org/ooxml/drawingml/main"
xmlns="http://purl.oclc.org/ooxml/drawingml/chartDrawing"
targetNamespace="http://purl.oclc.org/ooxml/drawingml/chartDrawing" elementFormDefault="qualified">
<xsd:import namespace="http://purl.oclc.org/ooxml/drawingml/main" schemaLocation="dml-main.xsd"/>
<xsd:complexType name="CT_ShapeNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvSpPr" type="a:CT_NonVisualDrawingShapeProps" minOccurs="1" maxOccurs="1"
/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Shape">
<xsd:sequence>
<xsd:element name="nvSpPr" type="CT_ShapeNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="spPr" type="a:CT_ShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="style" type="a:CT_ShapeStyle" minOccurs="0" maxOccurs="1"/>
<xsd:element name="txBody" type="a:CT_TextBody" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="macro" type="xsd:string" use="optional"/>
<xsd:attribute name="textlink" type="xsd:string" use="optional"/>
<xsd:attribute name="fLocksText" type="xsd:boolean" use="optional" default="true"/>
<xsd:attribute name="fPublished" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_ConnectorNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvCxnSpPr" type="a:CT_NonVisualConnectorProperties" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Connector">
<xsd:sequence>
<xsd:element name="nvCxnSpPr" type="CT_ConnectorNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="spPr" type="a:CT_ShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="style" type="a:CT_ShapeStyle" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="macro" type="xsd:string" use="optional"/>
<xsd:attribute name="fPublished" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_PictureNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvPicPr" type="a:CT_NonVisualPictureProperties" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Picture">
<xsd:sequence>
<xsd:element name="nvPicPr" type="CT_PictureNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="blipFill" type="a:CT_BlipFillProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="spPr" type="a:CT_ShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="style" type="a:CT_ShapeStyle" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="macro" type="xsd:string" use="optional" default=""/>
<xsd:attribute name="fPublished" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_GraphicFrameNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvGraphicFramePr" type="a:CT_NonVisualGraphicFrameProperties"
minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_GraphicFrame">
<xsd:sequence>
<xsd:element name="nvGraphicFramePr" type="CT_GraphicFrameNonVisual" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="xfrm" type="a:CT_Transform2D" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="a:graphic" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="macro" type="xsd:string" use="optional"/>
<xsd:attribute name="fPublished" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_GroupShapeNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvGrpSpPr" type="a:CT_NonVisualGroupDrawingShapeProps" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_GroupShape">
<xsd:sequence>
<xsd:element name="nvGrpSpPr" type="CT_GroupShapeNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="grpSpPr" type="a:CT_GroupShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="sp" type="CT_Shape"/>
<xsd:element name="grpSp" type="CT_GroupShape"/>
<xsd:element name="graphicFrame" type="CT_GraphicFrame"/>
<xsd:element name="cxnSp" type="CT_Connector"/>
<xsd:element name="pic" type="CT_Picture"/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
<xsd:group name="EG_ObjectChoices">
<xsd:sequence>
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element name="sp" type="CT_Shape"/>
<xsd:element name="grpSp" type="CT_GroupShape"/>
<xsd:element name="graphicFrame" type="CT_GraphicFrame"/>
<xsd:element name="cxnSp" type="CT_Connector"/>
<xsd:element name="pic" type="CT_Picture"/>
</xsd:choice>
</xsd:sequence>
</xsd:group>
<xsd:simpleType name="ST_MarkerCoordinate">
<xsd:restriction base="xsd:double">
<xsd:minInclusive value="0.0"/>
<xsd:maxInclusive value="1.0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Marker">
<xsd:sequence>
<xsd:element name="x" type="ST_MarkerCoordinate" minOccurs="1" maxOccurs="1"/>
<xsd:element name="y" type="ST_MarkerCoordinate" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_RelSizeAnchor">
<xsd:sequence>
<xsd:element name="from" type="CT_Marker"/>
<xsd:element name="to" type="CT_Marker"/>
<xsd:group ref="EG_ObjectChoices"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_AbsSizeAnchor">
<xsd:sequence>
<xsd:element name="from" type="CT_Marker"/>
<xsd:element name="ext" type="a:CT_PositiveSize2D"/>
<xsd:group ref="EG_ObjectChoices"/>
</xsd:sequence>
</xsd:complexType>
<xsd:group name="EG_Anchor">
<xsd:choice>
<xsd:element name="relSizeAnchor" type="CT_RelSizeAnchor"/>
<xsd:element name="absSizeAnchor" type="CT_AbsSizeAnchor"/>
</xsd:choice>
</xsd:group>
<xsd:complexType name="CT_Drawing">
<xsd:sequence>
<xsd:group ref="EG_Anchor" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://purl.oclc.org/ooxml/drawingml/lockedCanvas"
xmlns:a="http://purl.oclc.org/ooxml/drawingml/main"
xmlns:r="http://purl.oclc.org/ooxml/officeDocument/relationships" elementFormDefault="qualified"
targetNamespace="http://purl.oclc.org/ooxml/drawingml/lockedCanvas">
<xsd:import namespace="http://purl.oclc.org/ooxml/drawingml/main" schemaLocation="dml-main.xsd"/>
<xsd:element name="lockedCanvas" type="a:CT_GvmlGroupShape"/>
</xsd:schema>
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://purl.oclc.org/ooxml/drawingml/picture"
xmlns:a="http://purl.oclc.org/ooxml/drawingml/main" elementFormDefault="qualified"
targetNamespace="http://purl.oclc.org/ooxml/drawingml/picture">
<xsd:import namespace="http://purl.oclc.org/ooxml/drawingml/main" schemaLocation="dml-main.xsd"/>
<xsd:complexType name="CT_PictureNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvPicPr" type="a:CT_NonVisualPictureProperties" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Picture">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element name="nvPicPr" type="CT_PictureNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="blipFill" type="a:CT_BlipFillProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="spPr" type="a:CT_ShapeProperties" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="pic" type="CT_Picture"/>
</xsd:schema>
@@ -0,0 +1,184 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:a="http://purl.oclc.org/ooxml/drawingml/main"
xmlns="http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing"
xmlns:r="http://purl.oclc.org/ooxml/officeDocument/relationships"
targetNamespace="http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing"
elementFormDefault="qualified">
<xsd:import namespace="http://purl.oclc.org/ooxml/drawingml/main" schemaLocation="dml-main.xsd"/>
<xsd:import schemaLocation="shared-relationshipReference.xsd"
namespace="http://purl.oclc.org/ooxml/officeDocument/relationships"/>
<xsd:element name="from" type="CT_Marker"/>
<xsd:element name="to" type="CT_Marker"/>
<xsd:complexType name="CT_AnchorClientData">
<xsd:attribute name="fLocksWithSheet" type="xsd:boolean" use="optional" default="true"/>
<xsd:attribute name="fPrintsWithSheet" type="xsd:boolean" use="optional" default="true"/>
</xsd:complexType>
<xsd:complexType name="CT_ShapeNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvSpPr" type="a:CT_NonVisualDrawingShapeProps" minOccurs="1" maxOccurs="1"
/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Shape">
<xsd:sequence>
<xsd:element name="nvSpPr" type="CT_ShapeNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="spPr" type="a:CT_ShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="style" type="a:CT_ShapeStyle" minOccurs="0" maxOccurs="1"/>
<xsd:element name="txBody" type="a:CT_TextBody" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="macro" type="xsd:string" use="optional"/>
<xsd:attribute name="textlink" type="xsd:string" use="optional"/>
<xsd:attribute name="fLocksText" type="xsd:boolean" use="optional" default="true"/>
<xsd:attribute name="fPublished" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_ConnectorNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvCxnSpPr" type="a:CT_NonVisualConnectorProperties" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Connector">
<xsd:sequence>
<xsd:element name="nvCxnSpPr" type="CT_ConnectorNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="spPr" type="a:CT_ShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="style" type="a:CT_ShapeStyle" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="macro" type="xsd:string" use="optional"/>
<xsd:attribute name="fPublished" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_PictureNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvPicPr" type="a:CT_NonVisualPictureProperties" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Picture">
<xsd:sequence>
<xsd:element name="nvPicPr" type="CT_PictureNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="blipFill" type="a:CT_BlipFillProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="spPr" type="a:CT_ShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="style" type="a:CT_ShapeStyle" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="macro" type="xsd:string" use="optional" default=""/>
<xsd:attribute name="fPublished" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_GraphicalObjectFrameNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvGraphicFramePr" type="a:CT_NonVisualGraphicFrameProperties"
minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_GraphicalObjectFrame">
<xsd:sequence>
<xsd:element name="nvGraphicFramePr" type="CT_GraphicalObjectFrameNonVisual" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="xfrm" type="a:CT_Transform2D" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="a:graphic" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="macro" type="xsd:string" use="optional"/>
<xsd:attribute name="fPublished" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_GroupShapeNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvGrpSpPr" type="a:CT_NonVisualGroupDrawingShapeProps" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_GroupShape">
<xsd:sequence>
<xsd:element name="nvGrpSpPr" type="CT_GroupShapeNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="grpSpPr" type="a:CT_GroupShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="sp" type="CT_Shape"/>
<xsd:element name="grpSp" type="CT_GroupShape"/>
<xsd:element name="graphicFrame" type="CT_GraphicalObjectFrame"/>
<xsd:element name="cxnSp" type="CT_Connector"/>
<xsd:element name="pic" type="CT_Picture"/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
<xsd:group name="EG_ObjectChoices">
<xsd:sequence>
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element name="sp" type="CT_Shape"/>
<xsd:element name="grpSp" type="CT_GroupShape"/>
<xsd:element name="graphicFrame" type="CT_GraphicalObjectFrame"/>
<xsd:element name="cxnSp" type="CT_Connector"/>
<xsd:element name="pic" type="CT_Picture"/>
<xsd:element name="contentPart" type="CT_Rel"/>
</xsd:choice>
</xsd:sequence>
</xsd:group>
<xsd:complexType name="CT_Rel">
<xsd:attribute ref="r:id" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_ColID">
<xsd:restriction base="xsd:int">
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_RowID">
<xsd:restriction base="xsd:int">
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Marker">
<xsd:sequence>
<xsd:element name="col" type="ST_ColID"/>
<xsd:element name="colOff" type="a:ST_Coordinate"/>
<xsd:element name="row" type="ST_RowID"/>
<xsd:element name="rowOff" type="a:ST_Coordinate"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="ST_EditAs">
<xsd:restriction base="xsd:token">
<xsd:enumeration value="twoCell"/>
<xsd:enumeration value="oneCell"/>
<xsd:enumeration value="absolute"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_TwoCellAnchor">
<xsd:sequence>
<xsd:element name="from" type="CT_Marker"/>
<xsd:element name="to" type="CT_Marker"/>
<xsd:group ref="EG_ObjectChoices"/>
<xsd:element name="clientData" type="CT_AnchorClientData" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="editAs" type="ST_EditAs" use="optional" default="twoCell"/>
</xsd:complexType>
<xsd:complexType name="CT_OneCellAnchor">
<xsd:sequence>
<xsd:element name="from" type="CT_Marker"/>
<xsd:element name="ext" type="a:CT_PositiveSize2D"/>
<xsd:group ref="EG_ObjectChoices"/>
<xsd:element name="clientData" type="CT_AnchorClientData" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_AbsoluteAnchor">
<xsd:sequence>
<xsd:element name="pos" type="a:CT_Point2D"/>
<xsd:element name="ext" type="a:CT_PositiveSize2D"/>
<xsd:group ref="EG_ObjectChoices"/>
<xsd:element name="clientData" type="CT_AnchorClientData" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:group name="EG_Anchor">
<xsd:choice>
<xsd:element name="twoCellAnchor" type="CT_TwoCellAnchor"/>
<xsd:element name="oneCellAnchor" type="CT_OneCellAnchor"/>
<xsd:element name="absoluteAnchor" type="CT_AbsoluteAnchor"/>
</xsd:choice>
</xsd:group>
<xsd:complexType name="CT_Drawing">
<xsd:sequence>
<xsd:group ref="EG_Anchor" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="wsDr" type="CT_Drawing"/>
</xsd:schema>
@@ -0,0 +1,283 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:a="http://purl.oclc.org/ooxml/drawingml/main"
xmlns:w="http://purl.oclc.org/ooxml/wordprocessingml/main"
xmlns:dpct="http://purl.oclc.org/ooxml/drawingml/picture"
xmlns:r="http://purl.oclc.org/ooxml/officeDocument/relationships"
xmlns="http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing"
targetNamespace="http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing"
elementFormDefault="qualified">
<xsd:import namespace="http://purl.oclc.org/ooxml/drawingml/main" schemaLocation="dml-main.xsd"/>
<xsd:import schemaLocation="wml.xsd" namespace="http://purl.oclc.org/ooxml/wordprocessingml/main"/>
<xsd:import namespace="http://purl.oclc.org/ooxml/drawingml/picture" schemaLocation="dml-picture.xsd"/>
<xsd:import namespace="http://purl.oclc.org/ooxml/officeDocument/relationships" schemaLocation="shared-relationshipReference.xsd"/>
<xsd:complexType name="CT_EffectExtent">
<xsd:attribute name="l" type="a:ST_Coordinate" use="required"/>
<xsd:attribute name="t" type="a:ST_Coordinate" use="required"/>
<xsd:attribute name="r" type="a:ST_Coordinate" use="required"/>
<xsd:attribute name="b" type="a:ST_Coordinate" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_WrapDistance">
<xsd:restriction base="xsd:unsignedInt"/>
</xsd:simpleType>
<xsd:complexType name="CT_Inline">
<xsd:sequence>
<xsd:element name="extent" type="a:CT_PositiveSize2D"/>
<xsd:element name="effectExtent" type="CT_EffectExtent" minOccurs="0"/>
<xsd:element name="docPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvGraphicFramePr" type="a:CT_NonVisualGraphicFrameProperties"
minOccurs="0" maxOccurs="1"/>
<xsd:element ref="a:graphic" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="distT" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distB" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distL" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distR" type="ST_WrapDistance" use="optional"/>
</xsd:complexType>
<xsd:simpleType name="ST_WrapText">
<xsd:restriction base="xsd:token">
<xsd:enumeration value="bothSides"/>
<xsd:enumeration value="left"/>
<xsd:enumeration value="right"/>
<xsd:enumeration value="largest"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_WrapPath">
<xsd:sequence>
<xsd:element name="start" type="a:CT_Point2D" minOccurs="1" maxOccurs="1"/>
<xsd:element name="lineTo" type="a:CT_Point2D" minOccurs="2" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="edited" type="xsd:boolean" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_WrapNone"/>
<xsd:complexType name="CT_WrapSquare">
<xsd:sequence>
<xsd:element name="effectExtent" type="CT_EffectExtent" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="wrapText" type="ST_WrapText" use="required"/>
<xsd:attribute name="distT" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distB" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distL" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distR" type="ST_WrapDistance" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_WrapTight">
<xsd:sequence>
<xsd:element name="wrapPolygon" type="CT_WrapPath" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="wrapText" type="ST_WrapText" use="required"/>
<xsd:attribute name="distL" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distR" type="ST_WrapDistance" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_WrapThrough">
<xsd:sequence>
<xsd:element name="wrapPolygon" type="CT_WrapPath" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="wrapText" type="ST_WrapText" use="required"/>
<xsd:attribute name="distL" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distR" type="ST_WrapDistance" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_WrapTopBottom">
<xsd:sequence>
<xsd:element name="effectExtent" type="CT_EffectExtent" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="distT" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distB" type="ST_WrapDistance" use="optional"/>
</xsd:complexType>
<xsd:group name="EG_WrapType">
<xsd:sequence>
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element name="wrapNone" type="CT_WrapNone" minOccurs="1" maxOccurs="1"/>
<xsd:element name="wrapSquare" type="CT_WrapSquare" minOccurs="1" maxOccurs="1"/>
<xsd:element name="wrapTight" type="CT_WrapTight" minOccurs="1" maxOccurs="1"/>
<xsd:element name="wrapThrough" type="CT_WrapThrough" minOccurs="1" maxOccurs="1"/>
<xsd:element name="wrapTopAndBottom" type="CT_WrapTopBottom" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:sequence>
</xsd:group>
<xsd:simpleType name="ST_PositionOffset">
<xsd:restriction base="xsd:int"/>
</xsd:simpleType>
<xsd:simpleType name="ST_AlignH">
<xsd:restriction base="xsd:token">
<xsd:enumeration value="left"/>
<xsd:enumeration value="right"/>
<xsd:enumeration value="center"/>
<xsd:enumeration value="inside"/>
<xsd:enumeration value="outside"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_RelFromH">
<xsd:restriction base="xsd:token">
<xsd:enumeration value="margin"/>
<xsd:enumeration value="page"/>
<xsd:enumeration value="column"/>
<xsd:enumeration value="character"/>
<xsd:enumeration value="leftMargin"/>
<xsd:enumeration value="rightMargin"/>
<xsd:enumeration value="insideMargin"/>
<xsd:enumeration value="outsideMargin"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_PosH">
<xsd:sequence>
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element name="align" type="ST_AlignH" minOccurs="1" maxOccurs="1"/>
<xsd:element name="posOffset" type="ST_PositionOffset" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="relativeFrom" type="ST_RelFromH" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_AlignV">
<xsd:restriction base="xsd:token">
<xsd:enumeration value="top"/>
<xsd:enumeration value="bottom"/>
<xsd:enumeration value="center"/>
<xsd:enumeration value="inside"/>
<xsd:enumeration value="outside"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_RelFromV">
<xsd:restriction base="xsd:token">
<xsd:enumeration value="margin"/>
<xsd:enumeration value="page"/>
<xsd:enumeration value="paragraph"/>
<xsd:enumeration value="line"/>
<xsd:enumeration value="topMargin"/>
<xsd:enumeration value="bottomMargin"/>
<xsd:enumeration value="insideMargin"/>
<xsd:enumeration value="outsideMargin"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_PosV">
<xsd:sequence>
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element name="align" type="ST_AlignV" minOccurs="1" maxOccurs="1"/>
<xsd:element name="posOffset" type="ST_PositionOffset" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="relativeFrom" type="ST_RelFromV" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_Anchor">
<xsd:sequence>
<xsd:element name="simplePos" type="a:CT_Point2D"/>
<xsd:element name="positionH" type="CT_PosH"/>
<xsd:element name="positionV" type="CT_PosV"/>
<xsd:element name="extent" type="a:CT_PositiveSize2D"/>
<xsd:element name="effectExtent" type="CT_EffectExtent" minOccurs="0"/>
<xsd:group ref="EG_WrapType"/>
<xsd:element name="docPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvGraphicFramePr" type="a:CT_NonVisualGraphicFrameProperties"
minOccurs="0" maxOccurs="1"/>
<xsd:element ref="a:graphic" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="distT" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distB" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distL" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distR" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="simplePos" type="xsd:boolean"/>
<xsd:attribute name="relativeHeight" type="xsd:unsignedInt" use="required"/>
<xsd:attribute name="behindDoc" type="xsd:boolean" use="required"/>
<xsd:attribute name="locked" type="xsd:boolean" use="required"/>
<xsd:attribute name="layoutInCell" type="xsd:boolean" use="required"/>
<xsd:attribute name="hidden" type="xsd:boolean" use="optional"/>
<xsd:attribute name="allowOverlap" type="xsd:boolean" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_TxbxContent">
<xsd:group ref="w:EG_BlockLevelElts" minOccurs="1" maxOccurs="unbounded"/>
</xsd:complexType>
<xsd:complexType name="CT_TextboxInfo">
<xsd:sequence>
<xsd:element name="txbxContent" type="CT_TxbxContent" minOccurs="1" maxOccurs="1"/>
<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:unsignedShort" use="optional" default="0"/>
</xsd:complexType>
<xsd:complexType name="CT_LinkedTextboxInformation">
<xsd:sequence>
<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:unsignedShort" use="required"/>
<xsd:attribute name="seq" type="xsd:unsignedShort" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_WordprocessingShape">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="0" maxOccurs="1"/>
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element name="cNvSpPr" type="a:CT_NonVisualDrawingShapeProps" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="cNvCnPr" type="a:CT_NonVisualConnectorProperties" minOccurs="1"
maxOccurs="1"/>
</xsd:choice>
<xsd:element name="spPr" type="a:CT_ShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="style" type="a:CT_ShapeStyle" minOccurs="0" maxOccurs="1"/>
<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
<xsd:choice minOccurs="0" maxOccurs="1">
<xsd:element name="txbx" type="CT_TextboxInfo" minOccurs="1" maxOccurs="1"/>
<xsd:element name="linkedTxbx" type="CT_LinkedTextboxInformation" minOccurs="1"
maxOccurs="1"/>
</xsd:choice>
<xsd:element name="bodyPr" type="a:CT_TextBodyProperties" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="normalEastAsianFlow" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_GraphicFrame">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvFrPr" type="a:CT_NonVisualGraphicFrameProperties" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="xfrm" type="a:CT_Transform2D" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="a:graphic" minOccurs="1" maxOccurs="1"/>
<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_WordprocessingContentPartNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="0" maxOccurs="1"/>
<xsd:element name="cNvContentPartPr" type="a:CT_NonVisualContentPartProperties" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_WordprocessingContentPart">
<xsd:sequence>
<xsd:element name="nvContentPartPr" type="CT_WordprocessingContentPartNonVisual" minOccurs="0" maxOccurs="1"/>
<xsd:element name="xfrm" type="a:CT_Transform2D" minOccurs="0" maxOccurs="1"/>
<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="bwMode" type="a:ST_BlackWhiteMode" use="optional"/>
<xsd:attribute ref="r:id" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_WordprocessingGroup">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="0" maxOccurs="1"/>
<xsd:element name="cNvGrpSpPr" type="a:CT_NonVisualGroupDrawingShapeProps" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="grpSpPr" type="a:CT_GroupShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element ref="wsp"/>
<xsd:element name="grpSp" type="CT_WordprocessingGroup"/>
<xsd:element name="graphicFrame" type="CT_GraphicFrame"/>
<xsd:element ref="dpct:pic"/>
<xsd:element name="contentPart" type="CT_WordprocessingContentPart"/>
</xsd:choice>
<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_WordprocessingCanvas">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element name="bg" type="a:CT_BackgroundFormatting" minOccurs="0" maxOccurs="1"/>
<xsd:element name="whole" type="a:CT_WholeE2oFormatting" minOccurs="0" maxOccurs="1"/>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element ref="wsp"/>
<xsd:element ref="dpct:pic"/>
<xsd:element name="contentPart" type="CT_WordprocessingContentPart"/>
<xsd:element ref="wgp"/>
<xsd:element name="graphicFrame" type="CT_GraphicFrame"/>
</xsd:choice>
<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="wpc" type="CT_WordprocessingCanvas"/>
<xsd:element name="wgp" type="CT_WordprocessingGroup"/>
<xsd:element name="wsp" type="CT_WordprocessingShape"/>
<xsd:element name="inline" type="CT_Inline"/>
<xsd:element name="anchor" type="CT_Anchor"/>
</xsd:schema>
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://purl.oclc.org/ooxml/officeDocument/characteristics"
targetNamespace="http://purl.oclc.org/ooxml/officeDocument/characteristics"
elementFormDefault="qualified">
<xsd:complexType name="CT_AdditionalCharacteristics">
<xsd:sequence>
<xsd:element name="characteristic" type="CT_Characteristic" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Characteristic">
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="relation" type="ST_Relation" use="required"/>
<xsd:attribute name="val" type="xsd:string" use="required"/>
<xsd:attribute name="vocabulary" type="xsd:anyURI" use="optional"/>
</xsd:complexType>
<xsd:simpleType name="ST_Relation">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="ge"/>
<xsd:enumeration value="le"/>
<xsd:enumeration value="gt"/>
<xsd:enumeration value="lt"/>
<xsd:enumeration value="eq"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="additionalCharacteristics" type="CT_AdditionalCharacteristics"/>
</xsd:schema>
@@ -0,0 +1,144 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://purl.oclc.org/ooxml/officeDocument/bibliography"
xmlns:s="http://purl.oclc.org/ooxml/officeDocument/sharedTypes"
targetNamespace="http://purl.oclc.org/ooxml/officeDocument/bibliography"
elementFormDefault="qualified">
<xsd:import namespace="http://purl.oclc.org/ooxml/officeDocument/sharedTypes"
schemaLocation="shared-commonSimpleTypes.xsd"/>
<xsd:simpleType name="ST_SourceType">
<xsd:restriction base="s:ST_String">
<xsd:enumeration value="ArticleInAPeriodical"/>
<xsd:enumeration value="Book"/>
<xsd:enumeration value="BookSection"/>
<xsd:enumeration value="JournalArticle"/>
<xsd:enumeration value="ConferenceProceedings"/>
<xsd:enumeration value="Report"/>
<xsd:enumeration value="SoundRecording"/>
<xsd:enumeration value="Performance"/>
<xsd:enumeration value="Art"/>
<xsd:enumeration value="DocumentFromInternetSite"/>
<xsd:enumeration value="InternetSite"/>
<xsd:enumeration value="Film"/>
<xsd:enumeration value="Interview"/>
<xsd:enumeration value="Patent"/>
<xsd:enumeration value="ElectronicSource"/>
<xsd:enumeration value="Case"/>
<xsd:enumeration value="Misc"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_NameListType">
<xsd:sequence>
<xsd:element name="Person" type="CT_PersonType" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_PersonType">
<xsd:sequence>
<xsd:element name="Last" type="s:ST_String" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="First" type="s:ST_String" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Middle" type="s:ST_String" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_NameType">
<xsd:sequence>
<xsd:element name="NameList" type="CT_NameListType" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_NameOrCorporateType">
<xsd:sequence>
<xsd:choice minOccurs="0" maxOccurs="1">
<xsd:element name="NameList" type="CT_NameListType" minOccurs="1" maxOccurs="1"/>
<xsd:element name="Corporate" minOccurs="1" maxOccurs="1" type="s:ST_String"/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_AuthorType">
<xsd:sequence>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="Artist" type="CT_NameType"/>
<xsd:element name="Author" type="CT_NameOrCorporateType"/>
<xsd:element name="BookAuthor" type="CT_NameType"/>
<xsd:element name="Compiler" type="CT_NameType"/>
<xsd:element name="Composer" type="CT_NameType"/>
<xsd:element name="Conductor" type="CT_NameType"/>
<xsd:element name="Counsel" type="CT_NameType"/>
<xsd:element name="Director" type="CT_NameType"/>
<xsd:element name="Editor" type="CT_NameType"/>
<xsd:element name="Interviewee" type="CT_NameType"/>
<xsd:element name="Interviewer" type="CT_NameType"/>
<xsd:element name="Inventor" type="CT_NameType"/>
<xsd:element name="Performer" type="CT_NameOrCorporateType"/>
<xsd:element name="ProducerName" type="CT_NameType"/>
<xsd:element name="Translator" type="CT_NameType"/>
<xsd:element name="Writer" type="CT_NameType"/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SourceType">
<xsd:sequence>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="AbbreviatedCaseNumber" type="s:ST_String"/>
<xsd:element name="AlbumTitle" type="s:ST_String"/>
<xsd:element name="Author" type="CT_AuthorType"/>
<xsd:element name="BookTitle" type="s:ST_String"/>
<xsd:element name="Broadcaster" type="s:ST_String"/>
<xsd:element name="BroadcastTitle" type="s:ST_String"/>
<xsd:element name="CaseNumber" type="s:ST_String"/>
<xsd:element name="ChapterNumber" type="s:ST_String"/>
<xsd:element name="City" type="s:ST_String"/>
<xsd:element name="Comments" type="s:ST_String"/>
<xsd:element name="ConferenceName" type="s:ST_String"/>
<xsd:element name="CountryRegion" type="s:ST_String"/>
<xsd:element name="Court" type="s:ST_String"/>
<xsd:element name="Day" type="s:ST_String"/>
<xsd:element name="DayAccessed" type="s:ST_String"/>
<xsd:element name="Department" type="s:ST_String"/>
<xsd:element name="Distributor" type="s:ST_String"/>
<xsd:element name="Edition" type="s:ST_String"/>
<xsd:element name="Guid" type="s:ST_String"/>
<xsd:element name="Institution" type="s:ST_String"/>
<xsd:element name="InternetSiteTitle" type="s:ST_String"/>
<xsd:element name="Issue" type="s:ST_String"/>
<xsd:element name="JournalName" type="s:ST_String"/>
<xsd:element name="LCID" type="s:ST_Lang"/>
<xsd:element name="Medium" type="s:ST_String"/>
<xsd:element name="Month" type="s:ST_String"/>
<xsd:element name="MonthAccessed" type="s:ST_String"/>
<xsd:element name="NumberVolumes" type="s:ST_String"/>
<xsd:element name="Pages" type="s:ST_String"/>
<xsd:element name="PatentNumber" type="s:ST_String"/>
<xsd:element name="PeriodicalTitle" type="s:ST_String"/>
<xsd:element name="ProductionCompany" type="s:ST_String"/>
<xsd:element name="PublicationTitle" type="s:ST_String"/>
<xsd:element name="Publisher" type="s:ST_String"/>
<xsd:element name="RecordingNumber" type="s:ST_String"/>
<xsd:element name="RefOrder" type="s:ST_String"/>
<xsd:element name="Reporter" type="s:ST_String"/>
<xsd:element name="SourceType" type="ST_SourceType"/>
<xsd:element name="ShortTitle" type="s:ST_String"/>
<xsd:element name="StandardNumber" type="s:ST_String"/>
<xsd:element name="StateProvince" type="s:ST_String"/>
<xsd:element name="Station" type="s:ST_String"/>
<xsd:element name="Tag" type="s:ST_String"/>
<xsd:element name="Theater" type="s:ST_String"/>
<xsd:element name="ThesisType" type="s:ST_String"/>
<xsd:element name="Title" type="s:ST_String"/>
<xsd:element name="Type" type="s:ST_String"/>
<xsd:element name="URL" type="s:ST_String"/>
<xsd:element name="Version" type="s:ST_String"/>
<xsd:element name="Volume" type="s:ST_String"/>
<xsd:element name="Year" type="s:ST_String"/>
<xsd:element name="YearAccessed" type="s:ST_String"/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="Sources" type="CT_Sources"/>
<xsd:complexType name="CT_Sources">
<xsd:sequence>
<xsd:element name="Source" type="CT_SourceType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="SelectedStyle" type="s:ST_String"/>
<xsd:attribute name="StyleName" type="s:ST_String"/>
<xsd:attribute name="URI" type="s:ST_String"/>
</xsd:complexType>
</xsd:schema>
@@ -0,0 +1,125 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://purl.oclc.org/ooxml/officeDocument/sharedTypes"
targetNamespace="http://purl.oclc.org/ooxml/officeDocument/sharedTypes"
elementFormDefault="qualified">
<xsd:simpleType name="ST_Lang">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="ST_HexColorRGB">
<xsd:restriction base="xsd:hexBinary">
<xsd:length value="3" fixed="true"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_Panose">
<xsd:restriction base="xsd:hexBinary">
<xsd:length value="10"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_CalendarType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="gregorian"/>
<xsd:enumeration value="gregorianUs"/>
<xsd:enumeration value="gregorianMeFrench"/>
<xsd:enumeration value="gregorianArabic"/>
<xsd:enumeration value="hijri"/>
<xsd:enumeration value="hebrew"/>
<xsd:enumeration value="taiwan"/>
<xsd:enumeration value="japan"/>
<xsd:enumeration value="thai"/>
<xsd:enumeration value="korea"/>
<xsd:enumeration value="saka"/>
<xsd:enumeration value="gregorianXlitEnglish"/>
<xsd:enumeration value="gregorianXlitFrench"/>
<xsd:enumeration value="none"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_Guid">
<xsd:restriction base="xsd:token">
<xsd:pattern value="\{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_OnOff">
<xsd:union memberTypes="xsd:boolean"/>
</xsd:simpleType>
<xsd:simpleType name="ST_String">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="ST_XmlName">
<xsd:restriction base="xsd:NCName">
<xsd:minLength value="1"/>
<xsd:maxLength value="255"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_UnsignedDecimalNumber">
<xsd:restriction base="xsd:unsignedLong"/>
</xsd:simpleType>
<xsd:simpleType name="ST_TwipsMeasure">
<xsd:union memberTypes="ST_UnsignedDecimalNumber ST_PositiveUniversalMeasure"/>
</xsd:simpleType>
<xsd:simpleType name="ST_VerticalAlignRun">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="baseline"/>
<xsd:enumeration value="superscript"/>
<xsd:enumeration value="subscript"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_Xstring">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="ST_XAlign">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="left"/>
<xsd:enumeration value="center"/>
<xsd:enumeration value="right"/>
<xsd:enumeration value="inside"/>
<xsd:enumeration value="outside"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_YAlign">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="inline"/>
<xsd:enumeration value="top"/>
<xsd:enumeration value="center"/>
<xsd:enumeration value="bottom"/>
<xsd:enumeration value="inside"/>
<xsd:enumeration value="outside"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_ConformanceClass">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="strict"/>
<xsd:enumeration value="transitional"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_UniversalMeasure">
<xsd:restriction base="xsd:string">
<xsd:pattern value="-?[0-9]+(\.[0-9]+)?(mm|cm|in|pt|pc|pi)"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_PositiveUniversalMeasure">
<xsd:restriction base="ST_UniversalMeasure">
<xsd:pattern value="[0-9]+(\.[0-9]+)?(mm|cm|in|pt|pc|pi)"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_Percentage">
<xsd:restriction base="xsd:string">
<xsd:pattern value="-?[0-9]+(\.[0-9]+)?%"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_FixedPercentage">
<xsd:restriction base="ST_Percentage">
<xsd:pattern value="-?((100)|([0-9][0-9]?))(\.[0-9][0-9]?)?%"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_PositivePercentage">
<xsd:restriction base="ST_Percentage">
<xsd:pattern value="[0-9]+(\.[0-9]+)?%"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_PositiveFixedPercentage">
<xsd:restriction base="ST_Percentage">
<xsd:pattern value="((100)|([0-9][0-9]?))(\.[0-9][0-9]?)?%"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://purl.oclc.org/ooxml/officeDocument/customXml"
xmlns:s="http://purl.oclc.org/ooxml/officeDocument/sharedTypes"
targetNamespace="http://purl.oclc.org/ooxml/officeDocument/customXml"
elementFormDefault="qualified" attributeFormDefault="qualified" blockDefault="#all">
<xsd:import namespace="http://purl.oclc.org/ooxml/officeDocument/sharedTypes"
schemaLocation="shared-commonSimpleTypes.xsd"/>
<xsd:complexType name="CT_DatastoreSchemaRef">
<xsd:attribute name="uri" type="xsd:string" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_DatastoreSchemaRefs">
<xsd:sequence>
<xsd:element name="schemaRef" type="CT_DatastoreSchemaRef" minOccurs="0" maxOccurs="unbounded"
/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_DatastoreItem">
<xsd:sequence>
<xsd:element name="schemaRefs" type="CT_DatastoreSchemaRefs" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="itemID" type="s:ST_Guid" use="required"/>
</xsd:complexType>
<xsd:element name="datastoreItem" type="CT_DatastoreItem"/>
</xsd:schema>
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://purl.oclc.org/ooxml/schemaLibrary/main"
targetNamespace="http://purl.oclc.org/ooxml/schemaLibrary/main" attributeFormDefault="qualified"
elementFormDefault="qualified">
<xsd:complexType name="CT_Schema">
<xsd:attribute name="uri" type="xsd:string" default=""/>
<xsd:attribute name="manifestLocation" type="xsd:string"/>
<xsd:attribute name="schemaLocation" type="xsd:string"/>
<xsd:attribute name="schemaLanguage" type="xsd:token"/>
</xsd:complexType>
<xsd:complexType name="CT_SchemaLibrary">
<xsd:sequence>
<xsd:element name="schema" type="CT_Schema" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="schemaLibrary" type="CT_SchemaLibrary"/>
</xsd:schema>
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://purl.oclc.org/ooxml/officeDocument/customProperties"
xmlns:vt="http://purl.oclc.org/ooxml/officeDocument/docPropsVTypes"
xmlns:s="http://purl.oclc.org/ooxml/officeDocument/sharedTypes"
targetNamespace="http://purl.oclc.org/ooxml/officeDocument/customProperties" blockDefault="#all"
elementFormDefault="qualified">
<xsd:import namespace="http://purl.oclc.org/ooxml/officeDocument/docPropsVTypes"
schemaLocation="shared-documentPropertiesVariantTypes.xsd"/>
<xsd:import namespace="http://purl.oclc.org/ooxml/officeDocument/sharedTypes"
schemaLocation="shared-commonSimpleTypes.xsd"/>
<xsd:element name="Properties" type="CT_Properties"/>
<xsd:complexType name="CT_Properties">
<xsd:sequence>
<xsd:element name="property" minOccurs="0" maxOccurs="unbounded" type="CT_Property"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Property">
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element ref="vt:vector"/>
<xsd:element ref="vt:array"/>
<xsd:element ref="vt:blob"/>
<xsd:element ref="vt:oblob"/>
<xsd:element ref="vt:empty"/>
<xsd:element ref="vt:null"/>
<xsd:element ref="vt:i1"/>
<xsd:element ref="vt:i2"/>
<xsd:element ref="vt:i4"/>
<xsd:element ref="vt:i8"/>
<xsd:element ref="vt:int"/>
<xsd:element ref="vt:ui1"/>
<xsd:element ref="vt:ui2"/>
<xsd:element ref="vt:ui4"/>
<xsd:element ref="vt:ui8"/>
<xsd:element ref="vt:uint"/>
<xsd:element ref="vt:r4"/>
<xsd:element ref="vt:r8"/>
<xsd:element ref="vt:decimal"/>
<xsd:element ref="vt:lpstr"/>
<xsd:element ref="vt:lpwstr"/>
<xsd:element ref="vt:bstr"/>
<xsd:element ref="vt:date"/>
<xsd:element ref="vt:filetime"/>
<xsd:element ref="vt:bool"/>
<xsd:element ref="vt:cy"/>
<xsd:element ref="vt:error"/>
<xsd:element ref="vt:stream"/>
<xsd:element ref="vt:ostream"/>
<xsd:element ref="vt:storage"/>
<xsd:element ref="vt:ostorage"/>
<xsd:element ref="vt:vstream"/>
<xsd:element ref="vt:clsid"/>
</xsd:choice>
<xsd:attribute name="fmtid" use="required" type="s:ST_Guid"/>
<xsd:attribute name="pid" use="required" type="xsd:int"/>
<xsd:attribute name="name" use="optional" type="xsd:string"/>
<xsd:attribute name="linkTarget" use="optional" type="xsd:string"/>
</xsd:complexType>
</xsd:schema>
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://purl.oclc.org/ooxml/officeDocument/extendedProperties"
xmlns:vt="http://purl.oclc.org/ooxml/officeDocument/docPropsVTypes"
targetNamespace="http://purl.oclc.org/ooxml/officeDocument/extendedProperties"
elementFormDefault="qualified" blockDefault="#all">
<xsd:import namespace="http://purl.oclc.org/ooxml/officeDocument/docPropsVTypes"
schemaLocation="shared-documentPropertiesVariantTypes.xsd"/>
<xsd:element name="Properties" type="CT_Properties"/>
<xsd:complexType name="CT_Properties">
<xsd:all>
<xsd:element name="Template" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<xsd:element name="Manager" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<xsd:element name="Company" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<xsd:element name="Pages" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="Words" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="Characters" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="PresentationFormat" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<xsd:element name="Lines" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="Paragraphs" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="Slides" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="Notes" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="TotalTime" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="HiddenSlides" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="MMClips" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="ScaleCrop" minOccurs="0" maxOccurs="1" type="xsd:boolean"/>
<xsd:element name="HeadingPairs" minOccurs="0" maxOccurs="1" type="CT_VectorVariant"/>
<xsd:element name="TitlesOfParts" minOccurs="0" maxOccurs="1" type="CT_VectorLpstr"/>
<xsd:element name="LinksUpToDate" minOccurs="0" maxOccurs="1" type="xsd:boolean"/>
<xsd:element name="CharactersWithSpaces" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="SharedDoc" minOccurs="0" maxOccurs="1" type="xsd:boolean"/>
<xsd:element name="HyperlinkBase" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<xsd:element name="HLinks" minOccurs="0" maxOccurs="1" type="CT_VectorVariant"/>
<xsd:element name="HyperlinksChanged" minOccurs="0" maxOccurs="1" type="xsd:boolean"/>
<xsd:element name="DigSig" minOccurs="0" maxOccurs="1" type="CT_DigSigBlob"/>
<xsd:element name="Application" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<xsd:element name="AppVersion" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<xsd:element name="DocSecurity" minOccurs="0" maxOccurs="1" type="xsd:int"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="CT_VectorVariant">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element ref="vt:vector"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_VectorLpstr">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element ref="vt:vector"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_DigSigBlob">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element ref="vt:blob"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
@@ -0,0 +1,195 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://purl.oclc.org/ooxml/officeDocument/docPropsVTypes"
xmlns:s="http://purl.oclc.org/ooxml/officeDocument/sharedTypes"
targetNamespace="http://purl.oclc.org/ooxml/officeDocument/docPropsVTypes" blockDefault="#all"
elementFormDefault="qualified">
<xsd:import namespace="http://purl.oclc.org/ooxml/officeDocument/sharedTypes"
schemaLocation="shared-commonSimpleTypes.xsd"/>
<xsd:simpleType name="ST_VectorBaseType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="variant"/>
<xsd:enumeration value="i1"/>
<xsd:enumeration value="i2"/>
<xsd:enumeration value="i4"/>
<xsd:enumeration value="i8"/>
<xsd:enumeration value="ui1"/>
<xsd:enumeration value="ui2"/>
<xsd:enumeration value="ui4"/>
<xsd:enumeration value="ui8"/>
<xsd:enumeration value="r4"/>
<xsd:enumeration value="r8"/>
<xsd:enumeration value="lpstr"/>
<xsd:enumeration value="lpwstr"/>
<xsd:enumeration value="bstr"/>
<xsd:enumeration value="date"/>
<xsd:enumeration value="filetime"/>
<xsd:enumeration value="bool"/>
<xsd:enumeration value="cy"/>
<xsd:enumeration value="error"/>
<xsd:enumeration value="clsid"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_ArrayBaseType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="variant"/>
<xsd:enumeration value="i1"/>
<xsd:enumeration value="i2"/>
<xsd:enumeration value="i4"/>
<xsd:enumeration value="int"/>
<xsd:enumeration value="ui1"/>
<xsd:enumeration value="ui2"/>
<xsd:enumeration value="ui4"/>
<xsd:enumeration value="uint"/>
<xsd:enumeration value="r4"/>
<xsd:enumeration value="r8"/>
<xsd:enumeration value="decimal"/>
<xsd:enumeration value="bstr"/>
<xsd:enumeration value="date"/>
<xsd:enumeration value="bool"/>
<xsd:enumeration value="cy"/>
<xsd:enumeration value="error"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_Cy">
<xsd:restriction base="xsd:string">
<xsd:pattern value="\s*[0-9]*\.[0-9]{4}\s*"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_Error">
<xsd:restriction base="xsd:string">
<xsd:pattern value="\s*0x[0-9A-Za-z]{8}\s*"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Empty"/>
<xsd:complexType name="CT_Null"/>
<xsd:complexType name="CT_Vector">
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element ref="variant"/>
<xsd:element ref="i1"/>
<xsd:element ref="i2"/>
<xsd:element ref="i4"/>
<xsd:element ref="i8"/>
<xsd:element ref="ui1"/>
<xsd:element ref="ui2"/>
<xsd:element ref="ui4"/>
<xsd:element ref="ui8"/>
<xsd:element ref="r4"/>
<xsd:element ref="r8"/>
<xsd:element ref="lpstr"/>
<xsd:element ref="lpwstr"/>
<xsd:element ref="bstr"/>
<xsd:element ref="date"/>
<xsd:element ref="filetime"/>
<xsd:element ref="bool"/>
<xsd:element ref="cy"/>
<xsd:element ref="error"/>
<xsd:element ref="clsid"/>
</xsd:choice>
<xsd:attribute name="baseType" type="ST_VectorBaseType" use="required"/>
<xsd:attribute name="size" type="xsd:unsignedInt" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_Array">
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element ref="variant"/>
<xsd:element ref="i1"/>
<xsd:element ref="i2"/>
<xsd:element ref="i4"/>
<xsd:element ref="int"/>
<xsd:element ref="ui1"/>
<xsd:element ref="ui2"/>
<xsd:element ref="ui4"/>
<xsd:element ref="uint"/>
<xsd:element ref="r4"/>
<xsd:element ref="r8"/>
<xsd:element ref="decimal"/>
<xsd:element ref="bstr"/>
<xsd:element ref="date"/>
<xsd:element ref="bool"/>
<xsd:element ref="error"/>
<xsd:element ref="cy"/>
</xsd:choice>
<xsd:attribute name="lBounds" type="xsd:int" use="required"/>
<xsd:attribute name="uBounds" type="xsd:int" use="required"/>
<xsd:attribute name="baseType" type="ST_ArrayBaseType" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_Variant">
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element ref="variant"/>
<xsd:element ref="vector"/>
<xsd:element ref="array"/>
<xsd:element ref="blob"/>
<xsd:element ref="oblob"/>
<xsd:element ref="empty"/>
<xsd:element ref="null"/>
<xsd:element ref="i1"/>
<xsd:element ref="i2"/>
<xsd:element ref="i4"/>
<xsd:element ref="i8"/>
<xsd:element ref="int"/>
<xsd:element ref="ui1"/>
<xsd:element ref="ui2"/>
<xsd:element ref="ui4"/>
<xsd:element ref="ui8"/>
<xsd:element ref="uint"/>
<xsd:element ref="r4"/>
<xsd:element ref="r8"/>
<xsd:element ref="decimal"/>
<xsd:element ref="lpstr"/>
<xsd:element ref="lpwstr"/>
<xsd:element ref="bstr"/>
<xsd:element ref="date"/>
<xsd:element ref="filetime"/>
<xsd:element ref="bool"/>
<xsd:element ref="cy"/>
<xsd:element ref="error"/>
<xsd:element ref="stream"/>
<xsd:element ref="ostream"/>
<xsd:element ref="storage"/>
<xsd:element ref="ostorage"/>
<xsd:element ref="vstream"/>
<xsd:element ref="clsid"/>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="CT_Vstream">
<xsd:simpleContent>
<xsd:extension base="xsd:base64Binary">
<xsd:attribute name="version" type="s:ST_Guid"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:element name="variant" type="CT_Variant"/>
<xsd:element name="vector" type="CT_Vector"/>
<xsd:element name="array" type="CT_Array"/>
<xsd:element name="blob" type="xsd:base64Binary"/>
<xsd:element name="oblob" type="xsd:base64Binary"/>
<xsd:element name="empty" type="CT_Empty"/>
<xsd:element name="null" type="CT_Null"/>
<xsd:element name="i1" type="xsd:byte"/>
<xsd:element name="i2" type="xsd:short"/>
<xsd:element name="i4" type="xsd:int"/>
<xsd:element name="i8" type="xsd:long"/>
<xsd:element name="int" type="xsd:int"/>
<xsd:element name="ui1" type="xsd:unsignedByte"/>
<xsd:element name="ui2" type="xsd:unsignedShort"/>
<xsd:element name="ui4" type="xsd:unsignedInt"/>
<xsd:element name="ui8" type="xsd:unsignedLong"/>
<xsd:element name="uint" type="xsd:unsignedInt"/>
<xsd:element name="r4" type="xsd:float"/>
<xsd:element name="r8" type="xsd:double"/>
<xsd:element name="decimal" type="xsd:decimal"/>
<xsd:element name="lpstr" type="xsd:string"/>
<xsd:element name="lpwstr" type="xsd:string"/>
<xsd:element name="bstr" type="xsd:string"/>
<xsd:element name="date" type="xsd:dateTime"/>
<xsd:element name="filetime" type="xsd:dateTime"/>
<xsd:element name="bool" type="xsd:boolean"/>
<xsd:element name="cy" type="ST_Cy"/>
<xsd:element name="error" type="ST_Error"/>
<xsd:element name="stream" type="xsd:base64Binary"/>
<xsd:element name="ostream" type="xsd:base64Binary"/>
<xsd:element name="storage" type="xsd:base64Binary"/>
<xsd:element name="ostorage" type="xsd:base64Binary"/>
<xsd:element name="vstream" type="CT_Vstream"/>
<xsd:element name="clsid" type="s:ST_Guid"/>
</xsd:schema>
@@ -0,0 +1,582 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://purl.oclc.org/ooxml/officeDocument/math"
xmlns:m="http://purl.oclc.org/ooxml/officeDocument/math"
xmlns:w="http://purl.oclc.org/ooxml/wordprocessingml/main"
xmlns:s="http://purl.oclc.org/ooxml/officeDocument/sharedTypes" elementFormDefault="qualified"
attributeFormDefault="qualified" blockDefault="#all"
targetNamespace="http://purl.oclc.org/ooxml/officeDocument/math">
<xsd:import namespace="http://purl.oclc.org/ooxml/wordprocessingml/main"
schemaLocation="wml.xsd"/>
<xsd:import namespace="http://purl.oclc.org/ooxml/officeDocument/sharedTypes"
schemaLocation="shared-commonSimpleTypes.xsd"/>
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:simpleType name="ST_Integer255">
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="1"/>
<xsd:maxInclusive value="255"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Integer255">
<xsd:attribute name="val" type="ST_Integer255" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_Integer2">
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="-2"/>
<xsd:maxInclusive value="2"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Integer2">
<xsd:attribute name="val" type="ST_Integer2" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_SpacingRule">
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="4"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_SpacingRule">
<xsd:attribute name="val" type="ST_SpacingRule" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_UnSignedInteger">
<xsd:restriction base="xsd:unsignedInt"/>
</xsd:simpleType>
<xsd:complexType name="CT_UnSignedInteger">
<xsd:attribute name="val" type="ST_UnSignedInteger" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_Char">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Char">
<xsd:attribute name="val" type="ST_Char" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_OnOff">
<xsd:attribute name="val" type="s:ST_OnOff"/>
</xsd:complexType>
<xsd:complexType name="CT_String">
<xsd:attribute name="val" type="s:ST_String"/>
</xsd:complexType>
<xsd:complexType name="CT_XAlign">
<xsd:attribute name="val" type="s:ST_XAlign" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_YAlign">
<xsd:attribute name="val" type="s:ST_YAlign" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_Shp">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="centered"/>
<xsd:enumeration value="match"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Shp">
<xsd:attribute name="val" type="ST_Shp" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_FType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="bar"/>
<xsd:enumeration value="skw"/>
<xsd:enumeration value="lin"/>
<xsd:enumeration value="noBar"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_FType">
<xsd:attribute name="val" type="ST_FType" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_LimLoc">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="undOvr"/>
<xsd:enumeration value="subSup"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_LimLoc">
<xsd:attribute name="val" type="ST_LimLoc" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_TopBot">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="top"/>
<xsd:enumeration value="bot"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_TopBot">
<xsd:attribute name="val" type="ST_TopBot" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_Script">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="roman"/>
<xsd:enumeration value="script"/>
<xsd:enumeration value="fraktur"/>
<xsd:enumeration value="double-struck"/>
<xsd:enumeration value="sans-serif"/>
<xsd:enumeration value="monospace"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Script">
<xsd:attribute name="val" type="ST_Script"/>
</xsd:complexType>
<xsd:simpleType name="ST_Style">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="p"/>
<xsd:enumeration value="b"/>
<xsd:enumeration value="i"/>
<xsd:enumeration value="bi"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Style">
<xsd:attribute name="val" type="ST_Style"/>
</xsd:complexType>
<xsd:complexType name="CT_ManualBreak">
<xsd:attribute name="alnAt" type="ST_Integer255"/>
</xsd:complexType>
<xsd:group name="EG_ScriptStyle">
<xsd:sequence>
<xsd:element name="scr" minOccurs="0" type="CT_Script"/>
<xsd:element name="sty" minOccurs="0" type="CT_Style"/>
</xsd:sequence>
</xsd:group>
<xsd:complexType name="CT_RPR">
<xsd:sequence>
<xsd:element name="lit" minOccurs="0" type="CT_OnOff"/>
<xsd:choice>
<xsd:element name="nor" minOccurs="0" type="CT_OnOff"/>
<xsd:sequence>
<xsd:group ref="EG_ScriptStyle"/>
</xsd:sequence>
</xsd:choice>
<xsd:element name="brk" minOccurs="0" type="CT_ManualBreak"/>
<xsd:element name="aln" minOccurs="0" type="CT_OnOff"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Text">
<xsd:simpleContent>
<xsd:extension base="s:ST_String">
<xsd:attribute ref="xml:space" use="optional"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="CT_R">
<xsd:sequence>
<xsd:element name="rPr" type="CT_RPR" minOccurs="0"/>
<xsd:group ref="w:EG_RPr" minOccurs="0"/>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:group ref="w:EG_RunInnerContent"/>
<xsd:element name="t" type="CT_Text" minOccurs="0"/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_CtrlPr">
<xsd:sequence>
<xsd:group ref="w:EG_RPrMath" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_AccPr">
<xsd:sequence>
<xsd:element name="chr" type="CT_Char" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Acc">
<xsd:sequence>
<xsd:element name="accPr" type="CT_AccPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_BarPr">
<xsd:sequence>
<xsd:element name="pos" type="CT_TopBot" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Bar">
<xsd:sequence>
<xsd:element name="barPr" type="CT_BarPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_BoxPr">
<xsd:sequence>
<xsd:element name="opEmu" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="noBreak" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="diff" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="brk" type="CT_ManualBreak" minOccurs="0"/>
<xsd:element name="aln" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Box">
<xsd:sequence>
<xsd:element name="boxPr" type="CT_BoxPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_BorderBoxPr">
<xsd:sequence>
<xsd:element name="hideTop" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="hideBot" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="hideLeft" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="hideRight" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="strikeH" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="strikeV" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="strikeBLTR" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="strikeTLBR" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_BorderBox">
<xsd:sequence>
<xsd:element name="borderBoxPr" type="CT_BorderBoxPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_DPr">
<xsd:sequence>
<xsd:element name="begChr" type="CT_Char" minOccurs="0"/>
<xsd:element name="sepChr" type="CT_Char" minOccurs="0"/>
<xsd:element name="endChr" type="CT_Char" minOccurs="0"/>
<xsd:element name="grow" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="shp" type="CT_Shp" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_D">
<xsd:sequence>
<xsd:element name="dPr" type="CT_DPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_EqArrPr">
<xsd:sequence>
<xsd:element name="baseJc" type="CT_YAlign" minOccurs="0"/>
<xsd:element name="maxDist" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="objDist" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="rSpRule" type="CT_SpacingRule" minOccurs="0"/>
<xsd:element name="rSp" type="CT_UnSignedInteger" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_EqArr">
<xsd:sequence>
<xsd:element name="eqArrPr" type="CT_EqArrPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_FPr">
<xsd:sequence>
<xsd:element name="type" type="CT_FType" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_F">
<xsd:sequence>
<xsd:element name="fPr" type="CT_FPr" minOccurs="0"/>
<xsd:element name="num" type="CT_OMathArg"/>
<xsd:element name="den" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_FuncPr">
<xsd:sequence>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Func">
<xsd:sequence>
<xsd:element name="funcPr" type="CT_FuncPr" minOccurs="0"/>
<xsd:element name="fName" type="CT_OMathArg"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_GroupChrPr">
<xsd:sequence>
<xsd:element name="chr" type="CT_Char" minOccurs="0"/>
<xsd:element name="pos" type="CT_TopBot" minOccurs="0"/>
<xsd:element name="vertJc" type="CT_TopBot" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_GroupChr">
<xsd:sequence>
<xsd:element name="groupChrPr" type="CT_GroupChrPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_LimLowPr">
<xsd:sequence>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_LimLow">
<xsd:sequence>
<xsd:element name="limLowPr" type="CT_LimLowPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
<xsd:element name="lim" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_LimUppPr">
<xsd:sequence>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_LimUpp">
<xsd:sequence>
<xsd:element name="limUppPr" type="CT_LimUppPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
<xsd:element name="lim" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_MCPr">
<xsd:sequence>
<xsd:element name="count" type="CT_Integer255" minOccurs="0"/>
<xsd:element name="mcJc" type="CT_XAlign" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_MC">
<xsd:sequence>
<xsd:element name="mcPr" type="CT_MCPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_MCS">
<xsd:sequence>
<xsd:element name="mc" type="CT_MC" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_MPr">
<xsd:sequence>
<xsd:element name="baseJc" type="CT_YAlign" minOccurs="0"/>
<xsd:element name="plcHide" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="rSpRule" type="CT_SpacingRule" minOccurs="0"/>
<xsd:element name="cGpRule" type="CT_SpacingRule" minOccurs="0"/>
<xsd:element name="rSp" type="CT_UnSignedInteger" minOccurs="0"/>
<xsd:element name="cSp" type="CT_UnSignedInteger" minOccurs="0"/>
<xsd:element name="cGp" type="CT_UnSignedInteger" minOccurs="0"/>
<xsd:element name="mcs" type="CT_MCS" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_MR">
<xsd:sequence>
<xsd:element name="e" type="CT_OMathArg" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_M">
<xsd:sequence>
<xsd:element name="mPr" type="CT_MPr" minOccurs="0"/>
<xsd:element name="mr" type="CT_MR" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_NaryPr">
<xsd:sequence>
<xsd:element name="chr" type="CT_Char" minOccurs="0"/>
<xsd:element name="limLoc" type="CT_LimLoc" minOccurs="0"/>
<xsd:element name="grow" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="subHide" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="supHide" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Nary">
<xsd:sequence>
<xsd:element name="naryPr" type="CT_NaryPr" minOccurs="0"/>
<xsd:element name="sub" type="CT_OMathArg"/>
<xsd:element name="sup" type="CT_OMathArg"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_PhantPr">
<xsd:sequence>
<xsd:element name="show" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="zeroWid" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="zeroAsc" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="zeroDesc" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="transp" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Phant">
<xsd:sequence>
<xsd:element name="phantPr" type="CT_PhantPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_RadPr">
<xsd:sequence>
<xsd:element name="degHide" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Rad">
<xsd:sequence>
<xsd:element name="radPr" type="CT_RadPr" minOccurs="0"/>
<xsd:element name="deg" type="CT_OMathArg"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SPrePr">
<xsd:sequence>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SPre">
<xsd:sequence>
<xsd:element name="sPrePr" type="CT_SPrePr" minOccurs="0"/>
<xsd:element name="sub" type="CT_OMathArg"/>
<xsd:element name="sup" type="CT_OMathArg"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SSubPr">
<xsd:sequence>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SSub">
<xsd:sequence>
<xsd:element name="sSubPr" type="CT_SSubPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
<xsd:element name="sub" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SSubSupPr">
<xsd:sequence>
<xsd:element name="alnScr" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SSubSup">
<xsd:sequence>
<xsd:element name="sSubSupPr" type="CT_SSubSupPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
<xsd:element name="sub" type="CT_OMathArg"/>
<xsd:element name="sup" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SSupPr">
<xsd:sequence>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SSup">
<xsd:sequence>
<xsd:element name="sSupPr" type="CT_SSupPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
<xsd:element name="sup" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:group name="EG_OMathMathElements">
<xsd:choice>
<xsd:element name="acc" type="CT_Acc"/>
<xsd:element name="bar" type="CT_Bar"/>
<xsd:element name="box" type="CT_Box"/>
<xsd:element name="borderBox" type="CT_BorderBox"/>
<xsd:element name="d" type="CT_D"/>
<xsd:element name="eqArr" type="CT_EqArr"/>
<xsd:element name="f" type="CT_F"/>
<xsd:element name="func" type="CT_Func"/>
<xsd:element name="groupChr" type="CT_GroupChr"/>
<xsd:element name="limLow" type="CT_LimLow"/>
<xsd:element name="limUpp" type="CT_LimUpp"/>
<xsd:element name="m" type="CT_M"/>
<xsd:element name="nary" type="CT_Nary"/>
<xsd:element name="phant" type="CT_Phant"/>
<xsd:element name="rad" type="CT_Rad"/>
<xsd:element name="sPre" type="CT_SPre"/>
<xsd:element name="sSub" type="CT_SSub"/>
<xsd:element name="sSubSup" type="CT_SSubSup"/>
<xsd:element name="sSup" type="CT_SSup"/>
<xsd:element name="r" type="CT_R"/>
</xsd:choice>
</xsd:group>
<xsd:group name="EG_OMathElements">
<xsd:choice>
<xsd:group ref="EG_OMathMathElements"/>
<xsd:group ref="w:EG_PContentMath"/>
</xsd:choice>
</xsd:group>
<xsd:complexType name="CT_OMathArgPr">
<xsd:sequence>
<xsd:element name="argSz" type="CT_Integer2" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_OMathArg">
<xsd:sequence>
<xsd:element name="argPr" type="CT_OMathArgPr" minOccurs="0"/>
<xsd:group ref="EG_OMathElements" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="ST_Jc">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="left"/>
<xsd:enumeration value="right"/>
<xsd:enumeration value="center"/>
<xsd:enumeration value="centerGroup"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_OMathJc">
<xsd:attribute name="val" type="ST_Jc"/>
</xsd:complexType>
<xsd:complexType name="CT_OMathParaPr">
<xsd:sequence>
<xsd:element name="jc" type="CT_OMathJc" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_TwipsMeasure">
<xsd:attribute name="val" type="s:ST_TwipsMeasure" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_BreakBin">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="before"/>
<xsd:enumeration value="after"/>
<xsd:enumeration value="repeat"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_BreakBin">
<xsd:attribute name="val" type="ST_BreakBin"/>
</xsd:complexType>
<xsd:simpleType name="ST_BreakBinSub">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="--"/>
<xsd:enumeration value="-+"/>
<xsd:enumeration value="+-"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_BreakBinSub">
<xsd:attribute name="val" type="ST_BreakBinSub"/>
</xsd:complexType>
<xsd:complexType name="CT_MathPr">
<xsd:sequence>
<xsd:element name="mathFont" type="CT_String" minOccurs="0"/>
<xsd:element name="brkBin" type="CT_BreakBin" minOccurs="0"/>
<xsd:element name="brkBinSub" type="CT_BreakBinSub" minOccurs="0"/>
<xsd:element name="smallFrac" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="dispDef" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="lMargin" type="CT_TwipsMeasure" minOccurs="0"/>
<xsd:element name="rMargin" type="CT_TwipsMeasure" minOccurs="0"/>
<xsd:element name="defJc" type="CT_OMathJc" minOccurs="0"/>
<xsd:element name="preSp" type="CT_TwipsMeasure" minOccurs="0"/>
<xsd:element name="postSp" type="CT_TwipsMeasure" minOccurs="0"/>
<xsd:element name="interSp" type="CT_TwipsMeasure" minOccurs="0"/>
<xsd:element name="intraSp" type="CT_TwipsMeasure" minOccurs="0"/>
<xsd:choice minOccurs="0">
<xsd:element name="wrapIndent" type="CT_TwipsMeasure"/>
<xsd:element name="wrapRight" type="CT_OnOff"/>
</xsd:choice>
<xsd:element name="intLim" type="CT_LimLoc" minOccurs="0"/>
<xsd:element name="naryLim" type="CT_LimLoc" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="mathPr" type="CT_MathPr"/>
<xsd:complexType name="CT_OMathPara">
<xsd:sequence>
<xsd:element name="oMathParaPr" type="CT_OMathParaPr" minOccurs="0"/>
<xsd:element name="oMath" type="CT_OMath" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_OMath">
<xsd:sequence>
<xsd:group ref="EG_OMathElements" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="oMathPara" type="CT_OMathPara"/>
<xsd:element name="oMath" type="CT_OMath"/>
</xsd:schema>
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://purl.oclc.org/ooxml/officeDocument/relationships"
xmlns:r="http://purl.oclc.org/ooxml/officeDocument/relationships" elementFormDefault="qualified"
targetNamespace="http://purl.oclc.org/ooxml/officeDocument/relationships" blockDefault="#all">
<xsd:simpleType name="ST_RelationshipId">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:attribute name="id" type="ST_RelationshipId"/>
<xsd:attribute name="embed" type="ST_RelationshipId"/>
<xsd:attribute name="link" type="ST_RelationshipId"/>
<xsd:attribute name="dm" type="ST_RelationshipId" default=""/>
<xsd:attribute name="lo" type="ST_RelationshipId" default=""/>
<xsd:attribute name="qs" type="ST_RelationshipId" default=""/>
<xsd:attribute name="cs" type="ST_RelationshipId" default=""/>
<xsd:attribute name="blip" type="ST_RelationshipId" default=""/>
<xsd:attribute name="pict" type="ST_RelationshipId"/>
<xsd:attribute name="href" type="ST_RelationshipId"/>
<xsd:attribute name="topLeft" type="ST_RelationshipId"/>
<xsd:attribute name="topRight" type="ST_RelationshipId"/>
<xsd:attribute name="bottomLeft" type="ST_RelationshipId"/>
<xsd:attribute name="bottomRight" type="ST_RelationshipId"/>
</xsd:schema>
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,146 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
xmlns="http://schemas.openxmlformats.org/drawingml/2006/chartDrawing"
targetNamespace="http://schemas.openxmlformats.org/drawingml/2006/chartDrawing"
elementFormDefault="qualified">
<xsd:import namespace="http://schemas.openxmlformats.org/drawingml/2006/main"
schemaLocation="dml-main.xsd"/>
<xsd:complexType name="CT_ShapeNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvSpPr" type="a:CT_NonVisualDrawingShapeProps" minOccurs="1" maxOccurs="1"
/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Shape">
<xsd:sequence>
<xsd:element name="nvSpPr" type="CT_ShapeNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="spPr" type="a:CT_ShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="style" type="a:CT_ShapeStyle" minOccurs="0" maxOccurs="1"/>
<xsd:element name="txBody" type="a:CT_TextBody" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="macro" type="xsd:string" use="optional"/>
<xsd:attribute name="textlink" type="xsd:string" use="optional"/>
<xsd:attribute name="fLocksText" type="xsd:boolean" use="optional" default="true"/>
<xsd:attribute name="fPublished" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_ConnectorNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvCxnSpPr" type="a:CT_NonVisualConnectorProperties" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Connector">
<xsd:sequence>
<xsd:element name="nvCxnSpPr" type="CT_ConnectorNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="spPr" type="a:CT_ShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="style" type="a:CT_ShapeStyle" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="macro" type="xsd:string" use="optional"/>
<xsd:attribute name="fPublished" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_PictureNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvPicPr" type="a:CT_NonVisualPictureProperties" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Picture">
<xsd:sequence>
<xsd:element name="nvPicPr" type="CT_PictureNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="blipFill" type="a:CT_BlipFillProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="spPr" type="a:CT_ShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="style" type="a:CT_ShapeStyle" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="macro" type="xsd:string" use="optional" default=""/>
<xsd:attribute name="fPublished" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_GraphicFrameNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvGraphicFramePr" type="a:CT_NonVisualGraphicFrameProperties"
minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_GraphicFrame">
<xsd:sequence>
<xsd:element name="nvGraphicFramePr" type="CT_GraphicFrameNonVisual" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="xfrm" type="a:CT_Transform2D" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="a:graphic" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="macro" type="xsd:string" use="optional"/>
<xsd:attribute name="fPublished" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_GroupShapeNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvGrpSpPr" type="a:CT_NonVisualGroupDrawingShapeProps" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_GroupShape">
<xsd:sequence>
<xsd:element name="nvGrpSpPr" type="CT_GroupShapeNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="grpSpPr" type="a:CT_GroupShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="sp" type="CT_Shape"/>
<xsd:element name="grpSp" type="CT_GroupShape"/>
<xsd:element name="graphicFrame" type="CT_GraphicFrame"/>
<xsd:element name="cxnSp" type="CT_Connector"/>
<xsd:element name="pic" type="CT_Picture"/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
<xsd:group name="EG_ObjectChoices">
<xsd:sequence>
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element name="sp" type="CT_Shape"/>
<xsd:element name="grpSp" type="CT_GroupShape"/>
<xsd:element name="graphicFrame" type="CT_GraphicFrame"/>
<xsd:element name="cxnSp" type="CT_Connector"/>
<xsd:element name="pic" type="CT_Picture"/>
</xsd:choice>
</xsd:sequence>
</xsd:group>
<xsd:simpleType name="ST_MarkerCoordinate">
<xsd:restriction base="xsd:double">
<xsd:minInclusive value="0.0"/>
<xsd:maxInclusive value="1.0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Marker">
<xsd:sequence>
<xsd:element name="x" type="ST_MarkerCoordinate" minOccurs="1" maxOccurs="1"/>
<xsd:element name="y" type="ST_MarkerCoordinate" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_RelSizeAnchor">
<xsd:sequence>
<xsd:element name="from" type="CT_Marker"/>
<xsd:element name="to" type="CT_Marker"/>
<xsd:group ref="EG_ObjectChoices"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_AbsSizeAnchor">
<xsd:sequence>
<xsd:element name="from" type="CT_Marker"/>
<xsd:element name="ext" type="a:CT_PositiveSize2D"/>
<xsd:group ref="EG_ObjectChoices"/>
</xsd:sequence>
</xsd:complexType>
<xsd:group name="EG_Anchor">
<xsd:choice>
<xsd:element name="relSizeAnchor" type="CT_RelSizeAnchor"/>
<xsd:element name="absSizeAnchor" type="CT_AbsSizeAnchor"/>
</xsd:choice>
</xsd:group>
<xsd:complexType name="CT_Drawing">
<xsd:sequence>
<xsd:group ref="EG_Anchor" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas"
xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
elementFormDefault="qualified"
targetNamespace="http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas">
<xsd:import namespace="http://schemas.openxmlformats.org/drawingml/2006/main"
schemaLocation="dml-main.xsd"/>
<xsd:element name="lockedCanvas" type="a:CT_GvmlGroupShape"/>
</xsd:schema>
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.openxmlformats.org/drawingml/2006/picture"
xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" elementFormDefault="qualified"
targetNamespace="http://schemas.openxmlformats.org/drawingml/2006/picture">
<xsd:import namespace="http://schemas.openxmlformats.org/drawingml/2006/main"
schemaLocation="dml-main.xsd"/>
<xsd:complexType name="CT_PictureNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvPicPr" type="a:CT_NonVisualPictureProperties" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Picture">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element name="nvPicPr" type="CT_PictureNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="blipFill" type="a:CT_BlipFillProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="spPr" type="a:CT_ShapeProperties" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="pic" type="CT_Picture"/>
</xsd:schema>
@@ -0,0 +1,185 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
xmlns="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
targetNamespace="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"
elementFormDefault="qualified">
<xsd:import namespace="http://schemas.openxmlformats.org/drawingml/2006/main"
schemaLocation="dml-main.xsd"/>
<xsd:import schemaLocation="shared-relationshipReference.xsd"
namespace="http://schemas.openxmlformats.org/officeDocument/2006/relationships"/>
<xsd:element name="from" type="CT_Marker"/>
<xsd:element name="to" type="CT_Marker"/>
<xsd:complexType name="CT_AnchorClientData">
<xsd:attribute name="fLocksWithSheet" type="xsd:boolean" use="optional" default="true"/>
<xsd:attribute name="fPrintsWithSheet" type="xsd:boolean" use="optional" default="true"/>
</xsd:complexType>
<xsd:complexType name="CT_ShapeNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvSpPr" type="a:CT_NonVisualDrawingShapeProps" minOccurs="1" maxOccurs="1"
/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Shape">
<xsd:sequence>
<xsd:element name="nvSpPr" type="CT_ShapeNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="spPr" type="a:CT_ShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="style" type="a:CT_ShapeStyle" minOccurs="0" maxOccurs="1"/>
<xsd:element name="txBody" type="a:CT_TextBody" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="macro" type="xsd:string" use="optional"/>
<xsd:attribute name="textlink" type="xsd:string" use="optional"/>
<xsd:attribute name="fLocksText" type="xsd:boolean" use="optional" default="true"/>
<xsd:attribute name="fPublished" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_ConnectorNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvCxnSpPr" type="a:CT_NonVisualConnectorProperties" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Connector">
<xsd:sequence>
<xsd:element name="nvCxnSpPr" type="CT_ConnectorNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="spPr" type="a:CT_ShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="style" type="a:CT_ShapeStyle" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="macro" type="xsd:string" use="optional"/>
<xsd:attribute name="fPublished" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_PictureNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvPicPr" type="a:CT_NonVisualPictureProperties" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Picture">
<xsd:sequence>
<xsd:element name="nvPicPr" type="CT_PictureNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="blipFill" type="a:CT_BlipFillProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="spPr" type="a:CT_ShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="style" type="a:CT_ShapeStyle" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="macro" type="xsd:string" use="optional" default=""/>
<xsd:attribute name="fPublished" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_GraphicalObjectFrameNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvGraphicFramePr" type="a:CT_NonVisualGraphicFrameProperties"
minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_GraphicalObjectFrame">
<xsd:sequence>
<xsd:element name="nvGraphicFramePr" type="CT_GraphicalObjectFrameNonVisual" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="xfrm" type="a:CT_Transform2D" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="a:graphic" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="macro" type="xsd:string" use="optional"/>
<xsd:attribute name="fPublished" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_GroupShapeNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvGrpSpPr" type="a:CT_NonVisualGroupDrawingShapeProps" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_GroupShape">
<xsd:sequence>
<xsd:element name="nvGrpSpPr" type="CT_GroupShapeNonVisual" minOccurs="1" maxOccurs="1"/>
<xsd:element name="grpSpPr" type="a:CT_GroupShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="sp" type="CT_Shape"/>
<xsd:element name="grpSp" type="CT_GroupShape"/>
<xsd:element name="graphicFrame" type="CT_GraphicalObjectFrame"/>
<xsd:element name="cxnSp" type="CT_Connector"/>
<xsd:element name="pic" type="CT_Picture"/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
<xsd:group name="EG_ObjectChoices">
<xsd:sequence>
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element name="sp" type="CT_Shape"/>
<xsd:element name="grpSp" type="CT_GroupShape"/>
<xsd:element name="graphicFrame" type="CT_GraphicalObjectFrame"/>
<xsd:element name="cxnSp" type="CT_Connector"/>
<xsd:element name="pic" type="CT_Picture"/>
<xsd:element name="contentPart" type="CT_Rel"/>
</xsd:choice>
</xsd:sequence>
</xsd:group>
<xsd:complexType name="CT_Rel">
<xsd:attribute ref="r:id" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_ColID">
<xsd:restriction base="xsd:int">
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_RowID">
<xsd:restriction base="xsd:int">
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Marker">
<xsd:sequence>
<xsd:element name="col" type="ST_ColID"/>
<xsd:element name="colOff" type="a:ST_Coordinate"/>
<xsd:element name="row" type="ST_RowID"/>
<xsd:element name="rowOff" type="a:ST_Coordinate"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="ST_EditAs">
<xsd:restriction base="xsd:token">
<xsd:enumeration value="twoCell"/>
<xsd:enumeration value="oneCell"/>
<xsd:enumeration value="absolute"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_TwoCellAnchor">
<xsd:sequence>
<xsd:element name="from" type="CT_Marker"/>
<xsd:element name="to" type="CT_Marker"/>
<xsd:group ref="EG_ObjectChoices"/>
<xsd:element name="clientData" type="CT_AnchorClientData" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="editAs" type="ST_EditAs" use="optional" default="twoCell"/>
</xsd:complexType>
<xsd:complexType name="CT_OneCellAnchor">
<xsd:sequence>
<xsd:element name="from" type="CT_Marker"/>
<xsd:element name="ext" type="a:CT_PositiveSize2D"/>
<xsd:group ref="EG_ObjectChoices"/>
<xsd:element name="clientData" type="CT_AnchorClientData" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_AbsoluteAnchor">
<xsd:sequence>
<xsd:element name="pos" type="a:CT_Point2D"/>
<xsd:element name="ext" type="a:CT_PositiveSize2D"/>
<xsd:group ref="EG_ObjectChoices"/>
<xsd:element name="clientData" type="CT_AnchorClientData" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:group name="EG_Anchor">
<xsd:choice>
<xsd:element name="twoCellAnchor" type="CT_TwoCellAnchor"/>
<xsd:element name="oneCellAnchor" type="CT_OneCellAnchor"/>
<xsd:element name="absoluteAnchor" type="CT_AbsoluteAnchor"/>
</xsd:choice>
</xsd:group>
<xsd:complexType name="CT_Drawing">
<xsd:sequence>
<xsd:group ref="EG_Anchor" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="wsDr" type="CT_Drawing"/>
</xsd:schema>
@@ -0,0 +1,287 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
xmlns:dpct="http://schemas.openxmlformats.org/drawingml/2006/picture"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
xmlns="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
targetNamespace="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
elementFormDefault="qualified">
<xsd:import namespace="http://schemas.openxmlformats.org/drawingml/2006/main"
schemaLocation="dml-main.xsd"/>
<xsd:import schemaLocation="wml.xsd"
namespace="http://schemas.openxmlformats.org/wordprocessingml/2006/main"/>
<xsd:import namespace="http://schemas.openxmlformats.org/drawingml/2006/picture"
schemaLocation="dml-picture.xsd"/>
<xsd:import namespace="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
schemaLocation="shared-relationshipReference.xsd"/>
<xsd:complexType name="CT_EffectExtent">
<xsd:attribute name="l" type="a:ST_Coordinate" use="required"/>
<xsd:attribute name="t" type="a:ST_Coordinate" use="required"/>
<xsd:attribute name="r" type="a:ST_Coordinate" use="required"/>
<xsd:attribute name="b" type="a:ST_Coordinate" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_WrapDistance">
<xsd:restriction base="xsd:unsignedInt"/>
</xsd:simpleType>
<xsd:complexType name="CT_Inline">
<xsd:sequence>
<xsd:element name="extent" type="a:CT_PositiveSize2D"/>
<xsd:element name="effectExtent" type="CT_EffectExtent" minOccurs="0"/>
<xsd:element name="docPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvGraphicFramePr" type="a:CT_NonVisualGraphicFrameProperties"
minOccurs="0" maxOccurs="1"/>
<xsd:element ref="a:graphic" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="distT" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distB" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distL" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distR" type="ST_WrapDistance" use="optional"/>
</xsd:complexType>
<xsd:simpleType name="ST_WrapText">
<xsd:restriction base="xsd:token">
<xsd:enumeration value="bothSides"/>
<xsd:enumeration value="left"/>
<xsd:enumeration value="right"/>
<xsd:enumeration value="largest"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_WrapPath">
<xsd:sequence>
<xsd:element name="start" type="a:CT_Point2D" minOccurs="1" maxOccurs="1"/>
<xsd:element name="lineTo" type="a:CT_Point2D" minOccurs="2" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="edited" type="xsd:boolean" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_WrapNone"/>
<xsd:complexType name="CT_WrapSquare">
<xsd:sequence>
<xsd:element name="effectExtent" type="CT_EffectExtent" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="wrapText" type="ST_WrapText" use="required"/>
<xsd:attribute name="distT" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distB" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distL" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distR" type="ST_WrapDistance" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_WrapTight">
<xsd:sequence>
<xsd:element name="wrapPolygon" type="CT_WrapPath" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="wrapText" type="ST_WrapText" use="required"/>
<xsd:attribute name="distL" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distR" type="ST_WrapDistance" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_WrapThrough">
<xsd:sequence>
<xsd:element name="wrapPolygon" type="CT_WrapPath" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="wrapText" type="ST_WrapText" use="required"/>
<xsd:attribute name="distL" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distR" type="ST_WrapDistance" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_WrapTopBottom">
<xsd:sequence>
<xsd:element name="effectExtent" type="CT_EffectExtent" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="distT" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distB" type="ST_WrapDistance" use="optional"/>
</xsd:complexType>
<xsd:group name="EG_WrapType">
<xsd:sequence>
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element name="wrapNone" type="CT_WrapNone" minOccurs="1" maxOccurs="1"/>
<xsd:element name="wrapSquare" type="CT_WrapSquare" minOccurs="1" maxOccurs="1"/>
<xsd:element name="wrapTight" type="CT_WrapTight" minOccurs="1" maxOccurs="1"/>
<xsd:element name="wrapThrough" type="CT_WrapThrough" minOccurs="1" maxOccurs="1"/>
<xsd:element name="wrapTopAndBottom" type="CT_WrapTopBottom" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:sequence>
</xsd:group>
<xsd:simpleType name="ST_PositionOffset">
<xsd:restriction base="xsd:int"/>
</xsd:simpleType>
<xsd:simpleType name="ST_AlignH">
<xsd:restriction base="xsd:token">
<xsd:enumeration value="left"/>
<xsd:enumeration value="right"/>
<xsd:enumeration value="center"/>
<xsd:enumeration value="inside"/>
<xsd:enumeration value="outside"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_RelFromH">
<xsd:restriction base="xsd:token">
<xsd:enumeration value="margin"/>
<xsd:enumeration value="page"/>
<xsd:enumeration value="column"/>
<xsd:enumeration value="character"/>
<xsd:enumeration value="leftMargin"/>
<xsd:enumeration value="rightMargin"/>
<xsd:enumeration value="insideMargin"/>
<xsd:enumeration value="outsideMargin"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_PosH">
<xsd:sequence>
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element name="align" type="ST_AlignH" minOccurs="1" maxOccurs="1"/>
<xsd:element name="posOffset" type="ST_PositionOffset" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="relativeFrom" type="ST_RelFromH" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_AlignV">
<xsd:restriction base="xsd:token">
<xsd:enumeration value="top"/>
<xsd:enumeration value="bottom"/>
<xsd:enumeration value="center"/>
<xsd:enumeration value="inside"/>
<xsd:enumeration value="outside"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_RelFromV">
<xsd:restriction base="xsd:token">
<xsd:enumeration value="margin"/>
<xsd:enumeration value="page"/>
<xsd:enumeration value="paragraph"/>
<xsd:enumeration value="line"/>
<xsd:enumeration value="topMargin"/>
<xsd:enumeration value="bottomMargin"/>
<xsd:enumeration value="insideMargin"/>
<xsd:enumeration value="outsideMargin"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_PosV">
<xsd:sequence>
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element name="align" type="ST_AlignV" minOccurs="1" maxOccurs="1"/>
<xsd:element name="posOffset" type="ST_PositionOffset" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="relativeFrom" type="ST_RelFromV" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_Anchor">
<xsd:sequence>
<xsd:element name="simplePos" type="a:CT_Point2D"/>
<xsd:element name="positionH" type="CT_PosH"/>
<xsd:element name="positionV" type="CT_PosV"/>
<xsd:element name="extent" type="a:CT_PositiveSize2D"/>
<xsd:element name="effectExtent" type="CT_EffectExtent" minOccurs="0"/>
<xsd:group ref="EG_WrapType"/>
<xsd:element name="docPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvGraphicFramePr" type="a:CT_NonVisualGraphicFrameProperties"
minOccurs="0" maxOccurs="1"/>
<xsd:element ref="a:graphic" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="distT" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distB" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distL" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="distR" type="ST_WrapDistance" use="optional"/>
<xsd:attribute name="simplePos" type="xsd:boolean"/>
<xsd:attribute name="relativeHeight" type="xsd:unsignedInt" use="required"/>
<xsd:attribute name="behindDoc" type="xsd:boolean" use="required"/>
<xsd:attribute name="locked" type="xsd:boolean" use="required"/>
<xsd:attribute name="layoutInCell" type="xsd:boolean" use="required"/>
<xsd:attribute name="hidden" type="xsd:boolean" use="optional"/>
<xsd:attribute name="allowOverlap" type="xsd:boolean" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_TxbxContent">
<xsd:group ref="w:EG_BlockLevelElts" minOccurs="1" maxOccurs="unbounded"/>
</xsd:complexType>
<xsd:complexType name="CT_TextboxInfo">
<xsd:sequence>
<xsd:element name="txbxContent" type="CT_TxbxContent" minOccurs="1" maxOccurs="1"/>
<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:unsignedShort" use="optional" default="0"/>
</xsd:complexType>
<xsd:complexType name="CT_LinkedTextboxInformation">
<xsd:sequence>
<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:unsignedShort" use="required"/>
<xsd:attribute name="seq" type="xsd:unsignedShort" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_WordprocessingShape">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="0" maxOccurs="1"/>
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element name="cNvSpPr" type="a:CT_NonVisualDrawingShapeProps" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="cNvCnPr" type="a:CT_NonVisualConnectorProperties" minOccurs="1"
maxOccurs="1"/>
</xsd:choice>
<xsd:element name="spPr" type="a:CT_ShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:element name="style" type="a:CT_ShapeStyle" minOccurs="0" maxOccurs="1"/>
<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
<xsd:choice minOccurs="0" maxOccurs="1">
<xsd:element name="txbx" type="CT_TextboxInfo" minOccurs="1" maxOccurs="1"/>
<xsd:element name="linkedTxbx" type="CT_LinkedTextboxInformation" minOccurs="1"
maxOccurs="1"/>
</xsd:choice>
<xsd:element name="bodyPr" type="a:CT_TextBodyProperties" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="normalEastAsianFlow" type="xsd:boolean" use="optional" default="false"/>
</xsd:complexType>
<xsd:complexType name="CT_GraphicFrame">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="1" maxOccurs="1"/>
<xsd:element name="cNvFrPr" type="a:CT_NonVisualGraphicFrameProperties" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="xfrm" type="a:CT_Transform2D" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="a:graphic" minOccurs="1" maxOccurs="1"/>
<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_WordprocessingContentPartNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="0" maxOccurs="1"/>
<xsd:element name="cNvContentPartPr" type="a:CT_NonVisualContentPartProperties" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_WordprocessingContentPart">
<xsd:sequence>
<xsd:element name="nvContentPartPr" type="CT_WordprocessingContentPartNonVisual" minOccurs="0" maxOccurs="1"/>
<xsd:element name="xfrm" type="a:CT_Transform2D" minOccurs="0" maxOccurs="1"/>
<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="bwMode" type="a:ST_BlackWhiteMode" use="optional"/>
<xsd:attribute ref="r:id" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_WordprocessingGroup">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps" minOccurs="0" maxOccurs="1"/>
<xsd:element name="cNvGrpSpPr" type="a:CT_NonVisualGroupDrawingShapeProps" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="grpSpPr" type="a:CT_GroupShapeProperties" minOccurs="1" maxOccurs="1"/>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element ref="wsp"/>
<xsd:element name="grpSp" type="CT_WordprocessingGroup"/>
<xsd:element name="graphicFrame" type="CT_GraphicFrame"/>
<xsd:element ref="dpct:pic"/>
<xsd:element name="contentPart" type="CT_WordprocessingContentPart"/>
</xsd:choice>
<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_WordprocessingCanvas">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element name="bg" type="a:CT_BackgroundFormatting" minOccurs="0" maxOccurs="1"/>
<xsd:element name="whole" type="a:CT_WholeE2oFormatting" minOccurs="0" maxOccurs="1"/>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element ref="wsp"/>
<xsd:element ref="dpct:pic"/>
<xsd:element name="contentPart" type="CT_WordprocessingContentPart"/>
<xsd:element ref="wgp"/>
<xsd:element name="graphicFrame" type="CT_GraphicFrame"/>
</xsd:choice>
<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="wpc" type="CT_WordprocessingCanvas"/>
<xsd:element name="wgp" type="CT_WordprocessingGroup"/>
<xsd:element name="wsp" type="CT_WordprocessingShape"/>
<xsd:element name="inline" type="CT_Inline"/>
<xsd:element name="anchor" type="CT_Anchor"/>
</xsd:schema>
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.openxmlformats.org/officeDocument/2006/characteristics"
targetNamespace="http://schemas.openxmlformats.org/officeDocument/2006/characteristics"
elementFormDefault="qualified">
<xsd:complexType name="CT_AdditionalCharacteristics">
<xsd:sequence>
<xsd:element name="characteristic" type="CT_Characteristic" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Characteristic">
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="relation" type="ST_Relation" use="required"/>
<xsd:attribute name="val" type="xsd:string" use="required"/>
<xsd:attribute name="vocabulary" type="xsd:anyURI" use="optional"/>
</xsd:complexType>
<xsd:simpleType name="ST_Relation">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="ge"/>
<xsd:enumeration value="le"/>
<xsd:enumeration value="gt"/>
<xsd:enumeration value="lt"/>
<xsd:enumeration value="eq"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="additionalCharacteristics" type="CT_AdditionalCharacteristics"/>
</xsd:schema>
@@ -0,0 +1,144 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.openxmlformats.org/officeDocument/2006/bibliography"
xmlns:s="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
targetNamespace="http://schemas.openxmlformats.org/officeDocument/2006/bibliography"
elementFormDefault="qualified">
<xsd:import namespace="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
schemaLocation="shared-commonSimpleTypes.xsd"/>
<xsd:simpleType name="ST_SourceType">
<xsd:restriction base="s:ST_String">
<xsd:enumeration value="ArticleInAPeriodical"/>
<xsd:enumeration value="Book"/>
<xsd:enumeration value="BookSection"/>
<xsd:enumeration value="JournalArticle"/>
<xsd:enumeration value="ConferenceProceedings"/>
<xsd:enumeration value="Report"/>
<xsd:enumeration value="SoundRecording"/>
<xsd:enumeration value="Performance"/>
<xsd:enumeration value="Art"/>
<xsd:enumeration value="DocumentFromInternetSite"/>
<xsd:enumeration value="InternetSite"/>
<xsd:enumeration value="Film"/>
<xsd:enumeration value="Interview"/>
<xsd:enumeration value="Patent"/>
<xsd:enumeration value="ElectronicSource"/>
<xsd:enumeration value="Case"/>
<xsd:enumeration value="Misc"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_NameListType">
<xsd:sequence>
<xsd:element name="Person" type="CT_PersonType" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_PersonType">
<xsd:sequence>
<xsd:element name="Last" type="s:ST_String" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="First" type="s:ST_String" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Middle" type="s:ST_String" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_NameType">
<xsd:sequence>
<xsd:element name="NameList" type="CT_NameListType" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_NameOrCorporateType">
<xsd:sequence>
<xsd:choice minOccurs="0" maxOccurs="1">
<xsd:element name="NameList" type="CT_NameListType" minOccurs="1" maxOccurs="1"/>
<xsd:element name="Corporate" minOccurs="1" maxOccurs="1" type="s:ST_String"/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_AuthorType">
<xsd:sequence>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="Artist" type="CT_NameType"/>
<xsd:element name="Author" type="CT_NameOrCorporateType"/>
<xsd:element name="BookAuthor" type="CT_NameType"/>
<xsd:element name="Compiler" type="CT_NameType"/>
<xsd:element name="Composer" type="CT_NameType"/>
<xsd:element name="Conductor" type="CT_NameType"/>
<xsd:element name="Counsel" type="CT_NameType"/>
<xsd:element name="Director" type="CT_NameType"/>
<xsd:element name="Editor" type="CT_NameType"/>
<xsd:element name="Interviewee" type="CT_NameType"/>
<xsd:element name="Interviewer" type="CT_NameType"/>
<xsd:element name="Inventor" type="CT_NameType"/>
<xsd:element name="Performer" type="CT_NameOrCorporateType"/>
<xsd:element name="ProducerName" type="CT_NameType"/>
<xsd:element name="Translator" type="CT_NameType"/>
<xsd:element name="Writer" type="CT_NameType"/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SourceType">
<xsd:sequence>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="AbbreviatedCaseNumber" type="s:ST_String"/>
<xsd:element name="AlbumTitle" type="s:ST_String"/>
<xsd:element name="Author" type="CT_AuthorType"/>
<xsd:element name="BookTitle" type="s:ST_String"/>
<xsd:element name="Broadcaster" type="s:ST_String"/>
<xsd:element name="BroadcastTitle" type="s:ST_String"/>
<xsd:element name="CaseNumber" type="s:ST_String"/>
<xsd:element name="ChapterNumber" type="s:ST_String"/>
<xsd:element name="City" type="s:ST_String"/>
<xsd:element name="Comments" type="s:ST_String"/>
<xsd:element name="ConferenceName" type="s:ST_String"/>
<xsd:element name="CountryRegion" type="s:ST_String"/>
<xsd:element name="Court" type="s:ST_String"/>
<xsd:element name="Day" type="s:ST_String"/>
<xsd:element name="DayAccessed" type="s:ST_String"/>
<xsd:element name="Department" type="s:ST_String"/>
<xsd:element name="Distributor" type="s:ST_String"/>
<xsd:element name="Edition" type="s:ST_String"/>
<xsd:element name="Guid" type="s:ST_String"/>
<xsd:element name="Institution" type="s:ST_String"/>
<xsd:element name="InternetSiteTitle" type="s:ST_String"/>
<xsd:element name="Issue" type="s:ST_String"/>
<xsd:element name="JournalName" type="s:ST_String"/>
<xsd:element name="LCID" type="s:ST_Lang"/>
<xsd:element name="Medium" type="s:ST_String"/>
<xsd:element name="Month" type="s:ST_String"/>
<xsd:element name="MonthAccessed" type="s:ST_String"/>
<xsd:element name="NumberVolumes" type="s:ST_String"/>
<xsd:element name="Pages" type="s:ST_String"/>
<xsd:element name="PatentNumber" type="s:ST_String"/>
<xsd:element name="PeriodicalTitle" type="s:ST_String"/>
<xsd:element name="ProductionCompany" type="s:ST_String"/>
<xsd:element name="PublicationTitle" type="s:ST_String"/>
<xsd:element name="Publisher" type="s:ST_String"/>
<xsd:element name="RecordingNumber" type="s:ST_String"/>
<xsd:element name="RefOrder" type="s:ST_String"/>
<xsd:element name="Reporter" type="s:ST_String"/>
<xsd:element name="SourceType" type="ST_SourceType"/>
<xsd:element name="ShortTitle" type="s:ST_String"/>
<xsd:element name="StandardNumber" type="s:ST_String"/>
<xsd:element name="StateProvince" type="s:ST_String"/>
<xsd:element name="Station" type="s:ST_String"/>
<xsd:element name="Tag" type="s:ST_String"/>
<xsd:element name="Theater" type="s:ST_String"/>
<xsd:element name="ThesisType" type="s:ST_String"/>
<xsd:element name="Title" type="s:ST_String"/>
<xsd:element name="Type" type="s:ST_String"/>
<xsd:element name="URL" type="s:ST_String"/>
<xsd:element name="Version" type="s:ST_String"/>
<xsd:element name="Volume" type="s:ST_String"/>
<xsd:element name="Year" type="s:ST_String"/>
<xsd:element name="YearAccessed" type="s:ST_String"/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="Sources" type="CT_Sources"/>
<xsd:complexType name="CT_Sources">
<xsd:sequence>
<xsd:element name="Source" type="CT_SourceType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="SelectedStyle" type="s:ST_String"/>
<xsd:attribute name="StyleName" type="s:ST_String"/>
<xsd:attribute name="URI" type="s:ST_String"/>
</xsd:complexType>
</xsd:schema>
@@ -0,0 +1,172 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
targetNamespace="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
elementFormDefault="qualified">
<xsd:simpleType name="ST_Lang">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="ST_HexColorRGB">
<xsd:restriction base="xsd:hexBinary">
<xsd:length value="3" fixed="true"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_Panose">
<xsd:restriction base="xsd:hexBinary">
<xsd:length value="10"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_CalendarType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="gregorian"/>
<xsd:enumeration value="gregorianUs"/>
<xsd:enumeration value="gregorianMeFrench"/>
<xsd:enumeration value="gregorianArabic"/>
<xsd:enumeration value="hijri"/>
<xsd:enumeration value="hebrew"/>
<xsd:enumeration value="taiwan"/>
<xsd:enumeration value="japan"/>
<xsd:enumeration value="thai"/>
<xsd:enumeration value="korea"/>
<xsd:enumeration value="saka"/>
<xsd:enumeration value="gregorianXlitEnglish"/>
<xsd:enumeration value="gregorianXlitFrench"/>
<xsd:enumeration value="none"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_AlgClass">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="hash"/>
<xsd:enumeration value="custom"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_CryptProv">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="rsaAES"/>
<xsd:enumeration value="rsaFull"/>
<xsd:enumeration value="custom"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_AlgType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="typeAny"/>
<xsd:enumeration value="custom"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_ColorType">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="ST_Guid">
<xsd:restriction base="xsd:token">
<xsd:pattern value="\{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_OnOff">
<xsd:union memberTypes="xsd:boolean ST_OnOff1"/>
</xsd:simpleType>
<xsd:simpleType name="ST_OnOff1">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="on"/>
<xsd:enumeration value="off"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_String">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="ST_XmlName">
<xsd:restriction base="xsd:NCName">
<xsd:minLength value="1"/>
<xsd:maxLength value="255"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_TrueFalse">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="t"/>
<xsd:enumeration value="f"/>
<xsd:enumeration value="true"/>
<xsd:enumeration value="false"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_TrueFalseBlank">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="t"/>
<xsd:enumeration value="f"/>
<xsd:enumeration value="true"/>
<xsd:enumeration value="false"/>
<xsd:enumeration value=""/>
<xsd:enumeration value="True"/>
<xsd:enumeration value="False"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_UnsignedDecimalNumber">
<xsd:restriction base="xsd:unsignedLong"/>
</xsd:simpleType>
<xsd:simpleType name="ST_TwipsMeasure">
<xsd:union memberTypes="ST_UnsignedDecimalNumber ST_PositiveUniversalMeasure"/>
</xsd:simpleType>
<xsd:simpleType name="ST_VerticalAlignRun">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="baseline"/>
<xsd:enumeration value="superscript"/>
<xsd:enumeration value="subscript"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_Xstring">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="ST_XAlign">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="left"/>
<xsd:enumeration value="center"/>
<xsd:enumeration value="right"/>
<xsd:enumeration value="inside"/>
<xsd:enumeration value="outside"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_YAlign">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="inline"/>
<xsd:enumeration value="top"/>
<xsd:enumeration value="center"/>
<xsd:enumeration value="bottom"/>
<xsd:enumeration value="inside"/>
<xsd:enumeration value="outside"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_ConformanceClass">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="strict"/>
<xsd:enumeration value="transitional"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_UniversalMeasure">
<xsd:restriction base="xsd:string">
<xsd:pattern value="-?[0-9]+(\.[0-9]+)?(mm|cm|in|pt|pc|pi)"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_PositiveUniversalMeasure">
<xsd:restriction base="ST_UniversalMeasure">
<xsd:pattern value="[0-9]+(\.[0-9]+)?(mm|cm|in|pt|pc|pi)"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_Percentage">
<xsd:restriction base="xsd:string">
<xsd:pattern value="-?[0-9]+(\.[0-9]+)?%"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_FixedPercentage">
<xsd:restriction base="ST_Percentage">
<xsd:pattern value="-?((100)|([0-9][0-9]?))(\.[0-9][0-9]?)?%"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_PositivePercentage">
<xsd:restriction base="ST_Percentage">
<xsd:pattern value="[0-9]+(\.[0-9]+)?%"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_PositiveFixedPercentage">
<xsd:restriction base="ST_Percentage">
<xsd:pattern value="((100)|([0-9][0-9]?))(\.[0-9][0-9]?)?%"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.openxmlformats.org/officeDocument/2006/customXml"
xmlns:s="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
targetNamespace="http://schemas.openxmlformats.org/officeDocument/2006/customXml"
elementFormDefault="qualified" attributeFormDefault="qualified" blockDefault="#all">
<xsd:import namespace="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
schemaLocation="shared-commonSimpleTypes.xsd"/>
<xsd:complexType name="CT_DatastoreSchemaRef">
<xsd:attribute name="uri" type="xsd:string" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_DatastoreSchemaRefs">
<xsd:sequence>
<xsd:element name="schemaRef" type="CT_DatastoreSchemaRef" minOccurs="0" maxOccurs="unbounded"
/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_DatastoreItem">
<xsd:sequence>
<xsd:element name="schemaRefs" type="CT_DatastoreSchemaRefs" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="itemID" type="s:ST_Guid" use="required"/>
</xsd:complexType>
<xsd:element name="datastoreItem" type="CT_DatastoreItem"/>
</xsd:schema>
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.openxmlformats.org/schemaLibrary/2006/main"
targetNamespace="http://schemas.openxmlformats.org/schemaLibrary/2006/main"
attributeFormDefault="qualified" elementFormDefault="qualified">
<xsd:complexType name="CT_Schema">
<xsd:attribute name="uri" type="xsd:string" default=""/>
<xsd:attribute name="manifestLocation" type="xsd:string"/>
<xsd:attribute name="schemaLocation" type="xsd:string"/>
<xsd:attribute name="schemaLanguage" type="xsd:token"/>
</xsd:complexType>
<xsd:complexType name="CT_SchemaLibrary">
<xsd:sequence>
<xsd:element name="schema" type="CT_Schema" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="schemaLibrary" type="CT_SchemaLibrary"/>
</xsd:schema>
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties"
xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
xmlns:s="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
targetNamespace="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties"
blockDefault="#all" elementFormDefault="qualified">
<xsd:import namespace="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
schemaLocation="shared-documentPropertiesVariantTypes.xsd"/>
<xsd:import namespace="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
schemaLocation="shared-commonSimpleTypes.xsd"/>
<xsd:element name="Properties" type="CT_Properties"/>
<xsd:complexType name="CT_Properties">
<xsd:sequence>
<xsd:element name="property" minOccurs="0" maxOccurs="unbounded" type="CT_Property"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Property">
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element ref="vt:vector"/>
<xsd:element ref="vt:array"/>
<xsd:element ref="vt:blob"/>
<xsd:element ref="vt:oblob"/>
<xsd:element ref="vt:empty"/>
<xsd:element ref="vt:null"/>
<xsd:element ref="vt:i1"/>
<xsd:element ref="vt:i2"/>
<xsd:element ref="vt:i4"/>
<xsd:element ref="vt:i8"/>
<xsd:element ref="vt:int"/>
<xsd:element ref="vt:ui1"/>
<xsd:element ref="vt:ui2"/>
<xsd:element ref="vt:ui4"/>
<xsd:element ref="vt:ui8"/>
<xsd:element ref="vt:uint"/>
<xsd:element ref="vt:r4"/>
<xsd:element ref="vt:r8"/>
<xsd:element ref="vt:decimal"/>
<xsd:element ref="vt:lpstr"/>
<xsd:element ref="vt:lpwstr"/>
<xsd:element ref="vt:bstr"/>
<xsd:element ref="vt:date"/>
<xsd:element ref="vt:filetime"/>
<xsd:element ref="vt:bool"/>
<xsd:element ref="vt:cy"/>
<xsd:element ref="vt:error"/>
<xsd:element ref="vt:stream"/>
<xsd:element ref="vt:ostream"/>
<xsd:element ref="vt:storage"/>
<xsd:element ref="vt:ostorage"/>
<xsd:element ref="vt:vstream"/>
<xsd:element ref="vt:clsid"/>
</xsd:choice>
<xsd:attribute name="fmtid" use="required" type="s:ST_Guid"/>
<xsd:attribute name="pid" use="required" type="xsd:int"/>
<xsd:attribute name="name" use="optional" type="xsd:string"/>
<xsd:attribute name="linkTarget" use="optional" type="xsd:string"/>
</xsd:complexType>
</xsd:schema>
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"
xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
targetNamespace="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"
elementFormDefault="qualified" blockDefault="#all">
<xsd:import namespace="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
schemaLocation="shared-documentPropertiesVariantTypes.xsd"/>
<xsd:element name="Properties" type="CT_Properties"/>
<xsd:complexType name="CT_Properties">
<xsd:all>
<xsd:element name="Template" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<xsd:element name="Manager" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<xsd:element name="Company" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<xsd:element name="Pages" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="Words" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="Characters" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="PresentationFormat" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<xsd:element name="Lines" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="Paragraphs" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="Slides" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="Notes" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="TotalTime" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="HiddenSlides" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="MMClips" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="ScaleCrop" minOccurs="0" maxOccurs="1" type="xsd:boolean"/>
<xsd:element name="HeadingPairs" minOccurs="0" maxOccurs="1" type="CT_VectorVariant"/>
<xsd:element name="TitlesOfParts" minOccurs="0" maxOccurs="1" type="CT_VectorLpstr"/>
<xsd:element name="LinksUpToDate" minOccurs="0" maxOccurs="1" type="xsd:boolean"/>
<xsd:element name="CharactersWithSpaces" minOccurs="0" maxOccurs="1" type="xsd:int"/>
<xsd:element name="SharedDoc" minOccurs="0" maxOccurs="1" type="xsd:boolean"/>
<xsd:element name="HyperlinkBase" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<xsd:element name="HLinks" minOccurs="0" maxOccurs="1" type="CT_VectorVariant"/>
<xsd:element name="HyperlinksChanged" minOccurs="0" maxOccurs="1" type="xsd:boolean"/>
<xsd:element name="DigSig" minOccurs="0" maxOccurs="1" type="CT_DigSigBlob"/>
<xsd:element name="Application" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<xsd:element name="AppVersion" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<xsd:element name="DocSecurity" minOccurs="0" maxOccurs="1" type="xsd:int"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="CT_VectorVariant">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element ref="vt:vector"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_VectorLpstr">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element ref="vt:vector"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_DigSigBlob">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element ref="vt:blob"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
@@ -0,0 +1,195 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
xmlns:s="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
targetNamespace="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
blockDefault="#all" elementFormDefault="qualified">
<xsd:import namespace="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
schemaLocation="shared-commonSimpleTypes.xsd"/>
<xsd:simpleType name="ST_VectorBaseType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="variant"/>
<xsd:enumeration value="i1"/>
<xsd:enumeration value="i2"/>
<xsd:enumeration value="i4"/>
<xsd:enumeration value="i8"/>
<xsd:enumeration value="ui1"/>
<xsd:enumeration value="ui2"/>
<xsd:enumeration value="ui4"/>
<xsd:enumeration value="ui8"/>
<xsd:enumeration value="r4"/>
<xsd:enumeration value="r8"/>
<xsd:enumeration value="lpstr"/>
<xsd:enumeration value="lpwstr"/>
<xsd:enumeration value="bstr"/>
<xsd:enumeration value="date"/>
<xsd:enumeration value="filetime"/>
<xsd:enumeration value="bool"/>
<xsd:enumeration value="cy"/>
<xsd:enumeration value="error"/>
<xsd:enumeration value="clsid"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_ArrayBaseType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="variant"/>
<xsd:enumeration value="i1"/>
<xsd:enumeration value="i2"/>
<xsd:enumeration value="i4"/>
<xsd:enumeration value="int"/>
<xsd:enumeration value="ui1"/>
<xsd:enumeration value="ui2"/>
<xsd:enumeration value="ui4"/>
<xsd:enumeration value="uint"/>
<xsd:enumeration value="r4"/>
<xsd:enumeration value="r8"/>
<xsd:enumeration value="decimal"/>
<xsd:enumeration value="bstr"/>
<xsd:enumeration value="date"/>
<xsd:enumeration value="bool"/>
<xsd:enumeration value="cy"/>
<xsd:enumeration value="error"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_Cy">
<xsd:restriction base="xsd:string">
<xsd:pattern value="\s*[0-9]*\.[0-9]{4}\s*"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_Error">
<xsd:restriction base="xsd:string">
<xsd:pattern value="\s*0x[0-9A-Za-z]{8}\s*"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Empty"/>
<xsd:complexType name="CT_Null"/>
<xsd:complexType name="CT_Vector">
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element ref="variant"/>
<xsd:element ref="i1"/>
<xsd:element ref="i2"/>
<xsd:element ref="i4"/>
<xsd:element ref="i8"/>
<xsd:element ref="ui1"/>
<xsd:element ref="ui2"/>
<xsd:element ref="ui4"/>
<xsd:element ref="ui8"/>
<xsd:element ref="r4"/>
<xsd:element ref="r8"/>
<xsd:element ref="lpstr"/>
<xsd:element ref="lpwstr"/>
<xsd:element ref="bstr"/>
<xsd:element ref="date"/>
<xsd:element ref="filetime"/>
<xsd:element ref="bool"/>
<xsd:element ref="cy"/>
<xsd:element ref="error"/>
<xsd:element ref="clsid"/>
</xsd:choice>
<xsd:attribute name="baseType" type="ST_VectorBaseType" use="required"/>
<xsd:attribute name="size" type="xsd:unsignedInt" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_Array">
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element ref="variant"/>
<xsd:element ref="i1"/>
<xsd:element ref="i2"/>
<xsd:element ref="i4"/>
<xsd:element ref="int"/>
<xsd:element ref="ui1"/>
<xsd:element ref="ui2"/>
<xsd:element ref="ui4"/>
<xsd:element ref="uint"/>
<xsd:element ref="r4"/>
<xsd:element ref="r8"/>
<xsd:element ref="decimal"/>
<xsd:element ref="bstr"/>
<xsd:element ref="date"/>
<xsd:element ref="bool"/>
<xsd:element ref="error"/>
<xsd:element ref="cy"/>
</xsd:choice>
<xsd:attribute name="lBounds" type="xsd:int" use="required"/>
<xsd:attribute name="uBounds" type="xsd:int" use="required"/>
<xsd:attribute name="baseType" type="ST_ArrayBaseType" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_Variant">
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:element ref="variant"/>
<xsd:element ref="vector"/>
<xsd:element ref="array"/>
<xsd:element ref="blob"/>
<xsd:element ref="oblob"/>
<xsd:element ref="empty"/>
<xsd:element ref="null"/>
<xsd:element ref="i1"/>
<xsd:element ref="i2"/>
<xsd:element ref="i4"/>
<xsd:element ref="i8"/>
<xsd:element ref="int"/>
<xsd:element ref="ui1"/>
<xsd:element ref="ui2"/>
<xsd:element ref="ui4"/>
<xsd:element ref="ui8"/>
<xsd:element ref="uint"/>
<xsd:element ref="r4"/>
<xsd:element ref="r8"/>
<xsd:element ref="decimal"/>
<xsd:element ref="lpstr"/>
<xsd:element ref="lpwstr"/>
<xsd:element ref="bstr"/>
<xsd:element ref="date"/>
<xsd:element ref="filetime"/>
<xsd:element ref="bool"/>
<xsd:element ref="cy"/>
<xsd:element ref="error"/>
<xsd:element ref="stream"/>
<xsd:element ref="ostream"/>
<xsd:element ref="storage"/>
<xsd:element ref="ostorage"/>
<xsd:element ref="vstream"/>
<xsd:element ref="clsid"/>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="CT_Vstream">
<xsd:simpleContent>
<xsd:extension base="xsd:base64Binary">
<xsd:attribute name="version" type="s:ST_Guid"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:element name="variant" type="CT_Variant"/>
<xsd:element name="vector" type="CT_Vector"/>
<xsd:element name="array" type="CT_Array"/>
<xsd:element name="blob" type="xsd:base64Binary"/>
<xsd:element name="oblob" type="xsd:base64Binary"/>
<xsd:element name="empty" type="CT_Empty"/>
<xsd:element name="null" type="CT_Null"/>
<xsd:element name="i1" type="xsd:byte"/>
<xsd:element name="i2" type="xsd:short"/>
<xsd:element name="i4" type="xsd:int"/>
<xsd:element name="i8" type="xsd:long"/>
<xsd:element name="int" type="xsd:int"/>
<xsd:element name="ui1" type="xsd:unsignedByte"/>
<xsd:element name="ui2" type="xsd:unsignedShort"/>
<xsd:element name="ui4" type="xsd:unsignedInt"/>
<xsd:element name="ui8" type="xsd:unsignedLong"/>
<xsd:element name="uint" type="xsd:unsignedInt"/>
<xsd:element name="r4" type="xsd:float"/>
<xsd:element name="r8" type="xsd:double"/>
<xsd:element name="decimal" type="xsd:decimal"/>
<xsd:element name="lpstr" type="xsd:string"/>
<xsd:element name="lpwstr" type="xsd:string"/>
<xsd:element name="bstr" type="xsd:string"/>
<xsd:element name="date" type="xsd:dateTime"/>
<xsd:element name="filetime" type="xsd:dateTime"/>
<xsd:element name="bool" type="xsd:boolean"/>
<xsd:element name="cy" type="ST_Cy"/>
<xsd:element name="error" type="ST_Error"/>
<xsd:element name="stream" type="xsd:base64Binary"/>
<xsd:element name="ostream" type="xsd:base64Binary"/>
<xsd:element name="storage" type="xsd:base64Binary"/>
<xsd:element name="ostorage" type="xsd:base64Binary"/>
<xsd:element name="vstream" type="CT_Vstream"/>
<xsd:element name="clsid" type="s:ST_Guid"/>
</xsd:schema>
@@ -0,0 +1,582 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.openxmlformats.org/officeDocument/2006/math"
xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
xmlns:s="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
elementFormDefault="qualified" attributeFormDefault="qualified" blockDefault="#all"
targetNamespace="http://schemas.openxmlformats.org/officeDocument/2006/math">
<xsd:import namespace="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
schemaLocation="wml.xsd"/>
<xsd:import namespace="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
schemaLocation="shared-commonSimpleTypes.xsd"/>
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:simpleType name="ST_Integer255">
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="1"/>
<xsd:maxInclusive value="255"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Integer255">
<xsd:attribute name="val" type="ST_Integer255" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_Integer2">
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="-2"/>
<xsd:maxInclusive value="2"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Integer2">
<xsd:attribute name="val" type="ST_Integer2" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_SpacingRule">
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="4"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_SpacingRule">
<xsd:attribute name="val" type="ST_SpacingRule" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_UnSignedInteger">
<xsd:restriction base="xsd:unsignedInt"/>
</xsd:simpleType>
<xsd:complexType name="CT_UnSignedInteger">
<xsd:attribute name="val" type="ST_UnSignedInteger" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_Char">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Char">
<xsd:attribute name="val" type="ST_Char" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_OnOff">
<xsd:attribute name="val" type="s:ST_OnOff"/>
</xsd:complexType>
<xsd:complexType name="CT_String">
<xsd:attribute name="val" type="s:ST_String"/>
</xsd:complexType>
<xsd:complexType name="CT_XAlign">
<xsd:attribute name="val" type="s:ST_XAlign" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_YAlign">
<xsd:attribute name="val" type="s:ST_YAlign" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_Shp">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="centered"/>
<xsd:enumeration value="match"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Shp">
<xsd:attribute name="val" type="ST_Shp" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_FType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="bar"/>
<xsd:enumeration value="skw"/>
<xsd:enumeration value="lin"/>
<xsd:enumeration value="noBar"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_FType">
<xsd:attribute name="val" type="ST_FType" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_LimLoc">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="undOvr"/>
<xsd:enumeration value="subSup"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_LimLoc">
<xsd:attribute name="val" type="ST_LimLoc" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_TopBot">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="top"/>
<xsd:enumeration value="bot"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_TopBot">
<xsd:attribute name="val" type="ST_TopBot" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_Script">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="roman"/>
<xsd:enumeration value="script"/>
<xsd:enumeration value="fraktur"/>
<xsd:enumeration value="double-struck"/>
<xsd:enumeration value="sans-serif"/>
<xsd:enumeration value="monospace"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Script">
<xsd:attribute name="val" type="ST_Script"/>
</xsd:complexType>
<xsd:simpleType name="ST_Style">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="p"/>
<xsd:enumeration value="b"/>
<xsd:enumeration value="i"/>
<xsd:enumeration value="bi"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_Style">
<xsd:attribute name="val" type="ST_Style"/>
</xsd:complexType>
<xsd:complexType name="CT_ManualBreak">
<xsd:attribute name="alnAt" type="ST_Integer255"/>
</xsd:complexType>
<xsd:group name="EG_ScriptStyle">
<xsd:sequence>
<xsd:element name="scr" minOccurs="0" type="CT_Script"/>
<xsd:element name="sty" minOccurs="0" type="CT_Style"/>
</xsd:sequence>
</xsd:group>
<xsd:complexType name="CT_RPR">
<xsd:sequence>
<xsd:element name="lit" minOccurs="0" type="CT_OnOff"/>
<xsd:choice>
<xsd:element name="nor" minOccurs="0" type="CT_OnOff"/>
<xsd:sequence>
<xsd:group ref="EG_ScriptStyle"/>
</xsd:sequence>
</xsd:choice>
<xsd:element name="brk" minOccurs="0" type="CT_ManualBreak"/>
<xsd:element name="aln" minOccurs="0" type="CT_OnOff"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Text">
<xsd:simpleContent>
<xsd:extension base="s:ST_String">
<xsd:attribute ref="xml:space" use="optional"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="CT_R">
<xsd:sequence>
<xsd:element name="rPr" type="CT_RPR" minOccurs="0"/>
<xsd:group ref="w:EG_RPr" minOccurs="0"/>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:group ref="w:EG_RunInnerContent"/>
<xsd:element name="t" type="CT_Text" minOccurs="0"/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_CtrlPr">
<xsd:sequence>
<xsd:group ref="w:EG_RPrMath" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_AccPr">
<xsd:sequence>
<xsd:element name="chr" type="CT_Char" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Acc">
<xsd:sequence>
<xsd:element name="accPr" type="CT_AccPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_BarPr">
<xsd:sequence>
<xsd:element name="pos" type="CT_TopBot" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Bar">
<xsd:sequence>
<xsd:element name="barPr" type="CT_BarPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_BoxPr">
<xsd:sequence>
<xsd:element name="opEmu" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="noBreak" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="diff" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="brk" type="CT_ManualBreak" minOccurs="0"/>
<xsd:element name="aln" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Box">
<xsd:sequence>
<xsd:element name="boxPr" type="CT_BoxPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_BorderBoxPr">
<xsd:sequence>
<xsd:element name="hideTop" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="hideBot" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="hideLeft" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="hideRight" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="strikeH" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="strikeV" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="strikeBLTR" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="strikeTLBR" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_BorderBox">
<xsd:sequence>
<xsd:element name="borderBoxPr" type="CT_BorderBoxPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_DPr">
<xsd:sequence>
<xsd:element name="begChr" type="CT_Char" minOccurs="0"/>
<xsd:element name="sepChr" type="CT_Char" minOccurs="0"/>
<xsd:element name="endChr" type="CT_Char" minOccurs="0"/>
<xsd:element name="grow" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="shp" type="CT_Shp" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_D">
<xsd:sequence>
<xsd:element name="dPr" type="CT_DPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_EqArrPr">
<xsd:sequence>
<xsd:element name="baseJc" type="CT_YAlign" minOccurs="0"/>
<xsd:element name="maxDist" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="objDist" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="rSpRule" type="CT_SpacingRule" minOccurs="0"/>
<xsd:element name="rSp" type="CT_UnSignedInteger" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_EqArr">
<xsd:sequence>
<xsd:element name="eqArrPr" type="CT_EqArrPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_FPr">
<xsd:sequence>
<xsd:element name="type" type="CT_FType" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_F">
<xsd:sequence>
<xsd:element name="fPr" type="CT_FPr" minOccurs="0"/>
<xsd:element name="num" type="CT_OMathArg"/>
<xsd:element name="den" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_FuncPr">
<xsd:sequence>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Func">
<xsd:sequence>
<xsd:element name="funcPr" type="CT_FuncPr" minOccurs="0"/>
<xsd:element name="fName" type="CT_OMathArg"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_GroupChrPr">
<xsd:sequence>
<xsd:element name="chr" type="CT_Char" minOccurs="0"/>
<xsd:element name="pos" type="CT_TopBot" minOccurs="0"/>
<xsd:element name="vertJc" type="CT_TopBot" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_GroupChr">
<xsd:sequence>
<xsd:element name="groupChrPr" type="CT_GroupChrPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_LimLowPr">
<xsd:sequence>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_LimLow">
<xsd:sequence>
<xsd:element name="limLowPr" type="CT_LimLowPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
<xsd:element name="lim" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_LimUppPr">
<xsd:sequence>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_LimUpp">
<xsd:sequence>
<xsd:element name="limUppPr" type="CT_LimUppPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
<xsd:element name="lim" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_MCPr">
<xsd:sequence>
<xsd:element name="count" type="CT_Integer255" minOccurs="0"/>
<xsd:element name="mcJc" type="CT_XAlign" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_MC">
<xsd:sequence>
<xsd:element name="mcPr" type="CT_MCPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_MCS">
<xsd:sequence>
<xsd:element name="mc" type="CT_MC" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_MPr">
<xsd:sequence>
<xsd:element name="baseJc" type="CT_YAlign" minOccurs="0"/>
<xsd:element name="plcHide" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="rSpRule" type="CT_SpacingRule" minOccurs="0"/>
<xsd:element name="cGpRule" type="CT_SpacingRule" minOccurs="0"/>
<xsd:element name="rSp" type="CT_UnSignedInteger" minOccurs="0"/>
<xsd:element name="cSp" type="CT_UnSignedInteger" minOccurs="0"/>
<xsd:element name="cGp" type="CT_UnSignedInteger" minOccurs="0"/>
<xsd:element name="mcs" type="CT_MCS" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_MR">
<xsd:sequence>
<xsd:element name="e" type="CT_OMathArg" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_M">
<xsd:sequence>
<xsd:element name="mPr" type="CT_MPr" minOccurs="0"/>
<xsd:element name="mr" type="CT_MR" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_NaryPr">
<xsd:sequence>
<xsd:element name="chr" type="CT_Char" minOccurs="0"/>
<xsd:element name="limLoc" type="CT_LimLoc" minOccurs="0"/>
<xsd:element name="grow" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="subHide" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="supHide" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Nary">
<xsd:sequence>
<xsd:element name="naryPr" type="CT_NaryPr" minOccurs="0"/>
<xsd:element name="sub" type="CT_OMathArg"/>
<xsd:element name="sup" type="CT_OMathArg"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_PhantPr">
<xsd:sequence>
<xsd:element name="show" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="zeroWid" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="zeroAsc" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="zeroDesc" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="transp" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Phant">
<xsd:sequence>
<xsd:element name="phantPr" type="CT_PhantPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_RadPr">
<xsd:sequence>
<xsd:element name="degHide" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Rad">
<xsd:sequence>
<xsd:element name="radPr" type="CT_RadPr" minOccurs="0"/>
<xsd:element name="deg" type="CT_OMathArg"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SPrePr">
<xsd:sequence>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SPre">
<xsd:sequence>
<xsd:element name="sPrePr" type="CT_SPrePr" minOccurs="0"/>
<xsd:element name="sub" type="CT_OMathArg"/>
<xsd:element name="sup" type="CT_OMathArg"/>
<xsd:element name="e" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SSubPr">
<xsd:sequence>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SSub">
<xsd:sequence>
<xsd:element name="sSubPr" type="CT_SSubPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
<xsd:element name="sub" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SSubSupPr">
<xsd:sequence>
<xsd:element name="alnScr" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SSubSup">
<xsd:sequence>
<xsd:element name="sSubSupPr" type="CT_SSubSupPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
<xsd:element name="sub" type="CT_OMathArg"/>
<xsd:element name="sup" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SSupPr">
<xsd:sequence>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_SSup">
<xsd:sequence>
<xsd:element name="sSupPr" type="CT_SSupPr" minOccurs="0"/>
<xsd:element name="e" type="CT_OMathArg"/>
<xsd:element name="sup" type="CT_OMathArg"/>
</xsd:sequence>
</xsd:complexType>
<xsd:group name="EG_OMathMathElements">
<xsd:choice>
<xsd:element name="acc" type="CT_Acc"/>
<xsd:element name="bar" type="CT_Bar"/>
<xsd:element name="box" type="CT_Box"/>
<xsd:element name="borderBox" type="CT_BorderBox"/>
<xsd:element name="d" type="CT_D"/>
<xsd:element name="eqArr" type="CT_EqArr"/>
<xsd:element name="f" type="CT_F"/>
<xsd:element name="func" type="CT_Func"/>
<xsd:element name="groupChr" type="CT_GroupChr"/>
<xsd:element name="limLow" type="CT_LimLow"/>
<xsd:element name="limUpp" type="CT_LimUpp"/>
<xsd:element name="m" type="CT_M"/>
<xsd:element name="nary" type="CT_Nary"/>
<xsd:element name="phant" type="CT_Phant"/>
<xsd:element name="rad" type="CT_Rad"/>
<xsd:element name="sPre" type="CT_SPre"/>
<xsd:element name="sSub" type="CT_SSub"/>
<xsd:element name="sSubSup" type="CT_SSubSup"/>
<xsd:element name="sSup" type="CT_SSup"/>
<xsd:element name="r" type="CT_R"/>
</xsd:choice>
</xsd:group>
<xsd:group name="EG_OMathElements">
<xsd:choice>
<xsd:group ref="EG_OMathMathElements"/>
<xsd:group ref="w:EG_PContentMath"/>
</xsd:choice>
</xsd:group>
<xsd:complexType name="CT_OMathArgPr">
<xsd:sequence>
<xsd:element name="argSz" type="CT_Integer2" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_OMathArg">
<xsd:sequence>
<xsd:element name="argPr" type="CT_OMathArgPr" minOccurs="0"/>
<xsd:group ref="EG_OMathElements" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="ctrlPr" type="CT_CtrlPr" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="ST_Jc">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="left"/>
<xsd:enumeration value="right"/>
<xsd:enumeration value="center"/>
<xsd:enumeration value="centerGroup"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_OMathJc">
<xsd:attribute name="val" type="ST_Jc"/>
</xsd:complexType>
<xsd:complexType name="CT_OMathParaPr">
<xsd:sequence>
<xsd:element name="jc" type="CT_OMathJc" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_TwipsMeasure">
<xsd:attribute name="val" type="s:ST_TwipsMeasure" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_BreakBin">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="before"/>
<xsd:enumeration value="after"/>
<xsd:enumeration value="repeat"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_BreakBin">
<xsd:attribute name="val" type="ST_BreakBin"/>
</xsd:complexType>
<xsd:simpleType name="ST_BreakBinSub">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="--"/>
<xsd:enumeration value="-+"/>
<xsd:enumeration value="+-"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CT_BreakBinSub">
<xsd:attribute name="val" type="ST_BreakBinSub"/>
</xsd:complexType>
<xsd:complexType name="CT_MathPr">
<xsd:sequence>
<xsd:element name="mathFont" type="CT_String" minOccurs="0"/>
<xsd:element name="brkBin" type="CT_BreakBin" minOccurs="0"/>
<xsd:element name="brkBinSub" type="CT_BreakBinSub" minOccurs="0"/>
<xsd:element name="smallFrac" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="dispDef" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="lMargin" type="CT_TwipsMeasure" minOccurs="0"/>
<xsd:element name="rMargin" type="CT_TwipsMeasure" minOccurs="0"/>
<xsd:element name="defJc" type="CT_OMathJc" minOccurs="0"/>
<xsd:element name="preSp" type="CT_TwipsMeasure" minOccurs="0"/>
<xsd:element name="postSp" type="CT_TwipsMeasure" minOccurs="0"/>
<xsd:element name="interSp" type="CT_TwipsMeasure" minOccurs="0"/>
<xsd:element name="intraSp" type="CT_TwipsMeasure" minOccurs="0"/>
<xsd:choice minOccurs="0">
<xsd:element name="wrapIndent" type="CT_TwipsMeasure"/>
<xsd:element name="wrapRight" type="CT_OnOff"/>
</xsd:choice>
<xsd:element name="intLim" type="CT_LimLoc" minOccurs="0"/>
<xsd:element name="naryLim" type="CT_LimLoc" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="mathPr" type="CT_MathPr"/>
<xsd:complexType name="CT_OMathPara">
<xsd:sequence>
<xsd:element name="oMathParaPr" type="CT_OMathParaPr" minOccurs="0"/>
<xsd:element name="oMath" type="CT_OMath" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_OMath">
<xsd:sequence>
<xsd:group ref="EG_OMathElements" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="oMathPara" type="CT_OMathPara"/>
<xsd:element name="oMath" type="CT_OMath"/>
</xsd:schema>
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
elementFormDefault="qualified"
targetNamespace="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
blockDefault="#all">
<xsd:simpleType name="ST_RelationshipId">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:attribute name="id" type="ST_RelationshipId"/>
<xsd:attribute name="embed" type="ST_RelationshipId"/>
<xsd:attribute name="link" type="ST_RelationshipId"/>
<xsd:attribute name="dm" type="ST_RelationshipId" default=""/>
<xsd:attribute name="lo" type="ST_RelationshipId" default=""/>
<xsd:attribute name="qs" type="ST_RelationshipId" default=""/>
<xsd:attribute name="cs" type="ST_RelationshipId" default=""/>
<xsd:attribute name="blip" type="ST_RelationshipId" default=""/>
<xsd:attribute name="pict" type="ST_RelationshipId"/>
<xsd:attribute name="href" type="ST_RelationshipId"/>
<xsd:attribute name="topLeft" type="ST_RelationshipId"/>
<xsd:attribute name="topRight" type="ST_RelationshipId"/>
<xsd:attribute name="bottomLeft" type="ST_RelationshipId"/>
<xsd:attribute name="bottomRight" type="ST_RelationshipId"/>
</xsd:schema>
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,570 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:schemas-microsoft-com:vml"
xmlns:pvml="urn:schemas-microsoft-com:office:powerpoint"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
xmlns:w10="urn:schemas-microsoft-com:office:word"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:s="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
targetNamespace="urn:schemas-microsoft-com:vml" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:import namespace="urn:schemas-microsoft-com:office:office"
schemaLocation="vml-officeDrawing.xsd"/>
<xsd:import namespace="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
schemaLocation="wml.xsd"/>
<xsd:import namespace="urn:schemas-microsoft-com:office:word"
schemaLocation="vml-wordprocessingDrawing.xsd"/>
<xsd:import namespace="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
schemaLocation="shared-relationshipReference.xsd"/>
<xsd:import namespace="urn:schemas-microsoft-com:office:excel"
schemaLocation="vml-spreadsheetDrawing.xsd"/>
<xsd:import namespace="urn:schemas-microsoft-com:office:powerpoint"
schemaLocation="vml-presentationDrawing.xsd"/>
<xsd:import namespace="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
schemaLocation="shared-commonSimpleTypes.xsd"/>
<xsd:attributeGroup name="AG_Id">
<xsd:attribute name="id" type="xsd:string" use="optional"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="AG_Style">
<xsd:attribute name="style" type="xsd:string" use="optional"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="AG_Type">
<xsd:attribute name="type" type="xsd:string" use="optional"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="AG_Adj">
<xsd:attribute name="adj" type="xsd:string" use="optional"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="AG_Path">
<xsd:attribute name="path" type="xsd:string" use="optional"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="AG_Fill">
<xsd:attribute name="filled" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="fillcolor" type="s:ST_ColorType" use="optional"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="AG_Chromakey">
<xsd:attribute name="chromakey" type="s:ST_ColorType" use="optional"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="AG_Ext">
<xsd:attribute name="ext" form="qualified" type="ST_Ext"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="AG_CoreAttributes">
<xsd:attributeGroup ref="AG_Id"/>
<xsd:attributeGroup ref="AG_Style"/>
<xsd:attribute name="href" type="xsd:string" use="optional"/>
<xsd:attribute name="target" type="xsd:string" use="optional"/>
<xsd:attribute name="class" type="xsd:string" use="optional"/>
<xsd:attribute name="title" type="xsd:string" use="optional"/>
<xsd:attribute name="alt" type="xsd:string" use="optional"/>
<xsd:attribute name="coordsize" type="xsd:string" use="optional"/>
<xsd:attribute name="coordorigin" type="xsd:string" use="optional"/>
<xsd:attribute name="wrapcoords" type="xsd:string" use="optional"/>
<xsd:attribute name="print" type="s:ST_TrueFalse" use="optional"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="AG_ShapeAttributes">
<xsd:attributeGroup ref="AG_Chromakey"/>
<xsd:attributeGroup ref="AG_Fill"/>
<xsd:attribute name="opacity" type="xsd:string" use="optional"/>
<xsd:attribute name="stroked" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="strokecolor" type="s:ST_ColorType" use="optional"/>
<xsd:attribute name="strokeweight" type="xsd:string" use="optional"/>
<xsd:attribute name="insetpen" type="s:ST_TrueFalse" use="optional"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="AG_OfficeCoreAttributes">
<xsd:attribute ref="o:spid"/>
<xsd:attribute ref="o:oned"/>
<xsd:attribute ref="o:regroupid"/>
<xsd:attribute ref="o:doubleclicknotify"/>
<xsd:attribute ref="o:button"/>
<xsd:attribute ref="o:userhidden"/>
<xsd:attribute ref="o:bullet"/>
<xsd:attribute ref="o:hr"/>
<xsd:attribute ref="o:hrstd"/>
<xsd:attribute ref="o:hrnoshade"/>
<xsd:attribute ref="o:hrpct"/>
<xsd:attribute ref="o:hralign"/>
<xsd:attribute ref="o:allowincell"/>
<xsd:attribute ref="o:allowoverlap"/>
<xsd:attribute ref="o:userdrawn"/>
<xsd:attribute ref="o:bordertopcolor"/>
<xsd:attribute ref="o:borderleftcolor"/>
<xsd:attribute ref="o:borderbottomcolor"/>
<xsd:attribute ref="o:borderrightcolor"/>
<xsd:attribute ref="o:dgmlayout"/>
<xsd:attribute ref="o:dgmnodekind"/>
<xsd:attribute ref="o:dgmlayoutmru"/>
<xsd:attribute ref="o:insetmode"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="AG_OfficeShapeAttributes">
<xsd:attribute ref="o:spt"/>
<xsd:attribute ref="o:connectortype"/>
<xsd:attribute ref="o:bwmode"/>
<xsd:attribute ref="o:bwpure"/>
<xsd:attribute ref="o:bwnormal"/>
<xsd:attribute ref="o:forcedash"/>
<xsd:attribute ref="o:oleicon"/>
<xsd:attribute ref="o:ole"/>
<xsd:attribute ref="o:preferrelative"/>
<xsd:attribute ref="o:cliptowrap"/>
<xsd:attribute ref="o:clip"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="AG_AllCoreAttributes">
<xsd:attributeGroup ref="AG_CoreAttributes"/>
<xsd:attributeGroup ref="AG_OfficeCoreAttributes"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="AG_AllShapeAttributes">
<xsd:attributeGroup ref="AG_ShapeAttributes"/>
<xsd:attributeGroup ref="AG_OfficeShapeAttributes"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="AG_ImageAttributes">
<xsd:attribute name="src" type="xsd:string" use="optional"/>
<xsd:attribute name="cropleft" type="xsd:string" use="optional"/>
<xsd:attribute name="croptop" type="xsd:string" use="optional"/>
<xsd:attribute name="cropright" type="xsd:string" use="optional"/>
<xsd:attribute name="cropbottom" type="xsd:string" use="optional"/>
<xsd:attribute name="gain" type="xsd:string" use="optional"/>
<xsd:attribute name="blacklevel" type="xsd:string" use="optional"/>
<xsd:attribute name="gamma" type="xsd:string" use="optional"/>
<xsd:attribute name="grayscale" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="bilevel" type="s:ST_TrueFalse" use="optional"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="AG_StrokeAttributes">
<xsd:attribute name="on" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="weight" type="xsd:string" use="optional"/>
<xsd:attribute name="color" type="s:ST_ColorType" use="optional"/>
<xsd:attribute name="opacity" type="xsd:string" use="optional"/>
<xsd:attribute name="linestyle" type="ST_StrokeLineStyle" use="optional"/>
<xsd:attribute name="miterlimit" type="xsd:decimal" use="optional"/>
<xsd:attribute name="joinstyle" type="ST_StrokeJoinStyle" use="optional"/>
<xsd:attribute name="endcap" type="ST_StrokeEndCap" use="optional"/>
<xsd:attribute name="dashstyle" type="xsd:string" use="optional"/>
<xsd:attribute name="filltype" type="ST_FillType" use="optional"/>
<xsd:attribute name="src" type="xsd:string" use="optional"/>
<xsd:attribute name="imageaspect" type="ST_ImageAspect" use="optional"/>
<xsd:attribute name="imagesize" type="xsd:string" use="optional"/>
<xsd:attribute name="imagealignshape" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="color2" type="s:ST_ColorType" use="optional"/>
<xsd:attribute name="startarrow" type="ST_StrokeArrowType" use="optional"/>
<xsd:attribute name="startarrowwidth" type="ST_StrokeArrowWidth" use="optional"/>
<xsd:attribute name="startarrowlength" type="ST_StrokeArrowLength" use="optional"/>
<xsd:attribute name="endarrow" type="ST_StrokeArrowType" use="optional"/>
<xsd:attribute name="endarrowwidth" type="ST_StrokeArrowWidth" use="optional"/>
<xsd:attribute name="endarrowlength" type="ST_StrokeArrowLength" use="optional"/>
<xsd:attribute ref="o:href"/>
<xsd:attribute ref="o:althref"/>
<xsd:attribute ref="o:title"/>
<xsd:attribute ref="o:forcedash"/>
<xsd:attribute ref="r:id" use="optional"/>
<xsd:attribute name="insetpen" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute ref="o:relid"/>
</xsd:attributeGroup>
<xsd:group name="EG_ShapeElements">
<xsd:choice>
<xsd:element ref="path"/>
<xsd:element ref="formulas"/>
<xsd:element ref="handles"/>
<xsd:element ref="fill"/>
<xsd:element ref="stroke"/>
<xsd:element ref="shadow"/>
<xsd:element ref="textbox"/>
<xsd:element ref="textpath"/>
<xsd:element ref="imagedata"/>
<xsd:element ref="o:skew"/>
<xsd:element ref="o:extrusion"/>
<xsd:element ref="o:callout"/>
<xsd:element ref="o:lock"/>
<xsd:element ref="o:clippath"/>
<xsd:element ref="o:signatureline"/>
<xsd:element ref="w10:wrap"/>
<xsd:element ref="w10:anchorlock"/>
<xsd:element ref="w10:bordertop"/>
<xsd:element ref="w10:borderbottom"/>
<xsd:element ref="w10:borderleft"/>
<xsd:element ref="w10:borderright"/>
<xsd:element ref="x:ClientData" minOccurs="0"/>
<xsd:element ref="pvml:textdata" minOccurs="0"/>
</xsd:choice>
</xsd:group>
<xsd:element name="shape" type="CT_Shape"/>
<xsd:element name="shapetype" type="CT_Shapetype"/>
<xsd:element name="group" type="CT_Group"/>
<xsd:element name="background" type="CT_Background"/>
<xsd:complexType name="CT_Shape">
<xsd:choice maxOccurs="unbounded">
<xsd:group ref="EG_ShapeElements"/>
<xsd:element ref="o:ink"/>
<xsd:element ref="pvml:iscomment"/>
<xsd:element ref="o:equationxml"/>
</xsd:choice>
<xsd:attributeGroup ref="AG_AllCoreAttributes"/>
<xsd:attributeGroup ref="AG_AllShapeAttributes"/>
<xsd:attributeGroup ref="AG_Type"/>
<xsd:attributeGroup ref="AG_Adj"/>
<xsd:attributeGroup ref="AG_Path"/>
<xsd:attribute ref="o:gfxdata"/>
<xsd:attribute name="equationxml" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_Shapetype">
<xsd:sequence>
<xsd:group ref="EG_ShapeElements" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="o:complex" minOccurs="0"/>
</xsd:sequence>
<xsd:attributeGroup ref="AG_AllCoreAttributes"/>
<xsd:attributeGroup ref="AG_AllShapeAttributes"/>
<xsd:attributeGroup ref="AG_Adj"/>
<xsd:attributeGroup ref="AG_Path"/>
<xsd:attribute ref="o:master"/>
</xsd:complexType>
<xsd:complexType name="CT_Group">
<xsd:choice maxOccurs="unbounded">
<xsd:group ref="EG_ShapeElements"/>
<xsd:element ref="group"/>
<xsd:element ref="shape"/>
<xsd:element ref="shapetype"/>
<xsd:element ref="arc"/>
<xsd:element ref="curve"/>
<xsd:element ref="image"/>
<xsd:element ref="line"/>
<xsd:element ref="oval"/>
<xsd:element ref="polyline"/>
<xsd:element ref="rect"/>
<xsd:element ref="roundrect"/>
<xsd:element ref="o:diagram"/>
</xsd:choice>
<xsd:attributeGroup ref="AG_AllCoreAttributes"/>
<xsd:attributeGroup ref="AG_Fill"/>
<xsd:attribute name="editas" type="ST_EditAs" use="optional"/>
<xsd:attribute ref="o:tableproperties"/>
<xsd:attribute ref="o:tablelimits"/>
</xsd:complexType>
<xsd:complexType name="CT_Background">
<xsd:sequence>
<xsd:element ref="fill" minOccurs="0"/>
</xsd:sequence>
<xsd:attributeGroup ref="AG_Id"/>
<xsd:attributeGroup ref="AG_Fill"/>
<xsd:attribute ref="o:bwmode"/>
<xsd:attribute ref="o:bwpure"/>
<xsd:attribute ref="o:bwnormal"/>
<xsd:attribute ref="o:targetscreensize"/>
</xsd:complexType>
<xsd:element name="fill" type="CT_Fill"/>
<xsd:element name="formulas" type="CT_Formulas"/>
<xsd:element name="handles" type="CT_Handles"/>
<xsd:element name="imagedata" type="CT_ImageData"/>
<xsd:element name="path" type="CT_Path"/>
<xsd:element name="textbox" type="CT_Textbox"/>
<xsd:element name="shadow" type="CT_Shadow"/>
<xsd:element name="stroke" type="CT_Stroke"/>
<xsd:element name="textpath" type="CT_TextPath"/>
<xsd:complexType name="CT_Fill">
<xsd:sequence>
<xsd:element ref="o:fill" minOccurs="0"/>
</xsd:sequence>
<xsd:attributeGroup ref="AG_Id"/>
<xsd:attribute name="type" type="ST_FillType" use="optional"/>
<xsd:attribute name="on" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="color" type="s:ST_ColorType" use="optional"/>
<xsd:attribute name="opacity" type="xsd:string" use="optional"/>
<xsd:attribute name="color2" type="s:ST_ColorType" use="optional"/>
<xsd:attribute name="src" type="xsd:string" use="optional"/>
<xsd:attribute ref="o:href"/>
<xsd:attribute ref="o:althref"/>
<xsd:attribute name="size" type="xsd:string" use="optional"/>
<xsd:attribute name="origin" type="xsd:string" use="optional"/>
<xsd:attribute name="position" type="xsd:string" use="optional"/>
<xsd:attribute name="aspect" type="ST_ImageAspect" use="optional"/>
<xsd:attribute name="colors" type="xsd:string" use="optional"/>
<xsd:attribute name="angle" type="xsd:decimal" use="optional"/>
<xsd:attribute name="alignshape" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="focus" type="xsd:string" use="optional"/>
<xsd:attribute name="focussize" type="xsd:string" use="optional"/>
<xsd:attribute name="focusposition" type="xsd:string" use="optional"/>
<xsd:attribute name="method" type="ST_FillMethod" use="optional"/>
<xsd:attribute ref="o:detectmouseclick"/>
<xsd:attribute ref="o:title"/>
<xsd:attribute ref="o:opacity2"/>
<xsd:attribute name="recolor" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="rotate" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute ref="r:id" use="optional"/>
<xsd:attribute ref="o:relid" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_Formulas">
<xsd:sequence>
<xsd:element name="f" type="CT_F" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_F">
<xsd:attribute name="eqn" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="CT_Handles">
<xsd:sequence>
<xsd:element name="h" type="CT_H" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_H">
<xsd:attribute name="position" type="xsd:string"/>
<xsd:attribute name="polar" type="xsd:string"/>
<xsd:attribute name="map" type="xsd:string"/>
<xsd:attribute name="invx" type="s:ST_TrueFalse"/>
<xsd:attribute name="invy" type="s:ST_TrueFalse"/>
<xsd:attribute name="switch" type="s:ST_TrueFalseBlank"/>
<xsd:attribute name="xrange" type="xsd:string"/>
<xsd:attribute name="yrange" type="xsd:string"/>
<xsd:attribute name="radiusrange" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="CT_ImageData">
<xsd:attributeGroup ref="AG_Id"/>
<xsd:attributeGroup ref="AG_ImageAttributes"/>
<xsd:attributeGroup ref="AG_Chromakey"/>
<xsd:attribute name="embosscolor" type="s:ST_ColorType" use="optional"/>
<xsd:attribute name="recolortarget" type="s:ST_ColorType"/>
<xsd:attribute ref="o:href"/>
<xsd:attribute ref="o:althref"/>
<xsd:attribute ref="o:title"/>
<xsd:attribute ref="o:oleid"/>
<xsd:attribute ref="o:detectmouseclick"/>
<xsd:attribute ref="o:movie"/>
<xsd:attribute ref="o:relid"/>
<xsd:attribute ref="r:id"/>
<xsd:attribute ref="r:pict"/>
<xsd:attribute ref="r:href"/>
</xsd:complexType>
<xsd:complexType name="CT_Path">
<xsd:attributeGroup ref="AG_Id"/>
<xsd:attribute name="v" type="xsd:string" use="optional"/>
<xsd:attribute name="limo" type="xsd:string" use="optional"/>
<xsd:attribute name="textboxrect" type="xsd:string" use="optional"/>
<xsd:attribute name="fillok" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="strokeok" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="shadowok" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="arrowok" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="gradientshapeok" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="textpathok" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="insetpenok" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute ref="o:connecttype"/>
<xsd:attribute ref="o:connectlocs"/>
<xsd:attribute ref="o:connectangles"/>
<xsd:attribute ref="o:extrusionok"/>
</xsd:complexType>
<xsd:complexType name="CT_Shadow">
<xsd:attributeGroup ref="AG_Id"/>
<xsd:attribute name="on" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="type" type="ST_ShadowType" use="optional"/>
<xsd:attribute name="obscured" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="color" type="s:ST_ColorType" use="optional"/>
<xsd:attribute name="opacity" type="xsd:string" use="optional"/>
<xsd:attribute name="offset" type="xsd:string" use="optional"/>
<xsd:attribute name="color2" type="s:ST_ColorType" use="optional"/>
<xsd:attribute name="offset2" type="xsd:string" use="optional"/>
<xsd:attribute name="origin" type="xsd:string" use="optional"/>
<xsd:attribute name="matrix" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_Stroke">
<xsd:sequence>
<xsd:element ref="o:left" minOccurs="0"/>
<xsd:element ref="o:top" minOccurs="0"/>
<xsd:element ref="o:right" minOccurs="0"/>
<xsd:element ref="o:bottom" minOccurs="0"/>
<xsd:element ref="o:column" minOccurs="0"/>
</xsd:sequence>
<xsd:attributeGroup ref="AG_Id"/>
<xsd:attributeGroup ref="AG_StrokeAttributes"/>
</xsd:complexType>
<xsd:complexType name="CT_Textbox">
<xsd:choice>
<xsd:element ref="w:txbxContent" minOccurs="0"/>
<xsd:any namespace="##local" processContents="skip"/>
</xsd:choice>
<xsd:attributeGroup ref="AG_Id"/>
<xsd:attributeGroup ref="AG_Style"/>
<xsd:attribute name="inset" type="xsd:string" use="optional"/>
<xsd:attribute ref="o:singleclick"/>
<xsd:attribute ref="o:insetmode"/>
</xsd:complexType>
<xsd:complexType name="CT_TextPath">
<xsd:attributeGroup ref="AG_Id"/>
<xsd:attributeGroup ref="AG_Style"/>
<xsd:attribute name="on" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="fitshape" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="fitpath" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="trim" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="xscale" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="string" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:element name="arc" type="CT_Arc"/>
<xsd:element name="curve" type="CT_Curve"/>
<xsd:element name="image" type="CT_Image"/>
<xsd:element name="line" type="CT_Line"/>
<xsd:element name="oval" type="CT_Oval"/>
<xsd:element name="polyline" type="CT_PolyLine"/>
<xsd:element name="rect" type="CT_Rect"/>
<xsd:element name="roundrect" type="CT_RoundRect"/>
<xsd:complexType name="CT_Arc">
<xsd:sequence>
<xsd:group ref="EG_ShapeElements" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attributeGroup ref="AG_AllCoreAttributes"/>
<xsd:attributeGroup ref="AG_AllShapeAttributes"/>
<xsd:attribute name="startAngle" type="xsd:decimal" use="optional"/>
<xsd:attribute name="endAngle" type="xsd:decimal" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_Curve">
<xsd:sequence>
<xsd:group ref="EG_ShapeElements" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attributeGroup ref="AG_AllCoreAttributes"/>
<xsd:attributeGroup ref="AG_AllShapeAttributes"/>
<xsd:attribute name="from" type="xsd:string" use="optional"/>
<xsd:attribute name="control1" type="xsd:string" use="optional"/>
<xsd:attribute name="control2" type="xsd:string" use="optional"/>
<xsd:attribute name="to" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_Image">
<xsd:sequence>
<xsd:group ref="EG_ShapeElements" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attributeGroup ref="AG_AllCoreAttributes"/>
<xsd:attributeGroup ref="AG_AllShapeAttributes"/>
<xsd:attributeGroup ref="AG_ImageAttributes"/>
</xsd:complexType>
<xsd:complexType name="CT_Line">
<xsd:sequence>
<xsd:group ref="EG_ShapeElements" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attributeGroup ref="AG_AllCoreAttributes"/>
<xsd:attributeGroup ref="AG_AllShapeAttributes"/>
<xsd:attribute name="from" type="xsd:string" use="optional"/>
<xsd:attribute name="to" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_Oval">
<xsd:choice maxOccurs="unbounded">
<xsd:group ref="EG_ShapeElements" minOccurs="0" maxOccurs="unbounded"/>
</xsd:choice>
<xsd:attributeGroup ref="AG_AllCoreAttributes"/>
<xsd:attributeGroup ref="AG_AllShapeAttributes"/>
</xsd:complexType>
<xsd:complexType name="CT_PolyLine">
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:group ref="EG_ShapeElements"/>
<xsd:element ref="o:ink"/>
</xsd:choice>
<xsd:attributeGroup ref="AG_AllCoreAttributes"/>
<xsd:attributeGroup ref="AG_AllShapeAttributes"/>
<xsd:attribute name="points" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_Rect">
<xsd:choice maxOccurs="unbounded">
<xsd:group ref="EG_ShapeElements" minOccurs="0" maxOccurs="unbounded"/>
</xsd:choice>
<xsd:attributeGroup ref="AG_AllCoreAttributes"/>
<xsd:attributeGroup ref="AG_AllShapeAttributes"/>
</xsd:complexType>
<xsd:complexType name="CT_RoundRect">
<xsd:choice maxOccurs="unbounded">
<xsd:group ref="EG_ShapeElements" minOccurs="0" maxOccurs="unbounded"/>
</xsd:choice>
<xsd:attributeGroup ref="AG_AllCoreAttributes"/>
<xsd:attributeGroup ref="AG_AllShapeAttributes"/>
<xsd:attribute name="arcsize" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:simpleType name="ST_Ext">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="view"/>
<xsd:enumeration value="edit"/>
<xsd:enumeration value="backwardCompatible"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_FillType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="solid"/>
<xsd:enumeration value="gradient"/>
<xsd:enumeration value="gradientRadial"/>
<xsd:enumeration value="tile"/>
<xsd:enumeration value="pattern"/>
<xsd:enumeration value="frame"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_FillMethod">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="none"/>
<xsd:enumeration value="linear"/>
<xsd:enumeration value="sigma"/>
<xsd:enumeration value="any"/>
<xsd:enumeration value="linear sigma"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_ShadowType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="single"/>
<xsd:enumeration value="double"/>
<xsd:enumeration value="emboss"/>
<xsd:enumeration value="perspective"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_StrokeLineStyle">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="single"/>
<xsd:enumeration value="thinThin"/>
<xsd:enumeration value="thinThick"/>
<xsd:enumeration value="thickThin"/>
<xsd:enumeration value="thickBetweenThin"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_StrokeJoinStyle">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="round"/>
<xsd:enumeration value="bevel"/>
<xsd:enumeration value="miter"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_StrokeEndCap">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="flat"/>
<xsd:enumeration value="square"/>
<xsd:enumeration value="round"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_StrokeArrowLength">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="short"/>
<xsd:enumeration value="medium"/>
<xsd:enumeration value="long"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_StrokeArrowWidth">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="narrow"/>
<xsd:enumeration value="medium"/>
<xsd:enumeration value="wide"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_StrokeArrowType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="none"/>
<xsd:enumeration value="block"/>
<xsd:enumeration value="classic"/>
<xsd:enumeration value="oval"/>
<xsd:enumeration value="diamond"/>
<xsd:enumeration value="open"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_ImageAspect">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="ignore"/>
<xsd:enumeration value="atMost"/>
<xsd:enumeration value="atLeast"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_EditAs">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="canvas"/>
<xsd:enumeration value="orgchart"/>
<xsd:enumeration value="radial"/>
<xsd:enumeration value="cycle"/>
<xsd:enumeration value="stacked"/>
<xsd:enumeration value="venn"/>
<xsd:enumeration value="bullseye"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
@@ -0,0 +1,509 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
xmlns:s="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
targetNamespace="urn:schemas-microsoft-com:office:office" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:import namespace="urn:schemas-microsoft-com:vml" schemaLocation="vml-main.xsd"/>
<xsd:import namespace="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
schemaLocation="shared-relationshipReference.xsd"/>
<xsd:import namespace="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
schemaLocation="shared-commonSimpleTypes.xsd"/>
<xsd:attribute name="bwmode" type="ST_BWMode"/>
<xsd:attribute name="bwpure" type="ST_BWMode"/>
<xsd:attribute name="bwnormal" type="ST_BWMode"/>
<xsd:attribute name="targetscreensize" type="ST_ScreenSize"/>
<xsd:attribute name="insetmode" type="ST_InsetMode" default="custom"/>
<xsd:attribute name="spt" type="xsd:float"/>
<xsd:attribute name="wrapcoords" type="xsd:string"/>
<xsd:attribute name="oned" type="s:ST_TrueFalse"/>
<xsd:attribute name="regroupid" type="xsd:integer"/>
<xsd:attribute name="doubleclicknotify" type="s:ST_TrueFalse"/>
<xsd:attribute name="connectortype" type="ST_ConnectorType" default="straight"/>
<xsd:attribute name="button" type="s:ST_TrueFalse"/>
<xsd:attribute name="userhidden" type="s:ST_TrueFalse"/>
<xsd:attribute name="forcedash" type="s:ST_TrueFalse"/>
<xsd:attribute name="oleicon" type="s:ST_TrueFalse"/>
<xsd:attribute name="ole" type="s:ST_TrueFalseBlank"/>
<xsd:attribute name="preferrelative" type="s:ST_TrueFalse"/>
<xsd:attribute name="cliptowrap" type="s:ST_TrueFalse"/>
<xsd:attribute name="clip" type="s:ST_TrueFalse"/>
<xsd:attribute name="bullet" type="s:ST_TrueFalse"/>
<xsd:attribute name="hr" type="s:ST_TrueFalse"/>
<xsd:attribute name="hrstd" type="s:ST_TrueFalse"/>
<xsd:attribute name="hrnoshade" type="s:ST_TrueFalse"/>
<xsd:attribute name="hrpct" type="xsd:float"/>
<xsd:attribute name="hralign" type="ST_HrAlign" default="left"/>
<xsd:attribute name="allowincell" type="s:ST_TrueFalse"/>
<xsd:attribute name="allowoverlap" type="s:ST_TrueFalse"/>
<xsd:attribute name="userdrawn" type="s:ST_TrueFalse"/>
<xsd:attribute name="bordertopcolor" type="xsd:string"/>
<xsd:attribute name="borderleftcolor" type="xsd:string"/>
<xsd:attribute name="borderbottomcolor" type="xsd:string"/>
<xsd:attribute name="borderrightcolor" type="xsd:string"/>
<xsd:attribute name="connecttype" type="ST_ConnectType"/>
<xsd:attribute name="connectlocs" type="xsd:string"/>
<xsd:attribute name="connectangles" type="xsd:string"/>
<xsd:attribute name="master" type="xsd:string"/>
<xsd:attribute name="extrusionok" type="s:ST_TrueFalse"/>
<xsd:attribute name="href" type="xsd:string"/>
<xsd:attribute name="althref" type="xsd:string"/>
<xsd:attribute name="title" type="xsd:string"/>
<xsd:attribute name="singleclick" type="s:ST_TrueFalse"/>
<xsd:attribute name="oleid" type="xsd:float"/>
<xsd:attribute name="detectmouseclick" type="s:ST_TrueFalse"/>
<xsd:attribute name="movie" type="xsd:float"/>
<xsd:attribute name="spid" type="xsd:string"/>
<xsd:attribute name="opacity2" type="xsd:string"/>
<xsd:attribute name="relid" type="r:ST_RelationshipId"/>
<xsd:attribute name="dgmlayout" type="ST_DiagramLayout"/>
<xsd:attribute name="dgmnodekind" type="xsd:integer"/>
<xsd:attribute name="dgmlayoutmru" type="ST_DiagramLayout"/>
<xsd:attribute name="gfxdata" type="xsd:base64Binary"/>
<xsd:attribute name="tableproperties" type="xsd:string"/>
<xsd:attribute name="tablelimits" type="xsd:string"/>
<xsd:element name="shapedefaults" type="CT_ShapeDefaults"/>
<xsd:element name="shapelayout" type="CT_ShapeLayout"/>
<xsd:element name="signatureline" type="CT_SignatureLine"/>
<xsd:element name="ink" type="CT_Ink"/>
<xsd:element name="diagram" type="CT_Diagram"/>
<xsd:element name="equationxml" type="CT_EquationXml"/>
<xsd:complexType name="CT_ShapeDefaults">
<xsd:all minOccurs="0">
<xsd:element ref="v:fill" minOccurs="0"/>
<xsd:element ref="v:stroke" minOccurs="0"/>
<xsd:element ref="v:textbox" minOccurs="0"/>
<xsd:element ref="v:shadow" minOccurs="0"/>
<xsd:element ref="skew" minOccurs="0"/>
<xsd:element ref="extrusion" minOccurs="0"/>
<xsd:element ref="callout" minOccurs="0"/>
<xsd:element ref="lock" minOccurs="0"/>
<xsd:element name="colormru" minOccurs="0" type="CT_ColorMru"/>
<xsd:element name="colormenu" minOccurs="0" type="CT_ColorMenu"/>
</xsd:all>
<xsd:attributeGroup ref="v:AG_Ext"/>
<xsd:attribute name="spidmax" type="xsd:integer" use="optional"/>
<xsd:attribute name="style" type="xsd:string" use="optional"/>
<xsd:attribute name="fill" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="fillcolor" type="s:ST_ColorType" use="optional"/>
<xsd:attribute name="stroke" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="strokecolor" type="s:ST_ColorType"/>
<xsd:attribute name="allowincell" form="qualified" type="s:ST_TrueFalse"/>
</xsd:complexType>
<xsd:complexType name="CT_Ink">
<xsd:sequence/>
<xsd:attribute name="i" type="xsd:string"/>
<xsd:attribute name="annotation" type="s:ST_TrueFalse"/>
<xsd:attribute name="contentType" type="ST_ContentType" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_SignatureLine">
<xsd:attributeGroup ref="v:AG_Ext"/>
<xsd:attribute name="issignatureline" type="s:ST_TrueFalse"/>
<xsd:attribute name="id" type="s:ST_Guid"/>
<xsd:attribute name="provid" type="s:ST_Guid"/>
<xsd:attribute name="signinginstructionsset" type="s:ST_TrueFalse"/>
<xsd:attribute name="allowcomments" type="s:ST_TrueFalse"/>
<xsd:attribute name="showsigndate" type="s:ST_TrueFalse"/>
<xsd:attribute name="suggestedsigner" type="xsd:string" form="qualified"/>
<xsd:attribute name="suggestedsigner2" type="xsd:string" form="qualified"/>
<xsd:attribute name="suggestedsigneremail" type="xsd:string" form="qualified"/>
<xsd:attribute name="signinginstructions" type="xsd:string"/>
<xsd:attribute name="addlxml" type="xsd:string"/>
<xsd:attribute name="sigprovurl" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="CT_ShapeLayout">
<xsd:all>
<xsd:element name="idmap" type="CT_IdMap" minOccurs="0"/>
<xsd:element name="regrouptable" type="CT_RegroupTable" minOccurs="0"/>
<xsd:element name="rules" type="CT_Rules" minOccurs="0"/>
</xsd:all>
<xsd:attributeGroup ref="v:AG_Ext"/>
</xsd:complexType>
<xsd:complexType name="CT_IdMap">
<xsd:attributeGroup ref="v:AG_Ext"/>
<xsd:attribute name="data" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_RegroupTable">
<xsd:sequence>
<xsd:element name="entry" type="CT_Entry" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attributeGroup ref="v:AG_Ext"/>
</xsd:complexType>
<xsd:complexType name="CT_Entry">
<xsd:attribute name="new" type="xsd:int" use="optional"/>
<xsd:attribute name="old" type="xsd:int" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_Rules">
<xsd:sequence>
<xsd:element name="r" type="CT_R" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attributeGroup ref="v:AG_Ext"/>
</xsd:complexType>
<xsd:complexType name="CT_R">
<xsd:sequence>
<xsd:element name="proxy" type="CT_Proxy" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string" use="required"/>
<xsd:attribute name="type" type="ST_RType" use="optional"/>
<xsd:attribute name="how" type="ST_How" use="optional"/>
<xsd:attribute name="idref" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_Proxy">
<xsd:attribute name="start" type="s:ST_TrueFalseBlank" use="optional" default="false"/>
<xsd:attribute name="end" type="s:ST_TrueFalseBlank" use="optional" default="false"/>
<xsd:attribute name="idref" type="xsd:string" use="optional"/>
<xsd:attribute name="connectloc" type="xsd:int" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_Diagram">
<xsd:sequence>
<xsd:element name="relationtable" type="CT_RelationTable" minOccurs="0"/>
</xsd:sequence>
<xsd:attributeGroup ref="v:AG_Ext"/>
<xsd:attribute name="dgmstyle" type="xsd:integer" use="optional"/>
<xsd:attribute name="autoformat" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="reverse" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="autolayout" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="dgmscalex" type="xsd:integer" use="optional"/>
<xsd:attribute name="dgmscaley" type="xsd:integer" use="optional"/>
<xsd:attribute name="dgmfontsize" type="xsd:integer" use="optional"/>
<xsd:attribute name="constrainbounds" type="xsd:string" use="optional"/>
<xsd:attribute name="dgmbasetextscale" type="xsd:integer" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_EquationXml">
<xsd:sequence>
<xsd:any namespace="##any"/>
</xsd:sequence>
<xsd:attribute name="contentType" type="ST_AlternateMathContentType" use="optional"/>
</xsd:complexType>
<xsd:simpleType name="ST_AlternateMathContentType">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:complexType name="CT_RelationTable">
<xsd:sequence>
<xsd:element name="rel" type="CT_Relation" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attributeGroup ref="v:AG_Ext"/>
</xsd:complexType>
<xsd:complexType name="CT_Relation">
<xsd:attributeGroup ref="v:AG_Ext"/>
<xsd:attribute name="idsrc" type="xsd:string" use="optional"/>
<xsd:attribute name="iddest" type="xsd:string" use="optional"/>
<xsd:attribute name="idcntr" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_ColorMru">
<xsd:attributeGroup ref="v:AG_Ext"/>
<xsd:attribute name="colors" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="CT_ColorMenu">
<xsd:attributeGroup ref="v:AG_Ext"/>
<xsd:attribute name="strokecolor" type="s:ST_ColorType"/>
<xsd:attribute name="fillcolor" type="s:ST_ColorType"/>
<xsd:attribute name="shadowcolor" type="s:ST_ColorType"/>
<xsd:attribute name="extrusioncolor" type="s:ST_ColorType"/>
</xsd:complexType>
<xsd:element name="skew" type="CT_Skew"/>
<xsd:element name="extrusion" type="CT_Extrusion"/>
<xsd:element name="callout" type="CT_Callout"/>
<xsd:element name="lock" type="CT_Lock"/>
<xsd:element name="OLEObject" type="CT_OLEObject"/>
<xsd:element name="complex" type="CT_Complex"/>
<xsd:element name="left" type="CT_StrokeChild"/>
<xsd:element name="top" type="CT_StrokeChild"/>
<xsd:element name="right" type="CT_StrokeChild"/>
<xsd:element name="bottom" type="CT_StrokeChild"/>
<xsd:element name="column" type="CT_StrokeChild"/>
<xsd:element name="clippath" type="CT_ClipPath"/>
<xsd:element name="fill" type="CT_Fill"/>
<xsd:complexType name="CT_Skew">
<xsd:attributeGroup ref="v:AG_Ext"/>
<xsd:attribute name="id" type="xsd:string" use="optional"/>
<xsd:attribute name="on" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="offset" type="xsd:string" use="optional"/>
<xsd:attribute name="origin" type="xsd:string" use="optional"/>
<xsd:attribute name="matrix" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_Extrusion">
<xsd:attributeGroup ref="v:AG_Ext"/>
<xsd:attribute name="on" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="type" type="ST_ExtrusionType" default="parallel" use="optional"/>
<xsd:attribute name="render" type="ST_ExtrusionRender" default="solid" use="optional"/>
<xsd:attribute name="viewpointorigin" type="xsd:string" use="optional"/>
<xsd:attribute name="viewpoint" type="xsd:string" use="optional"/>
<xsd:attribute name="plane" type="ST_ExtrusionPlane" default="XY" use="optional"/>
<xsd:attribute name="skewangle" type="xsd:float" use="optional"/>
<xsd:attribute name="skewamt" type="xsd:string" use="optional"/>
<xsd:attribute name="foredepth" type="xsd:string" use="optional"/>
<xsd:attribute name="backdepth" type="xsd:string" use="optional"/>
<xsd:attribute name="orientation" type="xsd:string" use="optional"/>
<xsd:attribute name="orientationangle" type="xsd:float" use="optional"/>
<xsd:attribute name="lockrotationcenter" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="autorotationcenter" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="rotationcenter" type="xsd:string" use="optional"/>
<xsd:attribute name="rotationangle" type="xsd:string" use="optional"/>
<xsd:attribute name="colormode" type="ST_ColorMode" use="optional"/>
<xsd:attribute name="color" type="s:ST_ColorType" use="optional"/>
<xsd:attribute name="shininess" type="xsd:float" use="optional"/>
<xsd:attribute name="specularity" type="xsd:string" use="optional"/>
<xsd:attribute name="diffusity" type="xsd:string" use="optional"/>
<xsd:attribute name="metal" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="edge" type="xsd:string" use="optional"/>
<xsd:attribute name="facet" type="xsd:string" use="optional"/>
<xsd:attribute name="lightface" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="brightness" type="xsd:string" use="optional"/>
<xsd:attribute name="lightposition" type="xsd:string" use="optional"/>
<xsd:attribute name="lightlevel" type="xsd:string" use="optional"/>
<xsd:attribute name="lightharsh" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="lightposition2" type="xsd:string" use="optional"/>
<xsd:attribute name="lightlevel2" type="xsd:string" use="optional"/>
<xsd:attribute name="lightharsh2" type="s:ST_TrueFalse" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_Callout">
<xsd:attributeGroup ref="v:AG_Ext"/>
<xsd:attribute name="on" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="type" type="xsd:string" use="optional"/>
<xsd:attribute name="gap" type="xsd:string" use="optional"/>
<xsd:attribute name="angle" type="ST_Angle" use="optional"/>
<xsd:attribute name="dropauto" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="drop" type="ST_CalloutDrop" use="optional"/>
<xsd:attribute name="distance" type="xsd:string" use="optional"/>
<xsd:attribute name="lengthspecified" type="s:ST_TrueFalse" default="f" use="optional"/>
<xsd:attribute name="length" type="xsd:string" use="optional"/>
<xsd:attribute name="accentbar" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="textborder" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="minusx" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="minusy" type="s:ST_TrueFalse" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_Lock">
<xsd:attributeGroup ref="v:AG_Ext"/>
<xsd:attribute name="position" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="selection" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="grouping" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="ungrouping" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="rotation" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="cropping" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="verticies" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="adjusthandles" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="text" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="aspectratio" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="shapetype" type="s:ST_TrueFalse" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_OLEObject">
<xsd:sequence>
<xsd:element name="LinkType" type="ST_OLELinkType" minOccurs="0"/>
<xsd:element name="LockedField" type="s:ST_TrueFalseBlank" minOccurs="0"/>
<xsd:element name="FieldCodes" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="Type" type="ST_OLEType" use="optional"/>
<xsd:attribute name="ProgID" type="xsd:string" use="optional"/>
<xsd:attribute name="ShapeID" type="xsd:string" use="optional"/>
<xsd:attribute name="DrawAspect" type="ST_OLEDrawAspect" use="optional"/>
<xsd:attribute name="ObjectID" type="xsd:string" use="optional"/>
<xsd:attribute ref="r:id" use="optional"/>
<xsd:attribute name="UpdateMode" type="ST_OLEUpdateMode" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_Complex">
<xsd:attributeGroup ref="v:AG_Ext"/>
</xsd:complexType>
<xsd:complexType name="CT_StrokeChild">
<xsd:attributeGroup ref="v:AG_Ext"/>
<xsd:attribute name="on" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="weight" type="xsd:string" use="optional"/>
<xsd:attribute name="color" type="s:ST_ColorType" use="optional"/>
<xsd:attribute name="color2" type="s:ST_ColorType" use="optional"/>
<xsd:attribute name="opacity" type="xsd:string" use="optional"/>
<xsd:attribute name="linestyle" type="v:ST_StrokeLineStyle" use="optional"/>
<xsd:attribute name="miterlimit" type="xsd:decimal" use="optional"/>
<xsd:attribute name="joinstyle" type="v:ST_StrokeJoinStyle" use="optional"/>
<xsd:attribute name="endcap" type="v:ST_StrokeEndCap" use="optional"/>
<xsd:attribute name="dashstyle" type="xsd:string" use="optional"/>
<xsd:attribute name="insetpen" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="filltype" type="v:ST_FillType" use="optional"/>
<xsd:attribute name="src" type="xsd:string" use="optional"/>
<xsd:attribute name="imageaspect" type="v:ST_ImageAspect" use="optional"/>
<xsd:attribute name="imagesize" type="xsd:string" use="optional"/>
<xsd:attribute name="imagealignshape" type="s:ST_TrueFalse" use="optional"/>
<xsd:attribute name="startarrow" type="v:ST_StrokeArrowType" use="optional"/>
<xsd:attribute name="startarrowwidth" type="v:ST_StrokeArrowWidth" use="optional"/>
<xsd:attribute name="startarrowlength" type="v:ST_StrokeArrowLength" use="optional"/>
<xsd:attribute name="endarrow" type="v:ST_StrokeArrowType" use="optional"/>
<xsd:attribute name="endarrowwidth" type="v:ST_StrokeArrowWidth" use="optional"/>
<xsd:attribute name="endarrowlength" type="v:ST_StrokeArrowLength" use="optional"/>
<xsd:attribute ref="href"/>
<xsd:attribute ref="althref"/>
<xsd:attribute ref="title"/>
<xsd:attribute ref="forcedash"/>
</xsd:complexType>
<xsd:complexType name="CT_ClipPath">
<xsd:attribute name="v" type="xsd:string" use="required" form="qualified"/>
</xsd:complexType>
<xsd:complexType name="CT_Fill">
<xsd:attributeGroup ref="v:AG_Ext"/>
<xsd:attribute name="type" type="ST_FillType"/>
</xsd:complexType>
<xsd:simpleType name="ST_RType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="arc"/>
<xsd:enumeration value="callout"/>
<xsd:enumeration value="connector"/>
<xsd:enumeration value="align"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_How">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="top"/>
<xsd:enumeration value="middle"/>
<xsd:enumeration value="bottom"/>
<xsd:enumeration value="left"/>
<xsd:enumeration value="center"/>
<xsd:enumeration value="right"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_BWMode">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="color"/>
<xsd:enumeration value="auto"/>
<xsd:enumeration value="grayScale"/>
<xsd:enumeration value="lightGrayscale"/>
<xsd:enumeration value="inverseGray"/>
<xsd:enumeration value="grayOutline"/>
<xsd:enumeration value="highContrast"/>
<xsd:enumeration value="black"/>
<xsd:enumeration value="white"/>
<xsd:enumeration value="hide"/>
<xsd:enumeration value="undrawn"/>
<xsd:enumeration value="blackTextAndLines"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_ScreenSize">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="544,376"/>
<xsd:enumeration value="640,480"/>
<xsd:enumeration value="720,512"/>
<xsd:enumeration value="800,600"/>
<xsd:enumeration value="1024,768"/>
<xsd:enumeration value="1152,862"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_InsetMode">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="auto"/>
<xsd:enumeration value="custom"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_ColorMode">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="auto"/>
<xsd:enumeration value="custom"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_ContentType">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="ST_DiagramLayout">
<xsd:restriction base="xsd:integer">
<xsd:enumeration value="0"/>
<xsd:enumeration value="1"/>
<xsd:enumeration value="2"/>
<xsd:enumeration value="3"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_ExtrusionType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="perspective"/>
<xsd:enumeration value="parallel"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_ExtrusionRender">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="solid"/>
<xsd:enumeration value="wireFrame"/>
<xsd:enumeration value="boundingCube"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_ExtrusionPlane">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="XY"/>
<xsd:enumeration value="ZX"/>
<xsd:enumeration value="YZ"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_Angle">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="any"/>
<xsd:enumeration value="30"/>
<xsd:enumeration value="45"/>
<xsd:enumeration value="60"/>
<xsd:enumeration value="90"/>
<xsd:enumeration value="auto"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_CalloutDrop">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="ST_CalloutPlacement">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="top"/>
<xsd:enumeration value="center"/>
<xsd:enumeration value="bottom"/>
<xsd:enumeration value="user"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_ConnectorType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="none"/>
<xsd:enumeration value="straight"/>
<xsd:enumeration value="elbow"/>
<xsd:enumeration value="curved"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_HrAlign">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="left"/>
<xsd:enumeration value="right"/>
<xsd:enumeration value="center"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_ConnectType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="none"/>
<xsd:enumeration value="rect"/>
<xsd:enumeration value="segments"/>
<xsd:enumeration value="custom"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_OLELinkType">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="ST_OLEType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Embed"/>
<xsd:enumeration value="Link"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_OLEDrawAspect">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Content"/>
<xsd:enumeration value="Icon"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_OLEUpdateMode">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Always"/>
<xsd:enumeration value="OnCall"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_FillType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="gradientCenter"/>
<xsd:enumeration value="solid"/>
<xsd:enumeration value="pattern"/>
<xsd:enumeration value="tile"/>
<xsd:enumeration value="frame"/>
<xsd:enumeration value="gradientUnscaled"/>
<xsd:enumeration value="gradientRadial"/>
<xsd:enumeration value="gradient"/>
<xsd:enumeration value="background"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="urn:schemas-microsoft-com:office:powerpoint"
targetNamespace="urn:schemas-microsoft-com:office:powerpoint" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:element name="iscomment" type="CT_Empty"/>
<xsd:element name="textdata" type="CT_Rel"/>
<xsd:complexType name="CT_Empty"/>
<xsd:complexType name="CT_Rel">
<xsd:attribute name="id" type="xsd:string"/>
</xsd:complexType>
</xsd:schema>
@@ -0,0 +1,108 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="urn:schemas-microsoft-com:office:excel"
xmlns:s="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
targetNamespace="urn:schemas-microsoft-com:office:excel" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:import namespace="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
schemaLocation="shared-commonSimpleTypes.xsd"/>
<xsd:element name="ClientData" type="CT_ClientData"/>
<xsd:complexType name="CT_ClientData">
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="MoveWithCells" type="s:ST_TrueFalseBlank"/>
<xsd:element name="SizeWithCells" type="s:ST_TrueFalseBlank"/>
<xsd:element name="Anchor" type="xsd:string"/>
<xsd:element name="Locked" type="s:ST_TrueFalseBlank"/>
<xsd:element name="DefaultSize" type="s:ST_TrueFalseBlank"/>
<xsd:element name="PrintObject" type="s:ST_TrueFalseBlank"/>
<xsd:element name="Disabled" type="s:ST_TrueFalseBlank"/>
<xsd:element name="AutoFill" type="s:ST_TrueFalseBlank"/>
<xsd:element name="AutoLine" type="s:ST_TrueFalseBlank"/>
<xsd:element name="AutoPict" type="s:ST_TrueFalseBlank"/>
<xsd:element name="FmlaMacro" type="xsd:string"/>
<xsd:element name="TextHAlign" type="xsd:string"/>
<xsd:element name="TextVAlign" type="xsd:string"/>
<xsd:element name="LockText" type="s:ST_TrueFalseBlank"/>
<xsd:element name="JustLastX" type="s:ST_TrueFalseBlank"/>
<xsd:element name="SecretEdit" type="s:ST_TrueFalseBlank"/>
<xsd:element name="Default" type="s:ST_TrueFalseBlank"/>
<xsd:element name="Help" type="s:ST_TrueFalseBlank"/>
<xsd:element name="Cancel" type="s:ST_TrueFalseBlank"/>
<xsd:element name="Dismiss" type="s:ST_TrueFalseBlank"/>
<xsd:element name="Accel" type="xsd:integer"/>
<xsd:element name="Accel2" type="xsd:integer"/>
<xsd:element name="Row" type="xsd:integer"/>
<xsd:element name="Column" type="xsd:integer"/>
<xsd:element name="Visible" type="s:ST_TrueFalseBlank"/>
<xsd:element name="RowHidden" type="s:ST_TrueFalseBlank"/>
<xsd:element name="ColHidden" type="s:ST_TrueFalseBlank"/>
<xsd:element name="VTEdit" type="xsd:integer"/>
<xsd:element name="MultiLine" type="s:ST_TrueFalseBlank"/>
<xsd:element name="VScroll" type="s:ST_TrueFalseBlank"/>
<xsd:element name="ValidIds" type="s:ST_TrueFalseBlank"/>
<xsd:element name="FmlaRange" type="xsd:string"/>
<xsd:element name="WidthMin" type="xsd:integer"/>
<xsd:element name="Sel" type="xsd:integer"/>
<xsd:element name="NoThreeD2" type="s:ST_TrueFalseBlank"/>
<xsd:element name="SelType" type="xsd:string"/>
<xsd:element name="MultiSel" type="xsd:string"/>
<xsd:element name="LCT" type="xsd:string"/>
<xsd:element name="ListItem" type="xsd:string"/>
<xsd:element name="DropStyle" type="xsd:string"/>
<xsd:element name="Colored" type="s:ST_TrueFalseBlank"/>
<xsd:element name="DropLines" type="xsd:integer"/>
<xsd:element name="Checked" type="xsd:integer"/>
<xsd:element name="FmlaLink" type="xsd:string"/>
<xsd:element name="FmlaPict" type="xsd:string"/>
<xsd:element name="NoThreeD" type="s:ST_TrueFalseBlank"/>
<xsd:element name="FirstButton" type="s:ST_TrueFalseBlank"/>
<xsd:element name="FmlaGroup" type="xsd:string"/>
<xsd:element name="Val" type="xsd:integer"/>
<xsd:element name="Min" type="xsd:integer"/>
<xsd:element name="Max" type="xsd:integer"/>
<xsd:element name="Inc" type="xsd:integer"/>
<xsd:element name="Page" type="xsd:integer"/>
<xsd:element name="Horiz" type="s:ST_TrueFalseBlank"/>
<xsd:element name="Dx" type="xsd:integer"/>
<xsd:element name="MapOCX" type="s:ST_TrueFalseBlank"/>
<xsd:element name="CF" type="ST_CF"/>
<xsd:element name="Camera" type="s:ST_TrueFalseBlank"/>
<xsd:element name="RecalcAlways" type="s:ST_TrueFalseBlank"/>
<xsd:element name="AutoScale" type="s:ST_TrueFalseBlank"/>
<xsd:element name="DDE" type="s:ST_TrueFalseBlank"/>
<xsd:element name="UIObj" type="s:ST_TrueFalseBlank"/>
<xsd:element name="ScriptText" type="xsd:string"/>
<xsd:element name="ScriptExtended" type="xsd:string"/>
<xsd:element name="ScriptLanguage" type="xsd:nonNegativeInteger"/>
<xsd:element name="ScriptLocation" type="xsd:nonNegativeInteger"/>
<xsd:element name="FmlaTxbx" type="xsd:string"/>
</xsd:choice>
<xsd:attribute name="ObjectType" type="ST_ObjectType" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ST_CF">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="ST_ObjectType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Button"/>
<xsd:enumeration value="Checkbox"/>
<xsd:enumeration value="Dialog"/>
<xsd:enumeration value="Drop"/>
<xsd:enumeration value="Edit"/>
<xsd:enumeration value="GBox"/>
<xsd:enumeration value="Label"/>
<xsd:enumeration value="LineA"/>
<xsd:enumeration value="List"/>
<xsd:enumeration value="Movie"/>
<xsd:enumeration value="Note"/>
<xsd:enumeration value="Pict"/>
<xsd:enumeration value="Radio"/>
<xsd:enumeration value="RectA"/>
<xsd:enumeration value="Scroll"/>
<xsd:enumeration value="Spin"/>
<xsd:enumeration value="Shape"/>
<xsd:enumeration value="Group"/>
<xsd:enumeration value="Rect"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="urn:schemas-microsoft-com:office:word"
targetNamespace="urn:schemas-microsoft-com:office:word" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:element name="bordertop" type="CT_Border"/>
<xsd:element name="borderleft" type="CT_Border"/>
<xsd:element name="borderright" type="CT_Border"/>
<xsd:element name="borderbottom" type="CT_Border"/>
<xsd:complexType name="CT_Border">
<xsd:attribute name="type" type="ST_BorderType" use="optional"/>
<xsd:attribute name="width" type="xsd:positiveInteger" use="optional"/>
<xsd:attribute name="shadow" type="ST_BorderShadow" use="optional"/>
</xsd:complexType>
<xsd:element name="wrap" type="CT_Wrap"/>
<xsd:complexType name="CT_Wrap">
<xsd:attribute name="type" type="ST_WrapType" use="optional"/>
<xsd:attribute name="side" type="ST_WrapSide" use="optional"/>
<xsd:attribute name="anchorx" type="ST_HorizontalAnchor" use="optional"/>
<xsd:attribute name="anchory" type="ST_VerticalAnchor" use="optional"/>
</xsd:complexType>
<xsd:element name="anchorlock" type="CT_AnchorLock"/>
<xsd:complexType name="CT_AnchorLock"/>
<xsd:simpleType name="ST_BorderType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="none"/>
<xsd:enumeration value="single"/>
<xsd:enumeration value="thick"/>
<xsd:enumeration value="double"/>
<xsd:enumeration value="hairline"/>
<xsd:enumeration value="dot"/>
<xsd:enumeration value="dash"/>
<xsd:enumeration value="dotDash"/>
<xsd:enumeration value="dashDotDot"/>
<xsd:enumeration value="triple"/>
<xsd:enumeration value="thinThickSmall"/>
<xsd:enumeration value="thickThinSmall"/>
<xsd:enumeration value="thickBetweenThinSmall"/>
<xsd:enumeration value="thinThick"/>
<xsd:enumeration value="thickThin"/>
<xsd:enumeration value="thickBetweenThin"/>
<xsd:enumeration value="thinThickLarge"/>
<xsd:enumeration value="thickThinLarge"/>
<xsd:enumeration value="thickBetweenThinLarge"/>
<xsd:enumeration value="wave"/>
<xsd:enumeration value="doubleWave"/>
<xsd:enumeration value="dashedSmall"/>
<xsd:enumeration value="dashDotStroked"/>
<xsd:enumeration value="threeDEmboss"/>
<xsd:enumeration value="threeDEngrave"/>
<xsd:enumeration value="HTMLOutset"/>
<xsd:enumeration value="HTMLInset"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_BorderShadow">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="t"/>
<xsd:enumeration value="true"/>
<xsd:enumeration value="f"/>
<xsd:enumeration value="false"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_WrapType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="topAndBottom"/>
<xsd:enumeration value="square"/>
<xsd:enumeration value="none"/>
<xsd:enumeration value="tight"/>
<xsd:enumeration value="through"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_WrapSide">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="both"/>
<xsd:enumeration value="left"/>
<xsd:enumeration value="right"/>
<xsd:enumeration value="largest"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_HorizontalAnchor">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="margin"/>
<xsd:enumeration value="page"/>
<xsd:enumeration value="text"/>
<xsd:enumeration value="char"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ST_VerticalAnchor">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="margin"/>
<xsd:enumeration value="page"/>
<xsd:enumeration value="text"/>
<xsd:enumeration value="line"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
File diff suppressed because it is too large Load Diff
+164
View File
@@ -0,0 +1,164 @@
#!/usr/bin/env python3
"""Валидация XML-частей samples/*.docx против XSD ECMA-376 (transitional).
Схемы — docs/standards/schema/transitional/ (полный набор ECMA-376 5-го изд.).
wml.xsd — word/*.xml (document/styles/settings/header/footer/...);
dml-chart.xsd — word/charts/chart*.xml; dml-diagram.xsd — word/diagrams/*;
dml-main.xsd — word/theme/theme*.xml.
Два допущения, оба по ECMA-376 Part 1:
* xml:space — wml.xsd/shared-math.xsd ссылаются на атрибут xml:space без
импорта XML-namespace (§5.1.2: xml:* — предопределённые атрибуты);
XSD-линтеру нужен явный импорт — подмешиваем xml.xsd в копию схемы в tmp.
* mc:AlternateContent (§15.2.15) — MC-элементы допускаются в любом
расширяемом содержимом и не моделируются схемой; валидируем Fallback-
ветку (Choice — расширение, необязательное для conformant-чтения).
"""
import os, re, sys, shutil, tempfile, zipfile
from lxml import etree
REPO = os.path.dirname(os.path.abspath(__file__))
SCHEMA_DIR = os.path.join(REPO, "schema", "transitional")
XML_XSD = """<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.w3.org/XML/1998/namespace">
<xsd:attribute name="space"><xsd:simpleType>
<xsd:restriction base="xsd:NMTOKEN"><xsd:enumeration value="default"/>
<xsd:enumeration value="preserve"/></xsd:restriction>
</xsd:simpleType></xsd:attribute>
<xsd:attribute name="lang" type="xsd:language"/>
<xsd:attribute name="base" type="xsd:anyURI"/>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:schema>
"""
_cache = {}
_tmp = None
def tmpdir():
global _tmp
if _tmp is None:
_tmp = tempfile.mkdtemp(prefix="ecma-xsd-")
shutil.copytree(SCHEMA_DIR, _tmp, dirs_exist_ok=True)
with open(os.path.join(_tmp, "xml.xsd"), "w") as f:
f.write(XML_XSD)
for name in ("wml.xsd", "shared-math.xsd"):
p = os.path.join(_tmp, name)
s = open(p).read()
if 'schemaLocation="xml.xsd"' not in s:
if "xmlns:xml=" not in s:
s = re.sub(r"(<xsd:schema\b[^>]*)(>)",
r'\1 xmlns:xml="http://www.w3.org/XML/1998/namespace"\2', s, count=1)
s = re.sub(r"(<xsd:schema\b[^>]*>)",
r'\1<xsd:import namespace="http://www.w3.org/XML/1998/namespace"'
r' schemaLocation="xml.xsd"/>', s, count=1)
with open(p, "w") as f:
f.write(s)
return _tmp
def schema_for(name):
if re.match(r"word/(document|footnotes|endnotes|styles|settings|fontTable"
r"|webSettings|numbering|(?:header|footer)\d+)\.xml$", name):
return "wml.xsd"
if re.match(r"word/charts/chart\d+\.xml$", name):
return "dml-chart.xsd"
# drawing*.xml — dsp: (2008 diagram drawing, [MS-ODRAWXML]) — вне ECMA, не маппится.
if re.match(r"word/diagrams/(data|layout|quickStyle|colors)\d+\.xml$", name):
return "dml-diagram.xsd"
if re.match(r"word/theme/theme\d+\.xml$", name):
return "dml-main.xsd"
return None
MC = "{http://schemas.openxmlformats.org/markup-compatibility/2006}"
def strip_mc(el):
"""MC-обработка по ECMA-376 §15.2.15 перед XSD-валидацией.
* mc:AlternateContent -> mc:Fallback-дети (§15.2.15.2);
* mc:Ignorable (§15.2.15.1) — перечисленные префиксы: consumer, не
понимающий namespace, ОБЯЗАН игнорировать его атрибуты и элементы ->
снимаем атрибуты и вырезаем элементы этих namespace'ов;
* сами mc:*-атрибуты (Ignorable/Preserve/ProcessAttributes) — не часть
схемы, снимаем.
"""
ignorable = set()
for e in el.iter():
ig = e.get(f"{MC}Ignorable")
if ig:
for tok in ig.split():
ns = e.nsmap.get(tok)
if ns:
ignorable.add(ns)
for e in el.iter():
for a in list(e.attrib):
ns = a[1:a.index("}")] if a.startswith("{") else ""
if a.startswith(MC) or ns in ignorable:
del e.attrib[a]
for ns in ignorable:
for e in list(el.iter(f"{{{ns}}}*")):
parent = e.getparent()
if parent is not None:
parent.remove(e)
for ac in list(el.iter(f"{MC}AlternateContent")):
parent = ac.getparent()
if parent is None:
continue
fb = ac.find(f"{MC}Fallback")
idx = list(parent).index(ac)
parent.remove(ac)
if fb is not None:
for i, child in enumerate(list(fb)):
parent.insert(idx + i, child)
def get_schema(fname):
if fname not in _cache:
_cache[fname] = etree.XMLSchema(etree.parse(os.path.join(tmpdir(), fname)))
return _cache[fname]
def validate(docx):
problems, skipped = [], []
with zipfile.ZipFile(docx) as z:
for name in z.namelist():
if not name.endswith(".xml"):
continue
sf = schema_for(name)
if sf is None:
if name.startswith("word/") and "rels" not in name:
skipped.append(name)
continue
try:
doc = etree.fromstring(z.read(name))
except etree.XMLSyntaxError as e:
problems.append((name, f"not well-formed: {e}"))
continue
strip_mc(doc)
try:
schema = get_schema(sf)
except Exception as e:
problems.append((name, f"schema load failed: {e}"))
continue
if not schema.validate(doc):
for err in schema.error_log:
problems.append((name, f"{err.message} (line {err.line})"))
return problems, skipped
rc = 0
for docx in sys.argv[1:]:
problems, skipped = validate(docx)
print(("OK " if not problems else "FAIL ") + os.path.basename(docx)
+ (f" (без XSD: {', '.join(skipped)})" if skipped else ""))
for name, msg in problems[:40]:
print(f" {name}: {msg}")
if len(problems) > 40:
print(f" ... ещё {len(problems)-40}")
if problems:
rc = 1
sys.exit(rc)
@@ -0,0 +1,425 @@
package ru.pjandro.wordpdf.internal.chart;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.geom.Path2D;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
/**
* Объёмные декартовы графики: c:bar3DChart, c:line3DChart, c:area3DChart
* (ECMA-376 §21.2.2.19/.101/.122). Камера — та же, что у поверхности
* ({@link Surface3dPainter#project}): u — категория (ширина), v — ряд
* (глубина), w — значение (высота); вписка равномерным масштабом в поля
* {@link Surface3dPainter#GUTTER_LEFT} и т.д.
*
* bar3D: кластерные колонки — ряды уходят в глубину (ширина полосы
* c:gapWidth, ширина колонки — полоса·(1−max(0,c:overlap))/nSer); торец
* затемняется (псевдо-свет, калибровка — Cartesian3dPainterTest).
* line3D: полилиния ряда на своей глубине, лента-толщина не имитируется;
* area3D: стена ряда от пола до значений, полупрозрачная, как AREA.
* Ограничения: c:shape (cylinder/cone/pyramid…) рисуется как box;
* c:barDir="bar" — горизонтальная ориентация тех же боксов.
*
* Регрессия — Cartesian3dPainterTest, фикстура samples/chart-types.docx
* (WordPdfConverterTest#chartTypes_allTypesRenderAsImages).
*/
final class Cartesian3dPainter {
private Cartesian3dPainter() {
}
/** Линия/область рисуется только из двух и более точек (как у CartesianPainter). */
private static final int MIN_POLYLINE_POINTS = 2;
/** Вписка модельно-экранных координат в box (как у Surface3dPainter). */
private record Fit(double scale, double offX, double offY) {
}
/** Одна 3D-колонка: 8 спроецированных углов + цвет + глубина центра. */
private record Column(Surface3dPainter.Node center,
Surface3dPainter.Node[][][] corners, Color color) {
}
static void paint(Graphics2D g, ChartSpec spec, Rectangle2D box, List<Color> palette) {
int nSer = spec.series.size();
int nCat = 0;
for (ChartSpec.Series s : spec.series) {
nCat = Math.max(nCat, s.values.size());
}
if (nSer == 0 || nCat == 0) {
return;
}
ChartSpec.AxisSpec valAxis = spec.valAxis != null
? spec.valAxis : new ChartSpec.AxisSpec();
ChartSpec.AxisSpec catAxis = spec.catAxis != null
? spec.catAxis : new ChartSpec.AxisSpec();
double[] range = ChartRenderer.valueRange(spec);
double[] bounds = ChartRenderer.axisBounds(valAxis, range[0], range[1]);
double lo = bounds[0];
double hi = bounds[1];
double unit = bounds[2];
double span = Math.max(1e-9, hi - lo);
double rotX = Math.toRadians(spec.rotX);
double rotY = -Math.toRadians(spec.rotY);
double persp = spec.perspective;
double leftGutter = Surface3dPainter.GUTTER_LEFT * box.getWidth();
double rightGutter = Surface3dPainter.GUTTER_RIGHT * box.getWidth();
double topGutter = Surface3dPainter.GUTTER_TOP * box.getHeight();
double bottomGutter = Surface3dPainter.GUTTER_BOTTOM * box.getHeight();
double availW = Math.max(10, box.getWidth() - leftGutter - rightGutter);
double availH = Math.max(10, box.getHeight() - topGutter - bottomGutter);
double depthScale = Surface3dPainter.DEPTH_RATIO * Math.max(0.05,
spec.depthPercent / 100.0);
double heightScale = Surface3dPainter.HEIGHT_RATIO * availH / availW;
double floorW = -0.5 * heightScale;
boolean bar3d = spec.type == ChartSpec.Type.BAR3D;
boolean horizontal = bar3d && spec.bar3dHorizontal;
List<Surface3dPainter.Node> nodes = new ArrayList<>();
Surface3dPainter.Node[] floor = {
proj(-0.5, -0.5, floorW, rotX, rotY, depthScale, persp),
proj(0.5, -0.5, floorW, rotX, rotY, depthScale, persp),
proj(0.5, 0.5, floorW, rotX, rotY, depthScale, persp),
proj(-0.5, 0.5, floorW, rotX, rotY, depthScale, persp),
};
List<Double> tickValues = new ArrayList<>();
List<Surface3dPainter.Node> valueAnchors = new ArrayList<>();
for (double v = lo; v <= hi + unit / 2; v += unit) {
tickValues.add(v);
valueAnchors.add(horizontal
? proj(uVal(v, lo, span), -0.5, floorW, rotX, rotY, depthScale, persp)
: proj(-0.5, -0.5, wOf(v, lo, span, heightScale),
rotX, rotY, depthScale, persp));
}
List<Column> columns = new ArrayList<>();
double bw = 1.0 / nCat * 100.0 / (100.0 + spec.gapWidth);
double colW = bw * (100.0 - Math.max(0, spec.overlap)) / 100.0 / Math.max(1, nSer);
for (int si = 0; si < nSer; si++) {
ChartSpec.Series s = spec.series.get(si);
double v = vOf(si, nSer);
for (int c = 0; c < nCat; c++) {
Double val = c < s.values.size() ? s.values.get(c) : null;
if (val == null) {
continue;
}
if (bar3d) {
columns.add(makeColumn(s.fillAt(si, palette), c,
si - (nSer - 1) / 2.0, nCat, val, lo, span, heightScale,
floorW, bw, colW, horizontal, rotX, rotY, depthScale,
persp, nodes));
} else {
double w = wOf(val, lo, span, heightScale);
double u = uOf(c, nCat);
nodes.add(proj(u, v, w, rotX, rotY, depthScale, persp));
if (spec.type == ChartSpec.Type.AREA3D) {
nodes.add(proj(u, v, floorW, rotX, rotY, depthScale, persp));
}
}
}
}
nodes.addAll(List.of(floor));
nodes.addAll(valueAnchors);
Fit fit = fit(nodes, box, leftGutter, topGutter, availW, availH);
// Каркас: контур пола.
Color axisColor = catAxis.axisLineColor != null
? catAxis.axisLineColor : valAxis.axisLineColor;
if (axisColor != null) {
g.setColor(axisColor);
g.setStroke(new BasicStroke(0.75f));
Path2D outline = new Path2D.Double();
for (int i = 0; i < floor.length; i++) {
double[] p = screen(floor[i], fit);
if (i == 0) {
outline.moveTo(p[0], p[1]);
} else {
outline.lineTo(p[0], p[1]);
}
}
outline.closePath();
g.draw(outline);
}
if (bar3d) {
drawColumns(g, columns, fit);
} else if (spec.type == ChartSpec.Type.LINE3D) {
drawLines(g, spec, palette, lo, span, heightScale, nCat, nSer,
rotX, rotY, depthScale, persp, fit);
} else {
drawAreas(g, spec, palette, lo, span, heightScale, floorW, nCat, nSer,
rotX, rotY, depthScale, persp, fit);
}
drawLabels(g, spec, tickValues, valueAnchors, nCat, horizontal,
rotX, rotY, depthScale, floorW, persp, fit);
}
/** Колонка bar3D: вертикальная (значение по w) или горизонтальная (по u). */
private static Column makeColumn(Color color, int c, double serOffset, int nCat,
double val,
double lo, double span, double heightScale,
double floorW, double bw, double colW,
boolean horizontal,
double rotX, double rotY, double depthScale,
double persp, List<Surface3dPainter.Node> nodes) {
double u0;
double u1;
double v0;
double v1;
double wTop;
if (horizontal) {
double band = (c + 0.5) / nCat - 0.5;
double vc = band + serOffset * colW;
v0 = vc - colW / 2.0;
v1 = vc + colW / 2.0;
double ua = uVal(0, lo, span);
double ub = uVal(val, lo, span);
u0 = Math.min(ua, ub);
u1 = Math.max(ua, ub);
wTop = floorW + colW * heightScale;
} else {
double uc = uOf(c, nCat);
u0 = uc - bw / 2.0;
u1 = uc + bw / 2.0;
double vc = serOffset * colW;
v0 = vc - colW / 2.0;
v1 = vc + colW / 2.0;
wTop = wOf(val, lo, span, heightScale);
}
double[] us = {u0, u1};
double[] vs = {v0, v1};
double[] ws = {floorW, wTop};
Surface3dPainter.Node[][][] corners = new Surface3dPainter.Node[2][2][2];
for (int u = 0; u < 2; u++) {
for (int v = 0; v < 2; v++) {
for (int w = 0; w < 2; w++) {
corners[u][v][w] = proj(us[u], vs[v], ws[w],
rotX, rotY, depthScale, persp);
nodes.add(corners[u][v][w]);
}
}
}
Surface3dPainter.Node center = proj((u0 + u1) / 2.0, (v0 + v1) / 2.0,
(floorW + wTop) / 2.0, rotX, rotY, depthScale, persp);
return new Column(center, corners, color);
}
/** Колонки от дальних к ближним: верх/перед цветом ряда, торец темнее. */
private static void drawColumns(Graphics2D g, List<Column> columns, Fit fit) {
columns.sort(Comparator.comparingDouble((Column col) -> col.center.depth())
.reversed());
for (Column col : columns) {
g.setColor(col.color);
// верх: w = 1
quad(g, col, fit, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1);
// перед: v = 0 (при rotY=0 ближняя к камере сторона)
quad(g, col, fit, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1);
// торец u = max — затемнён (псевдо-свет, калибровка тестом)
g.setColor(col.color.darker());
quad(g, col, fit, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1);
}
}
/** Грань по четырём углам (u, v, w) — индексы массивов corners. */
private static void quad(Graphics2D g, Column col, Fit fit,
int u1, int v1, int w1, int u2, int v2, int w2,
int u3, int v3, int w3, int u4, int v4, int w4) {
int[] uu = {u1, u2, u3, u4};
int[] vv = {v1, v2, v3, v4};
int[] ww = {w1, w2, w3, w4};
Path2D p = new Path2D.Double();
for (int i = 0; i < 4; i++) {
double[] s = screen(col.corners[uu[i]][vv[i]][ww[i]], fit);
if (i == 0) {
p.moveTo(s[0], s[1]);
} else {
p.lineTo(s[0], s[1]);
}
}
p.closePath();
g.fill(p);
}
private static void drawLines(Graphics2D g, ChartSpec spec, List<Color> palette,
double lo, double span, double heightScale,
int nCat, int nSer,
double rotX, double rotY, double depthScale,
double persp, Fit fit) {
for (int si = 0; si < nSer; si++) {
ChartSpec.Series s = spec.series.get(si);
Color c = s.lineColor != null ? s.lineColor : s.fillAt(si, palette);
double v = vOf(si, nSer);
List<Double> xs = new ArrayList<>();
List<Double> ys = new ArrayList<>();
for (int i = 0; i < s.values.size(); i++) {
Double val = s.values.get(i);
if (val == null) {
continue;
}
double[] p = screen(proj(uOf(i, nCat), v,
wOf(val, lo, span, heightScale), rotX, rotY, depthScale, persp), fit);
xs.add(p[0]);
ys.add(p[1]);
}
if (xs.size() >= MIN_POLYLINE_POINTS) {
g.setColor(c);
g.setStroke(new BasicStroke((float) (s.lineWidth > 0 ? s.lineWidth : 2.25),
BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
g.draw(ChartRenderer.polyline(xs, ys, false));
}
if (s.marker) {
for (int i = 0; i < xs.size(); i++) {
CartesianPainter.drawMarker(g, xs.get(i), ys.get(i), false, c);
}
}
}
}
/** Стены area3D: от дальних рядов к ближним, полупрозрачная заливка. */
private static void drawAreas(Graphics2D g, ChartSpec spec, List<Color> palette,
double lo, double span, double heightScale,
double floorW, int nCat, int nSer,
double rotX, double rotY, double depthScale,
double persp, Fit fit) {
for (int si = nSer - 1; si >= 0; si--) {
ChartSpec.Series s = spec.series.get(si);
Color c = s.fill != null ? s.fill : s.fillAt(si, palette);
double v = vOf(si, nSer);
List<Double> xs = new ArrayList<>();
List<Double> ys = new ArrayList<>();
List<Double> baseX = new ArrayList<>();
List<Double> baseY = new ArrayList<>();
for (int i = 0; i < s.values.size(); i++) {
Double val = s.values.get(i);
if (val == null) {
continue;
}
double u = uOf(i, nCat);
double[] p = screen(proj(u, v, wOf(val, lo, span, heightScale),
rotX, rotY, depthScale, persp), fit);
double[] b = screen(proj(u, v, floorW, rotX, rotY, depthScale, persp), fit);
xs.add(p[0]);
ys.add(p[1]);
baseX.add(b[0]);
baseY.add(b[1]);
}
if (xs.size() < MIN_POLYLINE_POINTS) {
continue;
}
Path2D wall = new Path2D.Double();
wall.moveTo(xs.get(0), ys.get(0));
for (int i = 1; i < xs.size(); i++) {
wall.lineTo(xs.get(i), ys.get(i));
}
for (int i = baseX.size() - 1; i >= 0; i--) {
wall.lineTo(baseX.get(i), baseY.get(i));
}
wall.closePath();
g.setColor(DrawMlColor.withAlpha(c, 0.55));
g.fill(wall);
g.setColor(c);
g.setStroke(new BasicStroke(1.2f));
g.draw(ChartRenderer.polyline(xs, ys, false));
}
}
/** Подписи: значения — вдоль переднего левого ребра, категории — нижнего. */
private static void drawLabels(Graphics2D g, ChartSpec spec, List<Double> tickValues,
List<Surface3dPainter.Node> valueAnchors, int nCat,
boolean horizontal, double rotX, double rotY,
double depthScale, double floorW, double persp,
Fit fit) {
ChartSpec.AxisSpec valAxis = spec.valAxis != null
? spec.valAxis : new ChartSpec.AxisSpec();
ChartSpec.AxisSpec catAxis = spec.catAxis != null
? spec.catAxis : new ChartSpec.AxisSpec();
DrawMlText.Style vs = valAxis.labelStyle;
if (vs != null) {
double h = DrawMlText.textHeight(vs) + 2;
for (int i = 0; i < valueAnchors.size(); i++) {
double[] p = screen(valueAnchors.get(i), fit);
String label = ChartRenderer.formatValue(tickValues.get(i), valAxis.numFmt);
double w = DrawMlText.textWidth(label, vs);
DrawMlText.paint(g, List.of(new DrawMlText.Paragraph(label, vs, "r")),
new Rectangle2D.Double(p[0] - w - 4, p[1] - h / 2, w, h),
"r", "ctr", 1.0);
}
}
DrawMlText.Style cs = catAxis.labelStyle;
if (cs != null) {
List<String> cats = CartesianPainter.categoriesOf(spec, nCat);
double h = DrawMlText.textHeight(cs) + 2;
for (int c = 0; c < nCat; c++) {
String label = cats.get(c);
if (label.isEmpty()) {
continue;
}
Surface3dPainter.Node n = horizontal
? proj(-0.5, (c + 0.5) / nCat - 0.5, floorW,
rotX, rotY, depthScale, persp)
: proj(uOf(c, nCat), -0.5, floorW, rotX, rotY, depthScale, persp);
double[] p = screen(n, fit);
double w = DrawMlText.textWidth(label, cs);
DrawMlText.paint(g, List.of(new DrawMlText.Paragraph(label, cs, "ctr")),
new Rectangle2D.Double(p[0] - w / 2, p[1] + 8, w, h), "ctr", "t", 1.0);
}
}
}
private static Fit fit(List<Surface3dPainter.Node> nodes, Rectangle2D box,
double leftGutter, double topGutter,
double availW, double availH) {
double minX = Double.MAX_VALUE;
double maxX = -Double.MAX_VALUE;
double minY = Double.MAX_VALUE;
double maxY = -Double.MAX_VALUE;
for (Surface3dPainter.Node n : nodes) {
minX = Math.min(minX, n.x());
maxX = Math.max(maxX, n.x());
minY = Math.min(minY, n.y());
maxY = Math.max(maxY, n.y());
}
double scale = Math.min(availW / Math.max(1e-6, maxX - minX),
availH / Math.max(1e-6, maxY - minY));
double offX = box.getX() + leftGutter
+ (availW - (maxX - minX) * scale) / 2 - minX * scale;
double offY = box.getY() + topGutter
+ (availH - (maxY - minY) * scale) / 2 - minY * scale;
return new Fit(scale, offX, offY);
}
private static Surface3dPainter.Node proj(double u, double v, double w,
double rotX, double rotY,
double depthScale, double persp) {
return Surface3dPainter.project(u, v, w, rotX, rotY, depthScale, persp);
}
private static double[] screen(Surface3dPainter.Node n, Fit fit) {
return new double[]{n.x() * fit.scale() + fit.offX(),
n.y() * fit.scale() + fit.offY()};
}
private static double wOf(double v, double lo, double span, double heightScale) {
return ((v - lo) / span - 0.5) * heightScale;
}
/** Значение -> u горизонтальной оси bar3D (протяжка по ширине). */
private static double uVal(double v, double lo, double span) {
return (v - lo) / span - 0.5;
}
private static double uOf(int c, int nCat) {
return (c + 0.5) / nCat - 0.5;
}
private static double vOf(int r, int nSer) {
return nSer > 1 ? (double) r / (nSer - 1) - 0.5 : 0;
}
}
@@ -134,7 +134,7 @@ final class CartesianPainter {
drawValueLabels(g, valLabels, plot, valStyle, lo, hi, horizontal);
}
private static List<String> categoriesOf(ChartSpec spec, int nCat) {
static List<String> categoriesOf(ChartSpec spec, int nCat) {
List<String> cats = new ArrayList<>();
for (int i = 0; i < nCat; i++) {
String label = null;
@@ -248,21 +248,27 @@ final class CartesianPainter {
g.draw(ChartRenderer.polyline(along, cross, false));
}
if (s.marker) {
g.setColor(c);
for (int i = 0; i < along.size(); i++) {
double a = along.get(i);
double b = cross.get(i);
double r = 2.2;
if (horizontal) {
g.fill(new Rectangle2D.Double(a - r, b - r, 2 * r, 2 * r));
} else {
g.fill(new java.awt.geom.Ellipse2D.Double(a - r, b - r, 2 * r, 2 * r));
}
drawMarker(g, along.get(i), cross.get(i), horizontal, c);
}
}
}
}
/**
* Маркер-точка: круг (вертикальные графики) либо квадрат (горизонтальные),
* радиус 2,2 pt. Единая семантика маркера для LINE/SCATTER/RADAR/STOCK.
*/
static void drawMarker(Graphics2D g, double x, double y, boolean square, Color c) {
double r = 2.2;
g.setColor(c);
if (square) {
g.fill(new Rectangle2D.Double(x - r, y - r, 2 * r, 2 * r));
} else {
g.fill(new java.awt.geom.Ellipse2D.Double(x - r, y - r, 2 * r, 2 * r));
}
}
private static void drawAreas(Graphics2D g, ChartSpec spec, Rectangle2D plot,
List<Color> palette, double lo, double hi, int nCat,
boolean horizontal) {
@@ -101,6 +101,18 @@ final class ChartRenderer {
CartesianPainter.paint(g, spec, box, palette);
case SURFACE3D ->
Surface3dPainter.paint(g, spec, box, palette);
case SCATTER, BUBBLE ->
ScatterPainter.paint(g, spec, box, palette);
case RADAR ->
RadarPainter.paint(g, spec, box, palette);
case STOCK ->
StockPainter.paint(g, spec, box, palette);
case OF_PIE ->
OfPiePainter.paint(g, spec, box, palette);
case SURFACE ->
Surface2dPainter.paint(g, spec, box, palette);
case AREA3D, LINE3D, BAR3D ->
Cartesian3dPainter.paint(g, spec, box, palette);
default -> { /* UNSUPPORTED: вызывающий не должен сюда доходить */ }
}
if (legend != null && spec.legendOverlay) {
@@ -196,7 +208,7 @@ final class ChartRenderer {
Legend legend = new Legend();
legend.style = style;
switch (spec.type) {
case PIE, PIE3D, DOUGHNUT -> {
case PIE, PIE3D, DOUGHNUT, OF_PIE -> {
ChartSpec.Series s = spec.series.isEmpty() ? null : spec.series.get(0);
if (s == null) {
return null;
@@ -206,7 +218,7 @@ final class ChartRenderer {
legend.entries.add(new Legend.Entry(label, s.fillAt(i, palette)));
}
}
case SURFACE3D -> {
case SURFACE3D, SURFACE -> {
double min = Double.MAX_VALUE;
double max = -Double.MAX_VALUE;
for (ChartSpec.Series s : spec.series) {
@@ -238,7 +250,8 @@ final class ChartRenderer {
for (ChartSpec.Series s : spec.series) {
Color c = s.lineColor != null ? s.lineColor
: s.fillAt(0, palette);
boolean lineLike = spec.type == ChartSpec.Type.LINE;
boolean lineLike = spec.type == ChartSpec.Type.LINE
|| spec.type == ChartSpec.Type.SCATTER;
legend.entries.add(new Legend.Entry(s.name == null ? "" : s.name, c,
lineLike ? Math.max(1.0, s.lineWidth > 0 ? s.lineWidth : 2.25) : -1));
}
@@ -252,7 +265,7 @@ final class ChartRenderer {
// у прочих ~0,55 кегля (21 px), у линейных рядов — отрезок ~2,4 кегля
// (89 px) толщиной с линию ряда.
boolean pie = spec.type == ChartSpec.Type.PIE || spec.type == ChartSpec.Type.PIE3D
|| spec.type == ChartSpec.Type.DOUGHNUT;
|| spec.type == ChartSpec.Type.DOUGHNUT || spec.type == ChartSpec.Type.OF_PIE;
legend.square = style.sizePt() * (pie ? 0.32 : 0.55);
legend.lineLen = style.sizePt() * 2.4;
double width = 0;
@@ -7,6 +7,10 @@ import org.docx4j.dml.chart.CTAxPos;
import org.docx4j.dml.chart.CTBoolean;
import org.docx4j.dml.chart.CTBandFmt;
import org.docx4j.dml.chart.CTBandFmts;
import org.docx4j.dml.chart.CTArea3DChart;
import org.docx4j.dml.chart.CTBar3DChart;
import org.docx4j.dml.chart.CTBubbleChart;
import org.docx4j.dml.chart.CTBubbleSer;
import org.docx4j.dml.chart.CTBarChart;
import org.docx4j.dml.chart.CTBarSer;
import org.docx4j.dml.chart.CTCatAx;
@@ -20,15 +24,27 @@ import org.docx4j.dml.chart.CTLineChart;
import org.docx4j.dml.chart.CTLineSer;
import org.docx4j.dml.chart.CTMarker;
import org.docx4j.dml.chart.STMarkerStyle;
import org.docx4j.dml.chart.CTNumDataSource;
import org.docx4j.dml.chart.CTLine3DChart;
import org.docx4j.dml.chart.CTNumVal;
import org.docx4j.dml.chart.CTNumDataSource;
import org.docx4j.dml.chart.CTNumData;
import org.docx4j.dml.chart.CTPlotArea;
import org.docx4j.dml.chart.CTOfPieChart;
import org.docx4j.dml.chart.CTRadarChart;
import org.docx4j.dml.chart.CTRadarSer;
import org.docx4j.dml.chart.CTScatterChart;
import org.docx4j.dml.chart.CTScatterSer;
import org.docx4j.dml.chart.CTPie3DChart;
import org.docx4j.dml.chart.CTScaling;
import org.docx4j.dml.chart.CTSerAx;
import org.docx4j.dml.chart.CTSerTx;
import org.docx4j.dml.chart.CTSurface3DChart;
import org.docx4j.dml.chart.CTSurfaceSer;
import org.docx4j.dml.chart.CTScaling;
import org.docx4j.dml.chart.CTPie3DChart;
import org.docx4j.dml.chart.CTSurface3DChart;
import org.docx4j.dml.chart.CTStockChart;
import org.docx4j.dml.chart.CTSurfaceChart;
import org.docx4j.dml.chart.CTUnsignedInt;
import org.docx4j.dml.chart.CTUpDownBar;
import org.docx4j.dml.chart.CTUpDownBars;
import org.docx4j.dml.chart.CTPieChart;
import org.docx4j.dml.chart.CTPieSer;
import org.docx4j.dml.chart.CTStrVal;
@@ -69,7 +85,9 @@ final class ChartSpec {
static final int MAX_POINTS = 100_000;
enum Type {
PIE, PIE3D, DOUGHNUT, BAR, BAR_HORIZONTAL, LINE, AREA, SURFACE3D, UNSUPPORTED
PIE, PIE3D, DOUGHNUT, BAR, BAR_HORIZONTAL, LINE, AREA, SURFACE3D,
AREA3D, BAR3D, LINE3D, RADAR, SCATTER, BUBBLE, STOCK, OF_PIE, SURFACE,
UNSUPPORTED
}
/** Один ряд: значения + стили (ряд и переопределения по точкам). */
@@ -87,6 +105,10 @@ final class ChartSpec {
double outlineWidth = -1;
boolean marker = true;
String markerSymbol;
/** scatter/bubble: значения оси X (c:xVal). */
final List<Double> xValues = new ArrayList<>();
/** bubble: размеры пузырей (c:bubbleSize). */
final List<Double> bubbleSizes = new ArrayList<>();
Color fillAt(int i, List<Color> palette) {
Color c = pointFills.get(i);
@@ -143,6 +165,51 @@ final class ChartSpec {
Color chartFill = Color.WHITE;
Color chartBorder = new Color(0xBF, 0xBF, 0xBF);
double chartBorderWidth = 0.75;
// Параметры новых типов (ECMA-376 §21.2.3); дефолты — XSD dml-chart.
/** scatter/bubble: ось X (вторая c:valAx в plotArea). */
AxisSpec xAxis;
/** CT_ScatterStyle (xsd default "marker"): marker|line|lineMarker|smooth|smoothMarker|none. */
String scatterStyle = "marker";
/** CT_BubbleScale (xsd default 100%): масштаб пузырей, %. */
double bubbleScale = 100;
/** c:bubble3D — рисуется плоско (см. ScatterPainter). */
boolean bubble3d;
/** CT_SizeRepresents (xsd default "area"): area|w. */
String sizeRepresents = "area";
/** CT_ShowNegativeBubbles (xsd default true). */
boolean showNegBubbles = true;
/** CT_GapAmount gapDepth (xsd default 150) — зазор рядов в глубину, %. */
double gapDepth = 150;
/** CT_Shape (xsd default "box") — форма 3D-столбцов; рисуется всегда box. */
String shape3d = "box";
/** c:barDir="bar" у bar3DChart — горизонтальная ориентация. */
boolean bar3dHorizontal;
/** CT_RadarStyle (xsd default "standard"): standard|marker|filled. */
String radarStyle = "standard";
/** CT_OfPieType (xsd default "pie"): pie|bar — вид вторичной диаграммы. */
String ofPieType = "pie";
/** CT_SplitType (xsd default "auto"): auto|cust|percent|pos|val. */
String splitType = "auto";
/** c:splitPos (CT_Double); null = элемент опущен. */
Double splitPos;
/** c:custSplit/c:secondPiePt — индексы точек вторичной круговой. */
final List<Integer> secondPiePts = new ArrayList<>();
/** CT_SecondPieSize (xsd default 75%): диаметр вторичной, % от первичной. */
double secondPieSize = 75;
/** элемент c:serLines присутствует — связи между тортами. */
boolean serLines;
/** элемент c:hiLowLines присутствует. */
boolean hiLowLines;
/** элемент c:dropLines присутствует. */
boolean dropLines;
/** элемент c:upDownBars присутствует. */
boolean upDownBars;
/** c:upDownBars/c:gapWidth (xsd default 150). */
double upDownGapWidth = 150;
/** c:upBars/c:spPr solidFill (null = дефолт пейнтера). */
Color upFill;
/** c:downBars/c:spPr solidFill (null = дефолт пейнтера). */
Color downFill;
/** Цвета акцента темы — базовая палитра рядов (как в Word). */
static List<Color> palette(DrawMlColor colors) {
@@ -171,10 +238,12 @@ final class ChartSpec {
for (Object group : pa.getAreaChartOrArea3DChartOrLineChart()) {
readGroup(group, spec, colors, palette);
}
List<AxisSpec> valAxes = new ArrayList<>();
for (Object ax : pa.getValAxOrCatAxOrDateAx()) {
AxisSpec a = readAxis(ax, colors);
if (ax instanceof CTValAx) {
spec.valAxis = a;
valAxes.add(a);
} else if (ax instanceof CTCatAx) {
spec.catAxis = a;
} else if (ax instanceof CTSerAx) {
@@ -183,6 +252,14 @@ final class ChartSpec {
spec.catAxis = a;
}
}
// scatter/bubble: обе оси числовые — две c:valAx (ECMA порядок не
// нормирует; Word пишет ось X первой — регрессия
// ChartSpecTest#scatterFirstValAxisIsX).
if ((spec.type == Type.SCATTER || spec.type == Type.BUBBLE)
&& valAxes.size() >= 2) {
spec.xAxis = valAxes.get(0);
spec.valAxis = valAxes.get(1);
}
}
readLegend(chart, spec, colors);
readTitle(chart, spec, colors);
@@ -270,18 +347,7 @@ final class ChartSpec {
} else if (group instanceof CTLineChart g) {
spec.type = Type.LINE;
for (CTLineSer s : g.getSer()) {
Series ser = new Series();
readCommon(s.getTx(), s.getCat(), s.getVal(), s.getDPt(), ser, colors);
readLineProps(s.getSpPr(), ser, colors);
CTMarker m = s.getMarker();
if (m != null) {
ser.marker = m.getSymbol() == null
|| m.getSymbol().getVal() != STMarkerStyle.NONE;
if (m.getSymbol() != null) {
ser.markerSymbol = m.getSymbol().getVal().value();
}
}
spec.series.add(ser);
spec.series.add(readLineSer(s, colors));
}
} else if (group instanceof CTBarChart g) {
boolean horizontal = g.getBarDir() != null
@@ -316,24 +382,197 @@ final class ChartSpec {
}
} else if (group instanceof CTSurface3DChart g) {
spec.type = Type.SURFACE3D;
spec.wireframe = isTrue(g.getWireframe());
for (CTSurfaceSer s : g.getSer()) {
readSurfaceGroup(isTrue(g.getWireframe()), g.getSer(), g.getBandFmts(),
spec, colors, palette);
} else if (group instanceof CTSurfaceChart g) {
spec.type = Type.SURFACE;
readSurfaceGroup(isTrue(g.getWireframe()), g.getSer(), g.getBandFmts(),
spec, colors, palette);
} else if (group instanceof CTArea3DChart g) {
spec.type = Type.AREA3D;
if (g.getGapDepth() != null) {
spec.gapDepth = g.getGapDepth().getVal();
}
for (org.docx4j.dml.chart.CTAreaSer s : g.getSer()) {
Series ser = new Series();
readCommon(s.getTx(), s.getCat(), s.getVal(), List.of(), ser, colors);
readCommon(s.getTx(), s.getCat(), s.getVal(), s.getDPt(), ser, colors);
if (s.getSpPr() != null && s.getSpPr().getSolidFill() != null) {
ser.fill = colors.resolveFill(s.getSpPr().getSolidFill());
}
readLineProps(s.getSpPr(), ser, colors);
spec.series.add(ser);
}
} else if (group instanceof CTLine3DChart g) {
spec.type = Type.LINE3D;
if (g.getGapDepth() != null) {
spec.gapDepth = g.getGapDepth().getVal();
}
for (CTLineSer s : g.getSer()) {
spec.series.add(readLineSer(s, colors));
}
} else if (group instanceof CTBar3DChart g) {
spec.type = Type.BAR3D;
spec.bar3dHorizontal = g.getBarDir() != null
&& g.getBarDir().getVal() != null
&& "bar".equalsIgnoreCase(g.getBarDir().getVal().value());
if (g.getGapWidth() != null) {
spec.gapWidth = g.getGapWidth().getVal();
}
if (g.getGapDepth() != null) {
spec.gapDepth = g.getGapDepth().getVal();
}
if (g.getShape() != null && g.getShape().getVal() != null) {
spec.shape3d = g.getShape().getVal().value();
}
for (CTBarSer s : g.getSer()) {
Series ser = new Series();
readCommon(s.getTx(), s.getCat(), s.getVal(), s.getDPt(), ser, colors);
if (s.getSpPr() != null && s.getSpPr().getSolidFill() != null) {
ser.fill = colors.resolveFill(s.getSpPr().getSolidFill());
}
spec.series.add(ser);
}
CTBandFmts bf = g.getBandFmts();
if (bf != null) {
for (CTBandFmt b : bf.getBandFmt()) {
Color c = b.getSpPr() != null && b.getSpPr().getSolidFill() != null
? colors.resolveFill(b.getSpPr().getSolidFill())
: null;
spec.bandColors.add(c != null ? c
: palette.get((int) (b.getIdx().getVal() % palette.size())));
} else if (group instanceof CTRadarChart g) {
spec.type = Type.RADAR;
if (g.getRadarStyle() != null && g.getRadarStyle().getVal() != null) {
spec.radarStyle = g.getRadarStyle().getVal().value();
}
for (CTRadarSer s : g.getSer()) {
Series ser = new Series();
readCommon(s.getTx(), s.getCat(), s.getVal(), s.getDPt(), ser, colors);
readLineProps(s.getSpPr(), ser, colors);
readMarker(s.getMarker(), ser);
spec.series.add(ser);
}
} else if (group instanceof CTScatterChart g) {
spec.type = Type.SCATTER;
if (g.getScatterStyle() != null && g.getScatterStyle().getVal() != null) {
spec.scatterStyle = g.getScatterStyle().getVal().value();
}
for (CTScatterSer s : g.getSer()) {
Series ser = new Series();
readCommon(s.getTx(), null, s.getYVal(), s.getDPt(), ser, colors);
ser.xValues.addAll(axisNumValues(s.getXVal()));
readLineProps(s.getSpPr(), ser, colors);
if (s.getSpPr() != null && s.getSpPr().getSolidFill() != null) {
ser.fill = colors.resolveFill(s.getSpPr().getSolidFill());
}
readMarker(s.getMarker(), ser);
spec.series.add(ser);
}
} else if (group instanceof CTBubbleChart g) {
spec.type = Type.BUBBLE;
spec.bubble3d = isTrue(g.getBubble3D());
if (g.getBubbleScale() != null) {
spec.bubbleScale = g.getBubbleScale().getVal();
}
if (g.getShowNegBubbles() != null) {
spec.showNegBubbles = g.getShowNegBubbles().isVal();
}
if (g.getSizeRepresents() != null && g.getSizeRepresents().getVal() != null) {
spec.sizeRepresents = g.getSizeRepresents().getVal().value();
}
for (CTBubbleSer s : g.getSer()) {
Series ser = new Series();
readCommon(s.getTx(), null, s.getYVal(), s.getDPt(), ser, colors);
ser.xValues.addAll(axisNumValues(s.getXVal()));
ser.bubbleSizes.addAll(numValues(s.getBubbleSize()));
if (s.getSpPr() != null && s.getSpPr().getSolidFill() != null) {
ser.fill = colors.resolveFill(s.getSpPr().getSolidFill());
}
spec.series.add(ser);
}
} else if (group instanceof CTStockChart g) {
spec.type = Type.STOCK;
spec.hiLowLines = g.getHiLowLines() != null;
spec.dropLines = g.getDropLines() != null;
CTUpDownBars u = g.getUpDownBars();
if (u != null) {
spec.upDownBars = true;
if (u.getGapWidth() != null) {
spec.upDownGapWidth = u.getGapWidth().getVal();
}
spec.upFill = upDownBarFill(u.getUpBars(), colors);
spec.downFill = upDownBarFill(u.getDownBars(), colors);
}
for (CTLineSer s : g.getSer()) {
spec.series.add(readLineSer(s, colors));
}
} else if (group instanceof CTOfPieChart g) {
spec.type = Type.OF_PIE;
if (g.getOfPieType() != null && g.getOfPieType().getVal() != null) {
spec.ofPieType = g.getOfPieType().getVal().value();
}
if (g.getSplitType() != null && g.getSplitType().getVal() != null) {
spec.splitType = g.getSplitType().getVal().value();
}
if (g.getSplitPos() != null) {
spec.splitPos = g.getSplitPos().getVal();
}
if (g.getCustSplit() != null) {
for (CTUnsignedInt p : g.getCustSplit().getSecondPiePt()) {
spec.secondPiePts.add((int) p.getVal());
}
}
if (g.getSecondPieSize() != null) {
spec.secondPieSize = g.getSecondPieSize().getVal();
}
spec.serLines = !g.getSerLines().isEmpty();
for (CTPieSer s : g.getSer()) {
spec.series.add(readPieSer(s, colors));
}
}
}
/** CT_LineSer — общий разбор ряда lineChart/line3DChart/stockChart. */
private static Series readLineSer(CTLineSer s, DrawMlColor colors) {
Series ser = new Series();
readCommon(s.getTx(), s.getCat(), s.getVal(), s.getDPt(), ser, colors);
readLineProps(s.getSpPr(), ser, colors);
readMarker(s.getMarker(), ser);
return ser;
}
/** c:marker: symbol="none" → маркеров нет (семантика прежняя, для LINE). */
private static void readMarker(CTMarker m, Series ser) {
if (m == null) {
return;
}
ser.marker = m.getSymbol() == null
|| m.getSymbol().getVal() != STMarkerStyle.NONE;
if (m.getSymbol() != null) {
ser.markerSymbol = m.getSymbol().getVal().value();
}
}
/** c:upBars/c:downBars/c:spPr solidFill; null — элемента/заливки нет. */
private static Color upDownBarFill(CTUpDownBar bar, DrawMlColor colors) {
if (bar == null || bar.getSpPr() == null || bar.getSpPr().getSolidFill() == null) {
return null;
}
return colors.resolveFill(bar.getSpPr().getSolidFill());
}
/** surfaceChart/surface3DChart — общий разбор wireframe/сер/bandFmts. */
private static void readSurfaceGroup(boolean wireframe, List<CTSurfaceSer> sers,
CTBandFmts bf, ChartSpec spec,
DrawMlColor colors, List<Color> palette) {
spec.wireframe = wireframe;
for (CTSurfaceSer s : sers) {
Series ser = new Series();
readCommon(s.getTx(), s.getCat(), s.getVal(), List.of(), ser, colors);
if (s.getSpPr() != null && s.getSpPr().getSolidFill() != null) {
ser.fill = colors.resolveFill(s.getSpPr().getSolidFill());
}
spec.series.add(ser);
}
if (bf != null) {
for (CTBandFmt b : bf.getBandFmt()) {
Color c = b.getSpPr() != null && b.getSpPr().getSolidFill() != null
? colors.resolveFill(b.getSpPr().getSolidFill())
: null;
spec.bandColors.add(c != null ? c
: palette.get((int) (b.getIdx().getVal() % palette.size())));
}
}
}
@@ -364,27 +603,7 @@ final class ChartSpec {
List<CTDPt> dPts, Series ser, DrawMlColor colors) {
ser.name = seriesName(tx);
ser.categories.addAll(categoryNames(cat));
if (val != null) {
var num = val.getNumRef() != null ? val.getNumRef().getNumCache() : val.getNumLit();
if (num != null) {
long count = num.getPtCount() != null ? num.getPtCount().getVal() : -1;
if (count > MAX_POINTS) {
throw new IllegalArgumentException("c:pt idx/ptCount превышает лимит " + MAX_POINTS);
}
for (CTNumVal v : num.getPt()) {
checkPointIndex(v.getIdx());
while (ser.values.size() < (int) v.getIdx()) {
ser.values.add(null);
}
ser.values.add(parseDouble(v.getV()));
}
if (count > ser.values.size()) {
while (ser.values.size() < (int) count) {
ser.values.add(null);
}
}
}
}
ser.values.addAll(numValues(val));
for (CTDPt dp : dPts) {
if (dp.getSpPr() == null || dp.getSpPr().getSolidFill() == null
|| dp.getIdx() == null) {
@@ -397,6 +616,49 @@ final class ChartSpec {
}
}
/** c:numDataSource → список значений (numCache/numLit), DoS-гвард MAX_POINTS. */
private static List<Double> numValues(CTNumDataSource src) {
if (src == null) {
return new ArrayList<>();
}
return numValues(src.getNumRef() != null
? src.getNumRef().getNumCache() : src.getNumLit());
}
/** c:xVal (CT_AxDataSource, §21.2.2.171) — числовые значения оси X. */
private static List<Double> axisNumValues(CTAxDataSource x) {
if (x == null) {
return new ArrayList<>();
}
return numValues(x.getNumRef() != null
? x.getNumRef().getNumCache() : x.getNumLit());
}
/** numCache/numLit → значения; тот же DoS-гвард MAX_POINTS, что у c:val. */
private static List<Double> numValues(CTNumData num) {
List<Double> out = new ArrayList<>();
if (num == null) {
return out;
}
long count = num.getPtCount() != null ? num.getPtCount().getVal() : -1;
if (count > MAX_POINTS) {
throw new IllegalArgumentException("c:pt idx/ptCount превышает лимит " + MAX_POINTS);
}
for (CTNumVal v : num.getPt()) {
checkPointIndex(v.getIdx());
while (out.size() < (int) v.getIdx()) {
out.add(null);
}
out.add(parseDouble(v.getV()));
}
if (count > out.size()) {
while (out.size() < (int) count) {
out.add(null);
}
}
return out;
}
/** a:ln ряда (цвет и толщина линии графика). */
private static void readLineProps(CTShapeProperties sp, Series ser, DrawMlColor colors) {
if (sp == null) {
@@ -468,7 +730,7 @@ final class ChartSpec {
&& chart.getAutoTitleDeleted().isVal();
if ((text == null || text.isBlank()) && !deleted) {
boolean circular = spec.type == Type.PIE || spec.type == Type.PIE3D
|| spec.type == Type.DOUGHNUT;
|| spec.type == Type.DOUGHNUT || spec.type == Type.OF_PIE;
if (circular && !spec.series.isEmpty()) {
text = spec.series.get(0).name;
} else {
@@ -0,0 +1,247 @@
package ru.pjandro.wordpdf.internal.chart;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.geom.Arc2D;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* Комбинированная диаграмма (c:ofPieChart, ECMA-376 §21.2.2.108): главный
* пирог из первичных точек + вторичная круговая (c:ofPieType="pie") либо
* вертикальный стек ("bar") из вторичных. Разбиение по c:splitType
* (auto|cust|percent|pos|val, §21.2.2.155; семантика splitPos —
* MS-OI29500 §2.1.1554a/b): auto/pos — последние ceil(n/3) (или splitPos)
* точек, val/percent — точки ниже splitPos, cust — c:secondPiePt.
* Вторичных точек нет → обычная круговая через {@link PiePainter}.
* c:serLines — связи от обода главного пирога (эффективный угол точки в
* «хвостовом» секторе) до середины вторичного сектора/сегмента.
*
* Регрессия — OfPiePainterTest, фикстура samples/chart-types.docx
* (WordPdfConverterTest#chartTypes_allTypesRenderAsImages).
*/
final class OfPiePainter {
/** c:serLines — серый 0xA6A6A6 (дефолт Word, калибровка — OfPiePainterTest). */
static final Color SER_LINE_COLOR = new Color(0xA6, 0xA6, 0xA6);
/** Доля области построения под диаметр главного пирога (Word-эмпирика). */
private static final double MAIN_FIT = 0.72;
/** c:ofPieType="bar" — вторичная часть столбчатая (§21.2.2.134). */
private static final String SECONDARY_BAR = "bar";
private OfPiePainter() {
}
static void paint(Graphics2D g, ChartSpec spec, Rectangle2D box, List<Color> palette) {
if (spec.series.isEmpty()) {
return;
}
ChartSpec.Series s = spec.series.get(0);
double total = 0;
for (Double v : s.values) {
if (v != null && v > 0) {
total += v;
}
}
if (total <= 0) {
return;
}
Set<Integer> secondary = splitIndices(spec, s, total);
if (secondary.isEmpty()) {
PiePainter.paint(g, spec, box, palette, null);
return;
}
double d1 = MAIN_FIT * Math.min(box.getWidth(), box.getHeight());
double d2 = d1 * spec.secondPieSize / 100.0;
double gap = 0.10 * d1;
if (d1 + gap + d2 > box.getWidth()) {
double k = box.getWidth() / (d1 + gap + d2);
d1 *= k;
d2 *= k;
gap *= k;
}
double cy = box.getY() + box.getHeight() / 2.0;
double cx1 = box.getX() + d1 / 2.0;
double cx2 = box.getX() + d1 + gap + d2 / 2.0;
double totalSecondary = 0;
for (int i : secondary) {
totalSecondary += s.values.get(i);
}
// Главный пирог: только первичные точки, углы от c:firstSliceAng.
double angle = spec.firstSliceAng;
double primarySweep = 0;
for (int i = 0; i < s.values.size(); i++) {
Double v = s.values.get(i);
if (v == null || v <= 0 || secondary.contains(i)) {
continue;
}
double sweep = 360.0 * v / total;
drawSector(g, s, i, palette, cx1, cy, d1 / 2.0, angle, sweep);
angle += sweep;
primarySweep += sweep;
}
double secondaryLeft = box.getX() + d1 + gap;
if (SECONDARY_BAR.equalsIgnoreCase(spec.ofPieType)) {
drawSecondaryBar(g, s, palette, secondary, totalSecondary,
secondaryLeft, cy, d1, d2);
} else {
drawSecondaryPie(g, spec, s, palette, secondary, totalSecondary,
cx2, cy, d2);
}
if (spec.serLines) {
drawSerLines(g, spec, s, secondary, total, totalSecondary,
primarySweep, cx1, cy, d1, cx2, cy, d2, secondaryLeft);
}
}
/** Индексы вторичных точек по c:splitType/c:splitPos/c:custSplit. */
static Set<Integer> splitIndices(ChartSpec spec, ChartSpec.Series s, double total) {
Set<Integer> out = new HashSet<>();
int nCat = s.values.size();
String type = spec.splitType == null ? "auto" : spec.splitType;
switch (type) {
case "cust" -> out.addAll(spec.secondPiePts);
case "pos" -> {
int n = spec.splitPos != null
? (int) Math.max(0d, spec.splitPos)
: (int) Math.ceil(nCat / 3.0);
for (int i = Math.max(0, nCat - n); i < nCat; i++) {
out.add(i);
}
}
case "val" -> {
if (spec.splitPos != null) {
for (int i = 0; i < nCat; i++) {
Double v = s.values.get(i);
if (v != null && v > 0 && v < spec.splitPos) {
out.add(i);
}
}
}
}
case "percent" -> {
if (spec.splitPos != null && total > 0) {
for (int i = 0; i < nCat; i++) {
Double v = s.values.get(i);
if (v != null && v > 0 && 100.0 * v / total < spec.splitPos) {
out.add(i);
}
}
}
}
default -> {
int n = (int) Math.ceil(nCat / 3.0);
for (int i = Math.max(0, nCat - n); i < nCat; i++) {
out.add(i);
}
}
}
// Точки без положительного значения — ни в один торт (как PiePainter).
out.removeIf(i -> i < 0 || i >= nCat || s.values.get(i) == null
|| s.values.get(i) <= 0);
return out;
}
private static void drawSecondaryPie(Graphics2D g, ChartSpec spec, ChartSpec.Series s,
List<Color> palette, Set<Integer> secondary,
double totalSecondary, double cx, double cy,
double d2) {
double angle = spec.firstSliceAng;
for (int i : orderedIndices(secondary)) {
double sweep = 360.0 * s.values.get(i) / totalSecondary;
drawSector(g, s, i, palette, cx, cy, d2 / 2.0, angle, sweep);
angle += sweep;
}
}
/** Вторичный «bar»: вертикальный стек сверху вниз в порядке индексов. */
private static void drawSecondaryBar(Graphics2D g, ChartSpec.Series s,
List<Color> palette, Set<Integer> secondary,
double totalSecondary, double left, double cy,
double d1, double d2) {
double w = d2 / 2.0;
double top = cy - d1 / 2.0;
for (int i : orderedIndices(secondary)) {
double h = d1 * s.values.get(i) / totalSecondary;
g.setColor(s.fillAt(i, palette));
g.fill(new Rectangle2D.Double(left, top, w, h));
top += h;
}
}
/**
* Связи c:serLines: от обода главного пирога на эффективном угле точки
* (первичные сектора + накопленная доля вторичных в «хвостовом» секторе)
* до внешней середины её вторичного сектора/сегмента.
*/
private static void drawSerLines(Graphics2D g, ChartSpec spec, ChartSpec.Series s,
Set<Integer> secondary, double total,
double totalSecondary, double primarySweep,
double cx1, double cy1, double d1,
double cx2, double cy2, double d2,
double secondaryLeft) {
g.setColor(SER_LINE_COLOR);
g.setStroke(new BasicStroke(0.75f));
boolean bar = "bar".equalsIgnoreCase(spec.ofPieType);
double wedgeWidth = 360.0 * totalSecondary / total;
double acc = 0;
double secAngle = spec.firstSliceAng;
double stackTop = cy2 - d1 / 2.0;
double w = d2 / 2.0;
for (int i : orderedIndices(secondary)) {
double share = s.values.get(i) / totalSecondary;
double mainAngle = spec.firstSliceAng + primarySweep
+ (acc + share / 2.0) * wedgeWidth;
double mrad = Math.toRadians(mainAngle);
double mx = cx1 + d1 / 2.0 * Math.sin(mrad);
double my = cy1 - d1 / 2.0 * Math.cos(mrad);
double tx;
double ty;
if (bar) {
double h = d1 * share;
tx = secondaryLeft + w;
ty = stackTop + h / 2.0;
stackTop += h;
} else {
double mid = Math.toRadians(secAngle + 360.0 * share / 2.0);
tx = cx2 + d2 / 2.0 * Math.sin(mid);
ty = cy2 - d2 / 2.0 * Math.cos(mid);
}
secAngle += 360.0 * share;
acc += share;
g.draw(new Line2D.Double(mx, my, tx, ty));
}
}
/** Один сектор: углы Word — от 12 часов по часовой, обводка как у PiePainter. */
private static void drawSector(Graphics2D g, ChartSpec.Series s, int i,
List<Color> palette, double cx, double cy,
double radius, double startDeg, double sweepDeg) {
Arc2D.Double arc = new Arc2D.Double(cx - radius, cy - radius, 2 * radius, 2 * radius,
90.0 - startDeg, -sweepDeg, Arc2D.PIE);
g.setColor(s.fillAt(i, palette));
g.fill(arc);
Color outline = s.outlineNoFill ? null
: s.outlineColor != null ? s.outlineColor : Color.WHITE;
if (outline != null) {
g.setColor(outline);
g.setStroke(new BasicStroke((float) (s.outlineWidth > 0 ? s.outlineWidth : 1.0)));
g.draw(arc);
}
}
private static List<Integer> orderedIndices(Set<Integer> set) {
return set.stream().sorted().toList();
}
}
@@ -0,0 +1,136 @@
package ru.pjandro.wordpdf.internal.chart;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.geom.Path2D;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import java.util.List;
/**
* Лепестковая диаграмма (c:radarChart, ECMA-376 §21.2.2.143): категории —
* спицы от 12 часов по часовой, значения — радиус по оси значений.
* c:radarStyle (§21.2.2.119): standard — контур, marker — контур + маркеры,
* filled — полупрозрачная заливка без контура (вид как у AREA).
* Сетка — концентрические многоугольники по делениям оси значений (паутина
* прямыми звеньями, как в Word) и спицы.
*
* Регрессия — RadarPainterTest, фикстура samples/chart-types.docx
* (WordPdfConverterTest#chartTypes_allTypesRenderAsImages).
*/
final class RadarPainter {
private RadarPainter() {
}
/** Контур ряда рисуется только из двух и более точек. */
private static final int MIN_POLYLINE_POINTS = 2;
static void paint(Graphics2D g, ChartSpec spec, Rectangle2D box, List<Color> palette) {
int nCat = 0;
for (ChartSpec.Series s : spec.series) {
nCat = Math.max(nCat, s.values.size());
}
if (nCat < 2 || spec.series.isEmpty()) {
return;
}
List<String> cats = CartesianPainter.categoriesOf(spec, nCat);
ChartSpec.AxisSpec valAxis = spec.valAxis != null
? spec.valAxis : new ChartSpec.AxisSpec();
double[] range = ChartRenderer.valueRange(spec);
double[] bounds = ChartRenderer.axisBounds(valAxis, range[0], range[1], true);
double lo = bounds[0];
double hi = bounds[1];
double unit = bounds[2];
DrawMlText.Style catStyle = spec.catAxis != null ? spec.catAxis.labelStyle : null;
double gutter = catStyle != null ? DrawMlText.textHeight(catStyle) + 6 : 12;
double side = Math.min(box.getWidth(), box.getHeight());
double cx = box.getCenterX();
double cy = box.getCenterY();
double r = Math.max(10, side / 2.0 - gutter);
// 1. Паутина: концентрические многоугольники по делениям + спицы.
g.setColor(valAxis.gridColor);
g.setStroke(new BasicStroke(0.6f));
for (double v = lo; v <= hi + unit / 2; v += unit) {
double t = (v - lo) / (hi - lo);
Path2D web = new Path2D.Double();
for (int i = 0; i < nCat; i++) {
double[] p = spoke(cx, cy, r * t, i, nCat);
if (i == 0) {
web.moveTo(p[0], p[1]);
} else {
web.lineTo(p[0], p[1]);
}
}
web.closePath();
g.draw(web);
}
for (int i = 0; i < nCat; i++) {
double[] tip = spoke(cx, cy, r, i, nCat);
g.draw(new java.awt.geom.Line2D.Double(cx, cy, tip[0], tip[1]));
}
// 2. Ряды.
boolean filled = "filled".equalsIgnoreCase(spec.radarStyle);
boolean markers = "marker".equalsIgnoreCase(spec.radarStyle);
for (int si = 0; si < spec.series.size(); si++) {
ChartSpec.Series s = spec.series.get(si);
Color c = s.lineColor != null ? s.lineColor : s.fillAt(si, palette);
List<Double> xs = new ArrayList<>();
List<Double> ys = new ArrayList<>();
for (int i = 0; i < s.values.size(); i++) {
Double v = s.values.get(i);
if (v == null) {
continue;
}
double t = (v - lo) / (hi - lo);
double[] p = spoke(cx, cy, r * t, i, nCat);
xs.add(p[0]);
ys.add(p[1]);
}
if (xs.size() >= MIN_POLYLINE_POINTS) {
Path2D line = ChartRenderer.polyline(xs, ys, true);
if (filled) {
g.setColor(DrawMlColor.withAlpha(c, 0.55));
g.fill(line);
} else {
g.setColor(c);
g.setStroke(new BasicStroke((float) (s.lineWidth > 0 ? s.lineWidth : 2.25),
BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
g.draw(line);
}
}
if (markers && s.marker) {
for (int i = 0; i < xs.size(); i++) {
CartesianPainter.drawMarker(g, xs.get(i), ys.get(i), false, c);
}
}
}
// 3. Подписи категорий у концов спиц.
if (catStyle != null) {
double h = DrawMlText.textHeight(catStyle) + 2;
for (int i = 0; i < nCat; i++) {
String label = cats.get(i);
if (label.isEmpty()) {
continue;
}
double[] p = spoke(cx, cy, r + 4, i, nCat);
double w = DrawMlText.textWidth(label, catStyle);
DrawMlText.paint(g, List.of(new DrawMlText.Paragraph(label, catStyle, "ctr")),
new Rectangle2D.Double(p[0] - w / 2, p[1] - h / 2, w, h),
"ctr", "ctr", 1.0);
}
}
}
/** Точка на спине i (от 12 часов по часовой) на расстоянии dist от центра. */
private static double[] spoke(double cx, double cy, double dist, int i, int nCat) {
double rad = Math.toRadians(-90 + 360.0 * i / nCat);
return new double[]{cx + dist * Math.cos(rad), cy + dist * Math.sin(rad)};
}
}
@@ -0,0 +1,211 @@
package ru.pjandro.wordpdf.internal.chart;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import java.util.List;
/**
* Точечная (c:scatterChart) и пузырьковая (c:bubbleChart) диаграммы: обе оси
* числовые — две c:valAx, ось X — первая из них (ChartSpec.parse, регрессия
* ChartSpecTest#scatterFirstValAxisIsX).
*
* scatter: маркеры по c:marker ряда, линия по c:scatterStyle (line/smooth —
* ECMA-376 §21.2.2.136, сглаживание — кривая Жозефа де Кастельно не
* имитируется, ломаная с JOIN_ROUND). bubble: круги без обводки, радиус
* sqrt(|size|/maxSize) при c:sizeRepresents="area" (§21.2.2.128) и линейно
* при "w", масштаб c:bubbleScale. Ограничения: c:bubble3D рисуется плоско.
*
* Регрессия — ScatterPainterTest, фикстура samples/chart-types.docx
* (WordPdfConverterTest#chartTypes_allTypesRenderAsImages).
*/
final class ScatterPainter {
private ScatterPainter() {
}
static void paint(Graphics2D g, ChartSpec spec, Rectangle2D box, List<Color> palette) {
ChartSpec.AxisSpec valAxis = spec.valAxis != null
? spec.valAxis : new ChartSpec.AxisSpec();
ChartSpec.AxisSpec xAxis = spec.xAxis != null ? spec.xAxis : valAxis;
double xMin = Double.MAX_VALUE;
double xMax = -Double.MAX_VALUE;
boolean any = false;
for (ChartSpec.Series s : spec.series) {
for (int i = 0; i < s.values.size(); i++) {
if (s.values.get(i) == null) {
continue;
}
any = true;
double x = xOf(s, i);
xMin = Math.min(xMin, x);
xMax = Math.max(xMax, x);
}
}
if (!any) {
return;
}
double[] range = ChartRenderer.valueRange(spec);
double[] yb = ChartRenderer.axisBounds(valAxis, range[0], range[1], true);
double lo = yb[0];
double hi = yb[1];
double unit = yb[2];
double[] xb = ChartRenderer.axisBounds(xAxis, xMin, xMax, true);
double xLo = xb[0];
double xHi = xb[1];
double xUnit = xb[2];
DrawMlText.Style valStyle = valAxis.labelStyle;
DrawMlText.Style xStyle = xAxis.labelStyle;
List<String> valLabels = new ArrayList<>();
for (double v = lo; v <= hi + unit / 2; v += unit) {
valLabels.add(ChartRenderer.formatValue(v, valAxis.numFmt));
}
List<String> xLabels = new ArrayList<>();
for (double v = xLo; v <= xHi + xUnit / 2; v += xUnit) {
xLabels.add(ChartRenderer.formatValue(v, xAxis.numFmt));
}
// Поля под подписи осей — как у CartesianPainter: ширина подписей
// значений слева, высота строки категорий снизу.
double valGutter = 8;
if (valStyle != null) {
for (String l : valLabels) {
valGutter = Math.max(valGutter, DrawMlText.textWidth(l, valStyle) + 8);
}
}
double xGutter = 6 + (xStyle != null ? DrawMlText.textHeight(xStyle) : 0);
Rectangle2D plot = new Rectangle2D.Double(box.getX() + valGutter, box.getY(),
Math.max(10, box.getWidth() - valGutter),
Math.max(10, box.getHeight() - xGutter));
// Сетка: горизонтальные — по делениям оси значений, вертикальные —
// по делениям оси X (без линии осей: обе оси числовые).
if (valAxis.gridlines && !valAxis.deleted) {
g.setColor(valAxis.gridColor);
g.setStroke(new BasicStroke(0.6f));
for (double v = lo; v <= hi + unit / 2; v += unit) {
double y = plot.getY() + (1 - (v - lo) / (hi - lo)) * plot.getHeight();
g.draw(new Line2D.Double(plot.getX(), y,
plot.getX() + plot.getWidth(), y));
}
}
if (xAxis.gridlines && !xAxis.deleted) {
g.setColor(xAxis.gridColor);
g.setStroke(new BasicStroke(0.6f));
for (double v = xLo; v <= xHi + xUnit / 2; v += xUnit) {
double x = plot.getX() + (v - xLo) / (xHi - xLo) * plot.getWidth();
g.draw(new Line2D.Double(x, plot.getY(), x, plot.getY() + plot.getHeight()));
}
}
boolean bubble = spec.type == ChartSpec.Type.BUBBLE;
double maxSize = 0;
if (bubble) {
for (ChartSpec.Series s : spec.series) {
for (Double sz : s.bubbleSizes) {
if (sz != null) {
maxSize = Math.max(maxSize, Math.abs(sz));
}
}
}
}
double rMax = Math.min(plot.getWidth(), plot.getHeight())
* (spec.bubbleScale / 100.0) / 2.0;
for (int si = 0; si < spec.series.size(); si++) {
ChartSpec.Series s = spec.series.get(si);
Color c = s.lineColor != null ? s.lineColor : s.fillAt(si, palette);
List<Double> xs = new ArrayList<>();
List<Double> ys = new ArrayList<>();
for (int i = 0; i < s.values.size(); i++) {
Double v = s.values.get(i);
if (v == null) {
continue;
}
double px = plot.getX() + (xOf(s, i) - xLo) / (xHi - xLo) * plot.getWidth();
double py = plot.getY() + (1 - (v - lo) / (hi - lo)) * plot.getHeight();
xs.add(px);
ys.add(py);
if (bubble) {
drawBubble(g, spec, s, i, px, py, maxSize, rMax, palette);
}
}
if (bubble) {
continue;
}
String style = spec.scatterStyle == null ? "marker" : spec.scatterStyle;
boolean smooth = style.startsWith("smooth");
if (xs.size() >= 2 && (style.startsWith("line") || smooth)) {
g.setColor(c);
g.setStroke(new BasicStroke(2.25f, BasicStroke.CAP_ROUND,
BasicStroke.JOIN_ROUND));
g.draw(ChartRenderer.polyline(xs, ys, smooth));
}
if (s.marker) {
for (int i = 0; i < xs.size(); i++) {
CartesianPainter.drawMarker(g, xs.get(i), ys.get(i), false, c);
}
}
}
// Подписи делений обеих осей.
if (valStyle != null) {
double h = DrawMlText.textHeight(valStyle) + 2;
for (int i = 0; i < valLabels.size(); i++) {
double t = valLabels.size() == 1 ? 0 : i / (double) (valLabels.size() - 1);
String label = valLabels.get(i);
double w = DrawMlText.textWidth(label, valStyle);
double y = plot.getY() + plot.getHeight() * (1 - t);
DrawMlText.paint(g, List.of(new DrawMlText.Paragraph(label, valStyle, "r")),
new Rectangle2D.Double(plot.getX() - w - 6, y - h / 2, w, h),
"r", "ctr", 1.0);
}
}
if (xStyle != null) {
double h = DrawMlText.textHeight(xStyle) + 2;
for (int i = 0; i < xLabels.size(); i++) {
double t = xLabels.size() == 1 ? 0 : i / (double) (xLabels.size() - 1);
String label = xLabels.get(i);
double w = DrawMlText.textWidth(label, xStyle);
double x = plot.getX() + plot.getWidth() * t;
DrawMlText.paint(g, List.of(new DrawMlText.Paragraph(label, xStyle, "ctr")),
new Rectangle2D.Double(x - w / 2, plot.getY() + plot.getHeight() + 3,
w, h), "ctr", "t", 1.0);
}
}
}
/** Один пузырь: круг без обводки; цвет — ряда, переопределение c:dPt. */
private static void drawBubble(Graphics2D g, ChartSpec spec, ChartSpec.Series s,
int i, double px, double py, double maxSize,
double rMax, List<Color> palette) {
Double size = i < s.bubbleSizes.size() ? s.bubbleSizes.get(i) : null;
if (size == null || (size < 0 && !spec.showNegBubbles) || maxSize <= 0) {
return;
}
double f = "w".equalsIgnoreCase(spec.sizeRepresents)
? Math.abs(size) / maxSize
: Math.sqrt(Math.abs(size) / maxSize);
double r = rMax * f;
if (r <= 0) {
return;
}
Color point = s.pointFills.get(i);
g.setColor(point != null ? point
: s.fill != null ? s.fill : palette.get(i % palette.size()));
g.fill(new Ellipse2D.Double(px - r, py - r, 2 * r, 2 * r));
}
/** Значение X точки: c:xVal, у ряда без него — позиция 1..n. */
private static double xOf(ChartSpec.Series s, int i) {
Double x = i < s.xValues.size() ? s.xValues.get(i) : null;
return x != null ? x : i + 1;
}
}
@@ -0,0 +1,218 @@
package ru.pjandro.wordpdf.internal.chart;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import java.util.List;
/**
* Биржевая диаграмма (c:stockChart, ECMA-376 §21.2.2.153): ряды — линии
* (CT_LineSer, обычно open/high/low/close), плюс факультативные
* c:hiLowLines (вертикаль min..max по всем рядам категории),
* c:upDownBars (столбик между первым и последним рядом: вверх — зелёный,
* вниз — красный) и c:dropLines (вертикаль от точки до базовой линии).
*
* HI_LOW_COLOR/UP_FILL/DOWN_FILL/цвет dropLines — дефолты UI Word
* (эмпирика, эталона Word 300 dpi для этого типа в репо нет); менять
* только вместе с StockPainterTest.
*
* Регрессия — StockPainterTest, фикстура samples/chart-types.docx
* (WordPdfConverterTest#chartTypes_allTypesRenderAsImages).
*/
final class StockPainter {
/** c:hiLowLines — серый 0xA6A6A6 (дефолт Word). */
static final Color HI_LOW_COLOR = new Color(0xA6, 0xA6, 0xA6);
/** c:upBars — зелёный 0x70AD47 (дефолт Word). */
static final Color UP_FILL = new Color(0x70, 0xAD, 0x47);
/** c:downBars — красный 0xC00000 (дефолт Word). */
static final Color DOWN_FILL = new Color(0xC0, 0x00, 0x00);
/** c:dropLines — светло-серый 0xD9D9D9 (дефолт Word). */
static final Color DROP_COLOR = new Color(0xD9, 0xD9, 0xD9);
/** Линия закрытия рисуется только из двух и более точек. */
private static final int MIN_POLYLINE_POINTS = 2;
private StockPainter() {
}
static void paint(Graphics2D g, ChartSpec spec, Rectangle2D box, List<Color> palette) {
int nCat = 0;
for (ChartSpec.Series s : spec.series) {
nCat = Math.max(nCat, s.values.size());
}
if (spec.series.isEmpty() || nCat == 0) {
return;
}
List<String> cats = CartesianPainter.categoriesOf(spec, nCat);
ChartSpec.AxisSpec valAxis = spec.valAxis != null
? spec.valAxis : new ChartSpec.AxisSpec();
ChartSpec.AxisSpec catAxis = spec.catAxis != null
? spec.catAxis : new ChartSpec.AxisSpec();
double[] range = ChartRenderer.valueRange(spec);
double[] bounds = ChartRenderer.axisBounds(valAxis, range[0], range[1], true);
double lo = bounds[0];
double hi = bounds[1];
double unit = bounds[2];
DrawMlText.Style valStyle = valAxis.labelStyle;
DrawMlText.Style catStyle = catAxis.labelStyle;
// Поля под подписи осей — как у вертикального графика CartesianPainter.
double catGutter = (cats.isEmpty() ? 0
: catStyle != null ? DrawMlText.textHeight(catStyle) : 0) + 6;
List<String> valLabels = new ArrayList<>();
for (double v = lo; v <= hi + unit / 2; v += unit) {
valLabels.add(ChartRenderer.formatValue(v, valAxis.numFmt));
}
double valGutter = 8;
if (valStyle != null) {
for (String l : valLabels) {
valGutter = Math.max(valGutter, DrawMlText.textWidth(l, valStyle) + 8);
}
}
Rectangle2D plot = new Rectangle2D.Double(box.getX() + valGutter, box.getY(),
Math.max(10, box.getWidth() - valGutter),
Math.max(10, box.getHeight() - catGutter));
if (valAxis.gridlines && !valAxis.deleted) {
g.setColor(valAxis.gridColor);
g.setStroke(new BasicStroke(0.6f));
for (double v = lo; v <= hi + unit / 2; v += unit) {
double y = plot.getY() + (1 - (v - lo) / (hi - lo)) * plot.getHeight();
g.draw(new Line2D.Double(plot.getX(), y,
plot.getX() + plot.getWidth(), y));
}
}
// hiLowLines: под рядами, чтобы линии не затирались.
if (spec.hiLowLines) {
g.setColor(HI_LOW_COLOR);
g.setStroke(new BasicStroke(1.0f));
for (int i = 0; i < nCat; i++) {
double min = Double.MAX_VALUE;
double max = -Double.MAX_VALUE;
for (ChartSpec.Series s : spec.series) {
Double v = i < s.values.size() ? s.values.get(i) : null;
if (v != null) {
min = Math.min(min, v);
max = Math.max(max, v);
}
}
if (min > max || min == max) {
continue;
}
double x = catPos(i, nCat, plot);
g.draw(new Line2D.Double(x, valuePos(max, lo, hi, plot),
x, valuePos(min, lo, hi, plot)));
}
}
// upDownBars: между первым и последним рядом категории.
if (spec.upDownBars && spec.series.size() >= 2) {
ChartSpec.Series first = spec.series.get(0);
ChartSpec.Series last = spec.series.get(spec.series.size() - 1);
double w = plot.getWidth() / nCat * 100.0 / (100.0 + spec.upDownGapWidth);
for (int i = 0; i < nCat; i++) {
Double a = i < first.values.size() ? first.values.get(i) : null;
Double b = i < last.values.size() ? last.values.get(i) : null;
if (a == null || b == null || a.equals(b)) {
continue;
}
double x = catPos(i, nCat, plot);
double yA = valuePos(a, lo, hi, plot);
double yB = valuePos(b, lo, hi, plot);
g.setColor(b > a
? (spec.upFill != null ? spec.upFill : UP_FILL)
: spec.downFill != null ? spec.downFill : DOWN_FILL);
g.fill(new Rectangle2D.Double(x - w / 2, Math.min(yA, yB),
w, Math.abs(yB - yA)));
}
}
// Ряды-линии (маркеры — по c:marker ряда, как у LINE).
for (int si = 0; si < spec.series.size(); si++) {
ChartSpec.Series s = spec.series.get(si);
Color c = s.lineColor != null ? s.lineColor : s.fillAt(si, palette);
List<Double> xs = new ArrayList<>();
List<Double> ys = new ArrayList<>();
for (int i = 0; i < s.values.size(); i++) {
Double v = s.values.get(i);
if (v == null) {
continue;
}
xs.add(catPos(i, nCat, plot));
ys.add(valuePos(v, lo, hi, plot));
}
if (spec.dropLines) {
g.setColor(DROP_COLOR);
g.setStroke(new BasicStroke(0.75f));
double base = plot.getY() + plot.getHeight();
for (int i = 0; i < xs.size(); i++) {
g.draw(new Line2D.Double(xs.get(i), ys.get(i), xs.get(i), base));
}
}
if (xs.size() >= MIN_POLYLINE_POINTS) {
g.setColor(c);
g.setStroke(new BasicStroke((float) (s.lineWidth > 0 ? s.lineWidth : 2.25),
BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
g.draw(ChartRenderer.polyline(xs, ys, false));
}
if (s.marker) {
for (int i = 0; i < xs.size(); i++) {
CartesianPainter.drawMarker(g, xs.get(i), ys.get(i), false, c);
}
}
}
// Линия категории и подписи.
if (catAxis.axisLineColor != null && !catAxis.deleted) {
g.setColor(catAxis.axisLineColor);
g.setStroke(new BasicStroke((float) Math.max(0.5, catAxis.axisLineWidth)));
double y = plot.getY() + plot.getHeight();
g.draw(new Line2D.Double(plot.getX(), y, plot.getX() + plot.getWidth(), y));
}
if (catStyle != null) {
double h = DrawMlText.textHeight(catStyle) + 2;
double slot = plot.getWidth() / nCat;
for (int i = 0; i < nCat; i++) {
String label = cats.get(i);
if (label.isEmpty()) {
continue;
}
double w = DrawMlText.textWidth(label, catStyle);
if (w > slot * 1.15) {
continue;
}
double cx = plot.getX() + plot.getWidth() * (i + 0.5) / nCat;
DrawMlText.paint(g, List.of(new DrawMlText.Paragraph(label, catStyle, "ctr")),
new Rectangle2D.Double(cx - w / 2, plot.getY() + plot.getHeight() + 3,
w, h), "ctr", "t", 1.0);
}
}
if (valStyle != null) {
double h = DrawMlText.textHeight(valStyle) + 2;
for (int i = 0; i < valLabels.size(); i++) {
double t = valLabels.size() == 1 ? 0 : i / (double) (valLabels.size() - 1);
String label = valLabels.get(i);
double w = DrawMlText.textWidth(label, valStyle);
double y = plot.getY() + plot.getHeight() * (1 - t);
DrawMlText.paint(g, List.of(new DrawMlText.Paragraph(label, valStyle, "r")),
new Rectangle2D.Double(plot.getX() - w - 6, y - h / 2, w, h),
"r", "ctr", 1.0);
}
}
}
private static double valuePos(double v, double lo, double hi, Rectangle2D plot) {
return plot.getY() + (1 - (v - lo) / (hi - lo)) * plot.getHeight();
}
private static double catPos(int i, int n, Rectangle2D plot) {
return plot.getX() + plot.getWidth() * (i + 0.5) / n;
}
}
@@ -0,0 +1,261 @@
package ru.pjandro.wordpdf.internal.chart;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.geom.Line2D;
import java.awt.geom.Path2D;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import java.util.List;
/**
* Поверхностная диаграмма без объёма (c:surfaceChart, ECMA-376 §21.2.2.204):
* «отображает взаимосвязь между категориями и осью значений» — то есть
* рисуется в системе координат «категория × значение»: ось значений слева,
* категории снизу. Каждый ряд — ломаная через категории; лист поверхности
* идёт от переднего ряда к задним, и на экране виден торцом: полосы между
* соседними ломаными красятся контурными полосами высот (c:bandFmts,
* §21.2.2.13 — индексация от низкого к высокого; без bandFmts — палитра),
* передняя стенка от пола до ряда 0 — полосой значения переднего края.
* c:wireframe (§21.2.2.205) — вместо заливок сетка из ломаных рядов и
* линий по категориям.
*
* Регрессия — Surface2dPainterTest, фикстура samples/chart-types.docx
* (WordPdfConverterTest#chartTypes_allTypesRenderAsImages).
*/
final class Surface2dPainter {
private Surface2dPainter() {
}
/** Отрезок полосы короче этого не рисуется (эпсилон float-сравнения). */
private static final double MIN_SEGMENT = 1e-9;
static void paint(Graphics2D g, ChartSpec spec, Rectangle2D box, List<Color> palette) {
int nSer = spec.series.size();
int nCat = 0;
for (ChartSpec.Series s : spec.series) {
nCat = Math.max(nCat, s.values.size());
}
if (nSer < 2 || nCat < 2) {
return;
}
double[][] z = new double[nSer][nCat];
double min = Double.MAX_VALUE;
double max = -Double.MAX_VALUE;
for (int r = 0; r < nSer; r++) {
List<Double> vals = spec.series.get(r).values;
for (int c = 0; c < nCat; c++) {
double v = c < vals.size() && vals.get(c) != null ? vals.get(c) : 0;
z[r][c] = v;
min = Math.min(min, v);
max = Math.max(max, v);
}
}
ChartSpec.AxisSpec valAxis = spec.valAxis != null
? spec.valAxis : new ChartSpec.AxisSpec();
ChartSpec.AxisSpec catAxis = spec.catAxis != null
? spec.catAxis : new ChartSpec.AxisSpec();
double[] bounds = ChartRenderer.axisBounds(valAxis, min, max);
double lo = bounds[0];
double hi = bounds[1];
double unit = bounds[2];
int bandCount = Math.max(1, (int) Math.ceil((hi - lo) / unit - 1e-9));
List<Color> bands = spec.bandColors.isEmpty() ? palette : spec.bandColors;
// Поля под подписи осей — та же auto-layout-эвристика, что у
// CartesianPainter (подписи значений слева, категорий снизу).
List<String> cats = CartesianPainter.categoriesOf(spec, nCat);
DrawMlText.Style valStyle = valAxis.labelStyle;
DrawMlText.Style catStyle = catAxis.labelStyle;
List<String> valLabels = new ArrayList<>();
for (double v = lo; v <= hi + unit / 2; v += unit) {
valLabels.add(ChartRenderer.formatValue(v, valAxis.numFmt));
}
double catGutter = catStyle != null ? DrawMlText.textHeight(catStyle) + 6 : 6;
double valGutter = 8;
if (valStyle != null) {
for (String l : valLabels) {
valGutter = Math.max(valGutter, DrawMlText.textWidth(l, valStyle) + 8);
}
}
Rectangle2D plot = new Rectangle2D.Double(
box.getX() + valGutter, box.getY(),
Math.max(10, box.getWidth() - valGutter),
Math.max(10, box.getHeight() - catGutter));
// Сетка по делениям оси значений — под поверхностью.
if (valAxis.gridlines && !valAxis.deleted) {
g.setColor(valAxis.gridColor);
g.setStroke(new BasicStroke(0.6f));
for (double v = lo; v <= hi + unit / 2; v += unit) {
double y = yOf(v, lo, hi, plot);
g.draw(new Line2D.Double(plot.getX(), y,
plot.getX() + plot.getWidth(), y));
}
}
if (spec.wireframe) {
drawWireframe(g, z, nSer, nCat, lo, hi, plot, valAxis);
} else {
drawContour(g, z, nSer, nCat, lo, hi, unit, bandCount, bands, plot);
}
// Оси поверх: линия категории и подписи.
if (catAxis.axisLineColor != null && !catAxis.deleted) {
g.setColor(catAxis.axisLineColor);
g.setStroke(new BasicStroke((float) Math.max(0.5, catAxis.axisLineWidth)));
double y = plot.getY() + plot.getHeight();
g.draw(new Line2D.Double(plot.getX(), y,
plot.getX() + plot.getWidth(), y));
}
drawCategoryLabels(g, cats, plot, catStyle);
drawValueLabels(g, valLabels, plot, valStyle, lo, hi);
}
/**
* Контурная заливка: по вертикальным срезам листа. На срезе x лист
* занимает вертикальные промежутки между соседними ломаными (ряд r и
* r+1) плюс переднюю стенку [пол, ряд 0]; промежуток режется по
* границам полос высот, каждая часть красится своей полосой.
*/
private static void drawContour(Graphics2D g, double[][] z, int nSer, int nCat,
double lo, double hi, double unit, int bandCount,
List<Color> bands, Rectangle2D plot) {
double step = Math.max(0.4, plot.getWidth() / 400.0);
// Без сглаживания: соседние колонки-заливки иначе дают полупрозрачные
// стыки-«полоски» (границы полос меняются от колонки к колонке).
Object oldAA = g.getRenderingHint(RenderingHints.KEY_ANTIALIASING);
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_OFF);
for (double x = plot.getX(); x < plot.getX() + plot.getWidth(); x += step) {
double w = Math.min(step + 0.6, plot.getX() + plot.getWidth() - x + 0.6);
double[] h = new double[nSer];
for (int r = 0; r < nSer; r++) {
h[r] = interp(z[r], x, plot, nCat);
}
// Задние полосы — первыми, передняя стенка перекрывает всё снизу.
for (int r = nSer - 2; r >= 0; r--) {
double v0 = Math.min(h[r], h[r + 1]);
double v1 = Math.max(h[r], h[r + 1]);
int k0 = Math.max(0, Math.min(bandCount - 1, (int) Math.floor((v0 - lo) / unit)));
int k1 = Math.max(0, Math.min(bandCount - 1, (int) Math.floor((v1 - lo) / unit)));
for (int k = k0; k <= k1; k++) {
double segLo = Math.max(v0, lo + k * unit);
double segHi = Math.min(v1, lo + (k + 1) * unit);
if (segHi - segLo <= MIN_SEGMENT) {
continue;
}
g.setColor(bands.get(k % bands.size()));
double yTop = yOf(segHi, lo, hi, plot);
g.fill(new Rectangle2D.Double(x, yTop, w,
yOf(segLo, lo, hi, plot) - yTop));
}
}
double front = h[0];
if (front > lo) {
int k = Math.max(0, Math.min(bandCount - 1,
(int) Math.floor((front - lo) / unit)));
g.setColor(bands.get(k % bands.size()));
double yTop = yOf(front, lo, hi, plot);
g.fill(new Rectangle2D.Double(x, yTop, w,
plot.getY() + plot.getHeight() - yTop));
}
}
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, oldAA);
}
/** c:wireframe: сетка листа — ломаные рядов + линии по категориям. */
private static void drawWireframe(Graphics2D g, double[][] z, int nSer, int nCat,
double lo, double hi, Rectangle2D plot,
ChartSpec.AxisSpec valAxis) {
g.setColor(valAxis.gridColor);
g.setStroke(new BasicStroke(0.6f));
for (int r = 0; r < nSer; r++) {
Path2D p = new Path2D.Double();
for (int c = 0; c < nCat; c++) {
double x = xOf(c, plot, nCat);
double y = yOf(z[r][c], lo, hi, plot);
if (c == 0) {
p.moveTo(x, y);
} else {
p.lineTo(x, y);
}
}
g.draw(p);
}
for (int c = 0; c < nCat; c++) {
double x = xOf(c, plot, nCat);
double yTop = yOf(z[nSer - 1][c], lo, hi, plot);
double yBot = yOf(z[0][c], lo, hi, plot);
g.draw(new Line2D.Double(x, Math.min(yTop, yBot), x, Math.max(yTop, yBot)));
}
}
/** Высота листа на срезе x: линейная интерполяция ломаной ряда. */
private static double interp(double[] row, double x, Rectangle2D plot, int nCat) {
double t = (x - plot.getX()) / plot.getWidth() * (nCat - 1);
int c = (int) Math.floor(t);
if (c < 0) {
return row[0];
}
if (c >= nCat - 1) {
return row[nCat - 1];
}
double f = t - c;
return row[c] + (row[c + 1] - row[c]) * f;
}
private static double xOf(int c, Rectangle2D plot, int nCat) {
return plot.getX() + plot.getWidth() * c / (nCat - 1);
}
private static double yOf(double v, double lo, double hi, Rectangle2D plot) {
return plot.getY() + (1 - (v - lo) / (hi - lo)) * plot.getHeight();
}
private static void drawCategoryLabels(Graphics2D g, List<String> cats,
Rectangle2D plot, DrawMlText.Style style) {
if (style == null || cats.isEmpty()) {
return;
}
int n = cats.size();
double h = DrawMlText.textHeight(style) + 2;
double slot = plot.getWidth() / n;
for (int i = 0; i < n; i++) {
String label = cats.get(i);
if (label.isEmpty()) {
continue;
}
double cx = plot.getX() + plot.getWidth() * (i + 0.5) / n;
double w = DrawMlText.textWidth(label, style);
if (w > slot * 1.15) {
continue;
}
DrawMlText.paint(g, List.of(new DrawMlText.Paragraph(label, style, "ctr")),
new Rectangle2D.Double(cx - w / 2, plot.getY() + plot.getHeight() + 3,
w, h),
"ctr", "t", 1.0);
}
}
private static void drawValueLabels(Graphics2D g, List<String> labels,
Rectangle2D plot, DrawMlText.Style style,
double lo, double hi) {
if (style == null) {
return;
}
double h = DrawMlText.textHeight(style) + 2;
for (int i = 0; i < labels.size(); i++) {
double v = lo + (hi - lo) * i / Math.max(1, labels.size() - 1);
double y = yOf(v, lo, hi, plot);
DrawMlText.paint(g,
List.of(new DrawMlText.Paragraph(labels.get(i), style, "r")),
new Rectangle2D.Double(plot.getX() - 6, y - h / 2,
Math.max(10, DrawMlText.textWidth(labels.get(i), style)), h),
"r", "ctr", 1.0);
}
}
}
@@ -0,0 +1,263 @@
package ru.pjandro.wordpdf;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
/**
* Генератор фикстуры {@code samples/chart-types.docx}: 9 диаграмм типов,
* которых POI не пишет (scatter, bubble, radar, stock, ofPie, bar3D,
* area3D, line3D, surface2D) — chart-XML литералами по ECMA-376 §21.2
* (фикстура проходит docs/standards/validate-fixtures.py). Регрессия —
* WordPdfConverterTest#chartTypes_allTypesRenderAsImages.
*
* Пересоздание (аргумент — путь к .docx):
* {@code mvn -pl wordpdf-core test-compile -Dmdep.outputFile=/tmp/cp.txt dependency:build-classpath -q &&
* javac -cp "$(cat /tmp/cp.txt)" -d /tmp/ct wordpdf-core/src/test/java/ru/pjandro/wordpdf/ChartTypesDocxGenerator.java &&
* java -cp "/tmp/ct:$(cat /tmp/cp.txt)" ru.pjandro.wordpdf.ChartTypesDocxGenerator wordpdf-core/src/test/resources/samples/chart-types.docx}
*/
public final class ChartTypesDocxGenerator {
private ChartTypesDocxGenerator() {
}
private static final String C = "http://schemas.openxmlformats.org/drawingml/2006/chart";
private static final String A = "http://schemas.openxmlformats.org/drawingml/2006/main";
private static final String R = "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
public static void main(String[] args) throws IOException {
Path out = Path.of(args[0]);
List<String> titles = List.of(
"Точечная", "Пузырьковая", "Лепестковая", "Биржевая",
"Кольцевая-доля", "Объёмная с столбцами", "Объёмная с областями",
"Объёмная с линиями", "Поверхность");
List<String> charts = new ArrayList<>();
charts.add(scatter());
charts.add(bubble());
charts.add(radar());
charts.add(stock());
charts.add(ofPie());
charts.add(bar3d());
charts.add(area3d());
charts.add(line3d());
charts.add(surface());
StringBuilder body = new StringBuilder();
body.append("<w:p><w:r><w:t>Типы диаграмм</w:t></w:r></w:p>");
StringBuilder docRels = new StringBuilder(
"<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">");
StringBuilder overrides = new StringBuilder();
for (int i = 0; i < charts.size(); i++) {
int n = i + 1;
body.append("<w:p><w:r><w:drawing>"
+ "<wp:inline xmlns:wp=\"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing\""
+ " distT=\"0\" distB=\"0\" distL=\"0\" distR=\"0\">"
+ "<wp:extent cx=\"4572000\" cy=\"2743200\"/>"
+ "<wp:docPr id=\"" + n + "\" name=\"Диаграмма " + n + "\"/>"
+ "<a:graphic xmlns:a=\"" + A + "\"><a:graphicData uri=\"" + C + "\">"
+ "<c:chart xmlns:c=\"" + C + "\" xmlns:r=\"" + R + "\" r:id=\"rId" + n + "\"/>"
+ "</a:graphicData></a:graphic></wp:inline></w:drawing></w:r></w:p>");
docRels.append("<Relationship Id=\"rId").append(n)
.append("\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart\"")
.append(" Target=\"charts/chart").append(n).append(".xml\"/>");
overrides.append("<Override PartName=\"/word/charts/chart").append(n)
.append(".xml\" ContentType=\"application/vnd.openxmlformats-officedocument.drawingml.chart+xml\"/>");
}
docRels.append("</Relationships>");
ByteArrayOutputStream out2 = new ByteArrayOutputStream();
try (ZipOutputStream zos = new ZipOutputStream(out2)) {
put(zos, "[Content_Types].xml",
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"
+ "<Types xmlns=\"http://schemas.openxmlformats.org/package/2006/content-types\">"
+ "<Default Extension=\"rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\"/>"
+ "<Default Extension=\"xml\" ContentType=\"application/xml\"/>"
+ "<Override PartName=\"/word/document.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml\"/>"
+ overrides
+ "</Types>");
put(zos, "_rels/.rels",
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"
+ "<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">"
+ "<Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\" Target=\"word/document.xml\"/>"
+ "</Relationships>");
put(zos, "word/document.xml",
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"
+ "<w:document xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\">"
+ "<w:body>" + body
+ "<w:sectPr><w:pgSz w:w=\"11906\" w:h=\"16838\"/></w:sectPr></w:body></w:document>");
put(zos, "word/_rels/document.xml.rels",
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>" + docRels);
for (int i = 0; i < charts.size(); i++) {
put(zos, "word/charts/chart" + (i + 1) + ".xml",
space(titles.get(i), charts.get(i)));
}
}
Files.write(out, out2.toByteArray());
System.out.println("written " + out + " " + out2.size() + " bytes");
}
private static String space(String title, String groupWithAxes) {
return "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"
+ "<c:chartSpace xmlns:c=\"" + C + "\" xmlns:a=\"" + A + "\" xmlns:r=\"" + R + "\">"
+ "<c:chart>"
+ "<c:title><c:tx><c:rich><a:bodyPr/><a:lstStyle/><a:p><a:r><a:t>" + title
+ "</a:t></a:r></a:p></c:rich></c:tx></c:title>"
+ "<c:plotArea><c:layout/>" + groupWithAxes + "</c:plotArea>"
+ "<c:legend><c:legendPos val=\"b\"/></c:legend>"
+ "<c:plotVisOnly val=\"1\"/>"
+ "</c:chart></c:chartSpace>";
}
// ---- группы ----
private static String scatter() {
return "<c:scatterChart><c:scatterStyle val=\"lineMarker\"/><c:varyColors val=\"0\"/>"
+ "<c:ser><c:idx val=\"0\"/><c:order val=\"0\"/><c:tx><c:v>Точки</c:v></c:tx>"
+ xVal("1", "2", "3", "4")
+ "<c:yVal><c:numRef><c:f>Лист1!$C$2:$C$5</c:f>" + numRef("2", "3", "5", "4") + "</c:numRef></c:yVal></c:ser>"
+ "<c:axId val=\"1\"/><c:axId val=\"2\"/></c:scatterChart>"
+ valAx(1, "b", 2) + valAx(2, "l", 1);
}
private static String bubble() {
return "<c:bubbleChart><c:varyColors val=\"1\"/>"
+ "<c:ser><c:idx val=\"0\"/><c:order val=\"0\"/><c:tx><c:v>Размер</c:v></c:tx>"
+ xVal("2", "3", "5", "7")
+ "<c:yVal><c:numRef><c:f>Лист1!$C$2:$C$5</c:f>" + numRef("4", "9", "6", "2") + "</c:numRef></c:yVal>"
+ "<c:bubbleSize><c:numRef><c:f>Лист1!$D$2:$D$5</c:f>" + numRef("1", "2", "3", "4") + "</c:numRef></c:bubbleSize>"
+ "</c:ser>"
+ "<c:bubbleScale val=\"20\"/><c:showNegBubbles val=\"0\"/>"
+ "<c:axId val=\"1\"/><c:axId val=\"2\"/></c:bubbleChart>"
+ valAx(1, "b", 2) + valAx(2, "l", 1);
}
private static String radar() {
return "<c:radarChart><c:radarStyle val=\"filled\"/><c:varyColors val=\"0\"/>"
+ ser("Профиль", cat("А", "Б", "В", "Г"), num("3", "7", "5", "8"))
+ "<c:axId val=\"1\"/><c:axId val=\"2\"/></c:radarChart>"
+ catAx(1, 2) + valAx(2, "l", 1);
}
private static String stock() {
return "<c:stockChart>"
+ ser("Мин", cat("Пн", "Вт", "Ср"), num("10", "14", "12"))
+ ser("Макс", cat("Пн", "Вт", "Ср"), num("20", "24", "18"))
+ ser("Закрытие", cat("Пн", "Вт", "Ср"), num("15", "22", "13"))
+ "<c:dropLines/><c:hiLowLines/>"
+ "<c:upDownBars><c:gapWidth val=\"60\"/>"
+ "<c:upBars><c:spPr><a:solidFill><a:srgbClr val=\"00B050\"/></a:solidFill></c:spPr></c:upBars>"
+ "<c:downBars><c:spPr><a:solidFill><a:srgbClr val=\"C00000\"/></a:solidFill></c:spPr></c:downBars>"
+ "</c:upDownBars>"
+ "<c:axId val=\"1\"/><c:axId val=\"2\"/></c:stockChart>"
+ catAx(1, 2) + valAx(2, "l", 1);
}
private static String ofPie() {
return "<c:ofPieChart><c:ofPieType val=\"bar\"/><c:varyColors val=\"1\"/>"
+ ser("Доли", cat("Север", "Юг", "Восток", "Запад", "Центр"),
num("40", "25", "18", "10", "7"))
+ "<c:splitType val=\"cust\"/>"
+ "<c:custSplit><c:secondPiePt val=\"3\"/><c:secondPiePt val=\"4\"/></c:custSplit>"
+ "<c:secondPieSize val=\"40\"/>"
+ "<c:serLines/>"
+ "</c:ofPieChart>";
}
private static String bar3d() {
return "<c:bar3DChart><c:barDir val=\"col\"/><c:grouping val=\"clustered\"/><c:varyColors val=\"0\"/>"
+ ser("План", cat("Q1", "Q2", "Q3"), num("5", "9", "7"))
+ ser("Факт", cat("Q1", "Q2", "Q3"), num("6", "8", "10"))
+ "<c:gapWidth val=\"150\"/><c:gapDepth val=\"150\"/><c:shape val=\"box\"/>"
+ "<c:axId val=\"1\"/><c:axId val=\"2\"/></c:bar3DChart>"
+ catAx(1, 2) + valAx(2, "l", 1);
}
private static String area3d() {
return "<c:area3DChart><c:grouping val=\"standard\"/><c:varyColors val=\"0\"/>"
+ ser("Серия 1", cat("Q1", "Q2", "Q3"), num("4", "7", "5"))
+ ser("Серия 2", cat("Q1", "Q2", "Q3"), num("6", "5", "9"))
+ "<c:gapDepth val=\"150\"/>"
+ "<c:axId val=\"1\"/><c:axId val=\"2\"/></c:area3DChart>"
+ catAx(1, 2) + valAx(2, "l", 1);
}
private static String line3d() {
return "<c:line3DChart><c:grouping val=\"standard\"/>"
+ ser("Серия 1", cat("Q1", "Q2", "Q3"), num("4", "7", "5"))
+ ser("Серия 2", cat("Q1", "Q2", "Q3"), num("6", "5", "9"))
+ "<c:gapDepth val=\"150\"/>"
+ "<c:axId val=\"1\"/><c:axId val=\"2\"/><c:axId val=\"3\"/></c:line3DChart>"
+ catAx(1, 2) + valAx(2, "l", 1) + serAx(3, 2);
}
private static String surface() {
return "<c:surfaceChart><c:wireframe val=\"0\"/>"
+ ser("Высота", cat("X1", "X2", "X3"), num("1", "5", "3"))
+ ser("Глубина", cat("X1", "X2", "X3"), num("4", "2", "6"))
+ "<c:axId val=\"1\"/><c:axId val=\"2\"/></c:surfaceChart>"
+ catAx(1, 2) + valAx(2, "l", 1);
}
// ---- фрагменты ----
/** ser с cat (или null) и val. */
private static String ser(String name, String cat, String val) {
return "<c:ser><c:idx val=\"0\"/><c:order val=\"0\"/><c:tx><c:v>" + name + "</c:v></c:tx>"
+ (cat == null ? "" : cat) + val + "</c:ser>";
}
private static String cat(String... names) {
StringBuilder sb = new StringBuilder("<c:cat><c:strRef><c:f>Лист1!$A$2:$A$"
+ (names.length + 1) + "</c:f><c:strCache><c:ptCount val=\"" + names.length + "\"/>");
for (int i = 0; i < names.length; i++) {
sb.append("<c:pt idx=\"").append(i).append("\"><c:v>").append(names[i]).append("</c:v></c:pt>");
}
return sb.append("</c:strCache></c:strRef></c:cat>").toString();
}
private static String num(String... vals) {
return "<c:val><c:numRef><c:f>Лист1!$B$2:$B$" + (vals.length + 1) + "</c:f>"
+ numRef(vals) + "</c:numRef></c:val>";
}
private static String numRef(String... vals) {
StringBuilder sb = new StringBuilder("<c:numCache><c:formatCode>Общий</c:formatCode>"
+ "<c:ptCount val=\"" + vals.length + "\"/>");
for (int i = 0; i < vals.length; i++) {
sb.append("<c:pt idx=\"").append(i).append("\"><c:v>").append(vals[i]).append("</c:v></c:pt>");
}
return sb.append("</c:numCache>").toString();
}
private static String xVal(String... vals) {
return "<c:xVal><c:numRef><c:f>Лист1!$A$2:$A$" + (vals.length + 1) + "</c:f>"
+ numRef(vals) + "</c:numRef></c:xVal>";
}
private static String valAx(int id, String pos, int cross) {
return "<c:valAx><c:axId val=\"" + id + "\"/><c:scaling><c:orientation val=\"minMax\"/></c:scaling>"
+ "<c:delete val=\"0\"/><c:axPos val=\"" + pos + "\"/><c:crossAx val=\"" + cross + "\"/></c:valAx>";
}
private static String catAx(int id, int cross) {
return "<c:catAx><c:axId val=\"" + id + "\"/><c:scaling><c:orientation val=\"minMax\"/></c:scaling>"
+ "<c:delete val=\"0\"/><c:axPos val=\"b\"/><c:crossAx val=\"" + cross + "\"/></c:catAx>";
}
private static String serAx(int id, int cross) {
return "<c:serAx><c:axId val=\"" + id + "\"/><c:scaling><c:orientation val=\"minMax\"/></c:scaling>"
+ "<c:delete val=\"0\"/><c:axPos val=\"b\"/><c:crossAx val=\"" + cross + "\"/></c:serAx>";
}
private static void put(ZipOutputStream zos, String name, String xml) throws IOException {
zos.putNextEntry(new ZipEntry(name));
zos.write(xml.getBytes(StandardCharsets.UTF_8));
zos.closeEntry();
}
}
@@ -147,6 +147,7 @@ public final class SampleDocxGenerator {
// Таблица 2x2 с границами
XWPFTable table = doc.createTable(2, 2);
addTableGrid(table, 2);
setCell(table, 0, 0, "Заголовок 1", "Calibri");
setCell(table, 0, 1, "Header 1", "Calibri");
setCell(table, 1, 0, "Ячейка А", "Calibri");
@@ -176,6 +177,7 @@ public final class SampleDocxGenerator {
heading(doc, "Таблица и изображение", "Arial");
XWPFTable table = doc.createTable(3, 2);
addTableGrid(table, 2);
setCell(table, 0, 0, "Имя", "Arial");
setCell(table, 0, 1, "Значение", "Arial");
setCell(table, 1, 0, "Шрифт", "Arial");
@@ -479,6 +481,19 @@ public final class SampleDocxGenerator {
setFont(r, font);
}
/**
* POI {@code createTable} не пишет {@code w:tblGrid}, а ECMA-376 §17.4.63
* (CT_Tbl) требует его обязательным между {@code w:tblPr} и {@code w:tr} —
* без него документ не conformant. XmlBeans вставляет элемент на
* schema-позицию (после tblPr), колонки — равной ширины.
*/
private static void addTableGrid(XWPFTable table, int cols) {
var grid = table.getCTTbl().addNewTblGrid();
for (int i = 0; i < cols; i++) {
grid.addNewGridCol().setW(BigInteger.valueOf(4320));
}
}
private static void save(XWPFDocument doc, Path out) throws Exception {
try (FileOutputStream fos = new FileOutputStream(out.toFile())) {
doc.write(fos);
@@ -1,11 +1,13 @@
package ru.pjandro.wordpdf;
import org.apache.pdfbox.Loader;
import org.apache.pdfbox.cos.COSBase;
import org.apache.pdfbox.cos.COSName;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.PDResources;
import org.apache.pdfbox.pdmodel.font.PDFont;
import org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject;
import org.apache.pdfbox.text.PDFTextStripper;
import org.junit.jupiter.api.Test;
@@ -15,6 +17,7 @@ import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
@@ -131,6 +134,26 @@ class WordPdfConverterTest {
return count;
}
/** Количество РАЗЛИЧНЫХ image-потоков без SMask (FOP режет ARGB-PNG на
* картинку + мягкую маску, а большой PNG ещё и на горизонтальные полосы). */
private static int distinctImageCount(Path pdf) throws IOException {
Set<COSBase> streams = new HashSet<>();
try (PDDocument doc = Loader.loadPDF(pdf.toFile())) {
for (PDPage page : doc.getPages()) {
PDResources res = page.getResources();
for (COSName name : res.getXObjectNames()) {
if (res.isImageXObject(name)) {
PDImageXObject img = (PDImageXObject) res.getXObject(name);
if (img.getSoftMask() == null) {
streams.add(img.getCOSObject());
}
}
}
}
}
return streams.size();
}
/**
* Диаграммы (c:chart) и SmartArt (dgm:relIds) до экспорта в FO
* рендерятся в PNG: без этого docx2fo.xslt выбрасывает весь w:drawing
@@ -146,6 +169,23 @@ class WordPdfConverterTest {
"ожидались 4 растра (SmartArt + 3 графика), найдено: " + imageCount(pdf));
}
/**
* Фикстура chart-types.docx (создана вручную, chart-XML литералами — POI
* эти типы не пишет): все девять новых типов — точечная, пузырьковая,
* лепестковая, биржевая, кольцевая-доля, три объёмных декартовых и
* поверхность — рендерятся в растр, а не удаляются с warn.
* Регрессия — WordPdfConverterTest#chartTypes_allNineRendered.
*/
@Test
void chartTypes_allNineRendered() throws Exception {
Path pdf = convertPdf(sampleBytes("chart-types.docx"), "chart-types");
String text = norm(pdfText(pdf));
assertTrue(text.contains("Типы диаграмм"), "пропал текст: " + text);
assertEquals(9, distinctImageCount(pdf),
"каждый из 9 графиков должен стать PNG-вставкой");
}
/**
* errorOnCharts=true: находка диаграмм — {@link DrawingFoundException}
* с {@code Kind.CHARTS}, документ отвергается целиком. Error-флаг SmartArt
@@ -0,0 +1,150 @@
package ru.pjandro.wordpdf.internal.chart;
import org.junit.jupiter.api.Test;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
/**
* Объёмные декартовы графики (c:bar3DChart/line3DChart/area3DChart):
* колонки — связные прогоны цвета ряда по горизонтали, линия ряда —
* пиксели цвета, стена area — полупрозрачная заливка; c:shape≠box
* рисуется как box (документированное ограничение, тест его пинит).
* Регрессия — Cartesian3dPainterTest, фикстура samples/chart-types.docx
* (WordPdfConverterTest#chartTypes_allTypesRenderAsImages).
*/
class Cartesian3dPainterTest {
private static final Color ACCENT1 = new Color(0x4472C4);
/** accent1 с альфой 0,55 поверх белого (стена area3D). */
private static final Color FILLED = new Color(152, 178, 222);
/** Прогоны тоньше этого — антиалиасинг рёбер/подписей, не столбцы. */
private static final int MIN_RUN_PX = 8;
/** bar3D: три категории — три связных столбца цвета ряда. */
@Test
void bar3d_threeCategoriesThreeColumns() {
ChartSpec spec = bar3dSpec(3);
BufferedImage img = render(spec);
int bestRuns = 0;
for (int y = 0; y < img.getHeight(); y++) {
bestRuns = Math.max(bestRuns, runsInRow(img, y, ACCENT1));
}
assertEquals(3, bestRuns, "три категории bar3D должны дать три столбца");
}
/** line3D: линия ряда рисуется цветом ряда. */
@Test
void line3d_drawsSeriesLine() {
ChartSpec spec = new ChartSpec();
spec.type = ChartSpec.Type.LINE3D;
spec.legendPos = null;
ChartSpec.Series s = new ChartSpec.Series();
s.values.add(1.0);
s.values.add(3.0);
s.values.add(2.0);
spec.series.add(s);
assertTrue(countColor(render(spec), ACCENT1) > 200,
"линии line3D не найдено");
}
/** area3D: стена ряда — полупрозрачная заливка цвета ряда. */
@Test
void area3d_drawsTranslucentWall() {
ChartSpec spec = new ChartSpec();
spec.type = ChartSpec.Type.AREA3D;
spec.legendPos = null;
ChartSpec.Series s = new ChartSpec.Series();
s.values.add(2.0);
s.values.add(4.0);
s.values.add(3.0);
spec.series.add(s);
assertTrue(countColor(render(spec), FILLED) > 500,
"полупрозрачной стены area3D не найдено");
}
/** c:shape="cylinder" рисуется как box — документированное ограничение. */
@Test
void shape3d_cylinderRendersAsBox() {
ChartSpec box = bar3dSpec(3);
box.shape3d = "box";
ChartSpec cylinder = bar3dSpec(3);
cylinder.shape3d = "cylinder";
BufferedImage a = render(box);
BufferedImage b = render(cylinder);
for (int y = 0; y < a.getHeight(); y++) {
for (int x = 0; x < a.getWidth(); x++) {
assertEquals(a.getRGB(x, y), b.getRGB(x, y),
"shape3d не должен влиять на рендер (рисуются боксы)");
}
}
}
private static ChartSpec bar3dSpec(int nCat) {
ChartSpec spec = new ChartSpec();
spec.type = ChartSpec.Type.BAR3D;
spec.legendPos = null;
ChartSpec.Series s = new ChartSpec.Series();
for (int i = 0; i < nCat; i++) {
s.values.add(5.0);
}
spec.series.add(s);
return spec;
}
private static BufferedImage render(ChartSpec spec) {
return ChartRenderer.render(spec, 219.23, 149.08, new DrawMlColor(null));
}
/** Число связных прогонов цвета в строке. */
private static int runsInRow(BufferedImage img, int y, Color c) {
boolean in = false;
List<Integer> lens = new ArrayList<>();
int len = 0;
for (int x = 0; x < img.getWidth(); x++) {
boolean hit = matches(img.getRGB(x, y), c);
if (hit && !in) {
in = true;
len = 0;
} else if (!hit && in) {
in = false;
lens.add(len);
}
if (hit) {
len++;
}
}
int real = 0;
for (int l : lens) {
if (l >= MIN_RUN_PX) {
real++;
}
}
if (in && len >= MIN_RUN_PX) {
real++;
}
return real;
}
private static long countColor(BufferedImage img, Color c) {
long n = 0;
for (int y = 0; y < img.getHeight(); y++) {
for (int x = 0; x < img.getWidth(); x++) {
if (matches(img.getRGB(x, y), c)) {
n++;
}
}
}
return n;
}
private static boolean matches(int rgb, Color c) {
return Math.abs(((rgb >> 16) & 0xFF) - c.getRed()) <= 24
&& Math.abs(((rgb >> 8) & 0xFF) - c.getGreen()) <= 24
&& Math.abs((rgb & 0xFF) - c.getBlue()) <= 24;
}
}
@@ -8,6 +8,12 @@ import org.docx4j.dml.CTSolidColorFillProperties;
import org.docx4j.dml.CTSRgbColor;
import org.docx4j.dml.CTTextBody;
import org.docx4j.dml.CTTextParagraph;
import org.docx4j.dml.chart.CTArea3DChart;
import org.docx4j.dml.chart.CTBar3DChart;
import org.docx4j.dml.chart.CTBubbleChart;
import org.docx4j.dml.chart.CTBubbleScale;
import org.docx4j.dml.chart.CTBubbleSer;
import org.docx4j.dml.chart.CTCustSplit;
import org.docx4j.dml.chart.CTAreaChart;
import org.docx4j.dml.chart.CTAreaSer;
import org.docx4j.dml.chart.CTAxDataSource;
@@ -43,29 +49,51 @@ import org.docx4j.dml.chart.CTNumFmt;
import org.docx4j.dml.chart.CTNumRef;
import org.docx4j.dml.chart.CTNumVal;
import org.docx4j.dml.chart.CTOverlap;
import org.docx4j.dml.chart.CTPerspective;
import org.docx4j.dml.chart.CTLine3DChart;
import org.docx4j.dml.chart.CTPieChart;
import org.docx4j.dml.chart.CTPieSer;
import org.docx4j.dml.chart.CTPlotArea;
import org.docx4j.dml.chart.CTRotY;
import org.docx4j.dml.chart.CTScaling;
import org.docx4j.dml.chart.CTSerAx;
import org.docx4j.dml.chart.CTOfPieChart;
import org.docx4j.dml.chart.CTOfPieType;
import org.docx4j.dml.chart.CTPerspective;
import org.docx4j.dml.chart.CTPieSer;
import org.docx4j.dml.chart.CTSerTx;
import org.docx4j.dml.chart.CTTx;
import org.docx4j.dml.chart.STLegendPos;
import org.junit.jupiter.api.Test;
import org.docx4j.dml.chart.CTRotY;
import org.docx4j.dml.chart.CTRadarChart;
import org.docx4j.dml.chart.CTRadarSer;
import org.docx4j.dml.chart.CTRadarStyle;
import org.docx4j.dml.chart.CTScatterChart;
import org.docx4j.dml.chart.CTScatterSer;
import org.docx4j.dml.chart.CTScatterStyle;
import org.docx4j.dml.chart.CTShape;
import org.docx4j.dml.chart.CTSizeRepresents;
import org.docx4j.dml.chart.CTSplitType;
import org.docx4j.dml.chart.CTStockChart;
import org.docx4j.dml.chart.CTSerAx;
import org.docx4j.dml.chart.CTSecondPieSize;
import org.docx4j.dml.chart.CTStrData;
import org.docx4j.dml.chart.CTStrRef;
import org.docx4j.dml.chart.CTStrVal;
import org.docx4j.dml.chart.CTSurface3DChart;
import org.docx4j.dml.chart.CTSurfaceSer;
import org.docx4j.dml.chart.CTTitle;
import org.docx4j.dml.chart.CTTx;
import org.docx4j.dml.chart.CTUpDownBar;
import org.docx4j.dml.chart.CTUpDownBars;
import org.docx4j.dml.chart.CTUnsignedInt;
import org.docx4j.dml.chart.CTValAx;
import org.docx4j.dml.chart.CTView3D;
import org.docx4j.dml.chart.STAxPos;
import org.docx4j.dml.chart.STBarDir;
import org.docx4j.dml.chart.STLegendPos;
import org.docx4j.dml.chart.STOfPieType;
import org.docx4j.dml.chart.STMarkerStyle;
import org.junit.jupiter.api.Test;
import org.docx4j.dml.chart.STRadarStyle;
import org.docx4j.dml.chart.STScatterStyle;
import org.docx4j.dml.chart.STShape;
import org.docx4j.dml.chart.STSizeRepresents;
import org.docx4j.dml.chart.STSplitType;
import java.awt.Color;
import java.util.List;
@@ -1119,4 +1147,279 @@ class ChartSpecTest {
assertEquals(Color.BLUE, s.fillAt(0, List.of(Color.RED)), "c:dPt приоритетнее c:fill");
assertEquals(Color.MAGENTA, s.fillAt(1, List.of(Color.RED)), "c:fill приоритетнее палитры");
}
// ---- новые типы: scatter/bubble/radar/stock/ofPie/3D-декартовы ----
/** c:scatterChart: c:xVal/c:yVal и c:scatterStyle разбираются. */
@Test
void scatterXyValuesParsed() {
CTScatterChart chart = new CTScatterChart();
CTScatterStyle style = new CTScatterStyle();
style.setVal(STScatterStyle.LINE_MARKER);
chart.setScatterStyle(style);
CTScatterSer ser = new CTScatterSer();
CTSerTx tx = new CTSerTx();
tx.setV("Точки");
ser.setTx(tx);
ser.setXVal(axisNum(1.5, 2.5));
ser.setYVal(numSource(numCache(10, 20)));
chart.getSer().add(ser);
ChartSpec spec = new ChartSpec();
ChartSpec.readGroup(chart, spec, new DrawMlColor(null), List.of());
assertEquals(ChartSpec.Type.SCATTER, spec.type);
assertEquals("lineMarker", spec.scatterStyle);
assertEquals("Точки", spec.series.get(0).name);
assertEquals(List.of(1.5, 2.5), spec.series.get(0).xValues);
assertEquals(List.of(10.0, 20.0), spec.series.get(0).values);
}
/** scatter: первая c:valAx — ось X, вторая — ось значений. */
@Test
void scatterFirstValAxisIsX() {
CTChart chart = new CTChart();
CTPlotArea pa = new CTPlotArea();
CTScatterChart sc = new CTScatterChart();
sc.getSer().add(new CTScatterSer());
pa.getAreaChartOrArea3DChartOrLineChart().add(sc);
pa.getValAxOrCatAxOrDateAx().add(valAxWithMin(100));
pa.getValAxOrCatAxOrDateAx().add(valAxWithMin(-5));
chart.setPlotArea(pa);
ChartSpec spec = ChartSpec.parse(spaceWith(chart), new DrawMlColor(null));
assertEquals(100.0, spec.xAxis.min, "первая c:valAx должна стать осью X");
assertEquals(-5.0, spec.valAxis.min, "вторая c:valAx должна остаться осью значений");
}
/** c:bubbleChart: bubbleScale/showNegBubbles/sizeRepresents и c:bubbleSize. */
@Test
void bubbleSizesAndScaleParsed() {
CTBubbleChart chart = new CTBubbleChart();
CTBubbleScale scale = new CTBubbleScale();
scale.setVal(150L);
chart.setBubbleScale(scale);
CTBoolean neg = new CTBoolean();
neg.setVal(false);
chart.setShowNegBubbles(neg);
CTSizeRepresents rep = new CTSizeRepresents();
rep.setVal(STSizeRepresents.W);
chart.setSizeRepresents(rep);
CTBubbleSer ser = new CTBubbleSer();
ser.setXVal(axisNum(1, 2));
ser.setYVal(numSource(numCache(5, 6)));
ser.setBubbleSize(numSource(numCache(1, 4)));
chart.getSer().add(ser);
ChartSpec spec = new ChartSpec();
ChartSpec.readGroup(chart, spec, new DrawMlColor(null), List.of());
assertEquals(ChartSpec.Type.BUBBLE, spec.type);
assertEquals(150, spec.bubbleScale);
assertFalse(spec.showNegBubbles);
assertEquals("w", spec.sizeRepresents);
assertEquals(List.of(1.0, 4.0), spec.series.get(0).bubbleSizes);
}
/** c:radarChart: c:radarStyle и ряд с категориями. */
@Test
void radarStyleParsed() {
CTRadarChart chart = new CTRadarChart();
CTRadarStyle style = new CTRadarStyle();
style.setVal(STRadarStyle.FILLED);
chart.setRadarStyle(style);
CTRadarSer ser = new CTRadarSer();
ser.setCat(catStr("А", "Б"));
ser.setVal(numSource(numCache(1, 2)));
chart.getSer().add(ser);
ChartSpec spec = new ChartSpec();
ChartSpec.readGroup(chart, spec, new DrawMlColor(null), List.of());
assertEquals(ChartSpec.Type.RADAR, spec.type);
assertEquals("filled", spec.radarStyle);
assertEquals(List.of("А", "Б"), spec.series.get(0).categories);
}
/** c:stockChart: hiLowLines/dropLines/upDownBars с цветами up/down. */
@Test
void stockFlagsParsed() {
CTStockChart chart = new CTStockChart();
chart.setHiLowLines(new CTChartLines());
chart.setUpDownBars(upDownBars());
chart.getSer().add(new CTLineSer());
chart.getSer().add(new CTLineSer());
chart.getSer().add(new CTLineSer());
ChartSpec spec = new ChartSpec();
ChartSpec.readGroup(chart, spec, new DrawMlColor(null), List.of());
assertEquals(ChartSpec.Type.STOCK, spec.type);
assertTrue(spec.hiLowLines);
assertFalse(spec.dropLines, "нет c:dropLines — флага нет");
assertTrue(spec.upDownBars);
assertEquals(80, spec.upDownGapWidth);
assertEquals(new Color(0, 0xB0, 0x50), spec.upFill);
assertEquals(new Color(0xC0, 0, 0), spec.downFill);
assertEquals(3, spec.series.size());
}
/** c:ofPieChart: custSplit → secondPiePts, percent/pos со splitPos, auto-дефолт. */
@Test
void ofPieSplitParsed() {
CTOfPieChart cust = new CTOfPieChart();
CTSplitType custType = new CTSplitType();
custType.setVal(STSplitType.CUST);
cust.setSplitType(custType);
CTCustSplit cs = new CTCustSplit();
cs.getSecondPiePt().add(uint(1));
cs.getSecondPiePt().add(uint(3));
cust.setCustSplit(cs);
ChartSpec spec = new ChartSpec();
ChartSpec.readGroup(cust, spec, new DrawMlColor(null), List.of());
assertEquals(ChartSpec.Type.OF_PIE, spec.type);
assertEquals("cust", spec.splitType);
assertEquals(List.of(1, 3), spec.secondPiePts);
ChartSpec def = new ChartSpec();
ChartSpec.readGroup(new CTOfPieChart(), def, new DrawMlColor(null), List.of());
assertEquals("auto", def.splitType, "без c:splitType — дефолт auto");
assertNull(def.splitPos);
}
/** c:ofPieChart: ofPieType="bar", secondPieSize, splitPos, serLines. */
@Test
void ofPieTypeAndSecondPieSizeParsed() {
CTOfPieChart chart = new CTOfPieChart();
CTOfPieType type = new CTOfPieType();
type.setVal(STOfPieType.BAR);
chart.setOfPieType(type);
CTSecondPieSize size = new CTSecondPieSize();
size.setVal(60);
chart.setSecondPieSize(size);
CTSplitType split = new CTSplitType();
split.setVal(STSplitType.PERCENT);
chart.setSplitType(split);
CTDouble pos = new CTDouble();
pos.setVal(5);
chart.setSplitPos(pos);
chart.getSerLines().add(new CTChartLines());
chart.getSer().add(new CTPieSer());
ChartSpec spec = new ChartSpec();
ChartSpec.readGroup(chart, spec, new DrawMlColor(null), List.of());
assertEquals("bar", spec.ofPieType);
assertEquals(60, spec.secondPieSize);
assertEquals("percent", spec.splitType);
assertEquals(5.0, spec.splitPos);
assertTrue(spec.serLines);
assertEquals(1, spec.series.size());
}
/** bar3D: barDir/gapWidth/gapDepth/shape; area3D/line3D: gapDepth. */
@Test
void threeDCartesianGapDepthShapeParsed() {
CTBar3DChart bar = new CTBar3DChart();
CTBarDir dir = new CTBarDir();
dir.setVal(STBarDir.BAR);
bar.setBarDir(dir);
CTGapAmount gw = new CTGapAmount();
gw.setVal(200);
bar.setGapWidth(gw);
CTGapAmount gd = new CTGapAmount();
gd.setVal(120);
bar.setGapDepth(gd);
CTShape shape = new CTShape();
shape.setVal(STShape.CYLINDER);
bar.setShape(shape);
ChartSpec barSpec = new ChartSpec();
ChartSpec.readGroup(bar, barSpec, new DrawMlColor(null), List.of());
assertEquals(ChartSpec.Type.BAR3D, barSpec.type);
assertTrue(barSpec.bar3dHorizontal);
assertEquals(200, barSpec.gapWidth);
assertEquals(120, barSpec.gapDepth);
assertEquals("cylinder", barSpec.shape3d);
CTArea3DChart area = new CTArea3DChart();
CTGapAmount agd = new CTGapAmount();
agd.setVal(90);
area.setGapDepth(agd);
ChartSpec areaSpec = new ChartSpec();
ChartSpec.readGroup(area, areaSpec, new DrawMlColor(null), List.of());
assertEquals(ChartSpec.Type.AREA3D, areaSpec.type);
assertEquals(90, areaSpec.gapDepth);
CTLine3DChart line = new CTLine3DChart();
ChartSpec lineSpec = new ChartSpec();
ChartSpec.readGroup(line, lineSpec, new DrawMlColor(null), List.of());
assertEquals(ChartSpec.Type.LINE3D, lineSpec.type);
assertEquals(150, lineSpec.gapDepth, "без c:gapDepth — дефолт 150");
}
/** Автозаголовок OF_PIE — имя ряда (круговая семантика, как PIE). */
@Test
void autoTitleOfPieUsesSeriesName() {
ChartSpec spec = new ChartSpec();
spec.type = ChartSpec.Type.OF_PIE;
ChartSpec.Series s = new ChartSpec.Series();
s.name = "Распределение";
spec.series.add(s);
ChartSpec.readTitle(emptyTitleChart(), spec, new DrawMlColor(null));
assertEquals("Распределение", spec.title);
}
/** MAX_POINTS распространяется и на c:xVal (тот же numCache-обход). */
@Test
void hugePointIndexOnXValRejected() {
CTScatterChart chart = new CTScatterChart();
CTScatterSer ser = new CTScatterSer();
CTNumData cache = new CTNumData();
cache.getPt().add(numPt(2_000_000_000L, "5"));
CTAxDataSource xVal = new CTAxDataSource();
CTNumRef ref = new CTNumRef();
ref.setNumCache(cache);
xVal.setNumRef(ref);
ser.setXVal(xVal);
chart.getSer().add(ser);
CTChart ct = new CTChart();
CTPlotArea pa = new CTPlotArea();
pa.getAreaChartOrArea3DChartOrLineChart().add(chart);
ct.setPlotArea(pa);
assertThrows(IllegalArgumentException.class,
() -> ChartSpec.parse(spaceWith(ct), new DrawMlColor(null)));
}
private static CTNumData numCache(double... vals) {
CTNumData cache = new CTNumData();
for (int i = 0; i < vals.length; i++) {
cache.getPt().add(numPt(i, String.valueOf(vals[i])));
}
return cache;
}
private static CTAxDataSource axisNum(double... vals) {
CTAxDataSource x = new CTAxDataSource();
CTNumRef ref = new CTNumRef();
ref.setNumCache(numCache(vals));
x.setNumRef(ref);
return x;
}
private static CTValAx valAxWithMin(double min) {
CTValAx ax = new CTValAx();
CTScaling scaling = new CTScaling();
CTDouble m = new CTDouble();
m.setVal(min);
scaling.setMin(m);
ax.setScaling(scaling);
return ax;
}
private static CTUpDownBars upDownBars() {
CTUpDownBars u = new CTUpDownBars();
CTGapAmount gap = new CTGapAmount();
gap.setVal(80);
u.setGapWidth(gap);
CTUpDownBar up = new CTUpDownBar();
CTShapeProperties upSp = new CTShapeProperties();
upSp.setSolidFill(fill("00B050"));
up.setSpPr(upSp);
u.setUpBars(up);
CTUpDownBar down = new CTUpDownBar();
CTShapeProperties downSp = new CTShapeProperties();
downSp.setSolidFill(fill("C00000"));
down.setSpPr(downSp);
u.setDownBars(down);
return u;
}
}
@@ -0,0 +1,158 @@
package ru.pjandro.wordpdf.internal.chart;
import org.junit.jupiter.api.Test;
import java.awt.Color;
import java.awt.image.BufferedImage;
import static org.junit.jupiter.api.Assertions.*;
/**
* Комбинированная диаграмма: главный пирог слева, вторичная — справа
* (ECMA-376 §21.2.2.108); c:splitType="cust" отправляет во второй торт
* ровно перечисленные c:secondPiePt, "percent" — точки ниже доли, пустой
* secondary — обычная круговая. Регрессия — OfPiePainterTest, фикстура
* samples/chart-types.docx (WordPdfConverterTest#chartTypes_allTypesRenderAsImages).
*/
class OfPiePainterTest {
private static final Color ACCENT1 = new Color(0x4472C4);
private static final Color ACCENT2 = new Color(0xED7D31);
/** «Цветной» px — разброс каналов (как в пиксельных тестах chart-пейнтеров). */
private static final int GRAY_MAX_SPREAD = 25;
/** cust-разбиение: заданные точки — во вторичном кластере справа. */
@Test
void custSplit_movesListedPointsToSecondary() {
ChartSpec spec = ofPieSpec("cust", null);
spec.secondPiePts.add(1);
spec.secondPiePts.add(2);
BufferedImage img = render(spec);
assertTrue(onlyRight(img, ACCENT2), "точка 1 не во вторичном торте");
assertTrue(onlyLeft(img, ACCENT1), "точка 0 ушла из главного торта");
}
/** percent-разбиение: минимальные значения уходят во вторичный торт. */
@Test
void percentSplit_movesSmallestPoints() {
ChartSpec spec = ofPieSpec("percent", 5.0);
spec.series.get(0).values.clear();
spec.series.get(0).values.add(100.0);
spec.series.get(0).values.add(1.0);
spec.series.get(0).values.add(2.0);
spec.series.get(0).values.add(100.0);
BufferedImage img = render(spec);
assertTrue(onlyRight(img, ACCENT2), "минимальная точка не во вторичном торте");
}
/** Пустой secondary (val без splitPos) — один торт, а не два. */
@Test
void emptySecondary_singlePie() {
ChartSpec split = ofPieSpec("cust", null);
split.secondPiePts.add(1);
ChartSpec single = ofPieSpec("val", null);
double splitExtent = extent(render(split));
double singleExtent = extent(render(single));
assertTrue(splitExtent > singleExtent * 1.25,
"вторичный торт не расширяет силуэт: split=" + splitExtent
+ ", single=" + singleExtent);
}
/** c:serLines — связи серого цвета только с элементом. */
@Test
void serLines_drawnOnlyWithElement() {
ChartSpec spec = ofPieSpec("cust", null);
spec.series.get(0).values.set(3, 1.0);
// accent3 (A5A5A5) совпал бы с цветом serLines по допуску — перекрашиваем точку 2
spec.series.get(0).pointFills.put(2, new Color(0, 0xB0, 0x50));
spec.secondPiePts.add(3);
assertEquals(0, countColor(render(spec), OfPiePainter.SER_LINE_COLOR),
"без c:serLines связей быть не должно");
spec.serLines = true;
assertTrue(countColor(render(spec), OfPiePainter.SER_LINE_COLOR) > 20,
"c:serLines не нарисована");
}
private static ChartSpec ofPieSpec(String splitType, Double splitPos) {
ChartSpec spec = new ChartSpec();
spec.type = ChartSpec.Type.OF_PIE;
spec.splitType = splitType;
spec.splitPos = splitPos;
spec.legendPos = null;
ChartSpec.Series s = new ChartSpec.Series();
s.values.add(10.0);
s.values.add(1.0);
s.values.add(2.0);
s.values.add(20.0);
spec.series.add(s);
return spec;
}
private static BufferedImage render(ChartSpec spec) {
return ChartRenderer.render(spec, 219.23, 149.08, new DrawMlColor(null));
}
/** Пиксели цвета есть, и все — правее середины. */
private static boolean onlyRight(BufferedImage img, Color c) {
return side(img, c, true);
}
/** Пиксели цвета есть, и все — левее середины. */
private static boolean onlyLeft(BufferedImage img, Color c) {
return side(img, c, false);
}
private static boolean side(BufferedImage img, Color c, boolean right) {
int mid = img.getWidth() / 2;
int n = 0;
for (int y = 0; y < img.getHeight(); y++) {
for (int x = 0; x < img.getWidth(); x++) {
if (matches(img.getRGB(x, y), c)) {
if ((x >= mid) != right) {
return false;
}
n++;
}
}
}
return n > 100;
}
/** Горизонтальный размер всех насыщенных пикселей. */
private static int extent(BufferedImage img) {
int min = Integer.MAX_VALUE;
int max = -1;
for (int y = 0; y < img.getHeight(); y++) {
for (int x = 0; x < img.getWidth(); x++) {
int rgb = img.getRGB(x, y);
int r = (rgb >> 16) & 0xFF;
int g = (rgb >> 8) & 0xFF;
int b = rgb & 0xFF;
if (Math.max(Math.max(r, g), b) - Math.min(Math.min(r, g), b) > GRAY_MAX_SPREAD) {
min = Math.min(min, x);
max = Math.max(max, x);
}
}
}
return max < 0 ? 0 : max - min + 1;
}
private static long countColor(BufferedImage img, Color c) {
long n = 0;
for (int y = 0; y < img.getHeight(); y++) {
for (int x = 0; x < img.getWidth(); x++) {
if (matches(img.getRGB(x, y), c)) {
n++;
}
}
}
return n;
}
private static boolean matches(int rgb, Color c) {
return Math.abs(((rgb >> 16) & 0xFF) - c.getRed()) <= 24
&& Math.abs(((rgb >> 8) & 0xFF) - c.getGreen()) <= 24
&& Math.abs((rgb & 0xFF) - c.getBlue()) <= 24;
}
}
@@ -0,0 +1,94 @@
package ru.pjandro.wordpdf.internal.chart;
import org.junit.jupiter.api.Test;
import java.awt.Color;
import java.awt.image.BufferedImage;
import static org.junit.jupiter.api.Assertions.*;
/**
* Лепестковая диаграмма: паутина (концентрические многоугольники + спицы)
* рисуется цветом сетки, c:radarStyle="filled" — полупрозрачная заливка без
* контура и маркеров, "marker" — контур с маркерами (ECMA-376 §21.2.2.119).
* Регрессия — RadarPainterTest, фикстура samples/chart-types.docx
* (WordPdfConverterTest#chartTypes_allTypesRenderAsImages).
*/
class RadarPainterTest {
private static final Color ACCENT1 = new Color(0x4472C4);
private static final Color GRID = new Color(0xD9, 0xD9, 0xD9);
/** accent1 с альфой 0,55 поверх белого: 0,55·c + 0,45·255. */
private static final Color FILLED = new Color(152, 178, 222);
/** Паутина (сетка + спицы) рисуется цветом gridlines оси значений. */
@Test
void web_drawnInGridColor() {
BufferedImage img = render(radarSpec("standard"));
assertTrue(countColor(img, GRID) > 500,
"паутины лепестковой диаграммы не найдено");
}
/** "filled" — залитая область, чистого цвета ряда (контур/маркеры) нет. */
@Test
void filledStyle_fillsWithoutOutline() {
BufferedImage img = render(radarSpec("filled"));
assertTrue(countColor(img, FILLED) > 1000,
"заливки filled не найдено");
assertEquals(0, countColor(img, ACCENT1),
"filled не рисует контур и маркеры чистым цветом ряда");
}
/** "marker" — к контуру добавляются маркеры (пикселей больше, чем у standard). */
@Test
void markerStyle_addsMarkers() {
long standard = countColor(render(radarSpec("standard")), ACCENT1);
long marker = countColor(render(radarSpec("marker")), ACCENT1);
assertTrue(standard > 200, "контура standard не найдено");
assertTrue(marker > standard,
"маркеров больше, чем контура: marker=" + marker + ", standard=" + standard);
}
private static ChartSpec radarSpec(String style) {
ChartSpec spec = new ChartSpec();
spec.type = ChartSpec.Type.RADAR;
spec.radarStyle = style;
spec.legendPos = null;
DrawMlText.Style label = new DrawMlText.Style(9, false, false,
new Color(0x59, 0x59, 0x59), "carlito");
spec.valAxis = new ChartSpec.AxisSpec();
spec.valAxis.labelStyle = label;
spec.catAxis = new ChartSpec.AxisSpec();
spec.catAxis.labelStyle = label;
ChartSpec.Series s = new ChartSpec.Series();
s.values.add(2.0);
s.values.add(4.0);
s.values.add(3.0);
s.values.add(5.0);
spec.series.add(s);
spec.categories.add("А");
spec.categories.add("Б");
spec.categories.add("В");
spec.categories.add("Г");
return spec;
}
private static BufferedImage render(ChartSpec spec) {
return ChartRenderer.render(spec, 219.23, 149.08, new DrawMlColor(null));
}
private static long countColor(BufferedImage img, Color c) {
long n = 0;
for (int y = 0; y < img.getHeight(); y++) {
for (int x = 0; x < img.getWidth(); x++) {
int rgb = img.getRGB(x, y);
if (Math.abs(((rgb >> 16) & 0xFF) - c.getRed()) <= 24
&& Math.abs(((rgb >> 8) & 0xFF) - c.getGreen()) <= 24
&& Math.abs((rgb & 0xFF) - c.getBlue()) <= 24) {
n++;
}
}
}
return n;
}
}
@@ -0,0 +1,169 @@
package ru.pjandro.wordpdf.internal.chart;
import org.junit.jupiter.api.Test;
import java.awt.Color;
import java.awt.image.BufferedImage;
import static org.junit.jupiter.api.Assertions.*;
/**
* Точечная и пузырьковая диаграммы: маркеры по c:marker, линия по
* c:scatterStyle, радиус пузыря sqrt(size) при c:sizeRepresents="area"
* (ECMA-376 §21.2.2.128/.136). Замер — счётчики пикселей цвета ряда
* (эталона Word 300 dpi для этих типов в репо нет).
* Регрессия — ScatterPainterTest, фикстура samples/chart-types.docx
* (WordPdfConverterTest#chartTypes_allTypesRenderAsImages).
*/
class ScatterPainterTest {
private static final Color ACCENT1 = new Color(0x4472C4);
private static final Color ACCENT2 = new Color(0xED7D31);
/** Точки scatter рисуются маркерами (c:marker по умолчанию). */
@Test
void markers_drawnForEveryPoint() {
ChartSpec spec = scatterSpec("marker");
BufferedImage img = render(spec);
assertTrue(countColor(img, ACCENT1) > 200,
"маркеров ряда (accent1) не найдено");
}
/** scatterStyle="line" рисует связную линию между точками, "marker" — нет. */
@Test
void lineStyle_connectsPoints() {
long withLine = countColor(render(scatterSpec("line")), ACCENT1);
long markersOnly = countColor(render(scatterSpec("marker")), ACCENT1);
assertTrue(withLine > 5 * markersOnly,
"линия между точками не рисуется: line=" + withLine
+ " px, marker=" + markersOnly + " px");
}
/** c:sizeRepresents="area": радиусы относятся как sqrt(1):sqrt(4) = 1:2. */
@Test
void bubbleAreaRadiiScaleWithSqrt() {
ChartSpec spec = bubbleSpec("area", true);
BufferedImage img = render(spec);
double r1 = radiusOf(img, ACCENT1);
double r2 = radiusOf(img, ACCENT2);
assertTrue(r1 > 0 && r2 > 0, "пузырей не найдено");
double ratio = r2 / r1;
assertTrue(Math.abs(ratio - 2) / 2 < 0.10,
"отношение радиусов size 1:4 при \"area\" = " + ratio + ", ожидается 2");
}
/** c:sizeRepresents="w": радиусы относятся линейно 1:4. */
@Test
void bubbleWidthRadiiScaleLinearly() {
ChartSpec spec = bubbleSpec("w", true);
BufferedImage img = render(spec);
double ratio = radiusOf(img, ACCENT2) / radiusOf(img, ACCENT1);
assertTrue(Math.abs(ratio - 4) / 4 < 0.10,
"отношение радиусов size 1:4 при \"w\" = " + ratio + ", ожидается 4");
}
/** showNegBubbles="0" — отрицательный пузырь не рисуется. */
@Test
void negativeBubbleHiddenWhenShowNegBubblesOff() {
ChartSpec hidden = bubbleSpec("area", false);
assertEquals(0, countColor(render(hidden), ACCENT2),
"отрицательный пузырь нарисован при showNegBubbles=false");
ChartSpec shown = bubbleSpec("area", true);
assertTrue(countColor(render(shown), ACCENT2) > 200,
"отрицательный пузырь не нарисован при showNegBubbles=true");
}
/** Пустые данные — пустой растр (как у CartesianPainter). */
@Test
void emptyData_paintsNothing() {
ChartSpec spec = scatterSpec("marker");
spec.series.clear();
BufferedImage img = render(spec);
assertEquals(0, countColor(img, ACCENT1), "на пустых данных рисовать нечего");
}
private static ChartSpec scatterSpec(String style) {
ChartSpec spec = new ChartSpec();
spec.type = ChartSpec.Type.SCATTER;
spec.scatterStyle = style;
spec.legendPos = null;
DrawMlText.Style label = new DrawMlText.Style(9, false, false,
new Color(0x59, 0x59, 0x59), "carlito");
spec.valAxis = new ChartSpec.AxisSpec();
spec.valAxis.labelStyle = label;
spec.xAxis = new ChartSpec.AxisSpec();
spec.xAxis.labelStyle = label;
ChartSpec.Series s = new ChartSpec.Series();
s.xValues.add(1.0);
s.xValues.add(2.0);
s.xValues.add(3.0);
s.values.add(1.0);
s.values.add(2.0);
s.values.add(3.0);
spec.series.add(s);
return spec;
}
private static ChartSpec bubbleSpec(String sizeRepresents, boolean showNeg) {
ChartSpec spec = new ChartSpec();
spec.type = ChartSpec.Type.BUBBLE;
spec.sizeRepresents = sizeRepresents;
spec.showNegBubbles = showNeg;
// bubbleScale=20: пузыри не клипаются рамкой и не перекрываются
spec.bubbleScale = 20;
spec.legendPos = null;
DrawMlText.Style label = new DrawMlText.Style(9, false, false,
new Color(0x59, 0x59, 0x59), "carlito");
spec.valAxis = new ChartSpec.AxisSpec();
spec.valAxis.labelStyle = label;
spec.xAxis = new ChartSpec.AxisSpec();
spec.xAxis.labelStyle = label;
ChartSpec.Series s = new ChartSpec.Series();
s.xValues.add(1.0);
s.xValues.add(2.0);
s.values.add(5.0);
s.values.add(5.0);
s.bubbleSizes.add(1.0);
s.bubbleSizes.add(showNeg ? 4.0 : -4.0);
spec.series.add(s);
return spec;
}
private static BufferedImage render(ChartSpec spec) {
return ChartRenderer.render(spec, 219.23, 149.08, new DrawMlColor(null));
}
/** Пикселей точно цвета c (с допуском на антиалиасинг ±24 по каналу). */
private static long countColor(BufferedImage img, Color c) {
long n = 0;
for (int y = 0; y < img.getHeight(); y++) {
for (int x = 0; x < img.getWidth(); x++) {
int rgb = img.getRGB(x, y);
if (Math.abs(((rgb >> 16) & 0xFF) - c.getRed()) <= 24
&& Math.abs(((rgb >> 8) & 0xFF) - c.getGreen()) <= 24
&& Math.abs((rgb & 0xFF) - c.getBlue()) <= 24) {
n++;
}
}
}
return n;
}
/** Радиус кластера цвета: половина горизонтального прогона. */
private static double radiusOf(BufferedImage img, Color c) {
int min = Integer.MAX_VALUE;
int max = -1;
for (int y = 0; y < img.getHeight(); y++) {
for (int x = 0; x < img.getWidth(); x++) {
int rgb = img.getRGB(x, y);
if (Math.abs(((rgb >> 16) & 0xFF) - c.getRed()) <= 24
&& Math.abs(((rgb >> 8) & 0xFF) - c.getGreen()) <= 24
&& Math.abs((rgb & 0xFF) - c.getBlue()) <= 24) {
min = Math.min(min, x);
max = Math.max(max, x);
}
}
}
return max < 0 ? 0 : (max - min + 1) / 2.0;
}
}
@@ -0,0 +1,124 @@
package ru.pjandro.wordpdf.internal.chart;
import org.junit.jupiter.api.Test;
import java.awt.Color;
import java.awt.image.BufferedImage;
import static org.junit.jupiter.api.Assertions.*;
/**
* Биржевая диаграмма: c:hiLowLines (вертикаль min..max категории, серый),
* c:upDownBars (столбик первый↔последний ряд: вверх — зелёный, вниз —
* красный), c:dropLines (точка → базовая линия) — ECMA-376 §21.2.2.61/.172/.65.
* Регрессия — StockPainterTest, фикстура samples/chart-types.docx
* (WordPdfConverterTest#chartTypes_allTypesRenderAsImages).
*/
class StockPainterTest {
private static final Color HI_LOW = StockPainter.HI_LOW_COLOR;
private static final Color UP = StockPainter.UP_FILL;
private static final Color DOWN = StockPainter.DOWN_FILL;
private static final Color DROP = StockPainter.DROP_COLOR;
/** hiLowLines: вертикаль цвета HI_LOW появляется только с элементом. */
@Test
void hiLowLines_drawnBetweenMinMax() {
ChartSpec spec = stockSpec(false, false, false);
assertEquals(0, countColor(render(spec), HI_LOW),
"без c:hiLowLines серых вертикалей быть не должно");
spec.hiLowLines = true;
assertTrue(countColor(render(spec), HI_LOW) > 50,
"c:hiLowLines не нарисована");
}
/** upDownBars: последний ряд выше первого — вверх (зелёный), ниже — вниз. */
@Test
void upDownBars_colorByDirection() {
ChartSpec up = stockSpec(false, true, false);
assertTrue(countColor(render(up), UP) > 100,
"upDownBars «вверх» не нарисована (последний ряд выше первого)");
assertEquals(0, countColor(render(up), DOWN), "лишняя down-полоса");
ChartSpec down = stockSpec(false, true, true);
assertTrue(countColor(render(down), DOWN) > 100,
"upDownBars «вниз» не нарисована (последний ряд ниже первого)");
}
/** dropLines: вертикали до базовой линии только с элементом. */
@Test
void dropLines_drawnToBaseline() {
ChartSpec spec = stockSpec(false, false, false);
assertEquals(0, countColor(render(spec), DROP),
"без c:dropLines серых дропов быть не должно");
spec.dropLines = true;
assertTrue(countColor(render(spec), DROP) > 50,
"c:dropLines не нарисована");
}
/** Ни одного факультативного элемента — ни одного цвета из перечня. */
@Test
void noOptionalElements_noneDrawn() {
BufferedImage img = render(stockSpec(false, false, false));
assertEquals(0, countColor(img, HI_LOW));
assertEquals(0, countColor(img, UP));
assertEquals(0, countColor(img, DOWN));
assertEquals(0, countColor(img, DROP));
}
/** @param inverted последний ряд ниже первого (down-полоса). */
private static ChartSpec stockSpec(boolean withDrop, boolean withUpDown,
boolean inverted) {
ChartSpec spec = new ChartSpec();
spec.type = ChartSpec.Type.STOCK;
spec.legendPos = null;
spec.hiLowLines = false;
spec.dropLines = withDrop;
spec.upDownBars = withUpDown;
// подписи/линия оси/рамка chartSpace выключены: антиалиасинг их
// серых пикселей совпадает с константами hiLow/dropLines по допуску
spec.chartBorder = null;
spec.valAxis = new ChartSpec.AxisSpec();
spec.catAxis = new ChartSpec.AxisSpec();
spec.catAxis.axisLineColor = null;
ChartSpec.Series first = new ChartSpec.Series();
first.values.add(10.0);
first.values.add(20.0);
ChartSpec.Series last = new ChartSpec.Series();
last.values.add(inverted ? 5.0 : 30.0);
last.values.add(inverted ? 10.0 : 50.0);
spec.series.add(first);
spec.series.add(last);
spec.categories.add("Пн");
spec.categories.add("Вт");
return spec;
}
private static BufferedImage render(ChartSpec spec) {
return ChartRenderer.render(spec, 219.23, 149.08, new DrawMlColor(null));
}
private static long countColor(BufferedImage img, Color c) {
boolean gray = c.getRed() == c.getGreen() && c.getGreen() == c.getBlue();
long n = 0;
for (int y = 0; y < img.getHeight(); y++) {
for (int x = 0; x < img.getWidth(); x++) {
int rgb = img.getRGB(x, y);
int r = (rgb >> 16) & 0xFF;
int g = (rgb >> 8) & 0xFF;
int b = rgb & 0xFF;
// серые цели: только нейтральные пиксели — голубые/тёплые
// края антиалиасинга не должны попадать в допуск-куб
if (gray && Math.max(Math.max(r, g), b) - Math.min(Math.min(r, g), b) > 12) {
continue;
}
if (Math.abs(r - c.getRed()) <= 24
&& Math.abs(g - c.getGreen()) <= 24
&& Math.abs(b - c.getBlue()) <= 24) {
n++;
}
}
}
return n;
}
}
@@ -0,0 +1,95 @@
package ru.pjandro.wordpdf.internal.chart;
import org.junit.jupiter.api.Test;
import java.awt.Color;
import java.awt.image.BufferedImage;
import static org.junit.jupiter.api.Assertions.*;
/**
* Контурная поверхностная диаграмма (ECMA-376 §21.2.2.204): лист между
* ломаными соседних рядов режется контурными полосами высот (c:bandFmts,
* §21.2.2.13 — от низкого к высокого; без них — палитра), c:wireframe —
* сетка из ломаных рядов и линий по категориям без заливок. Регрессия —
* Surface2dPainterTest, фикстура samples/chart-types.docx
* (WordPdfConverterTest#chartTypes_allTypesRenderAsImages).
*/
class Surface2dPainterTest {
private static final Color ACCENT1 = new Color(0x4472C4);
private static final Color ACCENT2 = new Color(0xED7D31);
private static final Color ACCENT3 = new Color(0xA5A5A5);
private static final Color ACCENT4 = new Color(0xFFC000);
private static final Color GRID = new Color(0xD9, 0xD9, 0xD9);
/**
* Плоские ряды 0/2/4: lo=0, hi=4, unit=1 → лист от 0 до 4 делится на
* четыре горизонтальные полосы высот: снизу вверх accent1 (0-1),
* accent2 (1-2), accent3 (2-3), accent4 (3-4).
*/
@Test
void contourStripes_areValueBandsBottomUp() {
BufferedImage img = render(surfaceSpec(false));
assertTrue(matches(px(img, 400, 507), ACCENT1),
"полоса 0-1 не accent1: " + hex(px(img, 400, 507)));
assertTrue(matches(px(img, 400, 368), ACCENT2),
"полоса 1-2 не accent2: " + hex(px(img, 400, 368)));
assertTrue(matches(px(img, 400, 227), ACCENT3),
"полоса 2-3 не accent3: " + hex(px(img, 400, 227)));
assertTrue(matches(px(img, 400, 87), ACCENT4),
"полоса 3-4 не accent4: " + hex(px(img, 400, 87)));
}
/** wireframe: заливок нет, есть сетка листа цветом gridlines. */
@Test
void wireframe_gridOnly() {
BufferedImage img = render(surfaceSpec(true));
assertFalse(matches(px(img, 400, 507), ACCENT1),
"wireframe не должен заливать полосы");
long grid = 0;
for (int y = 0; y < img.getHeight(); y++) {
for (int x = 0; x < img.getWidth(); x++) {
if (matches(img.getRGB(x, y), GRID)) {
grid++;
}
}
}
assertTrue(grid > 500, "сетки wireframe не найдено");
}
private static ChartSpec surfaceSpec(boolean wireframe) {
ChartSpec spec = new ChartSpec();
spec.type = ChartSpec.Type.SURFACE;
spec.wireframe = wireframe;
spec.legendPos = null;
spec.valAxis = new ChartSpec.AxisSpec();
double[] rows = {0, 2, 4};
for (double row : rows) {
ChartSpec.Series s = new ChartSpec.Series();
for (int c = 0; c < 3; c++) {
s.values.add(row);
}
spec.series.add(s);
}
return spec;
}
private static BufferedImage render(ChartSpec spec) {
return ChartRenderer.render(spec, 219.23, 149.08, new DrawMlColor(null));
}
private static int px(BufferedImage img, int x, int y) {
return img.getRGB(x, y);
}
private static boolean matches(int rgb, Color c) {
return Math.abs(((rgb >> 16) & 0xFF) - c.getRed()) <= 24
&& Math.abs(((rgb >> 8) & 0xFF) - c.getGreen()) <= 24
&& Math.abs((rgb & 0xFF) - c.getBlue()) <= 24;
}
private static String hex(int rgb) {
return String.format("#%06X", rgb & 0xFFFFFF);
}
}