Commit Graph

1217 Commits

Author SHA1 Message Date
Miklos Vajna
a9e0ec2b87 bnc#820509 testcase
Change-Id: Iee9909e9c42014ab10ceaa2f8f8e554c25e89157
2013-06-05 12:00:08 +02:00
Miklos Vajna
3d08f8153a sw: drop redundant page-background test from ooxmlimport
Commit 515701a1ff copy&pasted the test to
the ooxmlexport suite, which tests the import already.

Change-Id: I5f60b7c8f8b80189f66ac562f2c338344d91394f
2013-06-05 09:58:04 +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
Noel Grandin
28e3aff576 fdo#46808, Use service constructor for ZipFileAccess
Change-Id: I9c3f8e2df56953487329bdbbac251b3af8cd9917
2013-06-03 10:00:02 +02:00
Adam Co
515701a1ff fdo#65257 : DOCX not exporting background color
Signed-off-by: Miklos Vajna <vmiklos@suse.cz>

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx

Change-Id: Ida3f66d5adb063400494e1da589a463b4d7c2a86
2013-06-03 09:59:33 +02:00
Cédric Bosdonnat
173d24a731 n#816593: docx consecutive tables with different tblpPr needs to be split
When importing docx with 2 <w:tbl> following each other, we have 2
possible behaviors: either merge them as one table as we did before or
split them into two tables. The tables need to be split if they have
different floating position properties.

This required the ooxml tokenizer to repeat the table properties for
each row of the table: or how would we know we don't need to split the
table?

The basic idea behind this hack is to temporarily store the table
position and table properties before saving them. Thus we can compare
them at the end of the row and decide to split the table or not.

Change-Id: I2e3e70dfe7386090fe356575ee9d0e81aa031dc4
2013-05-31 14:12:46 +02:00
Miklos Vajna
1727b26864 bnc#817956 page border shadow testcase
Change-Id: I1ded79d89dcceb3bae5926a2f217cde8bf6aa830
2013-05-30 12:34:28 +02:00
Miklos Vajna
8931c8f3c5 bnc#817956 v:textpath VML import testcase
Change-Id: I4c4c3a84e8d9d048262e6570a8bed0106e8d184f
2013-05-29 15:56:51 +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
Cédric Bosdonnat
9f4c8a8bca n#816593: Floating table width import fix: adjust the frame width
Change-Id: I8212bc5981418f6cbd514bf5002e6a5dbdf53152
2013-05-28 15:00:39 +02:00
Miklos Vajna
992da0d5cf bnc#817956 DOCX import of document background color
See wwSectionManager::SetSegmentToPageDesc(), this has to be applied to
every page style.

Change-Id: Iea2707ae665a55eabda3ed7575cf3658f7af5237
2013-05-27 17:49:12 +02:00
Miklos Vajna
ec8e012e98 testcase for bfb93ffc6d
Change-Id: If61739d54cb2572f20b118a2cf56ab2bd0f306e5
2013-05-27 10:48:25 +02:00
Adam Co
286bfde8c3 fdo#64826 : fix for track-changes export in DOCX
Change-Id: I44b505f977edcf9e0af2108487870352277ee9f0
Reviewed-on: https://gerrit.libreoffice.org/4011
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-05-23 12:28:27 +00:00
Miklos Vajna
bf4fb4d414 SwModelTestBase: avoid not needed SAL_PRIuUINT32
Change-Id: Id3aa47866fb753fb6a08d9dfcfb0ecb34d4a4770
2013-05-23 10:37:09 +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
a3e4b1e91f testcase for becb244b49
Change-Id: I37df8d6d5cbc9b37fa03681e8dc32a4926cd42a9
2013-05-14 11:00:31 +02:00
Miklos Vajna
26ce47baf1 bnc#816593 WW8 import testcase
This always worked, but I almost broke it with
8fe8bd6c3b.

Change-Id: I6b7817830da23afea758d1eb90395aeb01e32f67
2013-05-13 12:19:18 +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 133f4d750a
Change-Id: Ibdb06d50ca79b2882ad7bd984e30beb09e7c7b95
2013-05-11 18:10:16 +02:00
Miklos Vajna
cb088e6d20 sw_filters_test: add support for ooxml files
The motivation is that if -- after fixing a crash -- the document looks
OK, then all the paperwork in the ooxmlimport isn't necessary, just drop
in the file to qa/core/data/ooxml/pass/, and we're done.

Change-Id: I2287189bd3c49c5e53489f9d89a6341685359b33
2013-05-07 15:13:09 +02:00
Miklos Vajna
254c5c694b fdo#64256 writerfilter: handle void GraphicURL in ListsManager::lcl_sprm
Change-Id: I4d8b1b527d5099781a36cc1265318c167205340e
2013-05-07 12:15:11 +02:00
Miklos Vajna
4144cd5a85 fdo#42144 WW8 export: avoid writing pointless empty footers
Regression from 1348288905 (mismerge, I
guess), when header was enabled, actually empty footer was exported,
even in case footer was disabled.

Change-Id: Ied55dc2a9f0faef87689c07935a47db384d37e1a
2013-05-06 13:02:26 +02:00
Miklos Vajna
9e6570f16e bnc#779630 testcase
Change-Id: Ia888670ad7a5b51c9b6a3d05676b192456311704
2013-05-02 14:15:54 +02:00
Miklos Vajna
3ec2d26dc2 bnc#779630 initial DOCX import of w:sdt's w:date
Also factor out the w:sdt-related methods to a helper class to avoid
DomainMapper_Impl become a God object.

