Skip to content

Commit

Permalink
Merge pull request #2303 from hftf/h6
Browse files Browse the repository at this point in the history
Add missing Heading 6 style in reference Docx
  • Loading branch information
jgm committed Jul 16, 2015
2 parents e944c03 + 126d6f5 commit 47a2dab
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
26 changes: 23 additions & 3 deletions data/docx/word/styles.xml
Expand Up @@ -176,7 +176,7 @@
<w:keepNext />
<w:keepLines />
<w:spacing w:before="200" w:after="0" />
<w:outlineLvl w:val="1" />
<w:outlineLvl w:val="2" />
</w:pPr>
<w:rPr>
<w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
Expand All @@ -198,7 +198,7 @@
<w:keepNext />
<w:keepLines />
<w:spacing w:before="200" w:after="0" />
<w:outlineLvl w:val="1" />
<w:outlineLvl w:val="3" />
</w:pPr>
<w:rPr>
<w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
Expand All @@ -220,7 +220,7 @@
<w:keepNext />
<w:keepLines />
<w:spacing w:before="200" w:after="0" />
<w:outlineLvl w:val="1" />
<w:outlineLvl w:val="4" />
</w:pPr>
<w:rPr>
<w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
Expand All @@ -231,6 +231,26 @@
<w:szCs w:val="24" />
</w:rPr>
</w:style>
<w:style w:type="paragraph" w:styleId="Heading6">
<w:name w:val="Heading 6" />
<w:basedOn w:val="Normal" />
<w:next w:val="BodyText" />
<w:uiPriority w:val="9" />
<w:unhideWhenUsed />
<w:qFormat />
<w:pPr>
<w:keepNext />
<w:keepLines />
<w:spacing w:before="200" w:after="0" />
<w:outlineLvl w:val="5" />
</w:pPr>
<w:rPr>
<w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
<w:color w:val="4F81BD" w:themeColor="accent1" />
<w:sz w:val="24" />
<w:szCs w:val="24" />
</w:rPr>
</w:style>
<w:style w:type="paragraph" w:styleId="BlockText">
<w:name w:val="Block Text" />
<w:basedOn w:val="BodyText" />
Expand Down
Binary file modified tests/docx/headers.docx
Binary file not shown.
10 changes: 9 additions & 1 deletion tests/docx/headers.native
Expand Up @@ -2,4 +2,12 @@
,Header 2 ("second-level",[],[]) [Str "Second",Space,Str "Level"]
,Para [Str "Some",Space,Str "plain",Space,Str "text."]
,Header 3 ("third-level",[],[]) [Str "Third",Space,Str "level"]
,Para [Str "Some",Space,Str "more",Space,Str "plain",Space,Str "text."]]
,Para [Str "Some",Space,Str "more",Space,Str "plain",Space,Str "text."]
,Header 4 ("fourth-level",[],[]) [Str "Fourth",Space,Str "level"]
,Para [Str "Some",Space,Str "more",Space,Str "plain",Space,Str "text."]
,Header 5 ("fifth-level",[],[]) [Str "Fifth",Space,Str "level"]
,Para [Str "Some",Space,Str "more",Space,Str "plain",Space,Str "text."]
,Header 6 ("sixth-level",[],[]) [Str "Sixth",Space,Str "level"]
,Para [Str "Some",Space,Str "more",Space,Str "plain",Space,Str "text."]
,Para [Str "Seventh",Space,Str "level"]
,Para [Str "Since",Space,Str "no",Space,Str "Heading",Space,Str "7",Space,Str "style",Space,Str "exists",Space,Str "in",Space,Str "styles.xml,",Space,Str "this",Space,Str "gets",Space,Str "converted",Space,Str "to",Space,Str "Span."]]

0 comments on commit 47a2dab

Please sign in to comment.