Browse Source

[bug-66146] poi-ooxml-full: generate classes for threadedComments and word12 xsds

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902309 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_5_2_3
PJ Fanning 1 year ago
parent
commit
8d204f1222

+ 2
- 1
poi-ooxml-full/build.gradle View File

@@ -86,7 +86,8 @@ task cacheJava9(type: Copy) {
task copy_xsds(type: Copy) {
from ('src/main/xmlschema/org/apache/poi/xdgf')
from ('src/main/xmlschema/org/apache/poi/schemas') {
include 'XAdES*.xsd', '*.xsdconfig', 'xmldsig*.xsd', 'ooxmlSchemas.xsdconfig', 'markup-compatibility.xsd', 'vmlDrawing.xsd', 'dml-drawing.xsd'
include 'XAdES*.xsd', '*.xsdconfig', 'xmldsig*.xsd', 'ooxmlSchemas.xsdconfig', 'markup-compatibility.xsd',
'vmlDrawing.xsd', 'word12.xsd', 'xlThreaded*.xsd', 'dml-drawing.xsd'
exclude '*.zip'
}
from ('src/main/xmlschema/org/apache/poi/poifs/crypt') {

+ 66
- 0
poi-ooxml-full/src/main/xmlschema/org/apache/poi/schemas/word12.xsd View File

@@ -0,0 +1,66 @@
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:w06="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
xmlns:od06st="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
elementFormDefault="qualified" attributeFormDefault="qualified" blockDefault="#all"
xmlns="http://schemas.microsoft.com/office/word/2012/wordml"
targetNamespace="http://schemas.microsoft.com/office/word/2012/wordml">
<xsd:import id="w12" namespace="http://schemas.microsoft.com/office/word/2012/wordml" schemaLocation="word12.xsd"/>
<xsd:element name="color" type="w06:CT_Color"/>
<xsd:simpleType name="ST_SdtAppearance">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="boundingBox"/>
<xsd:enumeration value="tags"/>
<xsd:enumeration value="hidden"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="dataBinding" type="w06:CT_DataBinding"/>
<xsd:complexType name="CT_SdtAppearance">
<xsd:attribute name="val" type="ST_SdtAppearance"/>
</xsd:complexType>
<xsd:element name="appearance" type="CT_SdtAppearance"/>
<xsd:complexType name="CT_CommentsEx">
<xsd:sequence>
<xsd:element name="commentEx" type="CT_CommentEx" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_CommentEx">
<xsd:attribute name="paraId" type="w06:ST_LongHexNumber" use="required"/>
<xsd:attribute name="paraIdParent" type="w06:ST_LongHexNumber" use="optional"/>
<xsd:attribute name="done" type="od06st:ST_OnOff" use="optional"/>
</xsd:complexType>
<xsd:element name="commentsEx" type="CT_CommentsEx"/>
<xsd:complexType name="CT_People">
<xsd:sequence>
<xsd:element name="person" type="CT_Person" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_PresenceInfo">
<xsd:attribute name="providerId" type="xsd:string" use="required"/>
<xsd:attribute name="userId" type="xsd:string" use="required"/>
</xsd:complexType>
<xsd:complexType name="CT_Person">
<xsd:sequence>
<xsd:element name="presenceInfo" type="CT_PresenceInfo" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="author" type="od06st:ST_String" use="required"/>
</xsd:complexType>
<xsd:element name="people" type="CT_People"/>
<xsd:complexType name="CT_SdtRepeatedSection">
<xsd:sequence>
<xsd:element name="sectionTitle" type="w06:CT_String" minOccurs="0"/>
<xsd:element name="doNotAllowInsertDeleteSection" type="w06:CT_OnOff" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Guid">
<xsd:attribute name="val" type="od06st:ST_Guid"/>
</xsd:complexType>
<xsd:element name="repeatingSection" type="CT_SdtRepeatedSection"/>
<xsd:element name="repeatingSectionItem" type="w06:CT_Empty"/>
<xsd:element name="chartTrackingRefBased" type="w06:CT_OnOff"/>
<xsd:element name="collapsed" type="w06:CT_OnOff"/>
<xsd:element name="docId" type="CT_Guid"/>
<xsd:element name="footnoteColumns" type="w06:CT_DecimalNumber"/>
<xsd:element name="webExtensionLinked" type="w06:CT_OnOff"/>
<xsd:element name="webExtensionCreated" type="w06:CT_OnOff"/>
<xsd:attribute name="restartNumberingAfterBreak" type="od06st:ST_OnOff"/>
</xsd:schema>

+ 59
- 0
poi-ooxml-full/src/main/xmlschema/org/apache/poi/schemas/xlThreadedComments.xsd View File

@@ -0,0 +1,59 @@
<xsd:schema targetNamespace="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments"
elementFormDefault="qualified"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:x="http://schemas.openxmlformats.org/spreadsheetml/2006/main"
xmlns:od06st="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
xmlns="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments">
<!--
<xsd:import namespace="http://schemas.openxmlformats.org/spreadsheetml/2006/main" schemaLocation="xlbasictypes.xsd"/>
<xsd:import namespace="http://schemas.openxmlformats.org/spreadsheetml/2006/main" schemaLocation="xlsst.xsd"/>
-->
<xsd:import namespace="http://schemas.microsoft.com/office/spreadsheetml/2020/threadedcomments2" schemaLocation="xlThreadedComments2.xsd"/>
<xsd:element name="personList" type="CT_PersonList"/>
<xsd:complexType name="CT_PersonList">
<xsd:sequence>
<xsd:element name="person" type="CT_Person" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="extLst" type="x:CT_ExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Person">
<xsd:sequence>
<xsd:element name="extLst" type="x:CT_ExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="displayName" type="od06st:ST_Xstring" use="required"/>
<xsd:attribute name="id" type="od06st:ST_Guid" use="required"/>
<xsd:attribute name="userId" type="od06st:ST_Xstring" use="optional"/>
<xsd:attribute name="providerId" type="od06st:ST_Xstring" use="optional"/>
</xsd:complexType>
<xsd:element name="ThreadedComments" type="CT_ThreadedComments"/>
<xsd:complexType name="CT_ThreadedComments">
<xsd:sequence>
<xsd:element name="threadedComment" type="CT_ThreadedComment" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="extLst" type="x:CT_ExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_ThreadedComment">
<xsd:sequence>
<xsd:element name="text" type="od06st:ST_Xstring" minOccurs="0" maxOccurs="1"/>
<xsd:element name="mentions" type="CT_ThreadedCommentMentions" minOccurs="0" maxOccurs="1"/>
<xsd:element name="extLst" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="ref" type="x:ST_Ref" use="optional"/>
<xsd:attribute name="dT" type="xsd:dateTime" use="optional"/>
<xsd:attribute name="personId" type="od06st:ST_Guid" use="required"/>
<xsd:attribute name="id" type="od06st:ST_Guid" use="required"/>
<xsd:attribute name="parentId" type="od06st:ST_Guid" use="optional"/>
<xsd:attribute name="done" type="xsd:boolean" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CT_ThreadedCommentMentions">
<xsd:sequence>
<xsd:element name="mention" type="CT_Mention" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Mention">
<xsd:attribute name="mentionpersonId" type="od06st:ST_Guid" use="required"/>
<xsd:attribute name="mentionId" type="od06st:ST_Guid" use="required"/>
<xsd:attribute name="startIndex" type="xsd:unsignedInt" use="required"/>
<xsd:attribute name="length" type="xsd:unsignedInt" use="required"/>
</xsd:complexType>
</xsd:schema>

+ 22
- 0
poi-ooxml-full/src/main/xmlschema/org/apache/poi/schemas/xlThreadedComments2.xsd View File

@@ -0,0 +1,22 @@
<xsd:schema xmlns="http://schemas.microsoft.com/office/spreadsheetml/2020/threadedcomments2"
targetNamespace="http://schemas.microsoft.com/office/spreadsheetml/2020/threadedcomments2"
elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:od06st="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
xmlns:x="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
<xsd:complexType name="CT_ThreadedComments2Ext">
<xsd:sequence>
<xsd:element name="checksum" type="xsd:unsignedInt" minOccurs="1" maxOccurs="1"/>
<xsd:sequence>
<xsd:element name="hyperlink" type="CT_CommentHyperlink" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_CommentHyperlink">
<xsd:sequence>
<xsd:element name="extLst" type="x:CT_ExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="startIndex" type="xsd:unsignedInt" use="required"/>
<xsd:attribute name="length" type="xsd:unsignedInt" use="required"/>
<xsd:attribute name="url" type="od06st:ST_Xstring" use="required"/>
</xsd:complexType>
</xsd:schema>

Loading…
Cancel
Save