summaryrefslogtreecommitdiff
path: root/sw/qa/extras/rtfexport/data
AgeCommit message (Collapse)AuthorFilesLines
2016-04-14tdf#98806 RTF import: handle bookmarks in table textMiklos Vajna1-0/+11
Mapper().props() was called directly, so all bookmarks pointed to the start of the A1 cell instead of the correct text range. (cherry picked from commit 3d922d7da4fa11b8c22bbdffd141fa1398b2fcd4) Conflicts: sw/qa/extras/rtfexport/rtfexport.cxx Change-Id: I40eeb85b61d2ae9138cd666d4a6a3c08eda47da3 Reviewed-on: https://gerrit.libreoffice.org/23913 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2016-02-19tdf#96175 RTF filter: export \companyMiklos Vajna1-0/+6
(cherry picked from commit abe8ea175ad9fc282a1e702acb74da5d7c967cbe) Change-Id: I590d015aa50350cceef70313498e72474d242789 Reviewed-on: https://gerrit.libreoffice.org/22506 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
2016-02-02tdf#61511 RTF export: handle page background solid color fillMiklos Vajna1-0/+30
(cherry picked from commit b0058366190b63fcbc112b43d387f7600a7fe55d) Change-Id: I562419b6d4fb791ef5b255effe9a4510d930bdbc Reviewed-on: https://gerrit.libreoffice.org/21884 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-12-10tdf#94377 RTF export: support comment formattingMiklos Vajna1-0/+15
The core of this change is that RtfAttributeOutput::PostitField() now uses WriteOutliner() to handle comment text, instead of trying to output the plain text as-is. To have working roundtrip of the comment text, a few more changes are needed: 1) When emptying the Styles buffer, also empty the StylesEnd one. 2) Annotations don't want a trailing \par, so don't write one for the last paragraph. 3) Inform the MSWord_SdrAttrIter about where the editeng content will end up, and make WriteOutliner() accessible outside RtfSdrExport. Change-Id: I9cbcf4ce5dc3a099d310c6f321ea8e52f8644f9b (cherry picked from commit 7060525a64ef1048b387f0a6a9f842d78b52fb9a)
2015-12-03tdf#94043 RTF filter: implement column separator handlingMiklos Vajna1-0/+17
Change-Id: I9d74642156d7bb79577671bae24346c75178c5c7 (cherry picked from commit 5cbe4bcc281c77f4929caf1c387f7732fc8f113b)
2015-09-24Related: tdf#92521 RTF export: handle section break right after a tableMiklos Vajna1-0/+0
Change-Id: Ibb6e612165ec6e5d771bdf9efa13a88a72233d6f
2015-08-27Improving Asian phonetic guide for docx and rtf files.Mark Hung1-0/+248
RTF import, export, and ooxml export for ruby text are implemented. tdf#49073 - FILEOPEN: Furigana (ruby text) and characters with them are missing in opened .docx files. tdf#50786 - [TASK, METABUG] FILEOPEN, FILESAVE, FORMATTING : Japanese ruby-character handling is broken Change-Id: I4a5c30bad180241e3344e9da7efe7da4369fb325 Reviewed-on: https://gerrit.libreoffice.org/17241 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-06-15tdf#84832 RTF export: fix handling of custom table cell marginsMiklos Vajna1-0/+0
Change-Id: I3ed42ae4dc007c15d4649f57e1691534088549fc
2015-04-21tdf#90421 RTF export: ignore hyperlinks without an URLMiklos Vajna1-0/+8
Commit fe444d1f74abe417962be0bcd3340f40f2446b58 (fdo#62536: sw: fix AutoCorrect bold/underline on existing AUTOFMT, 2013-06-20) adds an empty inet format hint on the text node during autocorrection, on export we can safely ignore that to provide well-formed output. Change-Id: Iafae941a13e29dcc7d8b4bade5ce94a486b59638
2015-04-20tdf#80708 RTF export: fix unexpected table row breakMiklos Vajna1-0/+15
Regression from commit 1f77a5e8d5bf8a7f1b7bd7206996d2b2efc59462 (n#203704 fix RTF export table output for subtables, 2012-02-08), the problem is that RtfAttributeOutput::StartTableRow() has two callers depending on if it's the first or a later row, but the m_bTableRowEnded flag storing if that method is called is only set in one case. Fix the problem by moving the update of the flag to the method itself. Change-Id: Ieae1fb53f9528fc74d037d2fd783b3979b17cab8
2015-04-20RtfAttributeOutput::ParaHyphenZone: use \hyphparMiklos Vajna1-0/+5
Previously SvxHyphenZoneItem was serialized to some custom RTF extension that even our own RTF import ignores since LO 3.5. Change-Id: Ia99d9750ad0b1a07105eeef2bee07e6fdbfe7876
2015-04-17RTF filter: export \hyphautoMiklos Vajna1-0/+6
Change-Id: Ide8cb5f45d3eb60c45d86d58a9ab12bbc9f4cf47
2015-03-21Char highlight: RTF filtersZolnai Tamás1-38/+0
Handle \highlightN and \chcbpatN separately. Change-Id: I20546bd4c26154e8b1168f87dcb4ab44a192ad83
2015-03-15RTF export: handle \sautoupdMiklos Vajna1-0/+7
Change-Id: Ifddb3fda827aef0a95649bf074dad7d9cc797edb
2015-02-15RTF filter: handle mirrored marginsMiklos Vajna1-0/+9
Change-Id: I122f5f23e510ae42664d2b69504f4722aa05597e
2015-02-02RTF export: need to take care of fill attributes when building the color tableMiklos Vajna1-0/+0
Change-Id: Iab7b4941e9b41249f2a30fa6139313239a98c501 Reviewed-on: https://gerrit.libreoffice.org/14276 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-11-22fdo#82006 RTF filter: import \sbauto and \saautoMiklos Vajna1-0/+4
Change-Id: Iabff543c8191fc86dceb9274ea1552f60d73dabd
2014-11-22RTF import: fix handling of multiple \lfolevel control wordsMiklos Vajna1-0/+29
Change-Id: I242853d491c2ef83f192486fa6fe5a3407700047
2014-11-15RTF import: handle right-to-left tablesMiklos Vajna1-0/+5
Change-Id: If2e60557b7551839c344d56cb3a720ae3659e93c
2014-11-07Correct number format mapping for CJK numbered lists in rtf/doc/docx filters.Mark Hung11-0/+2475
Reviewed on: https://gerrit.libreoffice.org/12252 Change-Id: I2d8760c7ecb3677464e167528b2424aaca19a0d7
2014-10-25fdo#82858 RTF export: fix "none" line style of TextFramesMiklos Vajna1-0/+0
Regression from commit 9e6a5b94e00f0054b058dbb42c2c0b6c75236c9d (RtfAttributeOutput::FormatBox: export line{Color,Width} shape properties, 2013-04-15), in case lineColor is written, but there is no border style, then an explicit fLine=0 property is needed, otherwise a black border shows up. Change-Id: I6d6eedbc8d3ee4bee0f2aadb51a376c7734c6640
2014-10-15fdo#82860 RTF import: fix handling of SHAPE fieldsMiklos Vajna1-0/+0
No need to use fieldmarks for these. Change-Id: I8d2c797f2b00be88e445dab0dd69cb1a9556c02c
2014-10-12RTF filter: fix \acc* handlingMiklos Vajna1-0/+8
The exporter didn't write circle and underdot at all. Change-Id: Ia8f45f2b03fb14e9a0027ec24ee7f36adc8c018d
2014-09-25fdo#83465 RTF import: handle font of numberingMiklos Vajna1-0/+22
Change-Id: If0da6e0e34ce50bbe7dceda089b6bb81b4a63f36
2014-09-09abi#10076 RTF export: handle frames without a valid anchor pointMiklos Vajna1-0/+0
Ideally all frames have an anchor point in the maFrames vector, as provided by MSWordExportBase. If that's not the case, then we have no idea what would be a valid anchor point: just export those as inline, as we did before. Change-Id: I81134d9fb8dc4ca166084964d277ac02ceccde7b
2014-09-05abi#10039 RTF export: support page-anchored framesMiklos Vajna1-0/+0
Change-Id: I71c961799f76446cdf24faeba86f881ae02ffe3b
2014-09-03RTF export: handle wrap polygon of Writer picturesMiklos Vajna1-0/+47
Change-Id: I712d8f73466c662659a7b76ff363a44a71bba324
2014-08-29fdo#32613 RTF export: implemented anchored picture exportMiklos Vajna1-0/+0
RTF originally didn't support anchored pictures: they were always inline. Then it was invented that pictures can be exported anchored, if they are in fact shapes, but their "pib" property is set to the hexdump of the picture contents. The RTF importer handled this situation for quite some time, but not the exporter -- this commit implements that. Change-Id: I173ad9f4f2e24620508ca63c0b892b7d5da4e5b2
2014-08-17remove executable bitsThomas Arnhold1-0/+0
Change-Id: Iec785ae538de81325812b1e6fe33115789b39770
2014-06-27fdo#80167 RTF export: don't loose page breaksMiklos Vajna1-0/+6
DOCX export tries to write accurately both <w:br> and <w:pageBreakBefore>, while DOC/RTF prefers just the page break before paragraph attribute. Given that these later two exporters are not adapted to write their equivalent of <w:br> at all, add a virtual method to determine if writing page breaks as "page break before" is preferred or not, that'll give the expected RTF export result. This conditionally reverts commit a31fbb53dba76736b37213b98b64937f05929a67 (fdo#74566:DOCX: Preservation <w:br> tag for Break to Next Page, 2014-02-06). Change-Id: I4a5dd295b07739a570cd8cc6709561e64d031273
2014-06-27fdo#78758: sw: RTF export: don't export multiple \fldrst for one hyperlinkMichael Stahl1-0/+9
Ensure that we export only one \fldresult per hyperlink by doing that in StartURL() and EndURL(); the TextINetFormat() is called once per text portion. This shouldn't cause problems as there can't be anything between the end of the \field group and the start of \fldresult anyway. Replace the annoying call to EndURL() from EndRun() with a special case in EndURL() to store things in the right buffer (hopefully). (somehow this is regression from c4498251cb7181a9f272b0720f398597c0daef09) Change-Id: I209ea7a384fb1cb5d1505a70ecc4a4536bbf26a2
2014-06-19fdo#79599: use \highlightN instead of \chcbpatN in RTF import and exportnrbrtx@gmail.com1-0/+38
Reviewed on: https://gerrit.libreoffice.org/9776 Change-Id: I98ef606fb73368a3c275819cb83b936e2162769d
2014-06-12fdo#77979: argh forgot to add the test documentMichael Stahl1-0/+0
Change-Id: I64cf70cf7f1f77c38a8a4804b705ce8a0441e487
2014-04-22fdo#77600 RTF export: always close URL's before the end of runMiklos Vajna1-0/+25
In case the URL text has multiple portions, then MSWordExportBase generates multiple URL's anyway, and this helps to avoid loosing some direct formatting of the remaining portions of the paragraph. Change-Id: Ifd72741de610ce69b9ae0978aa8f9a532a3aeed2
2014-04-06Testcase for RtfAttributeOutput::SectionLineNumbering()Miklos Vajna1-0/+8
lcov pointed out this method wasn't ever invoked in any of the tests. Change-Id: I6cccf4fc1d870938a2f218bedc0b8d195a299cd1
2014-03-27RTF export: handle Relative{Height,Width}{,Relation}Miklos Vajna1-0/+42
Change-Id: I16bef12840f45b269de18fdac4c3718ed904e1be
2014-02-10fdo#74709 RTF import: implement RTF_CLPAD*Miklos Vajna1-0/+32
Change-Id: I482735e3fc4091be983b2c7484e086f5d0dd283a
2014-01-15RTF export: fix nested commentsMiklos Vajna1-0/+0
Change-Id: I9986855f3160ed6f5856aec9f7d33fc416962e77
2014-01-05RTF export: write RTF_FTNSEP and RTF_CHFTNSEP if necessaryMiklos Vajna1-0/+9
Change-Id: Ie680436df68ea6287437f792d97259ee0a840ee1
2013-12-18SwFiltersTest::filter: detect import filter on export testMiklos Vajna1-0/+0
This allows e.g. crash-testing the RTF export, even if the input source is not RTF but ODT. Change-Id: I3cf6afd1bc44bb475f1bd8da622d10dac0d3baa6
2013-12-17test::FiltersTest: add support for export testsMiklos Vajna1-3/+0
For now, this is only implemented for the Writer RTF filter. Change-Id: I0c7ae5b0e544bd4738652a38474f4d262ce65661
2013-12-10i#23357 RTF export: fix crash on groupshapesMiklos Vajna1-0/+0
Change-Id: I3329663060aeb06ac552bd5d1615d19efe160091
2013-12-09abi#10201 RTF export: fix crash when handling table::BorderLineStyle::NONEMiklos Vajna1-0/+3
Change-Id: I811820c0d550ce24ad2180a8917ef0087968c30b
2013-09-23fdo#66743 fix import of some RTF_CLSHDNG valuesMiklos Vajna1-0/+5
This should be in sync with model.xml, got broken when the somewhat random values got fixed to be the same as the ones which are in the ww8 spec. (Regression from 26d40686128e70916a636e20f5ccc5763bbb6cc8.) Change-Id: Id62047e0b2d5d8402a7c8bce95de487afe627e32
2013-09-08CharBrd 9.3: RTF filtersZolnai Tamás1-0/+0
-Use sprm:CBrc attribute for all MS filter (for ooxml too). -Extract general code to FormatCharBorder() method, it selects the border side and decides whether add shadow to the border. -RTF export has a color table, which must be filled with border colors before the actual export.temp Change-Id: Ic3ceae6e19ddc2ed5aaa8de85617f9a592289b4f
2013-08-15RTF import/export of paragraph drop shadowMiklos Vajna1-0/+21
Change-Id: I8d2485962947eac8acc9ada384a9c1bd4cb22503
2013-07-10fdo#66682 RTF export: fix level text of SVX_NUM_ARABICMiklos Vajna1-0/+25
Even if level text is not ASCII, we should just write the placeholder values (0x00, 0x01, etc.) in a hex encoded form, without Unicode. Regression from 07d01742c69f1c0335bc7e1b57abd8341ce255e7. Also, fix the import side, so the previous bad output now looks bad in Writer as well. Change-Id: I2f93892006c07eec243ec7dfcb23372d243a2db4
2013-06-16sw: move the textframe-table testcase from rtfimport to rtfexportMiklos Vajna1-0/+41
Change-Id: I7e9d26ec1f47d16e35e24fc4bd9482f5d899e79c
2013-06-16Import/export RTF_REVISIONSMiklos Vajna1-0/+3
File -> Properties -> Security -> Record Changes on the UI. Change-Id: I96d321f407abd33e15a4a133e6723d48efa5bc53
2013-04-15sw: add textframe gradient RTF roundtrip testcaseMiklos Vajna1-0/+161
Change-Id: I8e4f6b926123c79ad1a62ddd4c5feebf5fe06cf0