summaryrefslogtreecommitdiff
path: root/writerfilter
AgeCommit message (Collapse)AuthorFilesLines
2015-04-26DomainMapper_Impl::finishParagraph: refactor to avoid manual reallocMiklos Vajna1-11/+9
Change-Id: Ia52a2e3d6d98cfcc33a307ddcfc218a8426058dd Reviewed-on: https://gerrit.libreoffice.org/15538 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-04-25writerfilter: remove remaining doctok bits from TablePropertiesHandlerMiklos Vajna1-34/+3
Change-Id: I61d1907a8c3a53c526992cc615478ee57a097fb6 Reviewed-on: https://gerrit.libreoffice.org/15528 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-04-24Related: rhbz#1215060 pass std::exceptions throughCaolán McNamara2-48/+48
Change-Id: Ifb3431a50f92b95dfc1e851f9584533271e69324
2015-04-24loplugin:simplifyboolStephan Bergmann3-11/+11
Change-Id: Ie145292074b39fae5da40a7337737dd753b4d2ea
2015-04-21RTF import: handle d{x,y}WrapDist* picture propertiesMiklos Vajna4-7/+21
Commit e789c7f0f15a6b571de95b81e77e3a323e9f540e (RTF import of d{x,y}WrapDist* shape properties, 2013-04-09) added support for wrap distance of shapes, but that was ignored for shapes, as dmapper later overwrote the set margins. Fix this by generating the expected tokens in case of pictures, then dmapper will take care of the rest. Also add testcases for the original shape wrap distance feature that was missing. Change-Id: I6f219ee6fef71328368409d142897dbae77a0f2f
2015-04-20sw, writerfilter: these 'using namespace' statements can be avoided easilyMiklos Vajna5-12/+5
Especially the 'using namespace std' is scary, now that we have std::shared_ptr and boost::shared_ptr, too. Change-Id: Ibb584281f1b9d56103ab5984473eb484157c12d5
2015-04-20RTF import: handle \hyphparMiklos Vajna1-0/+3
Change-Id: I2a1d0e194af6eb5fb865d3ed26712eed09a3b28f
2015-04-20writerfilter: remove newly unused methodsMiklos Vajna2-49/+0
Change-Id: Ie15422d7936cd84d5c4a07a5b75fdb02efc6ea1e
2015-04-19writerfilter: remove remaining doctok bits in GraphicImportMiklos Vajna1-20/+0
Change-Id: I399b389d4bd54357c6578417d2983017a60f0f51 Reviewed-on: https://gerrit.libreoffice.org/15383 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-04-19import chart MSO 2007 streams correctly for docx files, tdf#82216Markus Mohrhard1-0/+2
Change-Id: Icda809faf315dac5953d38781b2b401d51f7a40a
2015-04-18writerfilter: clean up remaining doctok bits in DomainMapperTableManagerMiklos Vajna1-90/+5
Change-Id: Ibbd0404c88a4086b9583a430e8c6fa4d0bc558eb Reviewed-on: https://gerrit.libreoffice.org/15377 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-04-17RTF filter: import \hyphautoMiklos Vajna1-0/+3
"Automatically Hyphenate Document Contents When Displayed" Change-Id: I832eed60511b332a3f936b8239fd0a56a84879f1
2015-04-17tdf#86182 RTF import: fix handling of \rtlparMiklos Vajna1-1/+1
Commit 558d5c25a0b1d6a937d33291a4b6cd7fca6cb15b (implement RTF_LTRPAR and RTF_RTLPAR, 2011-06-09) was just a guess, this one is the proper mapping. Change-Id: I1156ef5ddc34264d761d3e64dd0537bc6ec0ced7
2015-04-16rtftok: handle over ownership of stream to utl::OSeekableInputStreamWrapperMiklos Vajna2-6/+5
Previously we just kept the stream around till the next embedded object or document end and hoped that the stream wrapper is deleted before the underlying stream goes away. Change-Id: If2bdb1e664d803fc48d06204fe3aef72b279b5b6
2015-04-16RTF import: fix handling of \objdataMiklos Vajna2-47/+63
There were two problems here: 1) The input stream is read multiple times, so plain naive XInputStream is not enough, XSeekable is needed, as it is the case for the stream provided by the OOXML tokenizer. 2) Seeking to the correct start position is not enough, code using the stream will assume that seeking to the beginning of the stream allows reading the correct data again, so provide a dedicated stream instead. With this, handling of math equations created by Word <= 2007 and embedded to RTF files can be edited finally. Change-Id: Ic225e1e1060f8bdd5651a21e68970620c9ac6b68
2015-04-16RTF import: handle \objclassMiklos Vajna2-0/+11
Change-Id: I771c83d0ed8a06a2eeec57a40a80092b537d9b84
2015-04-16RTF import: allow multiple children for ooxml:OLEObject_OLEObjectMiklos Vajna2-8/+10
Change-Id: Iec84588daf5555d1207827efb0f26d8354ad462b
2015-04-15DOCX import: convert MathType to Math if MathTypeToMath is enabledMiklos Vajna1-2/+17
With this, math equations created by Word <= 2003 and embedded to docx files can be edited finally. Previously the result was read-only and opened in an unexpected new window. Change-Id: I4f9dd1cca4a149959f6151cf9af9242b53190ef5
2015-04-15writerfilter: reduce scope in ListsManagerMiklos Vajna1-1/+1
Change-Id: Ibc2fa865614df44088883acee4a2c87a3fb19279
2015-04-15writerfilter: TDefTableHandler's bOOXML was always trueMiklos Vajna4-10/+6
Change-Id: I9efcb32f742aa7a0549ceb246a1b75fa3af662be
2015-04-15writerfilter: TablePropertiesHandler's bOOXML was always trueMiklos Vajna5-10/+8
Change-Id: I8b1e05c6f685ea32a3c29a4636be4bc4894d7de0
2015-04-15writerfilter: these ctors can be explicitMiklos Vajna2-2/+2
Change-Id: I8f974bcc329267dcb707caa3b883fb748276433c
2015-04-12tdf#75614 RTF import: fix missing text after footnoteMiklos Vajna1-1/+5
Change-Id: I5901094cb603c35a1cd8ac718fd434a9dd55729b Reviewed-on: https://gerrit.libreoffice.org/15266 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-04-11writerfilter: no need to spell out com::sun::star, css is enoughMiklos Vajna30-291/+262
Change-Id: I7dfcb041509508969135a325bdef709de7a8218f Reviewed-on: https://gerrit.libreoffice.org/15247 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-04-11No need to spell out com::sun::star, css is enough.Miklos Vajna6-18/+15
Change-Id: I1cdf56df10516f01ca091043b6a01bc14095413a Reviewed-on: https://gerrit.libreoffice.org/15242 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-04-08A UNO Any can't contain an AnyStephan Bergmann1-2/+2
...and css::uno::makeAny<css::uno::Any>() was never meant to be used. Introduce css::uno::toAny for the (template-code) cases that shall return an Any for both Any and non-Any inputs. Change-Id: Ifa977d73f1da71b2fedde7e8140b19497c4a0257
2015-04-06writerfilter: use variadic cppu::WeakImplHelperMiklos Vajna5-13/+10
Change-Id: I38c7776d141bb1e582be7043993986cd6346c331 Reviewed-on: https://gerrit.libreoffice.org/15168 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-04-05writerfilter: remove <text> alias for <data type="string">Miklos Vajna3-328/+315
Change-Id: I44630ebc4395b86ae4f44c85d596b589a93b54b0 Reviewed-on: https://gerrit.libreoffice.org/15159 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-04-04Use std::make_shared<>Miklos Vajna1-38/+38
Change-Id: Ifc728dc0b42d713a5eaa2fc22d3e71c6aa4f196d Reviewed-on: https://gerrit.libreoffice.org/15146 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-03-29writerfilter: turn RTFDestinationState into a C++11 scoped enumerationMiklos Vajna9-551/+555
Change-Id: I5d3c0ab5869f415b3a435e5f931613a188e43173
2015-03-28Use std::make_shared<>Miklos Vajna3-26/+21
Change-Id: I6ff31e406d79361c07779f650de8d46cc78302ff Reviewed-on: https://gerrit.libreoffice.org/15041 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-03-27writerfilter: avoid manual realloc in StyleSheetTableMiklos Vajna1-7/+6
Change-Id: I4dfc27cb4567146a20a4de50a04831fcd6863935
2015-03-26tdf#89496 fixed crash on rtf shape group parsingVasily Melenchuk1-0/+1
Fix is actually partial revert of my changes done for tdf#49893 (commit 2c411e4487f24968d6a62958fec85e4e3e1fda93): shape groups were not taken into account Change-Id: Ieb442265ac7c0087c3a402a9f1b09e6b3dcbcac1 Reviewed-on: https://gerrit.libreoffice.org/14997 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-03-25TyposJulien Nabet1-1/+1
Change-Id: I434be0034b26ac4719590238817538ecd90b8923
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