Change-Id: Ic1a388940bce89688e8558818f92ce9ac997609c
2013-05-02 12:14:47 +02:00
Michael Meeks
06a8ebc878 fdo#62336 - unit test for conversion failure.
Turns out this depends on not doing layout, and so is a real corner-case.

Change-Id: If9d2db6b1a0df94fc809fb353f2dbf2cf9ac1c9a
2013-04-30 17:32:20 +01:00
Michael Meeks
72e5d0c8fb Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-30 13:34:06 +01:00
Cédric Bosdonnat
b399c1a38c n#592908: docx import, fixed handling of w10:wrap
commit f837c4288c moved the handling of
w10:wrap tag in oox, but thus no wrapping was imported any more.

The fix consists in letting the w10:wrap element be handled by writerfilter's
dmapper if the shape has already been retrieved from oox (which is the
case for textboxes). In other cases, make sure that we don't set the
Surround property once again in writerfilter as that would override what
has been done in oox.

(cherry picked from commit 51d5e90b7c09cb980bc72a2c6b1a65303ef15ea2)

Conflicts:
	oox/inc/oox/vml/vmlshape.hxx
	sw/qa/extras/ooxmlimport/ooxmlimport.cxx

Change-Id: I8ab158641afcf6b9945c52238e7f5adb9e8b3adf
2013-04-30 09:34:28 +02:00
Adam Co
becb244b49 Fixing Indentation RTL bug
Change-Id: Ie8c3d30cb28afb97d4ded4ac67241ed18ab9e50c
Reviewed-on: https://gerrit.libreoffice.org/3651
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2013-04-29 10:28:19 +00:00
Luboš Luňák
391c45ce86 Revert "temporarily disable conditionalstyles-tbllook.docx test"
Already worked around.
This reverts commit f853a20839.
2013-04-26 18:42:57 +02:00
Miklos Vajna
127caae6f7 SwModelTestBase: add save(), next to load() and reload()
Change-Id: I15405dd6be64da689257aed50ba847f3741df3a1
2013-04-26 15:27:15 +02:00
Miklos Vajna
dc92bac5df fdo#58949 testcase
Change-Id: I584efc83ef1643a683757ac369cd140f52610293
2013-04-26 13:03:50 +02:00
Luboš Luňák
f853a20839 temporarily disable conditionalstyles-tbllook.docx test
writerfilter relies on boost::unordered_map being ordered in a specific
way, temporarily disable until that's sorted out somehow

Change-Id: I5fdb70223e39e2048a45e0b81ffc2c714e1c4532
2013-04-24 20:51:12 +02:00
Luboš Luňák
44d012aea3 add comment to the right function (result of mismerge?)
Change-Id: I8574e679f6f4ef252ba0eda025b1991bc3e93df4
2013-04-24 14:47:31 +02:00
Luboš Luňák
b4c245881a remove executable bit
Change-Id: I50ab7a08e680cb5a6354035a058240df15e10bd9
2013-04-24 14:46:25 +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
a88ac70840 fdo#63685 wp:inline's distT/B/L/R is in EMU's, not twips
Regression from 3d7e168a2a.

Change-Id: I9ab3f9f41316a01d5a74f3e500bad7a83c8d2dca
2013-04-19 17:32:21 +02: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
54d0673ba4 testcase for 35b75ed510
Change-Id: Ib734717cdc293b3921c94f93b1d6d0d5e07120d5
2013-04-18 12:19:33 +02:00
Miklos Vajna
e7664052d6 fdo#61193 fix crash on RTF paste of footnote
Regression from 232ad2f258.

Change-Id: Ia0873851979df5bba0a4693f044aab2aeff2b8e4
2013-04-16 10:36:49 +02:00
Miklos Vajna
92da8fc4eb sw: add textframe gradient RTF roundtrip testcase
Change-Id: I8e4f6b926123c79ad1a62ddd4c5feebf5fe06cf0
2013-04-15 16:05:53 +02:00
Miklos Vajna
bb9fce28d6 sw: RTF export of TextFrame border/shadow testcase
Change-Id: I85b85afb6d1b170d71633f93d56f7ce4fffdf0a3
2013-04-15 13:36:56 +02:00
Miklos Vajna
ef68c2b97d sw/qa: add new script to make sure all files are tested
When some import filter fix arrives in, and the submitter submits a test
file, but doesn't provide a matching testcase, we accept the patch, as
it's better than nothing. This script will search for such files,
providing kind of a TODO list for what testcases have to be implemented.

Change-Id: I713fe2f0aef4cbca66ba913baf54b7bd28ba2471
2013-04-12 07:40:24 +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
85c8252e13 test RtfAttributeOutput::StartURL()
Change-Id: I66f527ff7463852f65e1a3f02ddcea60d329147a
2013-04-08 14:45:53 +02:00
Miklos Vajna
7b515a57eb test RTF_BKMKSTART and RTF_BKMKEND
Change-Id: I00b258ef3ed89db3b9b8c97bea5ad6673b006398
2013-04-08 12:25:34 +02:00
Miklos Vajna
3867728286 RTF_LISTPICTURE and RTF_LEVELPICTURE testcase
Change-Id: Ia6838d205ce25a22e2e5e8763f7bf4323c40879a
2013-04-07 20:23:49 +02:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
Miklos Vajna
e63950dc82 w:numPicBullet export testcase
Change-Id: Ia8a32b6d9fcb53e3974940c173edb2fe4c9e1ab3
2013-04-05 15:24:45 +02:00