summaryrefslogtreecommitdiffstats
path: root/writerfilter
Commit message (Collapse)AuthorAgeFilesLines
* Move group handling from RTFDocumentImpl to RTFTokenizerMiklos Vajna2012-08-284-22/+36
| | | | | | | This is one step towards hiding the RTFDocument implementation from RTFTokenizer. Change-Id: Ief35a2440cac3147495675d344e1efc64f5fbc2e
* fdo#52052 fix RTF import of page breaks on landscape pagesMiklos Vajna2012-08-282-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
* n#775899 docx import of w:usePrinterMetrics compat optionMiklos Vajna2012-08-274-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
* n#775899 docx import: set PrinterIndependentLayout like ww8 doesMiklos Vajna2012-08-271-0/+2
| | | | Change-Id: I32869aa3d7b6b25c7eb9756d79ea7126130afc4b
* refactor duplicated code to DomainMapper_Impl::getCurrentNumberingPropertyMiklos Vajna2012-08-233-60/+37
| | | | Change-Id: Id68df67e1301d0eed74c3bdcaabc7c601d72770b
* n#775906 dmapper: fix inherited first/left margin vs w:ind/w:rightMiklos Vajna2012-08-231-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
* fix math export/import in docx/rtfLuboš Luňák2012-08-233-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.
* n#775899 sw: add FloattableNomargins compat flagMiklos Vajna2012-08-231-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
* n#775899 initial docx import of w:vertAnchor inside w:tblpPrMiklos Vajna2012-08-217-1/+191
| | | | Change-Id: I5c848a8d4c860a83d6729b8db40f744afad906d5
* fdo#53175: Don't load the default values of the styles in writerfilterCédric Bosdonnat2012-08-201-0/+3
| | | | | | ...or we may have some additional properties set on some styles. Change-Id: I5a5d307931a2a6c1f25bd2da93381d8de65c2480
* gbuild: register all jarsMichael Stahl2012-08-171-5/+5
| | | | Change-Id: I9f49970e5e06d1afd3fc066a20d1671c93e262fc
* RTF shape filter: handle custom segment typesMiklos Vajna2012-08-141-2/+3
| | | | Change-Id: I320bab34080b401c61efbc5b3383836362f5f43f
* fdo#47495 fix RTF import of multiple shapes inside textframesMiklos Vajna2012-08-131-1/+4
| | | | Change-Id: Iee8541ff9e88139648d45f08968476f2b1d4e1b3
* drop unnecessary RTFDocumentImpl::isEmptyMiklos Vajna2012-08-133-9/+3
| | | | Change-Id: I657266697c30be0760971528adb1abf07f03ea23
* fdo#48446 implement RTF_CPGMiklos Vajna2012-08-101-0/+3
| | | | Change-Id: I2fb2004f2f755ce337ddd1419acf2510f17622f3
* Related: fdo#51112 import RTF_CLSHDNGMiklos Vajna2012-08-091-0/+40
| | | | Change-Id: Iaa4efa2f4f70fc09e6deb6b7c6aea6f37757f1ab
* try somewhat harder to read w:position (bnc#773061)Luboš Luňák2012-08-081-15/+33
| | | | | | | SvxEscapementItem stores the vertical offset as percentage, so it depends on the font size. Change-Id: I1b2d5b2c230b6243a6c1a4580147c4e0c4ae94cc
* support for deferred property processing in writerfilterLuboš Luňák2012-08-084-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
* Remove commented out codeThomas Arnhold2012-08-071-1/+0
| | | | Change-Id: Id73d1d75063e19dfa05fa7b5b8b69ca8f99f0998
* RTFDocumentImpl::popState: drop unnecessary state copiesMiklos Vajna2012-08-021-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
* fdo#51034 fix docx import of HYPERLINK field, l paramMiklos Vajna2012-08-021-1/+1
| | | | Change-Id: Ic6896f7c795d7d303bf7589a74afb937d4a8e8b5
* no need to invoke dmapper hereMiklos Vajna2012-08-021-8/+2
| | | | Change-Id: Ie005d0ae0ed6e2f055f03015162edaa10ed78897
* fdo#49892 import RTF_SHPB{X,Y}PAGEMiklos Vajna2012-08-023-0/+23
| | | | Change-Id: I8fe2b28f44ee61fc0f1438de3681fd86b16d29ae
* fdo#49892 implement RTF import of dhgt shape propertyMiklos Vajna2012-08-021-0/+10
| | | | Change-Id: I36d574c5f7915d732c6c158fadb91b6032370a01
* n#772094: writerfilter, pictures anchored in header/footer won't be opaqueCédric Bosdonnat2012-07-315-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
* various rtf regression testsCaolán McNamara2012-07-313-0/+0
| | | | Change-Id: If4fd8fba87c13b6294813a86155d3d0ea4d18eb2
* Related: fdo#36089 improve import of EQ field in writerfilterMiklos Vajna2012-07-304-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
* writerfilter: drop pointless rtl:: prefix usageMiklos Vajna2012-07-2811-44/+42
| | | | Change-Id: I75e68d0ec70d0d4e95a58cd34780c3a350f7a9d2
* fdo#48033 fix RTF import of pictures inside table cellsMiklos Vajna2012-07-271-1/+7
| | | | Change-Id: I2d9ef3b346d4b10b99b67d0934d63d59f6119f97
* sd, sfx2, writerfilter, xmloff: fix some warningsMichael Stahl2012-07-271-0/+12
|
* RTFDocumentImpl::text: don't try to read beyond the end of stringMiklos Vajna2012-07-271-1/+1
| | | | Change-Id: If8dc4686f28870f1ce6b22458e29d3a9043f9783
* SmOoxmlImport::handleR: escape brackets in math runsMiklos Vajna2012-07-271-7/+0
| | | | | | Also remove the previous escaping that took care of RTF only. Change-Id: Ie9a019912f83a3f56ef52429855cd72cf2c8f463
* fix import of nested RTF_MF groupsMiklos Vajna2012-07-271-13/+18
| | | | Change-Id: Ibd4f93663d27d997c44f73e201c355a34d6452d3
* implement import/export of RTF_MMATHPICTMiklos Vajna2012-07-271-0/+1
| | | | | | to be compatible with readers not understanding RTF_MOMATH Change-Id: I8d6a28b03b740da372558f7aa245592be6ac70b9
* RTF_MR: ignore if collected text is emptyMiklos Vajna2012-07-261-5/+11
| | | | | | | Sending an empty run would result in adding a space to the formula, leading to incorrect result. Change-Id: I1a01493cead726f667db0065deb4c145cba4ffa7
* writerfilter/qa: clean up rtl:: and RTL_CONSTASCII_* usageMiklos Vajna2012-07-261-8/+6
| | | | Change-Id: I729e5a6dcc9ca3a291c5f28c8b7eed7e3ca03bfd
* import RTF_M{SEPCHR,EQARR,BOX,GROW}Miklos Vajna2012-07-253-1/+29
| | | | Change-Id: Idbd5ea29b886d94b456b126de00a02833f7c0d7c
* import RTF_MTYPEMiklos Vajna2012-07-242-0/+4
| | | | Change-Id: I9414c9af69aa721a84e08fd323bc1efd5bd6c887
* RTFDocumentImpl::popState: clean up duplicated list of DESTINATION_M* casesMiklos Vajna2012-07-241-25/+12
| | | | Change-Id: I7806a9dc897c0187fd523d480e6366925676287b
* import RTF_M{SSUB,SSUBPR,SSUP,SSUPPR,SSUBSUP,SSUBSUPPR,SPRE,SPREPR}Miklos Vajna2012-07-242-1/+25
| | | | Change-Id: I8148e870ec86f282f05102757f0f8bfc53561c00
* implement import of RTF_M{RAD,RADPR,DEG}Miklos Vajna2012-07-242-1/+16
| | | | Change-Id: I6779cf105d792c5a59ec43a21f8693e6d8895bfd
* rtftok: add OPEN_M_TOKEN to avoid code duplicationMiklos Vajna2012-07-241-155/+46
| | | | Change-Id: I95b2ee34fef0c075040af808de276e0b745bf830
* implement import of RTF_M{STRIKEH,BORDERBOX,BORDERBOXPR}Miklos Vajna2012-07-242-1/+27
| | | | Change-Id: I3249b6a2cb5d8c100e8045f650997cea3f1d2e30
* implement import of RTF_M{POS,VERTJC,LIMUPP,LIMUPPPR,GROUPCHR,GROUPCHRPR}Miklos Vajna2012-07-243-1/+41
| | | | Change-Id: I40406bd4220a918507b2ae90733f3d1d5df949d5
* RTFDocumentImpl::pushState: use switch here as wellMiklos Vajna2012-07-241-23/+23
| | | | Change-Id: Ibb1c68612159fcdbfd92dc6b4cd3719d4db240f3
* implement import of RTF_{MMR,MNARY,MNARYPR,MSUB,MSUP,MSUBHIDE,MSUPHIDE}Miklos Vajna2012-07-242-2/+42
| | | | Change-Id: Ic975c7c1653fd10ef0a22ecbbbd740adac0789e0
* implement import of RTF_{MM,MMPR,MMR}Miklos Vajna2012-07-242-2/+22
| | | | Change-Id: I6e21159af832c5850db77a6dfe630a0fc0bb6238
* RTFDocumentImpl::popState: use switch hereMiklos Vajna2012-07-241-96/+120
| | | | Change-Id: If03ae8a5b44f477471ddc33063af552b3f2cfc31
* implement import of RTF_{MFUNC,MFUNCPR,MFNAME,MLIMLOW,MLIMLOWPR,MLIM}Miklos Vajna2012-07-243-1/+45
| | | | Change-Id: Ibdecafae7942a0c79804176aa24e448dc505a5bb
* escape RTF_LBRACE and RTF_RBRACE inside RTF_MRMiklos Vajna2012-07-241-1/+9
| | | | Change-Id: I9315da151390ea1b5d56c7e58ac901e3f11dd2a7