Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
d2c092fe
Commit
d2c092fe
authored
Apr 21, 2017
by
Sergey Konovalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pivot
parent
a3369173
Changes
12
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1304 additions
and
43 deletions
+1304
-43
Test/Applications/DocxFormatCodeGen/codegen.sln
Test/Applications/DocxFormatCodeGen/codegen.sln
+4
-2
Test/Applications/DocxFormatCodeGen/codegen/CodeGenPivot.cs
Test/Applications/DocxFormatCodeGen/codegen/CodeGenPivot.cs
+484
-0
Test/Applications/DocxFormatCodeGen/codegen/CodegenCPP.cs
Test/Applications/DocxFormatCodeGen/codegen/CodegenCPP.cs
+1
-2
Test/Applications/DocxFormatCodeGen/codegen/CodegenJSPivot.cs
.../Applications/DocxFormatCodeGen/codegen/CodegenJSPivot.cs
+731
-0
Test/Applications/DocxFormatCodeGen/codegen/Program.cs
Test/Applications/DocxFormatCodeGen/codegen/Program.cs
+2
-1
Test/Applications/DocxFormatCodeGen/codegen/Resource/dml-chart.xsd
...ications/DocxFormatCodeGen/codegen/Resource/dml-chart.xsd
+0
-3
Test/Applications/DocxFormatCodeGen/codegen/Resource/dml-main.xsd
...lications/DocxFormatCodeGen/codegen/Resource/dml-main.xsd
+4
-4
Test/Applications/DocxFormatCodeGen/codegen/Resource/pml.xsd
Test/Applications/DocxFormatCodeGen/codegen/Resource/pml.xsd
+1
-1
Test/Applications/DocxFormatCodeGen/codegen/Resource/sml.xsd
Test/Applications/DocxFormatCodeGen/codegen/Resource/sml.xsd
+16
-2
Test/Applications/DocxFormatCodeGen/codegen/Resource/wml.xsd
Test/Applications/DocxFormatCodeGen/codegen/Resource/wml.xsd
+25
-26
Test/Applications/DocxFormatCodeGen/codegen/Utils.cs
Test/Applications/DocxFormatCodeGen/codegen/Utils.cs
+1
-0
Test/Applications/DocxFormatCodeGen/codegen/codegen.csproj
Test/Applications/DocxFormatCodeGen/codegen/codegen.csproj
+35
-2
No files found.
Test/Applications/DocxFormatCodeGen/codegen.sln
View file @
d2c092fe
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual C# Express 2008
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "codegen", "codegen\codegen.csproj", "{B3AE10A0-6AB5-42EC-A83B-92012431B445}"
EndProject
Global
...
...
Test/Applications/DocxFormatCodeGen/codegen/CodeGenPivot.cs
0 → 100644
View file @
d2c092fe
This diff is collapsed.
Click to expand it.
Test/Applications/DocxFormatCodeGen/codegen/CodegenCPP.cs
View file @
d2c092fe
...
...
@@ -51,7 +51,6 @@ namespace codegen
StringBuilder
m_oDocxFromToBinaryCPP
=
new
StringBuilder
();
StringBuilder
m_oDocxTypesH
=
new
StringBuilder
();
Dictionary
<
string
,
GenClass
>
m_mapProcessedClasses
=
new
Dictionary
<
string
,
GenClass
>();
Dictionary
<
string
,
string
>
m_mapNamespaceToPrefix
=
new
Dictionary
<
string
,
string
>()
{
{
"http://purl.oclc.org/ooxml/drawingml/chart"
,
"c:"
},
{
"http://purl.oclc.org/ooxml/drawingml/main"
,
"a:"
},
{
"http://purl.oclc.org/ooxml/officeDocument/relationships"
,
"r:"
},
{
"http://schemas.openxmlformats.org/markup-compatibility/2006"
,
"mc:"
},
{
"http://schemas.microsoft.com/office/drawing/2007/8/2/chart"
,
"c14:"
}
};
string
gc_sNamespaceToXml
=
" xmlns:c=\\\"http://schemas.openxmlformats.org/drawingml/2006/chart\\\" xmlns:a=\\\"http://schemas.openxmlformats.org/drawingml/2006/main\\\" xmlns:r=\\\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\\\" xmlns:mc=\\\"http://schemas.openxmlformats.org/markup-compatibility/2006\\\" xmlns:c14=\\\"http://schemas.microsoft.com/office/drawing/2007/8/2/chart\\\""
;
string
gc_sTypePattern
=
"et_"
;
...
...
@@ -573,7 +572,7 @@ namespace codegen
if
(
null
!=
sMemberNamespace
&&
oGenMember
.
bQualified
)
{
string
sShortNamespace
;
if
(
m_mapNamespaceToPrefix
.
TryGetValue
(
sMemberNamespace
,
out
sShortNamespace
))
if
(
Utils
.
m_mapNamespaceToPrefix
.
TryGetValue
(
sMemberNamespace
,
out
sShortNamespace
))
sElemName
=
sShortNamespace
+
sElemName
;
}
...
...
Test/Applications/DocxFormatCodeGen/codegen/CodegenJSPivot.cs
0 → 100644
View file @
d2c092fe
This diff is collapsed.
Click to expand it.
Test/Applications/DocxFormatCodeGen/codegen/Program.cs
View file @
d2c092fe
...
...
@@ -45,7 +45,8 @@ namespace codegen
static
string
sDirJsBinOut
=
@"..\..\gen\"
;
static
void
Main
(
string
[]
args
)
{
(
new
codegen
.
CodeGen
()).
Start
(
sDirIn
,
sDirCppXmlOut
,
sDirCppBinOut
,
sDirJsBinOut
,
ValidationCallback
);
//(new codegen.CodeGen()).Start(sDirIn, sDirCppXmlOut, sDirCppBinOut, sDirJsBinOut, ValidationCallback);
(
new
codegen
.
CodeGenPivot
()).
Start
(
sDirIn
,
sDirCppXmlOut
,
sDirCppBinOut
,
sDirJsBinOut
,
ValidationCallback
);
}
static
void
ValidationCallback
(
object
sender
,
ValidationEventArgs
args
)
{
...
...
Test/Applications/DocxFormatCodeGen/codegen/Resource/dml-chart.xsd
View file @
d2c092fe
...
...
@@ -5,7 +5,6 @@
xmlns=
"http://purl.oclc.org/ooxml/drawingml/chart"
xmlns:cdr=
"http://purl.oclc.org/ooxml/drawingml/chartDrawing"
xmlns:s=
"http://purl.oclc.org/ooxml/officeDocument/sharedTypes"
xmlns:mc=
"http://schemas.openxmlformats.org/markup-compatibility/2006"
targetNamespace=
"http://purl.oclc.org/ooxml/drawingml/chart"
elementFormDefault=
"qualified"
attributeFormDefault=
"unqualified"
blockDefault=
"#all"
>
<xsd:import
namespace=
"http://purl.oclc.org/ooxml/officeDocument/relationships"
...
...
@@ -15,7 +14,6 @@
schemaLocation=
"dml-chartDrawing.xsd"
/>
<xsd:import
namespace=
"http://purl.oclc.org/ooxml/officeDocument/sharedTypes"
schemaLocation=
"shared-commonSimpleTypes.xsd"
/>
<xsd:import
namespace=
"http://schemas.openxmlformats.org/markup-compatibility/2006"
schemaLocation=
"mce.xsd"
/>
<xsd:complexType
name=
"CT_Boolean"
>
<xsd:attribute
name=
"val"
type=
"xsd:boolean"
use=
"optional"
default=
"true"
/>
</xsd:complexType>
...
...
@@ -1432,7 +1430,6 @@
<xsd:element
name=
"date1904"
type=
"CT_Boolean"
minOccurs=
"0"
maxOccurs=
"1"
/>
<xsd:element
name=
"lang"
type=
"CT_TextLanguageID"
minOccurs=
"0"
maxOccurs=
"1"
/>
<xsd:element
name=
"roundedCorners"
type=
"CT_Boolean"
minOccurs=
"0"
maxOccurs=
"1"
/>
<xsd:element
ref=
"mc:AlternateContent"
minOccurs=
"0"
maxOccurs=
"1"
/>
<xsd:element
name=
"style"
type=
"CT_Style"
minOccurs=
"0"
maxOccurs=
"1"
/>
<xsd:element
name=
"clrMapOvr"
type=
"a:CT_ColorMapping"
minOccurs=
"0"
maxOccurs=
"1"
/>
<xsd:element
name=
"pivotSource"
type=
"CT_PivotSource"
minOccurs=
"0"
maxOccurs=
"1"
/>
...
...
Test/Applications/DocxFormatCodeGen/codegen/Resource/dml-main.xsd
View file @
d2c092fe
...
...
@@ -1441,7 +1441,7 @@
<xsd:group
ref=
"EG_ShadeProperties"
minOccurs=
"0"
maxOccurs=
"1"
/>
<xsd:element
name=
"tileRect"
type=
"CT_RelativeRect"
minOccurs=
"0"
maxOccurs=
"1"
/>
</xsd:sequence>
<xsd:attribute
name=
"flip"
type=
"ST_TileFlipMode"
use=
"optional"
/>
<xsd:attribute
name=
"flip"
type=
"ST_TileFlipMode"
use=
"optional"
default=
"none"
/>
<xsd:attribute
name=
"rotWithShape"
type=
"xsd:boolean"
use=
"optional"
/>
</xsd:complexType>
<xsd:complexType
name=
"CT_TileInfoProperties"
>
...
...
@@ -1449,7 +1449,7 @@
<xsd:attribute
name=
"ty"
type=
"ST_Coordinate"
use=
"optional"
/>
<xsd:attribute
name=
"sx"
type=
"ST_Percentage"
use=
"optional"
/>
<xsd:attribute
name=
"sy"
type=
"ST_Percentage"
use=
"optional"
/>
<xsd:attribute
name=
"flip"
type=
"ST_TileFlipMode"
use=
"optional"
/>
<xsd:attribute
name=
"flip"
type=
"ST_TileFlipMode"
use=
"optional"
default=
"none"
/>
<xsd:attribute
name=
"algn"
type=
"ST_RectAlignment"
use=
"optional"
/>
</xsd:complexType>
<xsd:complexType
name=
"CT_StretchInfoProperties"
>
...
...
@@ -2118,7 +2118,7 @@
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType
name=
"CT_LineEndProperties"
>
<xsd:attribute
name=
"type"
type=
"ST_LineEndType"
use=
"optional"
/>
<xsd:attribute
name=
"type"
type=
"ST_LineEndType"
use=
"optional"
default=
"none"
/>
<xsd:attribute
name=
"w"
type=
"ST_LineEndWidth"
use=
"optional"
/>
<xsd:attribute
name=
"len"
type=
"ST_LineEndLength"
use=
"optional"
/>
</xsd:complexType>
...
...
@@ -2896,7 +2896,7 @@
<xsd:attribute
name=
"u"
type=
"ST_TextUnderlineType"
use=
"optional"
/>
<xsd:attribute
name=
"strike"
type=
"ST_TextStrikeType"
use=
"optional"
/>
<xsd:attribute
name=
"kern"
type=
"ST_TextNonNegativePoint"
use=
"optional"
/>
<xsd:attribute
name=
"cap"
type=
"ST_TextCapsType"
use=
"optional"
/>
<xsd:attribute
name=
"cap"
type=
"ST_TextCapsType"
use=
"optional"
default=
"none"
/>
<xsd:attribute
name=
"spc"
type=
"ST_TextPoint"
use=
"optional"
/>
<xsd:attribute
name=
"normalizeH"
type=
"xsd:boolean"
use=
"optional"
/>
<xsd:attribute
name=
"baseline"
type=
"ST_Percentage"
use=
"optional"
/>
...
...
Test/Applications/DocxFormatCodeGen/codegen/Resource/pml.xsd
View file @
d2c092fe
...
...
@@ -518,7 +518,7 @@
<xsd:element
name=
"cBhvr"
type=
"CT_TLCommonBehaviorData"
minOccurs=
"1"
maxOccurs=
"1"
/>
<xsd:element
name=
"progress"
type=
"CT_TLAnimVariant"
minOccurs=
"0"
maxOccurs=
"1"
/>
</xsd:sequence>
<xsd:attribute
name=
"transition"
type=
"ST_TLAnimateEffectTransition"
use=
"optional"
/>
<xsd:attribute
name=
"transition"
type=
"ST_TLAnimateEffectTransition"
default=
"in"
use=
"optional"
/>
<xsd:attribute
name=
"filter"
type=
"xsd:string"
use=
"optional"
/>
<xsd:attribute
name=
"prLst"
type=
"xsd:string"
use=
"optional"
/>
</xsd:complexType>
...
...
Test/Applications/DocxFormatCodeGen/codegen/Resource/sml.xsd
View file @
d2c092fe
...
...
@@ -3374,8 +3374,8 @@
</xsd:complexType>
<xsd:complexType
name=
"CT_CellAlignment"
>
<xsd:attribute
name=
"horizontal"
type=
"ST_HorizontalAlignment"
use=
"optional"
/>
<xsd:attribute
name=
"vertical"
type=
"ST_VerticalAlignment"
use=
"optional"
/>
<xsd:attribute
name=
"textRotation"
type=
"
xsd:unsignedInt
"
use=
"optional"
/>
<xsd:attribute
name=
"vertical"
type=
"ST_VerticalAlignment"
default=
"bottom"
use=
"optional"
/>
<xsd:attribute
name=
"textRotation"
type=
"
ST_TextRotation
"
use=
"optional"
/>
<xsd:attribute
name=
"wrapText"
type=
"xsd:boolean"
use=
"optional"
/>
<xsd:attribute
name=
"indent"
type=
"xsd:unsignedInt"
use=
"optional"
/>
<xsd:attribute
name=
"relativeIndent"
type=
"xsd:int"
use=
"optional"
/>
...
...
@@ -3383,6 +3383,20 @@
<xsd:attribute
name=
"shrinkToFit"
type=
"xsd:boolean"
use=
"optional"
/>
<xsd:attribute
name=
"readingOrder"
type=
"xsd:unsignedInt"
use=
"optional"
/>
</xsd:complexType>
<xsd:simpleType
name=
"ST_TextRotation"
>
<xsd:union>
<xsd:simpleType>
<xsd:restriction
base=
"xsd:nonNegativeInteger"
>
<xsd:maxInclusive
value=
"180"
/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType>
<xsd:restriction
base=
"xsd:nonNegativeInteger"
>
<xsd:enumeration
value=
"255"
/>
</xsd:restriction>
</xsd:simpleType>
</xsd:union>
</xsd:simpleType>
<xsd:simpleType
name=
"ST_BorderStyle"
>
<xsd:restriction
base=
"xsd:string"
>
<xsd:enumeration
value=
"none"
/>
...
...
Test/Applications/DocxFormatCodeGen/codegen/Resource/wml.xsd
View file @
d2c092fe
...
...
@@ -42,7 +42,7 @@
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType
name=
"CT_Charset"
>
<xsd:attribute
name=
"characterSet"
type=
"s:ST_String"
use=
"optional"
/>
<xsd:attribute
name=
"characterSet"
type=
"s:ST_String"
use=
"optional"
default=
"ISO-8859-1"
/>
</xsd:complexType>
<xsd:simpleType
name=
"ST_DecimalNumberOrPercent"
>
<xsd:union
memberTypes=
"s:ST_Percentage"
/>
...
...
@@ -185,7 +185,7 @@
</xsd:simpleType>
<xsd:complexType
name=
"CT_Underline"
>
<xsd:attribute
name=
"val"
type=
"ST_Underline"
use=
"optional"
/>
<xsd:attribute
name=
"color"
type=
"ST_HexColor"
use=
"optional"
/>
<xsd:attribute
name=
"color"
type=
"ST_HexColor"
use=
"optional"
default=
"auto"
/>
<xsd:attribute
name=
"themeColor"
type=
"ST_ThemeColor"
use=
"optional"
/>
<xsd:attribute
name=
"themeTint"
type=
"ST_UcharHexNumber"
use=
"optional"
/>
<xsd:attribute
name=
"themeShade"
type=
"ST_UcharHexNumber"
use=
"optional"
/>
...
...
@@ -403,12 +403,12 @@
</xsd:simpleType>
<xsd:complexType
name=
"CT_Border"
>
<xsd:attribute
name=
"val"
type=
"ST_Border"
use=
"required"
/>
<xsd:attribute
name=
"color"
type=
"ST_HexColor"
use=
"optional"
/>
<xsd:attribute
name=
"color"
type=
"ST_HexColor"
use=
"optional"
default=
"auto"
/>
<xsd:attribute
name=
"themeColor"
type=
"ST_ThemeColor"
use=
"optional"
/>
<xsd:attribute
name=
"themeTint"
type=
"ST_UcharHexNumber"
use=
"optional"
/>
<xsd:attribute
name=
"themeShade"
type=
"ST_UcharHexNumber"
use=
"optional"
/>
<xsd:attribute
name=
"sz"
type=
"ST_EighthPointMeasure"
use=
"optional"
/>
<xsd:attribute
name=
"space"
type=
"ST_PointMeasure"
use=
"optional"
/>
<xsd:attribute
name=
"space"
type=
"ST_PointMeasure"
use=
"optional"
default=
"0"
/>
<xsd:attribute
name=
"shadow"
type=
"s:ST_OnOff"
use=
"optional"
/>
<xsd:attribute
name=
"frame"
type=
"s:ST_OnOff"
use=
"optional"
/>
</xsd:complexType>
...
...
@@ -594,14 +594,14 @@
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType
name=
"CT_Spacing"
>
<xsd:attribute
name=
"before"
type=
"s:ST_TwipsMeasure"
use=
"optional"
/>
<xsd:attribute
name=
"beforeLines"
type=
"ST_DecimalNumber"
use=
"optional"
/>
<xsd:attribute
name=
"beforeAutospacing"
type=
"s:ST_OnOff"
use=
"optional"
/>
<xsd:attribute
name=
"after"
type=
"s:ST_TwipsMeasure"
use=
"optional"
/>
<xsd:attribute
name=
"afterLines"
type=
"ST_DecimalNumber"
use=
"optional"
/>
<xsd:attribute
name=
"afterAutospacing"
type=
"s:ST_OnOff"
use=
"optional"
/>
<xsd:attribute
name=
"line"
type=
"ST_SignedTwipsMeasure"
use=
"optional"
/>
<xsd:attribute
name=
"lineRule"
type=
"ST_LineSpacingRule"
use=
"optional"
/>
<xsd:attribute
name=
"before"
type=
"s:ST_TwipsMeasure"
use=
"optional"
default=
"0"
/>
<xsd:attribute
name=
"beforeLines"
type=
"ST_DecimalNumber"
use=
"optional"
default=
"0"
/>
<xsd:attribute
name=
"beforeAutospacing"
type=
"s:ST_OnOff"
use=
"optional"
default=
"off"
/>
<xsd:attribute
name=
"after"
type=
"s:ST_TwipsMeasure"
use=
"optional"
default=
"0"
/>
<xsd:attribute
name=
"afterLines"
type=
"ST_DecimalNumber"
use=
"optional"
default=
"0"
/>
<xsd:attribute
name=
"afterAutospacing"
type=
"s:ST_OnOff"
use=
"optional"
default=
"off"
/>
<xsd:attribute
name=
"line"
type=
"ST_SignedTwipsMeasure"
use=
"optional"
default=
"0"
/>
<xsd:attribute
name=
"lineRule"
type=
"ST_LineSpacingRule"
use=
"optional"
default=
"auto"
/>
</xsd:complexType>
<xsd:complexType
name=
"CT_Ind"
>
<xsd:attribute
name=
"start"
type=
"ST_SignedTwipsMeasure"
use=
"optional"
/>
...
...
@@ -669,7 +669,7 @@
<xsd:attribute
name=
"lang"
type=
"s:ST_Lang"
use=
"required"
/>
<xsd:attribute
name=
"vendorID"
type=
"s:ST_String"
use=
"required"
/>
<xsd:attribute
name=
"dllVersion"
type=
"s:ST_String"
use=
"required"
/>
<xsd:attribute
name=
"nlCheck"
type=
"s:ST_OnOff"
use=
"optional"
/>
<xsd:attribute
name=
"nlCheck"
type=
"s:ST_OnOff"
use=
"optional"
default=
"off"
/>
<xsd:attribute
name=
"checkStyle"
type=
"s:ST_OnOff"
use=
"required"
/>
<xsd:attribute
name=
"appName"
type=
"s:ST_String"
use=
"required"
/>
</xsd:complexType>
...
...
@@ -1101,7 +1101,7 @@
<xsd:sequence>
<xsd:element
name=
"drawing"
type=
"CT_Drawing"
minOccurs=
"0"
/>
</xsd:sequence>
<xsd:attribute
name=
"color"
type=
"ST_HexColor"
use=
"optional"
/>
<xsd:attribute
name=
"color"
type=
"ST_HexColor"
use=
"optional"
default=
"auto"
/>
<xsd:attribute
name=
"themeColor"
type=
"ST_ThemeColor"
use=
"optional"
/>
<xsd:attribute
name=
"themeTint"
type=
"ST_UcharHexNumber"
use=
"optional"
/>
<xsd:attribute
name=
"themeShade"
type=
"ST_UcharHexNumber"
use=
"optional"
/>
...
...
@@ -1405,9 +1405,9 @@
<xsd:element
name=
"bottom"
type=
"CT_BottomPageBorder"
minOccurs=
"0"
/>
<xsd:element
name=
"right"
type=
"CT_PageBorder"
minOccurs=
"0"
/>
</xsd:sequence>
<xsd:attribute
name=
"zOrder"
type=
"ST_PageBorderZOrder"
use=
"optional"
/>
<xsd:attribute
name=
"zOrder"
type=
"ST_PageBorderZOrder"
use=
"optional"
default=
"front"
/>
<xsd:attribute
name=
"display"
type=
"ST_PageBorderDisplay"
use=
"optional"
/>
<xsd:attribute
name=
"offsetFrom"
type=
"ST_PageBorderOffset"
use=
"optional"
/>
<xsd:attribute
name=
"offsetFrom"
type=
"ST_PageBorderOffset"
use=
"optional"
default=
"text"
/>
</xsd:complexType>
<xsd:complexType
name=
"CT_PageBorder"
>
<xsd:complexContent>
...
...
@@ -1450,27 +1450,27 @@
</xsd:simpleType>
<xsd:complexType
name=
"CT_LineNumber"
>
<xsd:attribute
name=
"countBy"
type=
"ST_DecimalNumber"
use=
"optional"
/>
<xsd:attribute
name=
"start"
type=
"ST_DecimalNumber"
use=
"optional"
/>
<xsd:attribute
name=
"start"
type=
"ST_DecimalNumber"
use=
"optional"
default=
"1"
/>
<xsd:attribute
name=
"distance"
type=
"s:ST_TwipsMeasure"
use=
"optional"
/>
<xsd:attribute
name=
"restart"
type=
"ST_LineNumberRestart"
use=
"optional"
/>
<xsd:attribute
name=
"restart"
type=
"ST_LineNumberRestart"
use=
"optional"
default=
"newPage"
/>
</xsd:complexType>
<xsd:complexType
name=
"CT_PageNumber"
>
<xsd:attribute
name=
"fmt"
type=
"ST_NumberFormat"
use=
"optional"
/>
<xsd:attribute
name=
"fmt"
type=
"ST_NumberFormat"
use=
"optional"
default=
"decimal"
/>
<xsd:attribute
name=
"start"
type=
"ST_DecimalNumber"
use=
"optional"
/>
<xsd:attribute
name=
"chapStyle"
type=
"ST_DecimalNumber"
use=
"optional"
/>
<xsd:attribute
name=
"chapSep"
type=
"ST_ChapterSep"
use=
"optional"
/>
<xsd:attribute
name=
"chapSep"
type=
"ST_ChapterSep"
use=
"optional"
default=
"hyphen"
/>
</xsd:complexType>
<xsd:complexType
name=
"CT_Column"
>
<xsd:attribute
name=
"w"
type=
"s:ST_TwipsMeasure"
use=
"optional"
/>
<xsd:attribute
name=
"space"
type=
"s:ST_TwipsMeasure"
use=
"optional"
/>
<xsd:attribute
name=
"space"
type=
"s:ST_TwipsMeasure"
use=
"optional"
default=
"0"
/>
</xsd:complexType>
<xsd:complexType
name=
"CT_Columns"
>
<xsd:sequence
minOccurs=
"0"
>
<xsd:element
name=
"col"
type=
"CT_Column"
maxOccurs=
"45"
/>
</xsd:sequence>
<xsd:attribute
name=
"equalWidth"
type=
"s:ST_OnOff"
use=
"optional"
/>
<xsd:attribute
name=
"space"
type=
"s:ST_TwipsMeasure"
use=
"optional"
/>
<xsd:attribute
name=
"num"
type=
"ST_DecimalNumber"
use=
"optional"
/>
<xsd:attribute
name=
"space"
type=
"s:ST_TwipsMeasure"
use=
"optional"
default=
"720"
/>
<xsd:attribute
name=
"num"
type=
"ST_DecimalNumber"
use=
"optional"
default=
"1"
/>
<xsd:attribute
name=
"sep"
type=
"s:ST_OnOff"
use=
"optional"
/>
</xsd:complexType>
<xsd:simpleType
name=
"ST_VerticalJc"
>
...
...
@@ -1713,7 +1713,6 @@
<xsd:restriction
base=
"xsd:string"
>
<xsd:enumeration
value=
"default"
/>
<xsd:enumeration
value=
"eastAsia"
/>
<xsd:enumeration
value=
"cs"
/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType
name=
"ST_Theme"
>
...
...
@@ -1941,7 +1940,7 @@
<xsd:sequence>
<xsd:element
name=
"listItem"
type=
"CT_SdtListItem"
minOccurs=
"0"
maxOccurs=
"unbounded"
/>
</xsd:sequence>
<xsd:attribute
name=
"lastValue"
type=
"s:ST_String"
use=
"optional"
/>
<xsd:attribute
name=
"lastValue"
type=
"s:ST_String"
use=
"optional"
default=
""
/>
</xsd:complexType>
<xsd:complexType
name=
"CT_SdtDocPart"
>
<xsd:sequence>
...
...
@@ -1954,7 +1953,7 @@
<xsd:sequence>
<xsd:element
name=
"listItem"
type=
"CT_SdtListItem"
minOccurs=
"0"
maxOccurs=
"unbounded"
/>
</xsd:sequence>
<xsd:attribute
name=
"lastValue"
type=
"s:ST_String"
use=
"optional"
/>
<xsd:attribute
name=
"lastValue"
type=
"s:ST_String"
use=
"optional"
default=
""
/>
</xsd:complexType>
<xsd:complexType
name=
"CT_Placeholder"
>
<xsd:sequence>
...
...
Test/Applications/DocxFormatCodeGen/codegen/Utils.cs
View file @
d2c092fe
...
...
@@ -45,6 +45,7 @@ namespace codegen
public
static
string
gc_sSerToBinEnumPrefix
=
"c_oSer"
;
public
static
string
gc_sItemsChoiceType
=
"ItemsChoiceType"
;
public
static
string
gc_sItemsElementName
=
"ItemsElementName"
;
public
static
Dictionary
<
string
,
string
>
m_mapNamespaceToPrefix
=
new
Dictionary
<
string
,
string
>()
{
{
"http://purl.oclc.org/ooxml/drawingml/chart"
,
"c:"
},
{
"http://purl.oclc.org/ooxml/drawingml/main"
,
"a:"
},
{
"http://purl.oclc.org/ooxml/officeDocument/relationships"
,
"r:"
},
{
"http://schemas.openxmlformats.org/markup-compatibility/2006"
,
"mc:"
},
{
"http://schemas.microsoft.com/office/drawing/2007/8/2/chart"
,
"c14:"
}
};
public
static
string
GetEnumElemName
(
string
sEnumName
,
string
sElemName
)
{
return
sEnumName
.
ToLower
()
+
sElemName
.
ToUpper
();
...
...
Test/Applications/DocxFormatCodeGen/codegen/codegen.csproj
View file @
d2c092fe
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"
3.5
"
DefaultTargets=
"Build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<Project
ToolsVersion=
"
14.0
"
DefaultTargets=
"Build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup>
<Configuration
Condition=
" '$(Configuration)' == '' "
>
Debug
</Configuration>
<Platform
Condition=
" '$(Platform)' == '' "
>
AnyCPU
</Platform>
...
...
@@ -10,8 +10,29 @@
<AppDesignerFolder>
Properties
</AppDesignerFolder>
<RootNamespace>
codepeg2
</RootNamespace>
<AssemblyName>
codepeg2
</AssemblyName>
<TargetFrameworkVersion>
v
3
.5
</TargetFrameworkVersion>
<TargetFrameworkVersion>
v
4
.5
</TargetFrameworkVersion>
<FileAlignment>
512
</FileAlignment>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>
3.5
</OldToolsVersion>
<TargetFrameworkProfile
/>
<PublishUrl>
publish\
</PublishUrl>
<Install>
true
</Install>
<InstallFrom>
Disk
</InstallFrom>
<UpdateEnabled>
false
</UpdateEnabled>
<UpdateMode>
Foreground
</UpdateMode>
<UpdateInterval>
7
</UpdateInterval>
<UpdateIntervalUnits>
Days
</UpdateIntervalUnits>
<UpdatePeriodically>
false
</UpdatePeriodically>
<UpdateRequired>
false
</UpdateRequired>
<MapFileExtensions>
true
</MapFileExtensions>
<ApplicationRevision>
0
</ApplicationRevision>
<ApplicationVersion>
1.0.0.%2a
</ApplicationVersion>
<IsWebBootstrapper>
false
</IsWebBootstrapper>
<UseApplicationTrust>
false
</UseApplicationTrust>
<BootstrapperEnabled>
true
</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<DebugSymbols>
true
</DebugSymbols>
...
...
@@ -21,6 +42,7 @@
<DefineConstants>
DEBUG;TRACE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<Prefer32Bit>
false
</Prefer32Bit>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<DebugType>
pdbonly
</DebugType>
...
...
@@ -29,6 +51,7 @@
<DefineConstants>
TRACE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<Prefer32Bit>
false
</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"System"
/>
...
...
@@ -48,11 +71,14 @@
<Compile
Include=
"CodeGen.cs"
/>
<Compile
Include=
"CodegenCPP.cs"
/>
<Compile
Include=
"CodegenJS.cs"
/>
<Compile
Include=
"CodegenJSPivot.cs"
/>
<Compile
Include=
"CodeGenPivot.cs"
/>
<Compile
Include=
"Program.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
<Compile
Include=
"Utils.cs"
/>
</ItemGroup>
<ItemGroup>
<None
Include=
"app.config"
/>
<None
Include=
"Resource\chart20070802.xsd"
/>
<None
Include=
"Resource\dml-chart.xsd"
/>
<None
Include=
"Resource\dml-chartDrawing.xsd"
/>
...
...
@@ -77,6 +103,13 @@
<None
Include=
"Resource\sml.xsd"
/>
<None
Include=
"Resource\wml.xsd"
/>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage
Include=
"Microsoft.Net.Framework.3.5.SP1"
>
<Visible>
False
</Visible>
<ProductName>
.NET Framework 3.5 SP1
</ProductName>
<Install>
true
</Install>
</BootstrapperPackage>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment