summaryrefslogtreecommitdiff
path: root/writerfilter
AgeCommit message (Collapse)Author
2013-12-05cp#1000017 DOCX/RTF import: avoid fake tab char in footnotesMiklos Vajna
Word wants this, so it's added by the exporter to the document, but on import we should ignore it. Change-Id: Idcb669ba624bf462a50a85eb4aacf397afb6efe6 (cherry picked from commit b38629ae210b204a6d24d6e9c5c62eaaf563d494)
2013-12-04Drop SAL_CALL to get it to build on Windows.Kohei Yoshida
Change-Id: I0f475c396ec76ee7faa2cd0699181c58934e61e7
2013-12-04Get it to build.Kohei Yoshida
Change-Id: Ib1cb82d46322bd7c6791fa9a8937492ef27ec370
2013-12-04fastparser: Avoid copying all tokens into a sequence.Michael Meeks
2013-11-22init nRotation [-Werror=maybe-uninitialized]Eike Rathke
Change-Id: Ia48c8e3ef9dfb1f1f881845813ada518231352f2 (cherry picked from commit 44397a6f36ae6db697899c4595afe617e5fbe8ca)
2013-11-22cp#1000016 DOCX/RTF import: fix RemoveLastParagraph() on WindowsMiklos Vajna
Change-Id: I3f9d69ddbb2144c60a724e4242128b65ae167455 (cherry picked from commit a56bfe734a7bed40a175e0eeb7e86e7006a83f83)
2013-11-20Related bnc#837302: Don't introduce a redlined delete and the end of doc.Jan Holesovsky
Change-Id: I5c3903a40b69867684707d33acbc92b1f80a93ec
2013-11-19DOCX drawingML shape import: wp:anchor's behindDoc attributeMiklos Vajna
Also, adapt anchoring to what we have in VML import as well: when the paragraph moves, the shape should stay at the same place. (This is a bit odd, as ideally Word does not support at-paragraph anchoring, but this change results in the behavior what Word does at the end.) Change-Id: I3b849b2898d303e48920e6056c472f08fbb43af1
2013-11-19DOCX drawingML shape import: handle wrap typeMiklos Vajna
Change-Id: I8880c7413b10a284c9e55170afa35527dc7593ea
2013-11-19DOCX drawingML shape import: handle marginsMiklos Vajna
Change-Id: Ia89552658dc79568cc46b92e949fc1935434e43d
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-18DOCX drawingML shape import: handle positionMiklos Vajna
Change-Id: I9a0cb95d875328dab21950ead06d56c4dac8305d
2013-11-15[docx] activeX reference files (.bin) saved in InteropGrabBag and exported.sushil_shinde
The XInputStream for activeX.bin files is stored as the PropertyValue "OOXActiveXBin" into the "InteropGraBag" Added mxActiveXBinList object which holds XInputStreams for each activeX.bin from activeX folder. Added .bin files entry to respective acivex.xml's .rels file. Added Unit Test to test all .bin files are stores properly. Reviewed on: https://gerrit.libreoffice.org/6679 Change-Id: I3a0e9462a6cc53d8cbb9c7d59ed24631d77d4d30
2013-11-15Fixed for spacing between lines in table is getting preserve.PriyankaGaikwad
Problem Description: In "w:spacing" value of "w:line" attribute value in table is not getting is preserved. Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Reviewed on: https://gerrit.libreoffice.org/6678 Change-Id: I2b0284a22da3a828c81876960f488049be4f8681
2013-11-15Resolved: Preservation of para before and after auto spacing.Nikhil Walvekar
During import a flag and fixed value is stored in InteropGrabBag and during export we check for fixed value and value available in para spacing object. Write autospacing only if para spacing values are not modified during edit. Reviewed on: https://gerrit.libreoffice.org/6575 Change-Id: If34c5b61c3180b01e68dfe83862784c3d6f33981
2013-11-15cp#1000018 RTF import: empty para at the end of footnote text got lostMiklos Vajna
Updated 3 testcases, in all cases first checked that the new behavior matches what Word does. Also added a new test, to check that empty para at footnote end is now kept. Change-Id: I96b8788feb4d730b5a64ba3a743311a0180ab41f
2013-11-14[docx] activeX files saved in InteropGrabBag and exported.sushil_shinde
The XDocuments representing the DOM of an OOXML's activex document is stored as the PropertyValue "OOXActiveX" into the "InteropGraBag". Added mxActiveXDomList object which holds xDocument for each activeX.xml from activeX folder. This changeset stores only activeX[n].xml files. Relationship files (example activeX.bin) from activex are not stored yet. (Working on it.) Reviewed on: https://gerrit.libreoffice.org/6654 Change-Id: I658e361211e1446ed095a73b0422da0c4f74df1c
2013-11-14fdo#70457: Preserve rotation of embedded bitmaps from docxJacobo Aragunde Pérez
When importing bitmaps coming from VML code, we were mistakenly ignoring rotation information: we have just added it to the existing XShape object. In the case of bitmaps expressed in DrawingML, the code was transforming them into SwXTextGraphicObjects which don't have rotation information. We are now preventing that transformation when rotation value differs from zero, leaving the XShape object that was built in the first pass through the document. Added a unit test. Conflicts: sw/qa/extras/ooxmlimport/ooxmlimport.cxx Reviewed on: https://gerrit.libreoffice.org/6484 Change-Id: I40100f8919894e48c005f8ed445bb5cad4f58d8b
2013-11-14...and -Werror,-Wunused-parameterStephan Bergmann
Change-Id: I8b9e0629710c3b48c26a19158ab54bb250d79d5c
2013-11-14-Werror,-Wunused-variableStephan Bergmann
Change-Id: Ida3365b0451b947e04d7097799ac5108f76fc1a5
2013-11-14Move MediaDescriptor from comphelper to unotoolsStephan Bergmann
...so it will be able to use SvtSecurityOptions internally. Change-Id: Id7433247e8fc53651935578510bedbcca5aa2ac9
2013-11-14writerfilter: improve mc:AlternateContent supportMiklos Vajna
Commit af7d4a5ebf3e6a09cd2079f241dee16aa22e0276 (n#820503: initial MCE support in writerfilter ooxml tokenizer, 2013-07-03) introduced initial support for this, always reading the Fallback branch. Improve this, so an array can contain the list of features we support. Change-Id: I2d6ba2207f6bfc62dc1e15c1a605311ede1d7eeb
2013-11-14remove unnecessary sal_Unicode casts in various placesNoel Grandin
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-11-13DOCX: fdo#43093 set alignment if not already setFaisal M. Al-Otaibi
Change-Id: I34d2c6c1fc9338cea025ac510621d370f23805a2
2013-11-13writerfilter: fix anchoring of anchored wps (drawingML) shapesMiklos Vajna
Previous code assumed that either we're dealing with VML shapes (where the shape knows its position, anchoring, etc.) or with Wrtier pictures. drawingML shapes are a third category: they don't know their anchoring (and similar properties), still they are not Writer pictures. For now just fix the anchoring, other properties should be handled in a later follow-up commit. Change-Id: I2fede3b11cfbd423cd50cfc0c032d424c81c6c4a
2013-11-13writerfilter: tokenize wps:wspMiklos Vajna
These are just the minimal changes, so that writerfilter calls into oox::shape::ShapeContextHandler, which does the real work. Change-Id: I4f44a508736d780ff090bca0d12526160ddd167f
2013-11-13[docx] CustomXml relationship files saved in InteropGrabBag and exported.sushil_shinde
The XDocuments representing the DOM of an OOXML's customxml property document is stored as the PropertyValue "OOXCustomXmlProps" into the "InteropGraBag". Added mxCustomXmlDomPropList object which holds xDocument for each itemProps.xml from relationship of item.xml. Exporting all itemprops files from customxml. Reviewed on: https://gerrit.libreoffice.org/6603 Change-Id: I3973e6ce40382bbc4da247b5b27d99b03e851744
2013-11-12fdo#71302 writerfilter: remove "Strong" -> "Strong Emphasis" style renameMiklos Vajna
Such renames only make sense if the exporter does the opposite of them, but in this case the stiName array in the exporter explicitly looks for the "Strong" character styles. So at the end it's better to not rename it at all. Change-Id: I69b699c76d287b1fe3b81ea3fe66b77992c6e2f1
2013-11-11Remove unused writerfilter::doctok::DffRecordMiklos Vajna
Change-Id: I40b4c0ff90055e4d388f97fbe19be30d3f66b1b4
2013-11-10writerfilter: remove unused WW8FSPA class in doctokMiklos Vajna
Change-Id: Id6e984cff8c171099e3bf0ec6940a28b4000b2e9
2013-11-10WaE: unused variablesTor Lillqvist
Change-Id: I8a4d15a7d7948a19df0fb8a585969d56f9918772
2013-11-09writerfilter: remove unused Dff{FSP,DGG,BSE,FSP,SpContainer,UDefProp} classesMiklos Vajna
Change-Id: Ie3c8f7ea546418a1de1113a54292fd31c64a1f7b
2013-11-08DOCX filter: handle numbering style's qFormat, rsid and friendsMiklos Vajna
Change-Id: Ia261995b98e2108ab673c7b240a1aa822d3db96e
2013-11-08DOCX filter: handle char style's qFormat, rsid and friendsMiklos Vajna
Change-Id: Ie0bc9aff722d87fcd246d0cf1971ad6f34f0996a
2013-11-07writerfilter: remove unused CpAndFc class in doctokMiklos Vajna
Change-Id: Id24eb2ab53e62961e6cbe2ea72221c6bfe7262d7
2013-11-07fdo#63020: Replace ::comphelper::stl_begin()...Marcos Paulo de Souza
And use some templates inside include/com/sun/star/uno/Sequence.hxx Change-Id: I48875fa1517751fc4cb0cf2b6c08b88975a29b47 Reviewed-on: https://gerrit.libreoffice.org/6599 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-11-07fdo#70812 writerfilter: check for nullptr after dynamic_castMiklos Vajna
Happens when we set "no number" in the default para style, which is already the case for Writer anyway. Change-Id: I3b262e633e52e4aae039c55d6edb744e36f0f354
2013-11-07DOCX import: handle NS_ooxml::LN_CT_Style_autoRedefineMiklos Vajna
Change-Id: I8c2c0ca8d060e2c460d0f36aed3050ed335fb3a3
2013-11-07DOCX filter: roundtrip paragraph customStyleMiklos Vajna
Change-Id: I7fec154ff3b39845e91301b4fb607381e80e13f7
2013-11-07DOCX filter: roundtrip paragraph style defaultMiklos Vajna
Change-Id: I93495b4a2f85fe9729f8e1c810532717783756e4
2013-11-07remove unnecessary use of OUString constructor in WRITERFILTER moduleNoel Grandin
Change-Id: Iba6fd6e2bb9b2a9e937149f3e3465b0817208a58
2013-11-07DOCX filter: roundtrip paragraph style lockMiklos Vajna
Change-Id: Id656e48c1600bb7b04e8566d5c0f3297f80a89d9
2013-11-07DOCX filter: roundtrip paragraph style linkMiklos Vajna
Change-Id: Ide29e98b73410d8917742f2eeb15bdcbd9de87cc
2013-11-07ensure string accesses are in boundsCaolán McNamara
as demonstrated by ooo39541-3.rtf Change-Id: I995f0250e98a68b1b56da877314c9fd24cf46221
2013-11-06DOCX export of para style's qFormat, rsid and friendsMiklos Vajna
Change-Id: I4ed35f2b497fec96d012303001d4861768daef6a
2013-11-06DOCX import of para style's qFormat, rsid and friendsMiklos Vajna
Load these into the new style-level InteropGrabBag. Change-Id: I89b138c334dd3de36b97ef103d5483ca141a6585
2013-11-06writerfilter: make GrabBag methods accessible for para stylesMiklos Vajna
Change-Id: Ifbb5eaa85340e07d34fa2b9cb2ea4f83f74ffab8
2013-11-06check for empty stringCaolán McNamara
as demonstrated by ooo29618-1.doc Change-Id: I81c953530cd3a617a245ed03a9c355f3383045ab
2013-11-06check for return of -1 from getTokenCaolán McNamara
as demonstrated by ooo91883-1.doc Change-Id: I11a7f0747334f4cecbfd34c9353598d875be02c2
2013-11-06preview might be emptyCaolán McNamara
as demonstrated by ooo110440-1.doc Change-Id: I780a756d328eb35c9be1572319dd4f802c1831e1