Commit Graph

1217 Commits

Author SHA1 Message Date
Miklos Vajna
7877638814 n#792778 oox: implement import of v:line inside v:group
The problem was that in ShapeBase::convertAndInsert(), the rectangle
calculated for a line was zero, that's why it wasn't imported. Fix this
by overriding the get*Rectangle() methods in LineShape, instead of doing
so with implConvertAndInsert().

Change-Id: Ie4bb2f7964b438cb56e4f5ee7a4ebe9f8f8eb734
2013-01-30 17:19:31 +01:00
Miklos Vajna
d3c7266248 sw: add textframe gradient DOCX roundtrip testcase
Change-Id: I77f63631b5b666e2735978d1bf48ef5733a9f28e
2013-01-30 13:03:22 +01:00
Miklos Vajna
64020cebd6 sw: add textframe gradient ODF roundtrip testcase
Change-Id: I346de7efd4e91f93e3f07ece1c6fe71d1ca53b8e
2013-01-30 13:03:19 +01:00
Miklos Vajna
77479d619b sw: DOCX export of TextFrame border/shadow testcase
Change-Id: I26be6fbd5f0cd95218cdd7235e1fc10eeafb6704
2013-01-22 16:13:26 +01:00
Miklos Vajna
4a787e2078 sw: DOCX export of TextFrames testcase
Change-Id: Ie46a2627d247fb293606c6deab3254113b741336
2013-01-22 09:38:59 +01:00
Miklos Vajna
7907cc0ef9 fdo#59530 WW8 import of commented text ranges
Change-Id: I3e2928922ebcec8188c1b5416108373c4f26dd62
2013-01-21 09:32:28 +01:00
Luboš Luňák
aafffe6d1c disable the test case for paragraph mark export
I don't know what's wrong with it or why the problem shows only for
me on openSUSE12.2, but it's been broken for several days now
and there's not much point in keeping it that way given that it
didn't work from the beginning.

Change-Id: I608bc01e4ee914629db1aa75ce8463044fe20ca6
2013-01-18 16:13:55 +01:00
Miklos Vajna
796e9a7966 fdo#52286 fix RTF export of sub/super script font height
Change-Id: If71cb6a20842f2fbe8eae94955da2d53842999a4
2013-01-17 10:01:39 +01:00
Pierre-Eric Pelloux-Prayer
40411d73bb sw unit test: force layout compute after loading document
Change-Id: I35173bbc2a4e33dfee555aa71f053e219ef01d1e
2013-01-16 11:13:26 +01:00
Pierre-Eric Pelloux-Prayer
57ca766ab4 docx export: add test case for paragraph mark export
Change-Id: I2701ee12221460f8ff19397ea215cc1484648d18
Reviewed-on: https://gerrit.libreoffice.org/1650
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-01-15 15:41:34 +00: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
Pierre-Eric Pelloux-Prayer
1874df3041 doc export: add unit test for bug i106749
Change-Id: I1df4cbb013d94cff7ae5195427044b1e1b2d8895
Reviewed-on: https://gerrit.libreoffice.org/1646
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-01-11 16:35:23 +00:00
Pierre-Eric Pelloux-Prayer
87c66e9e3d sw unit test: add call to CalcLayout before using the layout
Change-Id: Ibb3f8175729cb579a687275a11884c397152fe94
Reviewed-on: https://gerrit.libreoffice.org/1645
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-01-11 16:28:16 +00:00
Pierre-Eric Pelloux-Prayer
40e0a5d73a doc export: add unit test for fdo#56513
Change-Id: Ie87648368f877af56878bc83fe3d5ece66f77304
Reviewed-on: https://gerrit.libreoffice.org/1644
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-01-11 16:26:24 +00:00
Pierre-Eric Pelloux-Prayer
58aeb8e6aa sw unit test: layout dump must be resetted in 'reload' method
Otherwise tests relying on layout dumps will parse the wrong dump.

Change-Id: Ib7b4bc3a231eb3082567a1d1ed38c96835d43add
Reviewed-on: https://gerrit.libreoffice.org/1643
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-01-11 16:19:19 +00:00
Miklos Vajna
555bc780c8 fdo#58933 RTF import: avoid fake pars / cells when having graphic inside cells
Regression from 8063e36115.
2013-01-09 15:57:00 +01:00
Miklos Vajna
d7853c1fab n#793998 testcase 2013-01-08 14:17:28 +01:00
Miklos Vajna
f7623118c4 SwModelTestBase: clear layout dump cache after testing a document 2013-01-08 14:17:27 +01:00
Miklos Vajna
322d9ca5b0 WW8 filter: zoom factor testcase
Change-Id: I89944f0a242174cc4b3c1fcf4f3f2fe744287ee3
2013-01-07 09:14:49 +01:00
Miklos Vajna
1cec392ef5 n#793262 testcase 2013-01-04 14:49:06 +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 0a30cb22a1, 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
b91fa392bc fdo#53604 fix RTF export of empty footnotes
Regression from d4069372484f18b242a42a1996767f57b031fff6
2012-12-21 14:56:48 +01:00
Noel Grandin
bb121c864c fdo#46808, Convert frame::Desktop to new style service.
I had to drop XEventBroadcaster from the merged interface
because it introduced method name conflicts (addEventListener).

