summaryrefslogtreecommitdiff
path: root/oox
AgeCommit message (Collapse)AuthorFilesLines
2016-01-27Format the datetime fields properly on importRosemary Sebastian1-2/+17
Make sure that, after export, the datetime fields in impress are imported with the correct number format. Change-Id: I5565fef69b3a62e7dd59ea0d39cde151fb0af976 Reviewed-on: https://gerrit.libreoffice.org/21610 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2016-01-21oox: import Math objects from PPTX filesMichael Stahl6-2/+173
This is quite hacky and limited: in OOXML these are not OLE objects but occur inside text boxes, and PPT 2010 allows inserting multiple Math objects into one text box but Impress does not have as-character anchored objects, so we can't import that properly; for now only import Math if there is nothing else in the text box. Also for now only import them as children of TextParagraphContext (a:p); it's not clear what the possible parent elements could be since the OOXML standard only lists WordProcessingML parent elements :( Change-Id: I847f810084c9ddae4b60f93896fb73a742683cc2
2016-01-21oox: fix indentation of PPTShape::addShape()Michael Stahl1-195/+197
Change-Id: Ic878535d3bc2d57dc24cc1821d8ce8403482b253
2016-01-21oox, writerfilter: incorrect a14 namespaceMichael Stahl1-1/+1
Change-Id: I813ca0510b6cfc26c307c510f3511c01c0f65c85
2016-01-15oox: getEntryName() could throw a WrongStateExceptionMichael Stahl1-7/+16
let's guard against that. Change-Id: I970fb801a642592d9c23390572867f0e21f03132
2016-01-15oox: export Math objects to PPTX filesMichael Stahl1-3/+64
These hit the assert in lcl_StoreOwnAsOOXML now so better implement some export. Change-Id: I10c005a547e8a85f2a82198a49f9a03fc46a61d7
2016-01-15oox: coverity#1348468 copy-paste errorMichael Stahl1-1/+1
Change-Id: Ibea6944c4e61e9848aac936e399ed08192ec5812
2016-01-15oox: move enum DocumentType out of drawingml.hxxMichael Stahl1-2/+2
... which has nasty dependencies. Change-Id: I84ba0302142ade6e15291b782453dbe3bac753dd
2016-01-15loplugin:unusedmethods unused return value in oox,packageNoel Grandin2-6/+3
Change-Id: I63862c3ce32a1106b7de037f422e7e5480e8bfd6
2016-01-12loplugin:unusedmethods unused return value in include/ooxNoel Grandin10-41/+24
Change-Id: I22acb6b94774c5944d8276827c53a419f0803f83
2016-01-11oox: deterministic oleObject stream numberingMichael Stahl1-4/+2
... like in sw. Change-Id: I4ba5d404c4160e907330832b7710c1d96430badf
2016-01-10crashtesting: don't fail on export of fdo65321-3.ods to xlsxCaolán McNamara1-118/+128
with broken ole object Change-Id: I8dc9e1035893d5cb931d13eafcc3e3ec1c9c00d4
2016-01-10Fix typosAndrea Gelmini3-3/+3
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-08deleting a null pointer is fineMarkus Mohrhard1-4/+1
Change-Id: Iba329fae2d6882799a0d470590bb7bcfe88d1e92
2016-01-05tdf#96674 drawingML import: fix handling of zero width/height linesMiklos Vajna1-1/+12
Change-Id: If3d9f6272031e08ab228cfa58963d60ceede2498
2016-01-04these fields can be static constantsNoel Grandin1-3/+4
Change-Id: Id56e219782d7f858cdeb26232c7aabd4f643c9d9 Reviewed-on: https://gerrit.libreoffice.org/21020 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-12-26oox: change instances of maName to more descriptive namesChris Sherlock2-6/+6
Change-Id: Iee410ec4d256eb5b663d88e048d5bf6200845256 Reviewed-on: https://gerrit.libreoffice.org/20959 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2015-12-24loplugin:unusedfieldsNoel Grandin1-42/+19
Change-Id: I979592adb978c3757a1e54615021ee424a2e02bf Reviewed-on: https://gerrit.libreoffice.org/20892 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-12-23crashtesting: export of ooo40765-1.sxw to docx failsCaolán McNamara1-3/+3
Change-Id: I57d5e085e612908e7a22f444c771ec9fa45485ce
2015-12-22tdf#96051: FILESAVE: Roundtrip any PPTX file with Shapes creates invalid OOXMLZolnai Tamás1-3/+6
Revert "bnc#584721: Import subtitle block to master slides" This reverts commit b3d50feaa87b670baf68288974005ac26ad31736. It seems the imported subtitle block makes export corrupt the output. Better to have a valid output. Change-Id: I1a3d4f03e4fa0c4431a5394495682a1b9d7677bc
2015-12-22loplugin:unusedfields in oox,packageNoel Grandin13-34/+3
Change-Id: I8f8c3ff9ded455a09f3df81c501da17cca0b2310
2015-12-21loplugin:unusedmethodsNoel Grandin2-48/+0
Change-Id: Ifafdaf6da0225f244853a0042a6458643b570623
2015-12-20Bin leftover commented-out debugging call to dump_pset()Tor Lillqvist1-1/+0
Most likely wouldn't have compiled anyway if un-commented-out as I see no dump_pset here. Change-Id: I45a998251fb241a534d8f8ee9e57c2f4cba7df5c
2015-12-20oox: fix indentation of ShapeExport::WriteOLE2ShapeMichael Stahl1-134/+133
Change-Id: I9057cd9d574d545929a9f43f40f49164179a6dcc
2015-12-20oox: save ProgId on import, and use it in ShapeExport::WriteOLE2Shape()Michael Stahl3-6/+63
Uses the same approach as DOCX import to preserve the ProgID; it would be much better if the MediaType of the stream were preserved instead and the other things derived from that, but this here was rather quick to do... This makes the round-tripping of OOXML OLEs in PPTX work again, which was broken by an earlier commit. Change-Id: Ic7d0362f0c14bf0e522185713666bcd58db2cf64
2015-12-20move saveInteropProperties from writerfilter to ooxMichael Stahl1-0/+40
Change-Id: I4f9769ad496198d2d002775dee4ee0a2f08d6f3b
2015-12-20oox: stop pointlessly loading embedded objects to check if it's a chartMichael Stahl1-4/+12
This fixes SdExportTest::testBnc822341 again, because the conversion TryToConvertToOOo() in OleEmbeddedObject no longer breaks it. Change-Id: Ib968722af426123afa08865290e5a4e762f19070
2015-12-20oox: replace incomplete implementation of ShapeExport::WriteOLE2Shape()Michael Stahl1-84/+38
... with oox::GetOLEObjectStream(), and add the "progId" attribute while at it. Not sure what the "name" attribute is good for, it appears more like a unique name than some kind of type classification? This makes SdExportTest::testBnc822341 fail temporarily, and also breaks roundtripping of OOXML OLEs in PPTX files. Change-Id: I20043b2a414cf5a28eaa24adaf2ddeb737986250
2015-12-20factor out oox::GetOLEObjectStream() without sw dependenciesMichael Stahl1-0/+225
Change-Id: I32fa4b6b6d755b613b46b32d3b5961976335c76e
2015-12-15loplugin:findoncontainerNoel Grandin1-2/+1
Change-Id: Ie32abd917bf86ab0c44be80a00e5f35354bc3cdc
2015-12-14don't be creative and use a simple lookup tableDavid Tardon1-2/+21
The original code breaks at least in optimized build on Fedora x86, because there nBits for 256 is computed as 9, not 8. Change-Id: Ib157c415bc9e231bf7fd544349810e6bc83c8fcc
2015-12-11No need for a separate <vcl/graph.h>Tor Lillqvist1-1/+0
Change-Id: I962544005b5d408f7c044a02eefe09b87d8a81fe
2015-12-04Prefer STL container to manual reallocMiklos Vajna1-30/+12
Change-Id: Id586934c8ff635b1ec2b645b0956cc60960f6078
2015-11-30oox: better warning message on unhandled element in docprophandlerMiklos Vajna1-1/+1
Change-Id: I7ddd5290134ae3cc3b9f7427055537e79919b480
2015-11-30export date and time fields in impressRosemary1-2/+36
only those fields that are currently implemented in editeng/source/items/flditem.cxx and also match with those in the specification are exported Change-Id: I542cb0f827e161005e55452b5b6961dc642cd4e7 Reviewed-on: https://gerrit.libreoffice.org/20062 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2015-11-27Resolves: tdf#96072 export Chart format codes in Excel notationEike Rathke1-8/+21
As for the change in chart2/qa/extras/chart2export.cxx Chart2ExportTest::testAxisNumberFormatXLSX() unit test: also Excel writes string parts of format codes quoted, including minus sign in negative subformat. Change-Id: I201bb012df818129cbc65de0eee8eca59e57d829
2015-11-24loplugin:unusedfields in include/oox/Noel Grandin1-5/+4
Change-Id: Ie7a53f3ecc05d1d4f6f71aa8165315f9155c60dc
2015-11-24tdf#78902 VML import: workaround for extreme top marginMiklos Vajna1-9/+18
Regression from commit 2b78f2cd7b9e4bab0f3b3b9119238f36a1bbc7b2 (rhbz#988516: DOCX import: fix context stack when importing header/footer, 2014-03-05), though that just made an existing Writer layout problem visible. RTF/WW8/newer (drawingML) DOCX import doesn't have this problem, as those import pictures as sw graphics, not draw ones. <w10:wrap type="through"/> is normally mapped to our page wrap (as it uses "through" in the "not only wrap around, but also in the holes of the shape, if it has any" context, not in our "text should go through it, so no wrapping" one), but for some reason in this case (most probably due to the extreme large negative margins) Word handles the situation as our through, i.e. the text should not go to the second page, as it would normally happen with a "Word through" wrapping. Work around the strange situation by ignoring the wrapping request for extreme top margin values. Change-Id: I20555b1fa7a769e20c40a3a5ff3873807403e937
2015-11-23loplugin:unusedfields in oox,package,reportdesignNoel Grandin3-7/+2
Change-Id: I83d03dcc76b5f0d54ebb0513ae972acb0db8eef1
2015-11-20loplugin:sallogareasStephan Bergmann1-1/+1
Change-Id: Ib1f06cb5f925535858bc14aab6f59ad7fd2a3a8d
2015-11-19tdf#92527 construct default Segments sequence, when there is noneAndras Timar1-1/+14
Change-Id: I78ddbef3ac96f10f334c45a467dafb95bb9e3453 Reviewed-on: https://gerrit.libreoffice.org/20051 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2015-11-19tdf#90904 Sorry, mixed Characters and CharactersWithSpaces at a first timealexey.chemichev1-2/+8
Without this patch Windows Explorer shows different "Character count" for the same text saved with MSW an LO. Now both stats are explicitly exported this way: NonWhitespaceCharacterCount -> XML_Characters CharacterCount -> XML_CharactersWithSpaces Change-Id: I0a3b827629e88ab5e09aa8440e5f19e7fba2d831 Reviewed-on: https://gerrit.libreoffice.org/20058 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-11-19use comphelper::containerToSequenceNoel Grandin4-35/+13
in chart2, we remove a local equivalent of the method Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
2015-11-18tdf#90904 DOCX export metadata for "Pages", "Word count", "Character count"alexey.chemichev1-5/+25
/oox/source/core/xmlfilterbase.cxx: writeAppProperties modified. Stats are extracted from DocumentProperties->DocumentStatistics. No stat counter found for the lines of text Change-Id: Ibc2e848a97776f65f0bfd4a880e5279e9c507dd0 Reviewed-on: https://gerrit.libreoffice.org/20046 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-11-18pptx: import/export of honeycomb slide transitionTomaž Vajngerl2-0/+5
Change-Id: I3edb77d5b046691e64d600d61dcd44e892c31301
2015-11-18remove unused typedefs and inline use-once typedefsNoel Grandin1-1/+1
and improve the script a little Change-Id: I2792ea4dd5df3a50736fbe209225c3f16fb86b84 Reviewed-on: https://gerrit.libreoffice.org/20033 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15Fast PCH generator and optimized PCH filesAshod Nakashian1-357/+175
Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts (update_pch_autotune.sh) which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin3-6/+3
using variations of: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\)\; \s*OUString\* pArray.*; .*\[0\]\s*=\s*(\S+)\;/Sequence<OUString> \1 { \2 };/g" Change-Id: I03c64334ff30ee14dce0d17b67f5122a3893bbe3 Reviewed-on: https://gerrit.libreoffice.org/19971 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser syntax for Sequence<OUString>Noel Grandin1-2/+1
replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-13slideshow: add "glitter" slide transitionTomaž Vajngerl2-0/+5
Change-Id: Ie89b64c4399cd0092eee579660c9fe85f8ca8e73