summaryrefslogtreecommitdiff
path: root/writerfilter
AgeCommit message (Collapse)AuthorFilesLines
2012-06-15move DTTM2DateTime and DateTimeToOString to msfilter to avoid copy&pasteMiklos Vajna1-39/+1
2012-06-15fdo#50087 fix RTF import of Title, Subject, Comments document propertiesMiklos Vajna2-1/+22
Change-Id: I3358fad4949c2c21ecf63983a36b7c8428df9f06
2012-06-15n#750935 fix docx import of w:evenAndOddHeadersMiklos Vajna3-2/+14
Change-Id: I172073bac10e8d0449c0f5c0a226dd7ace013376
2012-06-14writerfilter: two more dependenciesMatúš Kukan1-2/+2
Change-Id: I97491c61ef83f947e1923785300490f3b7920203
2012-06-14writerfilter: remove unused / unneeded .mk filesMatúš Kukan3-75/+15
Change-Id: Ic64e3e527ced7fcf81f90075bae7d8a646789d4e
2012-06-13callcatcher: unused duplicate WW8TableManager classCaolán McNamara1-40/+0
Change-Id: I6c4395712cb4bb6b28e2997b4af24ab423573f4a
2012-06-13removed code commented-out in the first placeTakeshi Abe1-24/+0
Change-Id: Idb109cf767342042f1a2941c30fcf137f468e7df
2012-06-12Resolves: fdo#49178 CRASH when FILEOPEN particular RTFJulien Nabet1-1/+2
Change-Id: Idd938980b91ec8b822a92dfd7013a20fe5b6f498
2012-06-12n#766477 dmapper: import NS_ooxml::LN_CT_FFCheckBox_defaultMiklos Vajna2-5/+17
Change-Id: If7edb301fa90a49d79fc5322a7c19ee2591f5494
2012-06-11fdo#49659 dmapper: handle tables in substreamsMiklos Vajna3-2/+12
Change-Id: I4c81eb1ec57bda2b5ce65b19de998bab2dfb6c3c
2012-06-11writerfilter/resourcemodel: don't use a global variable hereMiklos Vajna2-18/+25
Change-Id: I064070a51cb87c10c72917b19969672d2121be7a
2012-06-11writerfilter/doctok: unused global variableMiklos Vajna1-2/+0
Change-Id: I93c9c6e267270a07bd98ea408f0d6f78759265bb
2012-06-11fdo#49659 handle RTF import of tables at the very end of the documentMiklos Vajna2-0/+11
If the documents ends with a table, both Word/Writer produces a non-table empty paragraph after that table. However, it's valid not to emit that empty paragraph, so handle the situation in the importer. Change-Id: I8ea163f2de62954f3891f8f48e81d89f6e29ce6f
2012-06-11fdo#49659 fix RTF import of pictures with inner groupsMiklos Vajna1-0/+6
One would think that with {\pict{\foo1}}, the inner group has no effect in the outer group, but this turns out to be valid, so we should handle it as well. Change-Id: I64b933ad1cd5946f22d27669e9240d9e1875bde3
2012-06-11RTFDocumentImpl::resolvePict: handle failure from importGraphicObject()Miklos Vajna1-6/+9
This fixes an assert from the fdo#49659 bugdoc. Change-Id: I4c4d56aa119dcdb965a0b30ca137d7e7d719259c
2012-06-08targeted gmk4 clean-upNorbert Thiebaud2-185/+165
Change-Id: I029b96e9d30393d6e7f0fe3aa841ac62147808df
2012-06-07n#757905 fix VML import of mso-wrap-style:noneMiklos Vajna1-1/+1
There were two problems here: 1) SimpleShape::implConvertAndInsert() did not set the anchor type 2) DomainMapper_Impl::PushShapeContext() tried to overwrite it Change-Id: I2c32016c4bb15c891cf287d8208e10817c6291e6
2012-06-06fdo#50665 rtftok: don't ignore character properties of text fieldsMiklos Vajna2-3/+6
The dmapper part was already fixed in commit 9486851baea59d16c449d79bd61a38f6e686cfe0 for DOCX, this fixes the RTF tokenizer. Change-Id: Iaca706e50367bb744f5a03e15134bda1646df8fc
2012-06-06fdo#46808, Adapt UNO services to new style, Part 7, updating ::createNoel Grandin6-45/+19
Update calls to factories to use new SimpleFileAccess::create method Change-Id: Ie5b0696fe2228a9033b19969245a53c21a61aa14 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, added some tweaks.
2012-06-04fdo#46808, Adapt UNO services to new style, Part 7, updating ::createNoel Grandin2-6/+3
Update calls to factories to use new ::create methods Change-Id: I01d4417820f52718836c92faf3c2fae0dc96b30d Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, added some tweaks.
2012-06-02targeted string re-workNorbert Thiebaud1-4/+2
Change-Id: I67db5b5685872ef148bf4833330c02ea2b18c32e
2012-06-02targeted string re-workNorbert Thiebaud1-4/+2
Change-Id: I17bec612eb6d50acc4bf8ac8ea4299fd2380afb5
2012-06-02targeted string re-workNorbert Thiebaud11-167/+167
Change-Id: I910a508722a309d7916377a7e2df2093070809ad
2012-06-02targeted string re-workNorbert Thiebaud5-30/+29
Change-Id: Ibd7142f49d1a42ebab3bed02ea269a3c850197e6
2012-06-02targeted string re-workNorbert Thiebaud1-2/+2
Change-Id: Ie5a8469620650ba67bab8c875e0bc136bd103866
2012-06-02Fix some Prefer prefix ++/--Julien Nabet2-4/+4
Change-Id: Ief7279a06ffbdd0e23fac28f8948daea4023823c
2012-06-01fdo#50539 fix RTF import of automatic character background colorMiklos Vajna1-0/+1
Change-Id: I7efb3bce9a3a6f6c029d99de2264e00bb1bc7c93
2012-05-31n#764005 VML import of absolutely positioned pictures should not be opaqueMiklos Vajna1-3/+4
Change-Id: I17a1a94ee92ce04ff6928a20c552b3a3408a0626
2012-05-31n#764005 dmapper: don't insert "at page" anchored graphics as "as character"Miklos Vajna1-0/+4
Change-Id: Ibdde32014d2fc2fe43d59a5cc6ee7f722adcbfb6
2012-05-31targetted revert of small prefix operator changesMichael Meeks2-4/+5
Change-Id: I02e9af0034f4e9ed626615083c7c1506597f2a7e
2012-05-30don't overload operator-> and just forward specific methods, take twoCaolán McNamara5-43/+44
Change-Id: If66b0a5f1b0444d8f0a6dfed1b518a0033d61d2e
2012-05-30Use RTFSprms::set() in RTFDocumentImpl everywhereMiklos Vajna1-146/+139
Change-Id: Iaf52206aad2f1053d54025b0e71eff1b229e1372
2012-05-30fdo#49968 speed up RTF import of repeated character/paragraph propertiesMiklos Vajna3-10/+26
Most RTF documents (produced by Word/Writer) reset character and paragraph properties at the start of each paragraph. Because of this, appending properties of the same type didn't cause any noticable performance problems. However, it's valid to not reset these properties, and in this case a longer document takes forever to import. Filter these duplicates at the tokenizer level for trivial properties to get acceptable import speed. Also fixes rhbz#825548 in an easier-to-backport way. Change-Id: Id0b7289323d45ff0d747c74bb78d8eb7def0cfc2
2012-05-30rtftok: undo tryToSafelyUpdateAnExistingProp, will be back soonMiklos Vajna5-254/+189
Change-Id: I171dac32f8a938dc4ecfbab13835823f65ee2611
2012-05-30Resolves: rhbz#825548 some rtf documents take vast amounts of time to loadCaolán McNamara2-3/+62
rtf documents with vast sequences of replicated properties without any pard resets to defaults create huge vectors of properties that eat time and memory So if we are adding a property which already exists and there are no intermediate properties which would cause side effects to the property then update the existing one instead Only implemented this optimization for some selected character properties This takes my load time down to 7 seconds from effectively some "infinite" hour+ load time. Change-Id: I520779233180f4d9faf9fb0989d546e08fc6cabd
2012-05-30don't overload operator-> and just forward specific methodsCaolán McNamara5-189/+195
Change-Id: I22f5f4a17f2eef0d04756ff4c8e614da073248ca
2012-05-29n#760764 dmapper: don't ignore character properties of text fieldsMiklos Vajna2-1/+11
Change-Id: If1497d78b8c31a4b2e5677bb57f40a0343a819a9
2012-05-29writerfilter: read dgm:relIds element and its attributesMiklos Vajna2-0/+32
2012-05-29implement operator= tooDavid Tardon3-0/+15
Change-Id: I5d5b5562a130ac5ba46afa3273cf65e7bbed2c13
2012-05-29removed dead codeTakeshi Abe3-6/+0
Change-Id: Ic70d66befc90450aeb276d53f6da7e81aef85478
2012-05-24handle column break in .docx properly tooLuboš Luňák1-0/+18
related to d8cac25ed29dbeca16161f62173a7e341793b8b6 Change-Id: I56b02a450e96acec0346d6a36c29ad8e0326b0c8
2012-05-24add missing initializationsDavid Tardon1-0/+2
Change-Id: I872987e02c1685810f6c2c71956c60e5f13b2706
2012-05-22do reuse shape contextLuboš Luňák4-0/+17
This is pretty much a revert of 60cb70b94537e9ff1155fb80255fc04ce41363b2. Turns out e.g. <v:shapetype> is not local only to its <w:pict>. Added a testcase. Change-Id: Ibbb9fe01bc2fc77dd67151bf4ca0905443eebf63
2012-05-22remove number of -I directives in writerfilterLuboš Luňák34-52/+47
Windows length path limitations strike again, and this should reduce the total argument length. Change-Id: I76fefabc8201e51494a7003d7ca4f9fd92ffa3b9
2012-05-22avoid warnings because of sal_Int* typesLuboš Luňák1-1/+1
Change-Id: I906931d62683b7feeff1a2e4b2f8b185c6af480e
2012-05-21add dependency on generated filesMatúš Kukan1-1/+4
Change-Id: Idad4558cfa741f1f2e17b270989a8a96ac80dd06
2012-05-20Some cppcheck cleaningJulien Nabet1-1/+0
Change-Id: Ic30cdeffabec1eb1a6c153ac450a3d28064ef534
2012-05-18work around spurious signed overflow warningsMichael Stahl1-8/+8
g++ (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5: /com/sun/star/uno/Sequence.hxx:178:10: error: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Werror=strict-overflow]
2012-05-18handle recursive <w:p> because of shapes (bnc#751077)Luboš Luňák5-2/+77
<w:p><w:pict>...<w:txbxContent><w:p><w:p/> - in this case, the inner paragraphs should not interfere with the outer one, but e.g. detecting whether it was the last paragraph in section could get broken. Change-Id: I8634ee6a0d6274f5770423ff798adfa260a33326
2012-05-18Merge the libraries in writerfilterTor Lillqvist10-399/+129
Change-Id: If77543855fe34f70d248fe8a4644d293f693f190