summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2018-01-21 21:29:00 +0800
committerMark Hung <marklh9@gmail.com>2018-03-02 12:06:00 +0100
commit1e034575584930c5bfb57838383ac2cf151c1b92 (patch)
treea122c5a1bc4e1fa06cafdffd51751ff6fe0f7e6c /sw
parent584fc20be3bb6f90d17ef8a131575af9871cb1c4 (diff)
tdf#35301 xmloff: load / store loext:ruby-position.
Add a new property loext:ruby-position to ODF filter for the new attribute value "inter-character". Change-Id: I193eb93fba0e2e7861b6c8635244cac36eb29a06 Reviewed-on: https://gerrit.libreoffice.org/48328 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/odfexport/data/ruby-position.odtbin0 -> 8325 bytes
-rw-r--r--sw/qa/extras/odfexport/odfexport.cxx6
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/extras/odfexport/data/ruby-position.odt b/sw/qa/extras/odfexport/data/ruby-position.odt
new file mode 100644
index 000000000000..7086144bf10f
--- /dev/null
+++ b/sw/qa/extras/odfexport/data/ruby-position.odt
Binary files differ
diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx
index de1399620fea..b36b8045be7f 100644
--- a/sw/qa/extras/odfexport/odfexport.cxx
+++ b/sw/qa/extras/odfexport/odfexport.cxx
@@ -1918,6 +1918,12 @@ DECLARE_ODFEXPORT_TEST(testReferenceLanguage, "referencelanguage.odt")
}
}
+DECLARE_ODFEXPORT_TEST(testRubyPosition, "ruby-position.odt")
+{
+ if (xmlDocPtr pXmlDoc = parseExport("content.xml"))
+ assertXPath(pXmlDoc, "//style:style[@style:family='ruby']/style:ruby-properties[@loext:ruby-position='inter-character']", 1);
+}
+
DECLARE_ODFEXPORT_TEST(testBulletAsImage, "BulletAsImage.odt")
{
uno::Reference<text::XTextRange> xPara(getParagraph(1));