summaryrefslogtreecommitdiff
path: root/writerfilter
AgeCommit message (Collapse)AuthorFilesLines
2013-02-28remove all d.lstMichael Stahl1-0/+0
Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885
2013-02-28Related: fdo#59638 DOCX import of w:lvlOverrideMiklos Vajna1-1/+8
Change-Id: I23fca674e2436b09eeea3337b4d3eeb7a33ccf09
2013-02-28fdo#61000: writerfilter: filter out unsupported list tab stopsMichael Stahl1-1/+7
Change-Id: Ic9d31eba84b1d8d9cf93d8289621a65d43521a8b
2013-02-28fdo#61309: writerfilter: filter out enormous numbering levelsMichael Stahl1-1/+6
Change-Id: Iafef1c2ca2ca072bd604946fbe19b6a24e323512
2013-02-27fdo#53985 DOCX import: don't try to set empty PageDescNameMiklos Vajna1-1/+14
Regression from 50cb1667020494906afaacb68d4163d1eda527cf. Change-Id: Ie04d5ad37555ed4cfeb34ccb8dc021675fbd25ea
2013-02-27fdo#39446 - Bloat Removal. Removing uncallable code with callcatcherJean-Noël Rouvignac4-30/+0
Removed several unused methods. Could not remove ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent() and ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&) because it breaks compilation (they are implementing pure virtual methods). Should Test::test1Table1Page() really be removed? (test class) Conflicts: unusedcode.easy Change-Id: I98a761f66f28e3a82661c10a5fa1dc7e109fff2f
2013-02-26fdo#61507 import RTF_UPR and RTF_UDMiklos Vajna2-5/+21
It turns out Word wraps document title with these destinations if they contain something that isn't possible to describe using legacy charsets. Change-Id: Ic9417d0f23d44149acb3ae3dc9d4c281058a1b36
2013-02-26embed also system fonts when embedding fonts in a documentLuboš Luňák2-4/+4
Without this, only fonts that had come embedded with the document were embedded when saving, which meant that it was impossible to create new documents that would have any fonts embedded. Change-Id: I3b4e87b1b3ca5ae1ccfe29d9b571b0262c568dcf
2013-02-25drop various dangling makefile.mksCaolán McNamara3-184/+0
Change-Id: Id76b57a1ef2edbb05f1d22a624caad077275ac74
2013-02-25RTF IMPORT : considere OLE objects as picturesMaxime de Roucy2-4/+41
resolve fdo#53594 : Import RTF file but ole are not well positioned in table/cells If the OLE object is in a container, don't try to import it as OLE object (use the \objdata element) but use the \result element which is the appareance of the object (it's a picture). Change-Id: Id97b36ce89beae02885cf82383321c14b58f2ea5 Reviewed-on: https://gerrit.libreoffice.org/2243 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-02-24remove RTL_CONSTASCII_(U)STRINGPARAMChr. Rossmanith1-4/+2
Change-Id: Ica4dc859229c2ba0dc052a97ff23178895c25580 Reviewed-on: https://gerrit.libreoffice.org/2368 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
2013-02-22DOCX import: improve btLr table cell supportMiklos Vajna3-1/+24
The problem was that in case the contents didn't fit into a single line, multiple lines were created, which is not what btLr wants. Set the size type to fixed in this case. Change-Id: Ibab1313f95dc16dd0366d21a00109a6f38fa3526
2013-02-22s/the the/the/Tor Lillqvist1-1/+1
Change-Id: Iadacffaad832c6ff06757e8567e24f929f24a4c3
2013-02-21Revert "embed also system fonts when embedding fonts in a document"David Ostrovsky2-4/+4
that's enouph breakage for now. This reverts commit 596bd0f61f8cfc957410148ae221c62331067bdd. Change-Id: I992f439a9a099e47115a30b3d745848f3af09e5e
2013-02-21embed also system fonts when embedding fonts in a documentLuboš Luňák2-4/+4
Without this, only fonts that had come embedded with the document were embedded when saving, which meant that it was impossible to create new documents that would have any fonts embedded. Change-Id: I3b4e87b1b3ca5ae1ccfe29d9b571b0262c568dcf
2013-02-21n#779642: table positions need to be stacked to handle nested tableCédric Bosdonnat3-7/+27
2013-02-20fdo#60789: writerfilter: do not insert a character at field startMichael Stahl1-6/+0
The character inserted in DomainMapper_Impl::PushFieldContext() causes problems in this bugdoc because there is a commentRangeStart immediately before a text field and the call to delete it via setString("") disposes the SwXTextRange that is stored in m_aAnnotationPosition.m_xStart, which results in an exception when trying to insert the comment. At least all the fields in the bugdoc import fine with this change. Change-Id: I6c08d72fafb0529e8612f1e35b2c8b871edb5a52
2013-02-20fdo#60789: writerfilter: continue the import if comment insertion failsMichael Stahl1-14/+31
Catch exceptions in DomainMapper_Impl::PopFieldContext(). Change-Id: Ia60857a5f773c9d89217991d481a5f20d0de3151
2013-02-20n#779642: Fixed floating tables import in writerfilterCédric Bosdonnat6-56/+143
2013-02-19writerfilter: get rid of these hardcoded valuesMiklos Vajna1-6/+5
Change-Id: I381266cbc9eb2a6d95b7bdc5e80a1e486112dbbe
2013-02-19log the exception here instead of just assertingNoel Grandin1-5/+7
.. to make future debugging easier. Change-Id: I8efc8d8d6f228d9a36d8bb0aebe57913f2af5637
2013-02-18n#779642: ignore framePr inside table or the table import won't workCédric Bosdonnat3-3/+18
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