summaryrefslogtreecommitdiffstats
path: root/writerfilter
Commit message (Collapse)AuthorAgeFilesLines
* n#758883 dmapper: set wrap mode even if determining the position failedMiklos Vajna2012-06-201-4/+10
| | | | Change-Id: I514828469e68f2ae88309418e64ee93be30455f3
* n#758883 DomainMapper::lcl_startParagraphGroup: set style name consistentlyMiklos Vajna2012-06-191-0/+3
| | | | Change-Id: I71c3ebfcb68a53a291bcab2fdd397d62fd8b368a
* n#758883 dmapper: take care of border width when setting marginsMiklos Vajna2012-06-192-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
* WaE: silence warningCaolán McNamara2012-06-191-1/+1
| | | | Change-Id: Ie0ed609076d59fbb9f3209e406de76aaa731073e
* OSL_ENSURE -> SAL_WARN_IFLuboš Luňák2012-06-191-2/+2
| | | | Change-Id: Ib8e9976e618e676465f0baf1f38be7e3297ac853
* n#758883 dmapper: paragraph-level run props should affect numberings as wellMiklos Vajna2012-06-193-0/+53
| | | | Change-Id: I707105f6da53a6cb790d743738875acde561e20f
* n#758883 dmapper: always set list id during stylesheet importMiklos Vajna2012-06-191-7/+7
| | | | | | | This way the sprm handlers can be aware that a numbering is provided by that style. Change-Id: I5b5f1570a9e50fd8b3372f5ac7a6cd48e9751254
* dmapper: fix crash in ListLevel::SetParaStyleMiklos Vajna2012-06-181-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
* move DTTM2DateTime and DateTimeToOString to msfilter to avoid copy&pasteMiklos Vajna2012-06-151-39/+1
|
* fdo#50087 fix RTF import of Title, Subject, Comments document propertiesMiklos Vajna2012-06-152-1/+22
| | | | Change-Id: I3358fad4949c2c21ecf63983a36b7c8428df9f06
* n#750935 fix docx import of w:evenAndOddHeadersMiklos Vajna2012-06-153-2/+14
| | | | Change-Id: I172073bac10e8d0449c0f5c0a226dd7ace013376
* writerfilter: two more dependenciesMatúš Kukan2012-06-141-2/+2
| | | | Change-Id: I97491c61ef83f947e1923785300490f3b7920203
* writerfilter: remove unused / unneeded .mk filesMatúš Kukan2012-06-143-75/+15
| | | | Change-Id: Ic64e3e527ced7fcf81f90075bae7d8a646789d4e
* callcatcher: unused duplicate WW8TableManager classCaolán McNamara2012-06-131-40/+0
| | | | Change-Id: I6c4395712cb4bb6b28e2997b4af24ab423573f4a
* removed code commented-out in the first placeTakeshi Abe2012-06-131-24/+0
| | | | Change-Id: Idb109cf767342042f1a2941c30fcf137f468e7df
* Resolves: fdo#49178 CRASH when FILEOPEN particular RTFJulien Nabet2012-06-121-1/+2
| | | | Change-Id: Idd938980b91ec8b822a92dfd7013a20fe5b6f498
* n#766477 dmapper: import NS_ooxml::LN_CT_FFCheckBox_defaultMiklos Vajna2012-06-122-5/+17
| | | | Change-Id: If7edb301fa90a49d79fc5322a7c19ee2591f5494
* fdo#49659 dmapper: handle tables in substreamsMiklos Vajna2012-06-113-2/+12
| | | | Change-Id: I4c81eb1ec57bda2b5ce65b19de998bab2dfb6c3c
* writerfilter/resourcemodel: don't use a global variable hereMiklos Vajna2012-06-112-18/+25
| | | | Change-Id: I064070a51cb87c10c72917b19969672d2121be7a
* writerfilter/doctok: unused global variableMiklos Vajna2012-06-111-2/+0
| | | | Change-Id: I93c9c6e267270a07bd98ea408f0d6f78759265bb
* fdo#49659 handle RTF import of tables at the very end of the documentMiklos Vajna2012-06-112-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
* fdo#49659 fix RTF import of pictures with inner groupsMiklos Vajna2012-06-111-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
* RTFDocumentImpl::resolvePict: handle failure from importGraphicObject()Miklos Vajna2012-06-111-6/+9
| | | | | | This fixes an assert from the fdo#49659 bugdoc. Change-Id: I4c4d56aa119dcdb965a0b30ca137d7e7d719259c
* targeted gmk4 clean-upNorbert Thiebaud2012-06-082-185/+165
| | | | Change-Id: I029b96e9d30393d6e7f0fe3aa841ac62147808df
* n#757905 fix VML import of mso-wrap-style:noneMiklos Vajna2012-06-071-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
* fdo#50665 rtftok: don't ignore character properties of text fieldsMiklos Vajna2012-06-062-3/+6
| | | | | | | | The dmapper part was already fixed in commit 9486851baea59d16c449d79bd61a38f6e686cfe0 for DOCX, this fixes the RTF tokenizer. Change-Id: Iaca706e50367bb744f5a03e15134bda1646df8fc
* fdo#46808, Adapt UNO services to new style, Part 7, updating ::createNoel Grandin2012-06-066-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.
* fdo#46808, Adapt UNO services to new style, Part 7, updating ::createNoel Grandin2012-06-042-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.
* targeted string re-workNorbert Thiebaud2012-06-021-4/+2
| | | | Change-Id: I67db5b5685872ef148bf4833330c02ea2b18c32e
* targeted string re-workNorbert Thiebaud2012-06-021-4/+2
| | | | Change-Id: I17bec612eb6d50acc4bf8ac8ea4299fd2380afb5
* targeted string re-workNorbert Thiebaud2012-06-0211-167/+167
| | | | Change-Id: I910a508722a309d7916377a7e2df2093070809ad
* targeted string re-workNorbert Thiebaud2012-06-025-30/+29
| | | | Change-Id: Ibd7142f49d1a42ebab3bed02ea269a3c850197e6
* targeted string re-workNorbert Thiebaud2012-06-021-2/+2
| | | | Change-Id: Ie5a8469620650ba67bab8c875e0bc136bd103866
* Fix some Prefer prefix ++/--Julien Nabet2012-06-022-4/+4
| | | | Change-Id: Ief7279a06ffbdd0e23fac28f8948daea4023823c
* fdo#50539 fix RTF import of automatic character background colorMiklos Vajna2012-06-011-0/+1
| | | | Change-Id: I7efb3bce9a3a6f6c029d99de2264e00bb1bc7c93
* n#764005 VML import of absolutely positioned pictures should not be opaqueMiklos Vajna2012-05-311-3/+4
| | | | Change-Id: I17a1a94ee92ce04ff6928a20c552b3a3408a0626
* n#764005 dmapper: don't insert "at page" anchored graphics as "as character"Miklos Vajna2012-05-311-0/+4
| | | | Change-Id: Ibdde32014d2fc2fe43d59a5cc6ee7f722adcbfb6
* targetted revert of small prefix operator changesMichael Meeks2012-05-312-4/+5
| | | | Change-Id: I02e9af0034f4e9ed626615083c7c1506597f2a7e
* don't overload operator-> and just forward specific methods, take twoCaolán McNamara2012-05-305-43/+44
| | | | Change-Id: If66b0a5f1b0444d8f0a6dfed1b518a0033d61d2e
* Use RTFSprms::set() in RTFDocumentImpl everywhereMiklos Vajna2012-05-301-146/+139
| | | | Change-Id: Iaf52206aad2f1053d54025b0e71eff1b229e1372
* fdo#49968 speed up RTF import of repeated character/paragraph propertiesMiklos Vajna2012-05-303-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
* rtftok: undo tryToSafelyUpdateAnExistingProp, will be back soonMiklos Vajna2012-05-305-254/+189
| | | | Change-Id: I171dac32f8a938dc4ecfbab13835823f65ee2611
* Resolves: rhbz#825548 some rtf documents take vast amounts of time to loadCaolán McNamara2012-05-302-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
* don't overload operator-> and just forward specific methodsCaolán McNamara2012-05-305-189/+195
| | | | Change-Id: I22f5f4a17f2eef0d04756ff4c8e614da073248ca
* n#760764 dmapper: don't ignore character properties of text fieldsMiklos Vajna2012-05-292-1/+11
| | | | Change-Id: If1497d78b8c31a4b2e5677bb57f40a0343a819a9
* writerfilter: read dgm:relIds element and its attributesMiklos Vajna2012-05-292-0/+32
|
* implement operator= tooDavid Tardon2012-05-293-0/+15
| | | | Change-Id: I5d5b5562a130ac5ba46afa3273cf65e7bbed2c13
* removed dead codeTakeshi Abe2012-05-293-6/+0
| | | | Change-Id: Ic70d66befc90450aeb276d53f6da7e81aef85478
* handle column break in .docx properly tooLuboš Luňák2012-05-241-0/+18
| | | | | | related to d8cac25ed29dbeca16161f62173a7e341793b8b6 Change-Id: I56b02a450e96acec0346d6a36c29ad8e0326b0c8
* add missing initializationsDavid Tardon2012-05-241-0/+2
| | | | Change-Id: I872987e02c1685810f6c2c71956c60e5f13b2706