summaryrefslogtreecommitdiff
path: root/writerfilter
AgeCommit message (Collapse)AuthorFilesLines
2015-06-11convert expressions like 'size() == 0' to 'empty()'Noel Grandin3-4/+4
Change-Id: Ia5c8c0f38a347f398d587970a22e03f29ffd37af
2015-06-08loplugin:unreffunStephan Bergmann1-18/+0
Change-Id: Id6171e120094b1f9b08c291b525b80c8670345b6
2015-06-08writerfilter: avoid manual realloc in ListDef::CreateNumberingRules()Miklos Vajna1-23/+13
Change-Id: Icc43c5236551b850908f631bca5583199415dd2c
2015-06-08tdf#82553 DOCX import: handle table margin when converting floattablesMiklos Vajna1-1/+11
Change-Id: I7a3a233a34453153b3e1c0fe3d60bb0ede65dc86
2015-06-08Unused includesMiklos Vajna3-3/+0
Change-Id: Id8aa8edf775d27ad3ed9fd2370268faf2d7325a6
2015-06-07Remove include stdio (part7)Julien Nabet5-6/+0
Change-Id: I7058ac53f4bbf96eff9a36a03279ab0753cc42ba Reviewed-on: https://gerrit.libreoffice.org/16135 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-06-04DomainMapper::lcl_attribute: fix missing breakMike Kaganski1-0/+1
Change-Id: Ibf0bd1c8bf2799ffbe5254ae11998a58d927b592 Reviewed-on: https://gerrit.libreoffice.org/16074 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-06-01tdf#79639 DOCX import: don't delay text frame conversion of in-header tablesMiklos Vajna1-2/+9
Floating tables may or may not be converted to table-in-textframes during import, depending on if we guess that it'll be a multi-page table with minimal wrapping or a real wrapped table. If the floating table is in a header or footer, then it won't be a multi-page one, so can do the conversion right away. Change-Id: I8d5ff8c5fe00037d5cef92dea6b54de6806214bc
2015-05-29writerfilter: prefix SectionColumnHandler membersMiklos Vajna2-24/+24
Change-Id: I3b0710aafd4a305d38a5559d38c1a56a8ed9e716
2015-05-29loplugin:loopvartoosmallNoel Grandin2-7/+7
Change-Id: I5518e40a30bdad53470cc52b59eff04ab6d873d4
2015-05-27Resolves: tdf#89731 numberingChange feature not available in writerCaolán McNamara1-4/+8
Change-Id: Ie779e78fc3c7ccf717117513d9187697c22cc51a
2015-05-26DOCX import: fix vertical position of inline imagesLászló Németh1-50/+52
(regression of commit ab81e3bff2a1844be67209bc8947d539edbaf8e6) Change-Id: Ie78f8be059b18cdd81c83a8d01f2d865ac3fec2b
2015-05-26need DISABLE_CVE_TESTS for these tests under windows tooCaolán McNamara2-0/+8
Change-Id: I92de8fa6a48dac9a0a09e6ebda4af9b8e4c3a1d7
2015-05-26writerfilter: remove misleading prefix of non-member variablesMiklos Vajna1-40/+36
Change-Id: I8c1883de9acf1d66f4fc5cb994a3cb97103789a6
2015-05-23tdf#90315 RTF import: fix \colsx default valueMiklos Vajna1-1/+1
See SectPageInformation::mnColsx on the libreoffice-3-6 branch + the spec agrees, too. Change-Id: I6f70a125f8d962621f319e3e75e2865e5f126859
2015-05-20writerfilter: remove mojibake from commentsMichael Stahl1-2/+2
Change-Id: I8662c3d34c0025379d4e7757b233befa7cae8235
2015-05-19tdf#91261: DOCX import: snapGrid property of paragraphs are ignoredMark Hung5-5/+27
Fix the situation for OOXML import filter: a) While handling DocGrid type, SnapToChars was treated as None. Now it is implemented as described in the article: http://linpeifeng.blogspot.tw/2007/02/text-grid-enhancement.html Both LinesAndChars and SnapToChars will be translated to Writer grid type "lines and characters", and set SnapToGrid property to false or true accordingly. b) All the imported paragraphs snap to grid because SnapToGrid was appended to grabbag, now it allows SnapToGrid property in paragraph and paragraph styles to be imported properly. Change-Id: I446b4c64c0ed86960896bcd61a1006c9173a757a Reviewed-on: https://gerrit.libreoffice.org/15732 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-05-19loplugin:staticmethodsStephan Bergmann2-38/+38
Change-Id: I6dbc972c1d6e05667ac5f354703a77db4266aea0
2015-05-19TagLogger can be staticNoel Grandin39-448/+311
since we only ever instantiate one of them Change-Id: I48b3b976b4f33044c4bf6542ac5cce58f26e6244 Reviewed-on: https://gerrit.libreoffice.org/15759 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-05-18writerfilter: avoid unnecessary roundtrip to css::uno::SequenceMiklos Vajna2-47/+51
Just pass over an std::vector instead of getAsConstPropertyValueList() and comphelper::sequenceToContainer(). Change-Id: I584c44918b526cbed99abdbbf069c4bbf27ac887
2015-05-18writerfilter: avoid manual reallocMiklos Vajna2-5/+5
Change-Id: I5ce8b00736fed6d4fb307c6384deca4718e770a3
2015-05-18tdf#86814 RTF import: fix sometimes lost bold styleMiklos Vajna1-24/+33
The problem was that commit 76c0d0abc89cd8948706083c2660b71a2dad670c (RTF import: adapt getProperties() to createStyleProperties(), 2014-09-07) only made the character style sprms/attributes a flat list, but not the paragraph style ones. Fixing that inconsistency avoids the tokenizer adding unwanted default sprms, which cause the bold sprms go away in the bugdoc. Change-Id: I86bd1b26af18cd968375c9b39be9c8e71d51271f
2015-05-15Use comphelper::sequenceToContainerMiklos Vajna1-9/+7
Change-Id: I9df4b1e04178b99d40aa3e08297b5bc5a30a9bce
2015-05-13PropertyNameSupplier: use std::unique_ptr<>Miklos Vajna2-3/+3
Change-Id: I1e4cf3241bee20677f61ea334efc3aa4e490a016
2015-05-12tdf#90260 writerfilter: pasted RTF documents may contain no \parMiklos Vajna7-12/+25
sw core is not yet adapted, will be done in the next commit. Change-Id: If8da12427e0cdaced4c1c1776b9f0b8cbde5c57c
2015-05-12tdf#76941 : image greyscale not imported correctlyJoren De Cuyper1-110/+109
The eColorMode and other graphic attributes were never checked due to this statement. This statement is last altered by 0f0a22ade666d33a10d9c83c0f636be9acf1ed39 This only fixes the import. Change-Id: I9ba7e745582faf37898f284600d638aa4806a362 Reviewed-on: https://gerrit.libreoffice.org/15710 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-05-11tdf#91074 RTF import: handle \dplineco* for text framesMiklos Vajna3-20/+33
RTFSdrImport::resolve() already had the logic to use the relevant API depending on if the shape is a text frame or not -- extract that to a separate member function and use it from RTFDocumentImpl::popState(), too. Change-Id: I663b372244f09f002447ece62587143b2a575795
2015-05-08Booleans are logged via sal_uInt32 hereStephan Bergmann1-1/+1
Change-Id: I4c684903952fbfdaad52cabc135625a89b55c75a
2015-05-05loplugin:staticmethodsNoel Grandin9-27/+27
Change-Id: I64fdb27a7f83f6417a9cd67ed5d2c44072ec7f2e
2015-05-04tdf#91077 don't import shapes from discarded DOCX header/footerLászló Németh1-1/+2
Change-Id: I674eadb84fc870031244a61f5c07d2cdf18a8dd1
2015-05-04writerfilter: noExplicitConstructor cppcheck fixesMiklos Vajna10-40/+33
Change-Id: I4195fc8a7736a29a6f08d0745f39a0907a5545e8
2015-05-02writerfilter: avoid manual realloc in StyleSheetTableMiklos Vajna1-13/+7
Change-Id: Iebfbeab422b7a0ef19981e146db0e7b7508e80c0 Reviewed-on: https://gerrit.libreoffice.org/15594 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-04-30writerfilter: unused fill and CT_Fill resourcesMiklos Vajna1-6/+0
These were added by commit cfc4650c8594334edecc3b50ca54461f6bee2d43 (Added some teaks to 'model.xml', 2014-09-16), but the matching dmapper part is missing, so they aren't useful in practice, and cause a crash on import of crashtest's File_953.docx. Change-Id: I3d1c138534a37dc9ba500f1134ca4bb9ebae0e96
2015-04-28OOXMLFactory can be purely staticNoel Grandin4-59/+19
it has no subclasses and no state, so it doesn't need locking or reference counting or even an instance Change-Id: I1e0f883946cb0e9bd26b49d12e58d813ce90a3b8 Reviewed-on: https://gerrit.libreoffice.org/15532 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-04-28Booleans are logged via sal_uInt32 hereStephan Bergmann1-7/+7
Change-Id: I634402fb0739b8d42d43264c57340dd030f86d78
2015-04-27More loplugin:simplifyboolStephan Bergmann2-2/+2
Change-Id: I577db0bcb4c9fd45530132409fabf1a422f3d2cb
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