summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorNikolay Yakimov <root@livid.pp.ru>2015-03-29 07:37:33 +0300
committerNikolay Yakimov <root@livid.pp.ru>2015-03-29 08:02:18 +0300
commit69d5085c112ccd2a136b08895e268d43f9f2067f (patch)
treecb3627d1fd6f19fce7899560ee2415b640eceee4 /data
parent27078985d54111ad5b674635dd3adc5ac5f86744 (diff)
Docx Writer: Add a style to figure images
Figures with empty captions use style "Figure" Figures with nonempty captions use style "Figure with Caption", which is based on "Figure", and additionally has keepNext set.
Diffstat (limited to 'data')
-rw-r--r--data/docx/word/styles.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/data/docx/word/styles.xml b/data/docx/word/styles.xml
index 0de21bd4c..3b3b142b4 100644
--- a/data/docx/word/styles.xml
+++ b/data/docx/word/styles.xml
@@ -313,6 +313,17 @@
<w:name w:val="Image Caption" />
<w:basedOn w:val="Caption" />
</w:style>
+ <w:style w:type="paragraph" w:customStyle="1" w:styleId="Figure">
+ <w:name w:val="Figure" />
+ <w:basedOn w:val="Normal" />
+ </w:style>
+ <w:style w:type="paragraph" w:customStyle="1" w:styleId="FigureWithCaption">
+ <w:name w:val="Figure with Caption" />
+ <w:basedOn w:val="Figure" />
+ <w:pPr>
+ <w:keepNext />
+ </w:pPr>
+ </w:style>
<w:style w:type="character" w:customStyle="1" w:styleId="BodyTextChar">
<w:name w:val="Body Text Char" />
<w:basedOn w:val="DefaultParagraphFont" />