summaryrefslogtreecommitdiff
path: root/writerfilter
AgeCommit message (Collapse)AuthorFilesLines
2012-09-14Improvement on previous commit, UCB clean upStephan Bergmann10-275/+165
* As UCB is only ever initialized with "Local"/"Office", remove this configuration vector completely. The "create" ctor creates an instance internally initialized with those "Local"/"Office" keys. Special (test) code can still instantiate an uninitialized one via plain createInstance. And for backwards compatilibity process startup still ensures to create an initialized instance early, in case there is still code out there (in extensions) that later calls plain createInstance and expects to get the already-initialized (single) instance. * XInitialization is an "implementation detail" of the UniversalContentBroker service, do not expose in XUniversalContentBroker. * ucbhelper/configurationkeys.hxx is no longer needed and is removed. * ucbhelper/contentbroker.hxx is an empty wrapper and is removed; however, that requires ucbhelper::Content constructors to take explicit XComponentContext arguments now. * The only remaining code in ucbhelper/source/client/contentbroker.cxx is Android-only InitUCBHelper. Is that relevant still? Change-Id: I3f7bddd0456bffbcd13590c66d9011915c760f28
2012-09-14n#778140 fix import of w:fldSimple character propertiesMiklos Vajna2-1/+8
The character properties of the field are applied when the next run begins, so insert an empty run right after the field to fix the issue. Change-Id: I18d747d99d6604fa331a0e70e6989f9f4975eab2
2012-09-14n#778140 as the comment says, it's 100 twipsMiklos Vajna1-3/+3
Change-Id: If2e0d2f4805cd04bec0dd7983ec544b9922ef796
2012-09-14n#778140 enable AddParaTableSpacing for docx, as it's enabled for ww8 as wellMiklos Vajna2-4/+1
Change-Id: I7523be9f07d378e1c4d88468077653d3fa4161d3
2012-09-13n#778836 fix DOCX import of right margin vs numbering and paragraph stylesMiklos Vajna3-7/+84
The problem was that the left / first paragraph margin was defined in the numbering style, and that zeroed out the already inherited right margin. Change-Id: Ife521d1de4868a7be33de5f8d6af363d10cbc903
2012-09-12Resolves: rhbz#831755 crash with 0 dyaLinePitch in .docxCaolán McNamara1-4/+10
This is similar to fdo#40686 (dyaLinePitch only valid between [1-31680]) for the .doc format Change-Id: I7d2745d695320b4b6b22ec2b519f092932587c2e
2012-09-12n#778133 sw: add BackgroundParaOverDrawings compat flagMiklos Vajna1-0/+1
In Word, the layer that contains a background image is behind the layer that contains the paragraph background. In Writer, the paragraph background is painted before the hell layer. Add a compat flag to change the order, so the DOCX importer can trigger that. To reproduce, create an XShape, send it to the background, set some color for a paragraph background, and notice that the background color is missing where the shape is behind the text. Change-Id: I9b1fffd9ac9a6e5a1c3d1f65371440047d125b38
2012-09-10Related: rhbz#855541 ensure PropertyNameSupplier singleton ctor is threadsafeCaolán McNamara1-2/+8
nothing really to do with odd multithreaded run_exit_handlers bug, just tidied it up in passing Change-Id: I9e56a21f92e5f89bbcb4413bb7cae44c48affb17
2012-09-10-Werror,-Wunused-private-fieldStephan Bergmann2-3/+0
Change-Id: I749184b885f8da29f2656e8ae29b981eeb9bbc7f
2012-09-07move the code for adding temporary fonts to a separate classLuboš Luňák1-3/+3
I'm a bit confused on how this stuff is separated between platforms, so better do it this way. Change-Id: I2dbd9baef587c81ee37b509bde272ef970f5b118
2012-09-06read support for docx w:embedTrueTypeFonts/w:embedSystemFontsLuboš Luňák5-3/+32
No write support yet. Change-Id: Ia10239acc77cf9ebc4f511e30c007da36abf43cb
2012-09-06basic .docx read support for embedded fonts (w:embedRegular etc.)Luboš Luňák8-4/+197
Change-Id: I9bbca2e348bd999e05f6d9e53f3bbcd2d6bb911a
2012-09-06temporarily set a substream as the document streamLuboš Luňák1-0/+4
If this is not done, then mpStream still refers to the main stream, and so e.g. resolving references uses the main document instead of the substream (specifically, in a followup commit, w:embedRegular will use _rels/document.xml.rels instead of _rels/fontTable.xml.rels). Change-Id: Ibf250b82f38be0b24a6c2b6198b6c96ab7f0423c
2012-09-06Java cleanup, remove unnecessary importsNoel Grandin1-3/+0
Change-Id: Iacfcb2e16cb0e3c25a4cd0678a374fe5111284f7
2012-09-04n#775270: clip pictures instead of scaling they don't fitCédric Bosdonnat1-0/+1
Word clips pictures that are bigger than a page instead of scaling them down. This patch introduces a new compatibility option to allow clipping a picture in Writer instead of scaling it down. Change-Id: I4defbee05be81e23ec28a2ed272eaf4e4cc6faf5
2012-08-31-Werror,-Wunused-private-field (Clang towards 3.2)Stephan Bergmann3-6/+4
Change-Id: If8ed0534ba282145e66b023777820c9c09b2b496
2012-08-30n#777337 fix DOCX import of title page top/bottom margin with headers/footersMiklos Vajna1-0/+4
SectionPropertyMap::PrepareHeaderFooterProperties() already backed up m_nTopMargin to have the same result when that method is called multiple times. Do the same for the header footer height values as well to match the WW8 behaviour. Change-Id: Ib2347abc3db39308900c7721c0e15de040d9a01f
2012-08-28Move group handling from RTFDocumentImpl to RTFTokenizerMiklos Vajna4-22/+36
This is one step towards hiding the RTFDocument implementation from RTFTokenizer. Change-Id: Ief35a2440cac3147495675d344e1efc64f5fbc2e
2012-08-28fdo#52052 fix RTF import of page breaks on landscape pagesMiklos Vajna2-6/+48
The problem was that we tried to insert a page break before reaching the first section break, where section properties are sent. Additionally, the continuous section break at the end of the doc caused trouble, so ignore it explicitly. Change-Id: I22bc355994991beeadb41d26b44ce3e2beedbdb2
2012-08-27n#775899 docx import of w:usePrinterMetrics compat optionMiklos Vajna4-2/+19
This was set unconditionally, but it turns out it's not the default for docx, it's triggered by a compat flag there as well. Change-Id: I84dccfe7ffd49fbc6878b19ff4276f8a36b827a3
2012-08-27n#775899 docx import: set PrinterIndependentLayout like ww8 doesMiklos Vajna1-0/+2
Change-Id: I32869aa3d7b6b25c7eb9756d79ea7126130afc4b
2012-08-23refactor duplicated code to DomainMapper_Impl::getCurrentNumberingPropertyMiklos Vajna3-60/+37
Change-Id: Id68df67e1301d0eed74c3bdcaabc7c601d72770b
2012-08-23n#775906 dmapper: fix inherited first/left margin vs w:ind/w:rightMiklos Vajna1-0/+42
This is similar to 89f208c, but here the direct right margin reset the left/first margin, inherited from the numbering style. Change-Id: I2d238740c24db7607719dcefb17565656592be44
2012-08-23fix math export/import in docx/rtfLuboš Luňák3-4/+15
For some reason older gcc versions don't manage to dynamic_cast to the necessary cast. I'm not quite sure why, forcing sal/osl/unx/module.cxx to always use RTLD_GLOBAL does not seem to help. Most probably compiler bug. Changing the cast to two simpler ones helps.
2012-08-23n#775899 sw: add FloattableNomargins compat flagMiklos Vajna1-0/+2
The DOCX filter imports floating tables as frames containing a table. Word ignores the margins of paragraphs next to such a table, Writer does not. Add a compatibility flag the import filter can set that triggers this weird behaviour. Change-Id: Iaaa1d2a2e2f9d0eaea17832b2e418f9a845efffd
2012-08-21n#775899 initial docx import of w:vertAnchor inside w:tblpPrMiklos Vajna7-1/+191
Change-Id: I5c848a8d4c860a83d6729b8db40f744afad906d5
2012-08-20fdo#53175: Don't load the default values of the styles in writerfilterCédric Bosdonnat1-0/+3
...or we may have some additional properties set on some styles. Change-Id: I5a5d307931a2a6c1f25bd2da93381d8de65c2480
2012-08-17gbuild: register all jarsMichael Stahl1-5/+5
Change-Id: I9f49970e5e06d1afd3fc066a20d1671c93e262fc
2012-08-14RTF shape filter: handle custom segment typesMiklos Vajna1-2/+3
Change-Id: I320bab34080b401c61efbc5b3383836362f5f43f
2012-08-13fdo#47495 fix RTF import of multiple shapes inside textframesMiklos Vajna1-1/+4
Change-Id: Iee8541ff9e88139648d45f08968476f2b1d4e1b3
2012-08-13drop unnecessary RTFDocumentImpl::isEmptyMiklos Vajna3-9/+3
Change-Id: I657266697c30be0760971528adb1abf07f03ea23
2012-08-10fdo#48446 implement RTF_CPGMiklos Vajna1-0/+3
Change-Id: I2fb2004f2f755ce337ddd1419acf2510f17622f3
2012-08-09Related: fdo#51112 import RTF_CLSHDNGMiklos Vajna1-0/+40
Change-Id: Iaa4efa2f4f70fc09e6deb6b7c6aea6f37757f1ab
2012-08-08try somewhat harder to read w:position (bnc#773061)Luboš Luňák1-15/+33
SvxEscapementItem stores the vertical offset as percentage, so it depends on the font size. Change-Id: I1b2d5b2c230b6243a6c1a4580147c4e0c4ae94cc
2012-08-08support for deferred property processing in writerfilterLuboš Luňák4-0/+61
There currently does not seem to be any sane way to process an attribute or sprm that depends on another one that may not possibly be there yet (e.g. in e7ab4bb6b0e83f01148ffff41e8c5eaa0c5ba0a4, or w:position which for Svx internal reasons depends on fontsize and thus w:sz). So make it possible to defer such properties and process them only before they are actually used, instead of trying to get them out of PropertyMap, possibly in more places and possibly having to undo the changes that have been done to them already. Change-Id: I1630057ecdf46443647ec1dd5253983ae15a083f
2012-08-07Remove commented out codeThomas Arnhold1-1/+0
Change-Id: Id73d1d75063e19dfa05fa7b5b8b69ca8f99f0998
2012-08-02RTFDocumentImpl::popState: drop unnecessary state copiesMiklos Vajna1-40/+19
First only parts of the parser state was copied, then later the whole state, but code not using the full copy was still there. Remove it now. Change-Id: I2c5507e74a24b8dac74552c61d69ba0be7257d6b
2012-08-02fdo#51034 fix docx import of HYPERLINK field, l paramMiklos Vajna1-1/+1
Change-Id: Ic6896f7c795d7d303bf7589a74afb937d4a8e8b5
2012-08-02no need to invoke dmapper hereMiklos Vajna1-8/+2
Change-Id: Ie005d0ae0ed6e2f055f03015162edaa10ed78897
2012-08-02fdo#49892 import RTF_SHPB{X,Y}PAGEMiklos Vajna3-0/+23
Change-Id: I8fe2b28f44ee61fc0f1438de3681fd86b16d29ae
2012-08-02fdo#49892 implement RTF import of dhgt shape propertyMiklos Vajna1-0/+10
Change-Id: I36d574c5f7915d732c6c158fadb91b6032370a01
2012-07-31n#772094: writerfilter, pictures anchored in header/footer won't be opaqueCédric Bosdonnat5-2/+19
This dark magic is needed to have a behavior similar to the one of Word for images anchored in headers/footers. Writer can't have pictures laid over the header/footer but below the body text. Change-Id: I2c001d4f696c1623370c531059b74e3d5fa4f5b7
2012-07-31various rtf regression testsCaolán McNamara3-0/+0
Change-Id: If4fd8fba87c13b6294813a86155d3d0ea4d18eb2
2012-07-30Related: fdo#36089 improve import of EQ field in writerfilterMiklos Vajna4-20/+38
This moves the FIELD_EQ parsing where it belongs + improves it, so a custom "lower by" value is handled on import. Change-Id: I0459042d7a610c397ce90ec3dba5ff49ce9ef60f
2012-07-28writerfilter: drop pointless rtl:: prefix usageMiklos Vajna11-44/+42
Change-Id: I75e68d0ec70d0d4e95a58cd34780c3a350f7a9d2
2012-07-27fdo#48033 fix RTF import of pictures inside table cellsMiklos Vajna1-1/+7
Change-Id: I2d9ef3b346d4b10b99b67d0934d63d59f6119f97
2012-07-27sd, sfx2, writerfilter, xmloff: fix some warningsMichael Stahl1-0/+12
2012-07-27RTFDocumentImpl::text: don't try to read beyond the end of stringMiklos Vajna1-1/+1
Change-Id: If8dc4686f28870f1ce6b22458e29d3a9043f9783
2012-07-27SmOoxmlImport::handleR: escape brackets in math runsMiklos Vajna1-7/+0
Also remove the previous escaping that took care of RTF only. Change-Id: Ie9a019912f83a3f56ef52429855cd72cf2c8f463
2012-07-27fix import of nested RTF_MF groupsMiklos Vajna1-13/+18
Change-Id: Ibd4f93663d27d997c44f73e201c355a34d6452d3