Shouldn't be an issue since it was scheduled to be dropped anyhow,
and the service implementation still implements it, so existing clients
will be fine.

I dropped the interface XPropertySet from the combined IDL because nobody
seems to be using it, and it's primary purpose appears to be to set weird
flags.

I dropped the optional interfaces
   XStatusIndicatorFactory
   XDispatchInformationProvider
from the combined IDL because the service does not implement them, and
nobody seems to be using them. I suspect they were mistakenly copied
from XFrame.

I also did not convert the Title, UserDefinedAttributes and LayoutManager
properties to attributes, again because no-one is using them.

Change-Id: I678a00006ed2cca2d6c37c4e39465811442c33af
2012-12-21 10:57:09 +02:00
Miklos Vajna
bee957fc48 fdo#57881 sw: make UseOnPage independent from SvxPageUsage
UseOnPage got changed in commit
fa0f42bafb, but SvxPageUsage got
unchanged. Given that right now other applications don't support first
page headers / footers, leave SvxPageUsage unchanged and provide
conversion methods between the two types.
2012-12-19 22:45:56 +01:00
Miklos Vajna
0587022562 sw: update README of qa/extras
Change-Id: I7fc9fb44cbcabfc6d9e766777a3425794beb2bb2
2012-12-18 18:17:38 +01:00
Miklos Vajna
159fc90e16 fdo#58376 testcase 2012-12-18 13:04:21 +01:00
Miklos Vajna
ffe1f48310 n#792778 testcase
Change-Id: I0f86c70f5068b32e2a1cf1ac605e32b7e5903e94
2012-12-17 11:25:31 +01:00
Miklos Vajna
d5c934d150 n#792778 DOCX import: parse group shapes in oox only
Previously textframes inside groupshapes were tried to be imported as
TextFrames, but then their addition to a GroupShape failed, so the text
simply ended up as a normal paragraph. Fix this by importing members of
groupshapes as drawinglayer objects, just like how the WW8 import does.

Also fix two testcases, which implicitely tested that the groupshape VML
element is ignored on import.

Change-Id: I1a9fba8a5fd532203a825e55b1d5996277ea12fa
2012-12-17 11:25:31 +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
Eilidh McAdam
acef2d6cd0 docx fine dashed table border import test case.
Change-Id: I27ee8e360b8fd530f8cfefc58c8a0f96d706b979
Reviewed-on: https://gerrit.libreoffice.org/1125
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2012-12-04 10:57:23 +00:00
Miklos Vajna
41890bf714 fdo#54473 fdo#57133 fix RTF import of character styles
Regression from commit d2d77fd86e

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
c7d9febc31 sw: test a bit more in qa/extras
For this test document, the first paragraph is part of a textbox, when I
reduced the original bugdoc, I forgot about this.

Change-Id: Ia8d8aa5992d717a55c4115e4eb6d29f37e365df0
2012-11-30 15:27:43 +01:00
Miklos Vajna
049933c035 sw: fix RTF export of text frames anchored to empty paragraphs
Regression from d4069372484f18b242a42a1996767f57b031fff6

Change-Id: I28e095819e0c2f1a4b110741ace366329937f863
Reported-by: Michael Stahl <mstahl@redhat.com>
2012-11-29 17:31:43 +01:00
Miklos Vajna
94dda1701b sw/qa/extras: default style change name changed
Regression from 2e4f4171d6.

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
ad913681c0 n#780645 DOCX import: add support for fixed column width
In general, DOCX tables provide a grid for the table, then use spans in
case different number of cells are used in different rows. In this case,
the cell width is ignored, as the wished width can be counted from the
grid and span values.

However, it's also valid to simply provide more cells then the amount
defined by the grid, and in this case the cell width should decide the
final width of the cells. This commit adds support for this later case.

Change-Id: I0dd6c1f0c06f81c2afa00489b7ad1f33ff300a7c
2012-11-19 12:42:10 +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
eac3e6e746 n#789482 DOCX: export track change data after w:hyperlink
Change-Id: If204523d7da544b11b2d809993ada180476104ef
2012-11-15 10:32:49 +01: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
bd6ae38900 fdo#51550 fix DOCX export dataloss on non-math/chart OLE export
This is still not complete, but having the replacement graphic only is
far better than having nothing.

Change-Id: I141a3de1a449f4261c7086e10f2c141b3f6cdb10
2012-11-09 10:55:15 +01:00