81 Commits

Author SHA1 Message Date
Miklos Vajna
843735fca9 testcase for 4ab658b56f5c6ff0082d38d8ace1924d11e30e96
Change-Id: Ic36463f127eb266e74e7ea4445fc1c8a3126bfe0
2013-06-16 01:29:01 +02:00
Miklos Vajna
9d640dc6ad RTF filter: import posh/posv property of shapes
Change-Id: I55eccccf7f9ed06bba1ada18574890b5bee296f4
2013-06-15 19:32:14 +02:00
Miklos Vajna
2ade071269 fdo#62044 RTF import: don't overwrite existing styles when pasting
Change-Id: I80a83caebc8fa3f038cf2ff080c6c6ec8e93fb70
2013-06-04 12:42:20 +02:00
Miklos Vajna
14e163b0ca import RTF_BACKGROUND
That destination contains a whole shape, but the only interesing detail
of it is the fill color, which is the page background color.

Change-Id: I9527db8954c48c980f8734c9bbeaa6ccd3c48fbc
2013-05-29 10:25:28 +02:00
Miklos Vajna
ec8e012e98 testcase for bfb93ffc6d72d22a833acf9d8c9d166153dad7c0
Change-Id: If61739d54cb2572f20b118a2cf56ab2bd0f306e5
2013-05-27 10:48:25 +02:00
Miklos Vajna
b40fe8e5a5 bnc#818997 RTF import: don't ignore page breaks between shapes
Change-Id: Ief71ba9a3c60356714e73d08e88d0a3105b17b1a
2013-05-21 15:18:45 +02:00
Miklos Vajna
4a816a816e fdo#62977 allow SAL_MAX_INT16..SAL_MAX_UINT16 when importing RTF_U
Change-Id: Ie36d5881b0ebe8c38526690ca27d02bfb7af7829
2013-05-15 10:30:37 +02:00
Miklos Vajna
95d8fa0bcd bnc#816603 testcase
Make sure that at least full-page-width multi-page floating tables are
imported on multiple pages.

Change-Id: Ifb974d50c50b1495634ac2652a3ae46235bb5f52
2013-05-13 12:19:18 +02:00
Miklos Vajna
b4a74af711 testcase for 133f4d750a46dc67797d2f23f25a1bb39620d59f
Change-Id: Ibdb06d50ca79b2882ad7bd984e30beb09e7c7b95
2013-05-11 18:10:16 +02:00
Michael Meeks
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
Miklos Vajna
3d4fef85d0 fdo#63023 incorrect RTF background color in header
Change-Id: I33f5c8a856206860ac9cdb23dd6b5222cb785bf7
2013-04-18 15:54:05 +02:00
Miklos Vajna
e7664052d6 fdo#61193 fix crash on RTF paste of footnote
Regression from 232ad2f2588beff50cb5c1f3b689c581ba317583.

Change-Id: Ia0873851979df5bba0a4693f044aab2aeff2b8e4
2013-04-16 10:36:49 +02:00
Miklos Vajna
91a151085a restore disabled rtfimport tests
There were two problems here:

- Writer textframes don't have an AnchorPosition property, use
  compareRegionStarts() instead
- turns out DOC/DOCX import doesn't create Write textframes when the
  shape has no text, doing so in the RTF import fixes the other two
  testcase as well.

Change-Id: Ib2b4a0b7f8317d300fd532daea22568e33eceb53
2013-04-10 13:13:06 +02:00
Miklos Vajna
a6475acf45 CppunitTest_sw_rtfimport: disable 3 checks for now
I'm not sure yet if the tests should be updated or they signal real
problems, I'll came back to this later.

Change-Id: Ie2570f01e07e557281d2577471a49a730a894393
2013-04-10 08:01:15 +02:00
Miklos Vajna
7006ef460b fdo#51916 testcase
Change-Id: I27ffbab64cfb6763235d4dfd7fb47aa98235274d
2013-04-03 17:37:51 +02:00
Miklos Vajna
584322cbbd fix failing testcases
Change-Id: I2f4deaca308b64f1dc923e3d0a9c10c6f974a33b
2013-03-28 16:57:33 +01:00
Miklos Vajna
9c06d2bd25 fdo#37716 implement import of RTF_NOWRAP
Change-Id: Ic2c0f4c1924811a6ee1c40221db447babdd74a3a
2013-03-28 14:46:50 +01:00
Maxime de Roucy
54b5973ded unit test for fdo#62805
Change-Id: Iebc1a63496aaf54b9e459d0ed53db5cae49929ac
Reviewed-on: https://gerrit.libreoffice.org/3086
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-03-27 12:19:47 +00:00
Miklos Vajna
24d5261f5a fdo#62288 fix RTF import of table paragraph margins
Regression from 4a507f732d82c188ad81b022cbe3037951e58ac3. The problem
was that in some cases \pard can't reset all paragraph properties. The
original commit just made this keyword a noop when it occurred between
\cell and \row, but this is too much. At least margins do need
resetting.

