summaryrefslogtreecommitdiff
path: root/writerfilter
AgeCommit message (Collapse)AuthorFilesLines
2012-06-21re-base on ALv2 code.Michael Meeks51-1123/+772
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21n#758883 oox: anchor vml shapes without anchor info as at-characterMiklos Vajna1-1/+6
w10:wrap was originally arrived to writerfilter::dmapper::WrapHandler::lcl_attribute(), but writerfilter::dmapper::DomainMapper_Impl::PushShapeContext() was called already and set the anchor type. Fix this, then we can set a a suitable anchor type in lcl_SetAnchorType() based on the type model. Change-Id: Ib411450b10f29f814bc13d81eaec434971b2e52a
2012-06-21re-base on ALv2 code.Michael Meeks4-42/+60
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
2012-06-20n#758883 dmapper: set wrap mode even if determining the position failedMiklos Vajna1-4/+10
Change-Id: I514828469e68f2ae88309418e64ee93be30455f3
2012-06-19n#758883 DomainMapper::lcl_startParagraphGroup: set style name consistentlyMiklos Vajna1-0/+3
Change-Id: I71c3ebfcb68a53a291bcab2fdd397d62fd8b368a
2012-06-19n#758883 dmapper: take care of border width when setting marginsMiklos Vajna2-6/+9
Word handles the "border to page" distance as a subset of the page margin. Writer handles these values separately, and the real margin is the sum of the border width, the margin and the border width itself. The problem was that the width of the border itself wasn't counted, so the real margin was a bit larger than necessary. Change-Id: Id38153308f1e321b6556762b30f3377f2360edf6
2012-06-19WaE: silence warningCaolán McNamara1-1/+1
Change-Id: Ie0ed609076d59fbb9f3209e406de76aaa731073e
2012-06-19OSL_ENSURE -> SAL_WARN_IFLuboš Luňák1-2/+2
Change-Id: Ib8e9976e618e676465f0baf1f38be7e3297ac853
2012-06-19n#758883 dmapper: paragraph-level run props should affect numberings as wellMiklos Vajna3-0/+53
Change-Id: I707105f6da53a6cb790d743738875acde561e20f
2012-06-19n#758883 dmapper: always set list id during stylesheet importMiklos Vajna1-7/+7
This way the sprm handlers can be aware that a numbering is provided by that style. Change-Id: I5b5f1570a9e50fd8b3372f5ac7a6cd48e9751254
2012-06-18dmapper: fix crash in ListLevel::SetParaStyleMiklos Vajna1-0/+2
This can be triggered by using a style in the docx document, then manually removing that style from styles.xml. Change-Id: I4aad54d088d9fa56371ff49220316fb14fce6c37
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