summaryrefslogtreecommitdiff
path: root/writerfilter
AgeCommit message (Collapse)Author
2012-09-13n#778836 fix DOCX import of right margin vs numbering and paragraph stylesMiklos Vajna
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 McNamara
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 Vajna
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 McNamara
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 Bergmann
Change-Id: I749184b885f8da29f2656e8ae29b981eeb9bbc7f
2012-09-07move the code for adding temporary fonts to a separate classLuboš Luňák
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ňák
No write support yet. Change-Id: Ia10239acc77cf9ebc4f511e30c007da36abf43cb
2012-09-06basic .docx read support for embedded fonts (w:embedRegular etc.)Luboš Luňák
Change-Id: I9bbca2e348bd999e05f6d9e53f3bbcd2d6bb911a
2012-09-06temporarily set a substream as the document streamLuboš Luňák
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 Grandin
Change-Id: Iacfcb2e16cb0e3c25a4cd0678a374fe5111284f7
2012-09-04n#775270: clip pictures instead of scaling they don't fitCédric Bosdonnat
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 Bergmann
Change-Id: If8ed0534ba282145e66b023777820c9c09b2b496
2012-08-30n#777337 fix DOCX import of title page top/bottom margin with headers/footersMiklos Vajna
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 Vajna
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 Vajna
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 Vajna
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 Vajna
Change-Id: I32869aa3d7b6b25c7eb9756d79ea7126130afc4b
2012-08-23refactor duplicated code to DomainMapper_Impl::getCurrentNumberingPropertyMiklos Vajna
Change-Id: Id68df67e1301d0eed74c3bdcaabc7c601d72770b
2012-08-23n#775906 dmapper: fix inherited first/left margin vs w:ind/w:rightMiklos Vajna
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ňák
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 Vajna
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 Vajna
Change-Id: I5c848a8d4c860a83d6729b8db40f744afad906d5
2012-08-20fdo#53175: Don't load the default values of the styles in writerfilterCédric Bosdonnat
...or we may have some additional properties set on some styles. Change-Id: I5a5d307931a2a6c1f25bd2da93381d8de65c2480
2012-08-17gbuild: register all jarsMichael Stahl
Change-Id: I9f49970e5e06d1afd3fc066a20d1671c93e262fc
2012-08-14RTF shape filter: handle custom segment typesMiklos Vajna
Change-Id: I320bab34080b401c61efbc5b3383836362f5f43f
2012-08-13fdo#47495 fix RTF import of multiple shapes inside textframesMiklos Vajna
Change-Id: Iee8541ff9e88139648d45f08968476f2b1d4e1b3
2012-08-13drop unnecessary RTFDocumentImpl::isEmptyMiklos Vajna
Change-Id: I657266697c30be0760971528adb1abf07f03ea23
2012-08-10fdo#48446 implement RTF_CPGMiklos Vajna
Change-Id: I2fb2004f2f755ce337ddd1419acf2510f17622f3
2012-08-09Related: fdo#51112 import RTF_CLSHDNGMiklos Vajna
Change-Id: Iaa4efa2f4f70fc09e6deb6b7c6aea6f37757f1ab
2012-08-08try somewhat harder to read w:position (bnc#773061)Luboš Luňák
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ňák
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 Arnhold
Change-Id: Id73d1d75063e19dfa05fa7b5b8b69ca8f99f0998
2012-08-02RTFDocumentImpl::popState: drop unnecessary state copiesMiklos Vajna
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 Vajna
Change-Id: Ic6896f7c795d7d303bf7589a74afb937d4a8e8b5
2012-08-02no need to invoke dmapper hereMiklos Vajna
Change-Id: Ie005d0ae0ed6e2f055f03015162edaa10ed78897
2012-08-02fdo#49892 import RTF_SHPB{X,Y}PAGEMiklos Vajna
Change-Id: I8fe2b28f44ee61fc0f1438de3681fd86b16d29ae
2012-08-02fdo#49892 implement RTF import of dhgt shape propertyMiklos Vajna
Change-Id: I36d574c5f7915d732c6c158fadb91b6032370a01
2012-07-31n#772094: writerfilter, pictures anchored in header/footer won't be opaqueCédric Bosdonnat
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 McNamara
Change-Id: If4fd8fba87c13b6294813a86155d3d0ea4d18eb2
2012-07-30Related: fdo#36089 improve import of EQ field in writerfilterMiklos Vajna
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 Vajna
Change-Id: I75e68d0ec70d0d4e95a58cd34780c3a350f7a9d2
2012-07-27fdo#48033 fix RTF import of pictures inside table cellsMiklos Vajna
Change-Id: I2d9ef3b346d4b10b99b67d0934d63d59f6119f97
2012-07-27sd, sfx2, writerfilter, xmloff: fix some warningsMichael Stahl
2012-07-27RTFDocumentImpl::text: don't try to read beyond the end of stringMiklos Vajna
Change-Id: If8dc4686f28870f1ce6b22458e29d3a9043f9783
2012-07-27SmOoxmlImport::handleR: escape brackets in math runsMiklos Vajna
Also remove the previous escaping that took care of RTF only. Change-Id: Ie9a019912f83a3f56ef52429855cd72cf2c8f463
2012-07-27fix import of nested RTF_MF groupsMiklos Vajna
Change-Id: Ibd4f93663d27d997c44f73e201c355a34d6452d3
2012-07-27implement import/export of RTF_MMATHPICTMiklos Vajna
to be compatible with readers not understanding RTF_MOMATH Change-Id: I8d6a28b03b740da372558f7aa245592be6ac70b9
2012-07-26RTF_MR: ignore if collected text is emptyMiklos Vajna
Sending an empty run would result in adding a space to the formula, leading to incorrect result. Change-Id: I1a01493cead726f667db0065deb4c145cba4ffa7
2012-07-26writerfilter/qa: clean up rtl:: and RTL_CONSTASCII_* usageMiklos Vajna
Change-Id: I729e5a6dcc9ca3a291c5f28c8b7eed7e3ca03bfd
2012-07-25import RTF_M{SEPCHR,EQARR,BOX,GROW}Miklos Vajna
Change-Id: Idbd5ea29b886d94b456b126de00a02833f7c0d7c