Change-Id: I5cbb1df72bf1211f85ef69ab64d5b46cbce5c742
2013-03-22 11:48:02 +01:00
Miklos Vajna
c412cba28e fdo#61909 fix import of RTF_HIGHLIGHT
It's an index in the color table, not a color value.

Change-Id: Ifa7b14e88231e5053c84dfbdd9b453715df1aaa6
2013-03-18 15:06:30 +01:00
Miklos Vajna
60c17b2873 fdo#61909 fix RTF import of default font without RTF_PLAIN
Change-Id: Ia86548bddb7b87ec9653192c2e5989ce0dc50057
2013-03-18 13:03:16 +01:00
Miklos Vajna
ea66024d4d fdo#60722 testcase
Change-Id: Ib6097c844b2bc929c6ece31bcec62f27bfbf386c
2013-03-06 16:31:13 +01:00
Miklos Vajna
58c30a3545 fdo#59638 handle RTF_F inside RTF_LISTLEVEL
Word typically uses the Symbol font to describe bullet characters
instead of using a sane Unicode value, the previous can only be handled
if we parse the custom font set for the list.

Change-Id: I1491f07c40953949e381a035c1596c207cdc4c35
2013-03-01 17:53:57 +01:00
Maxime de Roucy
50822d4405 testcase for fdo#53594
Change-Id: I834b3cf0b5a46627ff0b532e27a73deeaefe7c47
Reviewed-on: https://gerrit.libreoffice.org/2376
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-02-25 09:43:45 +00:00
Miklos Vajna
e15f9ceafd fdo#59953 RTF import: fix unreadable graphic and nested cell contents
There were two issues here:

1) c3b0f13546b30e5db3aecd311c7178e4e0933208 added a mechanism to work
around broken documents, but that didn't deal with nested tables.
Additionally, the check compared the max row width with the width of the
last cell, not the last row.

2) d276d3f3ae112a11c8cb5768650d147cbb94275e cleaned up implicit
horizontal merge detection, but didn't deal with valid documents, where
each row definition is available twice.

Change-Id: I1a32ec2fcb0d1a8fca7a7bd26501d3daf17880c9
2013-02-08 14:33:28 +01:00
Michael Stahl
c4696e7c04 RTF import: fix import of \line symbol
"Required line break" was eaten by the newly added code in text() to
ignore \'0a.  (regression from f593a2e4179b05ae1019372cde612cb242d1d27f)

Change-Id: Id32687c40a17ddb99196635cedfc850182705799
2013-02-05 21:05:45 +01:00
Miklos Vajna
878c6f7cb4 fdo#58076 import RTF_SHPLEFT/TOP of ESCHER_ShpInst_PictureFrame
Change-Id: Ia655743710778ea7d48a9b2221f22f55a4ccce32
2013-02-05 18:38:11 +01:00
Miklos Vajna
f593a2e417 fdo#59419 fix RTF import of hex form of \r and \n
Change-Id: Ic700cdc67f756cafc454c326b73f680a8a47a6e8
2013-02-03 14:50:19 +01:00
Miklos Vajna
3974e99521 fdo#58646 fix import of RTF_PAGE in cont section when having titlepg
Change-Id: Ia632edb24869ddfb76a029fdb460bcf24d9a2059
2013-02-02 15:38:47 +01:00
Miklos Vajna
b70f74cb5f fdo#48440 fix import of RTF_PAGE between text frames
Normally such a page break is surrounded by text, and text() already
calls checkNeedPap(), but in case the whole paragraph contains a page
break only, we need it here as well.

Change-Id: I3961272d77c743e0e6da2d5052e57cec5f5937e7
2013-02-01 11:31:31 +01:00
Miklos Vajna
078e8583ea clean up copy&paste tests duplication
Change-Id: Idc3e959ba701f9967f7bdb95bd920c8e7416c80a
2013-01-15 11:17:02 +01:00
Miklos Vajna
b6a2083b9d fdo#59338 fix RTF paste into footnote
Change-Id: I89501f267fd4256eb3b1316ef41a0f9b0786e0f0
2013-01-15 11:17:02 +01:00
Miklos Vajna
d276d3f3ae fdo#44053 fix this again and this time add a testcase as well
This was about importing RTF tables where different rows had different
number of cells. In the meantime, a better implementation was added for
DOCX, just using that for RTF fixes the import of this bugdoc.

