summaryrefslogtreecommitdiff
path: root/writerfilter
AgeCommit message (Collapse)AuthorFilesLines
2015-03-24SkipImages option for document importLászló Németh5-9/+18
This option allows images and drawings to be skipped while importing DOC and DOCX, for text-only conversion or indexing. Change-Id: Id4bfbbe48d8a8e970b1cb5922187768bf94dc918 Reviewed-on: https://gerrit.libreoffice.org/14733 Reviewed-by: Németh László <nemeth@numbertext.org> Tested-by: Németh László <nemeth@numbertext.org>
2015-03-22Use std::make_shared<>Miklos Vajna1-20/+18
Change-Id: I93edddca93e1c1c7aa88a3bd9aaefe7af855d1d0
2015-03-21Char shading: use a marker for character background imported from MSO shadingZolnai Tamás3-0/+3
* So MSO format export filters can recognize that it should be exported as shading. * Editing in LO removes this shading marker, so from that point there will be an LO character background. Change-Id: I853b952f0395b33d36bb2934a6d910f2182cc1d9
2015-03-21Char highlight: RTF filtersZolnai Tamás2-10/+13
Handle \highlightN and \chcbpatN separately. Change-Id: I20546bd4c26154e8b1168f87dcb4ab44a192ad83
2015-03-21Char highlight: enable DOCX importZolnai Tamás1-1/+1
Disabled by: b5e60724ac73bb0e62b249145a8931fd6166bb69 Change-Id: Ifde33d53198306eac845db6c269d337fa051f6ab
2015-03-21Use comphelper::containerToSequence()Miklos Vajna1-29/+24
Change-Id: I9b7ee5da800f0dd389eedc6b8f4f86d767519b3b Reviewed-on: https://gerrit.libreoffice.org/14940 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-03-19convert SFX_FILTER_ constants to enum classNoel Grandin1-2/+2
Change-Id: I7e53cfc90cefd9da7d6ecd795b09214bd44b1613
2015-03-18create new 'enum class' SotClipboardFormatId to unify typesNoel Grandin1-2/+2
of which there are several. There are some issues here I am unsure of - the SW and SC and CHART2 modules essentially ignore the enum values and assign their own ids Perhaps I should change them to use the common values and create new enum values where necessary? - the sc/qa/ and sq/qa/ and starmath/qa/ code was doing some dodgy stuff. I translated the code to pass down the stuff numeric values to the underlying code, but perhaps further fixing is necessary? Change-Id: Ic06d723e404481e3f1bca67c43b70321b764d923
2015-03-15RTF import: handle \sautoupdMiklos Vajna1-0/+3
Change-Id: I6254401ad8023263b29feb382ddda3637611a813
2015-03-15Use comphelper::containerToSequence() instead of manual reallocMiklos Vajna2-44/+39
Change-Id: I88e8050055e53e0da8ac32e049c5ab793096f687
2015-03-14Use comphelper::containerToSequence()Miklos Vajna1-14/+12
Change-Id: I0dcc582e9cb2b1021895e7962e1ec96195f1f844
2015-03-14Unused includesMiklos Vajna3-9/+0
Change-Id: Ie273e88bd12321726f1717e4e09b1928fcadb6f9
2015-03-12TyposJulien Nabet1-1/+1
Change-Id: I55d7440ba5bee16bbce5930c81c604858131b5c7
2015-03-08tdf#49893: fix for missing header on page 2Vasily Melenchuk2-4/+4
Header on second page was missing because document was parsed as document with facing page. Original document contains \facingp0 token toggling facing page off. However LibreOffice treats it as a boolean switch. This absolutely conform RTF specification (1.9.1), but differs from actual behavior of MS Word: actually this RTF token behaves like \b token (\b or \b1 are enabling bold text, \b0 - disabling). Change-Id: Iea2b52cde311ab1b02938461ba0945191339c783 Reviewed-on: https://gerrit.libreoffice.org/14743 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-03-05V801: Decreased performanceCaolán McNamara9-35/+33
Change-Id: I5e7b5327b542f610efb0960b8bcfad10e04025b5
2015-03-04V813: Decreased performanceCaolán McNamara11-29/+24
Change-Id: Ica2563d9e8da15e19eb38246d4de54a1fcb75655
2015-02-23loplugin:unreffunStephan Bergmann1-2/+0
Change-Id: Ie32180d2ecbf7d99dde230e15f09ca3d6965483f
2015-02-23writerfilter: clean up WriterFilterDetectionMiklos Vajna2-117/+65
Change-Id: I496fd710897c55b1185783e071077fa8d8509783
2015-02-22writerfilter: clean up DOCX XFilter implementationMiklos Vajna4-453/+382
Change-Id: I4524d0a93231f291e074d1eeb10d00efc64e0cc5
2015-02-21TyposJulien Nabet1-1/+1
Change-Id: I8d6e9b20c478e649e35eca16f39692a9ce42b3c5
2015-02-21writerfilter: clean up RtfFilterMiklos Vajna2-109/+57
Change-Id: I4bcff4ddde2869a4aeecfdfda02c685d61d65531
2015-02-20Remove unnecessary prefixesStephan Bergmann1-1/+1
...from .components that exclusively use constructors now Change-Id: I009f29a49d5be0aec32af8cfcae6fb8e2cd4f486
2015-02-19-Werror=unused-parameterMiklos Vajna1-1/+3
Change-Id: I6f8603ed6cde9c604f3e980410656de34420352b
2015-02-19writerfilter: use constructor for writerfilter moduleChris Sherlock9-91/+26
Change-Id: Iada80d2c6989de2811cf35cb288a430e2eeba8e9 Reviewed-on: https://gerrit.libreoffice.org/14536 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
2015-02-15RTF filter: handle mirrored marginsMiklos Vajna1-0/+3
Change-Id: I122f5f23e510ae42664d2b69504f4722aa05597e
2015-02-14writerfilter: turn RTFFormFieldTypes into a C++11 scoped enumerationMiklos Vajna2-15/+15
Change-Id: Ic99f1f30d799433e42ccc51a2e2019c60038222a
2015-02-14indentation fixesMiklos Vajna2-14/+14
Change-Id: I93bf9ab7ed32e60b735ad04b5da3de3c9aea6501
2015-02-13tdf#49893 partial fix for blank rentangle problem in RTFVasily Melenchuk2-7/+13
* pib structure in rtf shape is processed always, if exists, not only for shape #75 (picture frame): it is possible for other shapes, at least for #1 (rectangle) * picture inside shape gets width and height from shape: this picture looks like pib object and should fit shape frame Conflicts: sw/qa/extras/rtfimport/rtfimport.cxx Reviewed on: https://gerrit.libreoffice.org/14396 Change-Id: I5cf2e692940c4ddd8ab8b291ef65c0cc44c45f5d
2015-02-11Guard against createInstance throwing non-Runtime-ExceptionStephan Bergmann2-5/+32
...leading to exception specification violations down the road Change-Id: If017ffd18953d1200fde476ba7e400298dcd5b29
2015-02-08writerfilter: make sure that these headers are self-containedMiklos Vajna9-8/+17
Change-Id: I3486e8ba5f6d2a937176c9fe549d707a97eb5655
2015-02-07Use std::initializer_list ctorMiklos Vajna1-2/+4
Change-Id: Ib04460fe7bd33cb9b6c4fef4fc285e93c71e57c3
2015-02-07loplugin:deletedspecialStephan Bergmann3-4/+4
Change-Id: I6e5fb5562d73239eae32a4ef668aa88551608be2
2015-02-06fdo#75757: Remove inheritance from std::vectorMatthew Pottage22-51/+65
Deprecated comphelper/sequenceasvector.hxx. Rewritten code using it. Using instead the functions containerToSequence and sequenceToContainer, found in include/comphelper/sequence.hxx. One class that inherits from it (in framework/inc/stdtypes.h), and the code using that has been left. Signed-off-by: Michael Stahl <mstahl@redhat.com> Conflicts: writerfilter/source/dmapper/DomainMapper.cxx writerfilter/source/dmapper/TblStylePrHandler.hxx writerfilter/source/dmapper/WrapPolygonHandler.hxx Change-Id: Ice61c94ffb052e389281aebb7cdf185134221061
2015-02-05Updated all precompiled headers.Ashod Nakashian1-15/+12
Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157 Reviewed-on: https://gerrit.libreoffice.org/14292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-02-03Update for CJK numbered list enhancement.Mark Hung1-1/+1
1. Revert koreanDigital2 back to NUMBER_HANGUL_KO (import). 2. Map NUMBER_LOWER_ZH in Simplified Chinese document to chineseCountingThousand (export). Change-Id: I62ec255626c250802288bf7fbec7371076e727d3 Reviewed-on: https://gerrit.libreoffice.org/14155 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-02-02coverity#1267629 Logically dead codeCaolán McNamara2-11/+6
Change-Id: I5ac6fd2507bda0c985abb54e2269563ed79afc6a
2015-02-02WaE: unused variableNorbert Thiebaud1-1/+2
Change-Id: I0acb3209c4ed22088911bcade4c4f20f957294e7
2015-02-02callcatcher: remove some unused methodsCaolán McNamara2-12/+0
Change-Id: Id3ca991e9ede13512a39865496429aabb7e71088
2015-02-01writerfilter: import paragraph color as fill attributesMiklos Vajna3-3/+13
In theory this is to be in sync with the ODF import. In practice the old UNO property seems not to have a proper fallback to populate the doc model with the fillattributes, so without this even if the import result is visible, it would be lost on ODF export. Additionally, this detected a bug in SwUnoCursorHelper::makeRedline(), where paragraph format redline tried to use the map of a text portion instead of a paragraph. Change-Id: I026e38e1990ed2a460624a8d967a16ae3fb6c512
2015-01-29callcatcher: large newly detected unused methods post de-virtualizationCaolán McNamara4-48/+0
i.e lots now able to be detected after... commit b44cbb26efe1d0b0950b1e1613e131b506dc3876 Author: Noel Grandin <noel@peralex.com> Date: Tue Jan 20 12:38:10 2015 +0200 new loplugin: change virtual methods to non-virtual Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I605e2fa56f7186c3d3a764f3cd30f5cf7f881f9d
2015-01-28remove unused typedefsNoel Grandin2-2/+0
found with some minor modifications to find/find-unused-defines.sh Change-Id: I18cc479adedc7a0dada68a4aeef08300e62631dd Reviewed-on: https://gerrit.libreoffice.org/14194 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-26followup code removal after changing virtual methods to non-virtualNoel Grandin2-13/+1
This cleanups up indentation and removes dead classes. This is a followup patch to commit 272b1dd55797aacf511fb4342b0054e3697243f6 "new loplugin: change virtual methods to non-virtual" Change-Id: I1c2139589cf8cb23bb9808defe22c51039d38de1
2015-01-26new loplugin: change virtual methods to non-virtualNoel Grandin9-32/+29
Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
2015-01-25Use std::initializer_list ctorMiklos Vajna1-5/+6
Change-Id: I5ce7b48a3c867fe8c5fdbe0f6fc8e3f33e457082 Reviewed-on: https://gerrit.libreoffice.org/14169 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-01-24writerfilter: turn RTFBorderState into a C++11 scoped enumerationMiklos Vajna2-18/+18
Change-Id: I7d608238a72dd71eb22dd72ddb5c6c47cc0150f5 Reviewed-on: https://gerrit.libreoffice.org/14153 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-01-23fix 64-bit build after OUStringBuffer changeMichael Stahl2-2/+2
Change-Id: I6c5295110292ae48ff0cb3472e4dbea287645d2a
2015-01-23avoid terminate on loading fdo73574-3.docxCaolán McNamara3-6/+10
by moving work done in dtor to an explicit method Change-Id: I99b3843819ea78f2a91a2784ae0243430dacb3d9
2015-01-22writerfilter: WaE unused variableMichael Stahl1-1/+1
Change-Id: I60d5f4929168163e755934ccaf07d227e702948f
2015-01-22loplugin:stringconcatStephan Bergmann1-2/+2
Change-Id: I5a95556b2a9975af150aeb65d6f363f643349a49
2015-01-22WaE: warning C4101: ´e´ : unreferenced local variableCaolán McNamara1-1/+1
Change-Id: I91745c868310b301e86cf9b5d6607ae362e2b945