summaryrefslogtreecommitdiff
path: root/writerfilter
AgeCommit message (Collapse)AuthorFilesLines
2013-02-13update pch headers, broken by 1aaf9a9Luboš Luňák1-0/+1
2013-02-08fdo#59953 RTF import: fix unreadable graphic and nested cell contentsMiklos Vajna2-3/+6
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-05RTF import: fix import of \line symbolMichael Stahl1-2/+6
"Required line break" was eaten by the newly added code in text() to ignore \'0a. (regression from f593a2e4179b05ae1019372cde612cb242d1d27f) Change-Id: Id32687c40a17ddb99196635cedfc850182705799
2013-02-05convert libxslt to gbuild and add to tail_buildPeter Foley1-0/+2
Change-Id: I16eb442fd65b3a2f3a44108f670fd364dc7a64c0 Reviewed-on: https://gerrit.libreoffice.org/1988 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Peter Foley <pefoley2@verizon.net> Tested-by: Peter Foley <pefoley2@verizon.net>
2013-02-05fdo#58076 import RTF_SHPLEFT/TOP of ESCHER_ShpInst_PictureFrameMiklos Vajna1-0/+15
Change-Id: Ia655743710778ea7d48a9b2221f22f55a4ccce32
2013-02-03fix failing testcaseMiklos Vajna1-2/+2
Change-Id: I191f7bb6286998222877db863e45b24e0e7618b8
2013-02-03fdo#59419 fix RTF import of hex form of \r and \nMiklos Vajna1-0/+8
Change-Id: Ic700cdc67f756cafc454c326b73f680a8a47a6e8
2013-02-02fdo#58646 fix import of RTF_PAGE in cont section when having titlepgMiklos Vajna1-1/+3
Change-Id: Ia632edb24869ddfb76a029fdb460bcf24d9a2059
2013-02-01fdo#48440 fix import of RTF_PAGE between text framesMiklos Vajna1-0/+1
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-01-28fdo#46808, Adapt document::*PropertyValues UNO service to new styleNoel Grandin1-2/+2
The services are: document::NamedPropertyValues document::IndexedPropertyValues The services already existed, they just did not have IDL files Change-Id: Ibafe9b5afb9b30785df4f66aa923f4b96ceabeed
2013-01-27Some cppcheck cleaningJulien Nabet1-1/+1
Change-Id: I7217ab7500de5d8220b85e56aceb6e843bd0769f
2013-01-26gbuild: do not copy boost headers aroundMichael Stahl3-1/+8
- do not use gb_UnpackedTarball_copy_header_files for boost - adapt the optimization in concat-deps.c for new path - use boost_headers in all LinkTargets that require it - add explicit include paths to mysqlc, mysqlcppconn, libvisio, liborcus Change-Id: I0c43e73ed43cc9d2e6bce8faf55e992d655a0bb9
2013-01-21Replaced O[U]String::valueOf( static_cast<> ) with O[U]String::number()Jean-Noël Rouvignac2-2/+2
Change-Id: I2f11f2f15a652a9edc3c7e5b67c854debeed20de Reviewed-on: https://gerrit.libreoffice.org/1784 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-15fdo#59338 fix RTF paste into footnoteMiklos Vajna1-2/+5
Change-Id: I89501f267fd4256eb3b1316ef41a0f9b0786e0f0
2013-01-14fdo#44053 fix this again and this time add a testcase as wellMiklos Vajna3-33/+3
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-11docx import: fix incorrect nested table marginsPierre-Eric Pelloux-Prayer1-1/+3
Change-Id: I07f0f47fcbd3d463d7831820cde338d8d59d9b68
2013-01-11remove block that is a complete nonsenseLuboš Luňák1-5/+0
result of incorrect merges Change-Id: I43f5ef2afbd5390f937f1220613ffa7d1f284634
2013-01-10include PCH headers for headers changesLuboš Luňák1-1/+3
Change-Id: Id94a4322428e27010757ef36b166f8b01697778f
2013-01-10fdo#58327: writerfilter: RemoveLastParagraph is tricky:Michael Stahl1-1/+7
What happens here is that the xCursor->goLeft( 1, true ) selects the entire inserted table, which is then deleted. That causes annoyances, such as an assertion from ~SwIndexReg because as collateral damage the SwTxtNode that SwReader::Read's pUndoPam points to is also deleted, as well as missing tables in the document. DomainMapper_Impl::RemoveLastParagraph() can avoid this by not using setString() but instead disposing the paragraph, like it already does in other cases. But don't do it for new (loaded) documents, because it may kill flys in that case, which i strangely couldn't reproduce when pasting as RTF. Change-Id: I87302b8916e39ca42bc4fedfee40ac38fadd0939
2013-01-09fdo#58933 RTF import: avoid fake pars / cells when having graphic inside cellsMiklos Vajna1-3/+4
Regression from 8063e36115a11ddf3db05928db9287947beee74d.
2013-01-08n#793998 sw: add TabOverMargin compat modeMiklos Vajna1-0/+1
In case the right margin is larger then the tab position (e.g. the right margin of 7cm, there is a tab position at 16cm and right margin begins at 9cm), we have a conflicting case. In Word, the tab has priority, so in this conflicting case, the text can be outside the specified margin. In Writer, the right margin has priority. Add a compat flag to let the tab have priority in Writer as well for Word formats. This is similar to TabOverflow, but that was only applied to left tabs and only in case there were no characters after the tabs in the paragraph.
2013-01-07callcatcher: update unused codeCaolán McNamara5-172/+0
Change-Id: Ic896ea234c3ea7bfaa94ab2441471926beae427d
2013-01-04Make LO buildable again after the GraphicFilter move.Jan Holesovsky1-2/+3
Change-Id: I3455a7294b136400f32163626d5a7a7f2bfa898c
2013-01-04n#793262 DOCX: import w:tcMar inside w:tcMiklos Vajna2-1/+25
These were ignored previously, and in case they contained some margins, the resulting table was potentially smaller than necessary.
2013-01-04n#793262 fix DOCX import of last empty header/footer para char propsMiklos Vajna1-2/+15
At the end of the header/footer import, the last empty paragraph was removed. In case the last but one paragraph was empty, but had character properties (e.g. a custom font size), the removal changed these, and used the character properties of the last paragraph instead. Simply dispose the last paragraph, this way character properties are always kept.
2013-01-03writerfilter: remove Junit complex testMichael Stahl7-192/+0
The test just loads 4 documents and has been disabled for months. Also remove the test documents because they are duplicates and are also stored in writerfilter/qa/documents/. Change-Id: I9f51240483d800bc104c3842b8158dec90b3e69b
2013-01-02docx import: don't apply complex font size to non-complex fontPierre-Eric Pelloux-Prayer1-2/+0
OOXML spec says: "[szCs] specifies the font size which shall be applied to all complex script characters in the contents of this run when displayed" Change-Id: I0faf599e38ef5a2e2005bb6f98874639be7d8287 Reviewed-on: https://gerrit.libreoffice.org/1454 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-12-30fdo#54612 don't crash on RTF_DPPTX before RTF_DPPOLYCOUNTMiklos Vajna1-6/+11
Change-Id: I35bf580df157dee429d9dca193945ea95616d678
2012-12-29rethink external executable setupDavid Tardon1-1/+1
Change-Id: I5293fea9b5404b82e72761407d325c408a2e45ca
2012-12-28Replace %d by %u in some format stringsJulien Nabet3-7/+7
Change-Id: Ica066dcdff68c50c10378752be9c3497104b2a0b
2012-12-28fdo#45533 make it easier to debug RTF copy&pasteMiklos Vajna1-5/+16
Previously there was only a compile-time switch to dump contents of RTF paste. Remove this, and add two environment variables instead: - SW_DEBUG_RTF_PASTE_TO: to dump what would be pasted - SW_DEBUG_RTF_PASTE_FROM: to paste contents of a file, instead of the real clipboard Change-Id: I65f89417ec1cf781ace41df7916791f2199fe104
2012-12-28fdo#45183 fix RTF import of tables with different row widthsMiklos Vajna4-5/+23
2012-12-27fdo#45183 import RTF_SHPFBLWTXTMiklos Vajna1-1/+13
2012-12-26ignore #include inside #ifLubos Lunak1-3/+0
2012-12-25Get rid of (most uses of) GUITor Lillqvist2-5/+5
GUI only takes values UNX or WNT, so it is fairly pointless. One can check whether OS is WNT or not instead. Change-Id: I78ae32c03536a496a563e5deeb0fca78aebf9c34 Reviewed-on: https://gerrit.libreoffice.org/1304 Reviewed-by: Peter Foley <pefoley2@verizon.net> Tested-by: Peter Foley <pefoley2@verizon.net>
2012-12-24fdo#57678 fix import of RTF_PARD between RTF_CELL and RTF_ROWMiklos Vajna1-4/+8
2012-12-23fdo#58076 fix import of RTF page margins vs partial section propsMiklos Vajna2-2/+6
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-22fdo#57886 fix import of RTF_MLIMLOCMiklos Vajna1-0/+1
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-19regenerate pchPeter Foley1-28/+28
Change-Id: I4e18ce06db42e13479809ba8eec70033943271cf
2012-12-18Replace GUIBASE checks with equivalent OS checksTor Lillqvist1-2/+2
The idea is to get rid of GUIBASE and GUI checks as much as possible. GUIBASE=aqua <=> OS=MACOSX GUIBASE=WIN <=> OS=WNT GUIBASE=cocoatouch <=> OS=IOS GUIBASE=android <=> OS=ANDROID Don't set GUIBASE to these values any more in configure.ac either. GUIBASE_FOR_BUILD is not used anywhere. Conflicts: configure.ac postprocess/packcomponents/makefile.mk postprocess/packregistry/makefile.mk Change-Id: Ie0526b40e1073f2328ba6c333e28752104b0fed3
2012-12-17n#792778 DOCX import: parse group shapes in oox onlyMiklos Vajna1-17/+25
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-13update PCH headersLuboš Luňák1-1/+0
2012-12-10docx import/export non-breaking hyphen and soft hyphenLennard1-2/+2
God made non-breaking hyphen and saw that it was gone he told us to fix it as soon as hell we promised that we would Change-Id: I1d2bb8f7542f5ffec36fafdbdb07ace1cb62fb4a Signed-off-by: Lennard <Wasserthal@nefkom.net> Reviewed-on: https://gerrit.libreoffice.org/1279 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2012-12-10new autogenerated PCH header for writerfilterLuboš Luňák2-28/+205
2012-12-10remove unneeded PCH stuffLuboš Luňák1-9/+0
Since the PCH is now explicitly included using the command line, it is no longer necessary to have include guards or #ifdefs for enabling it. Change-Id: Ie64fdc75129af7097213d86f2daec461993fb6f4
2012-12-10no longer necessary to add include path for PCH headerLuboš Luňák1-1/+0
MSVC uses full path with -FI, Clang uses full path to .pch file. Change-Id: I403a8a919a8b672d1e98c2ea1fee50097e535351
2012-12-10testing PCH for writerfilterLuboš Luňák3-0/+65
Change-Id: If5425c2727b94a61cacb64ac65c871ee28b371e1
2012-12-10fdo#46808, use service constructor for embed::StorageFactoryNoel Grandin2-4/+2
Change-Id: I26cd1cf86118122f392f16801a646df753a7df26
2012-12-08fdo#49934 fix RTF import of column break in case no columns are definedMiklos Vajna1-4/+17
It turns out on that case the column break should be parsed as a page break. Change-Id: I5dddc8f334fab35bc2ff03fd8127989ab6a601f3
2012-12-07remove bogus assert and add emacs modelines.Michael Meeks20-1/+19
Change-Id: If4b6478ab67211e00c52fb9b17189f6f054b3482