Also fixes a crasher while loading ooo43817-1.rtf.

Change-Id: I0970275272eca7f33a442bd6acc97a4f8d9dabeb
2013-01-14 17:53:09 +01:00
Miklos Vajna
555bc780c8 fdo#58933 RTF import: avoid fake pars / cells when having graphic inside cells
Regression from 8063e36115a11ddf3db05928db9287947beee74d.
2013-01-09 15:57:00 +01:00
Miklos Vajna
8275c8fc33 sw: fix loplugin warnings
Change-Id: I090a51c112c960b8cc9b208bc7378a5aa3754552
2013-01-02 19:59:47 +01:00
Miklos Vajna
08b4efb4e1 fdo#54612 don't crash on RTF_DPPTX before RTF_DPPOLYCOUNT
Change-Id: I35bf580df157dee429d9dca193945ea95616d678
2012-12-30 23:15:17 +01:00
Miklos Vajna
c3b0f13546 fdo#45183 fix RTF import of tables with different row widths 2012-12-28 13:10:04 +01:00
Miklos Vajna
4a507f732d fdo#57678 fix import of RTF_PARD between RTF_CELL and RTF_ROW 2012-12-24 15:22:55 +01:00
Miklos Vajna
07c80d23fa fdo#58076 fix import of RTF page margins vs partial section props
The problem was that \sbknone (being a section property) triggered
creating a section, but the document doesn't have multiple sections.
Make sure we don't send section properties as long as no \sect control
words present.
2012-12-23 15:48:32 +01:00
Miklos Vajna
71061656d4 fdo#57886 fix import of RTF_MLIMLOC
The RTF spec says control words are case sensitive, and page 252 of the
v1.9.1 spec defines \mlimloc, but earlier page 118 and 125 also defines
\mlimLoc, so let's accept both.
2012-12-22 19:57:37 +01:00
Miklos Vajna
60c01fe42f sw: add csv output for extra filter tests
Like the minimal filter tests, these tests are invoked from a single
cppunit method since commit 0a30cb22a141c26b4eab43a478d32df0769596ec, so
some info about exactly what file failed is necessary. If we are at it,
also print the (re)loading time as well.
2012-12-21 22:12:06 +01:00
Miklos Vajna
257a4090af fdo#49934 fix RTF import of column break in case no columns are defined
It turns out on that case the column break should be parsed as a page
break.

Change-Id: I5dddc8f334fab35bc2ff03fd8127989ab6a601f3
2012-12-08 14:25:15 +01:00
Miklos Vajna
41890bf714 fdo#54473 fdo#57133 fix RTF import of character styles
Regression from commit d2d77fd86e6cb7341e113557e2cfe3d7948759bd

Change-Id: I7accc5c383de3fa53c12527766c3fc155bfa9863
2012-12-04 10:59:19 +01:00
Miklos Vajna
7baca04727 fdo#57708 testcase
Change-Id: I5064cb9bb9700483eac4d56a56e671a392e82f73
2012-11-30 17:25:15 +01:00
Miklos Vajna
94dda1701b sw/qa/extras: default style change name changed
Regression from 2e4f4171d6a29858108922619d680606b633d8f2.

Change-Id: Iaaf1cf180458e9b745875aae457e1e3355566385
2012-11-26 07:39:39 +01:00
Eike Rathke
9955dbebbd AllSettings with LanguageTag
Change-Id: I710ae66e51139662eb442b681fdf9cc9d158551d
2012-11-22 12:34:59 +01:00
Miklos Vajna
66d3da3505 sw: move swmodeltestbase.hxx to qa/extras/inc/
If we already have such an include dir, let's have all headers there.

Change-Id: I2100b5308e7fdad9d98cfde76434ff485aca20c7
2012-11-18 11:09:23 +01:00
Caolán McNamara
c8383757fb valgrind: Invalid read from sequence released during assignation
Change-Id: I3bb665e15e6f4ae7ada94a33a58633bd548d34f4
2012-11-17 20:10:51 +00:00
Miklos Vajna
c4b91ae317 fdo#55525 import RTF_TRLEFT
Additionally:
1) Make sure cell margins are zero when they are not defined.
2) Handle cellx values in case of a negative left margin.

Change-Id: I9b8fb700b6459e622396c98e4344aba79f62c96e
2012-11-14 09:43:51 +01:00
Miklos Vajna
7b7bee4ed5 fdo#48442 fix default hori/vert frame anchor during RTF import
We used to send nothing when we got nothing, but this is not correct:
\pvmrg and \phmrg is the default in RTF, but not in Writer.

Change-Id: I9f69e282e68f0828c8b5ba98657cad1dd0715eb3
2012-11-06 11:10:27 +01:00