summaryrefslogtreecommitdiffstats
path: root/oox
Commit message (Collapse)AuthorAgeFilesLines
* Resolves: tdf#96072 export Chart format codes in Excel notationEike Rathke2015-11-271-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
* loplugin:unusedfields in include/oox/Noel Grandin2015-11-241-5/+4
| | | | Change-Id: Ie7a53f3ecc05d1d4f6f71aa8165315f9155c60dc
* tdf#78902 VML import: workaround for extreme top marginMiklos Vajna2015-11-241-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
* loplugin:unusedfields in oox,package,reportdesignNoel Grandin2015-11-233-7/+2
| | | | Change-Id: I83d03dcc76b5f0d54ebb0513ae972acb0db8eef1
* loplugin:sallogareasStephan Bergmann2015-11-201-1/+1
| | | | Change-Id: Ib1f06cb5f925535858bc14aab6f59ad7fd2a3a8d
* tdf#92527 construct default Segments sequence, when there is noneAndras Timar2015-11-191-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>
* tdf#90904 Sorry, mixed Characters and CharactersWithSpaces at a first timealexey.chemichev2015-11-191-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>
* use comphelper::containerToSequenceNoel Grandin2015-11-194-35/+13
| | | | | | in chart2, we remove a local equivalent of the method Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
* tdf#90904 DOCX export metadata for "Pages", "Word count", "Character count"alexey.chemichev2015-11-181-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>
* pptx: import/export of honeycomb slide transitionTomaž Vajngerl2015-11-182-0/+5
| | | | Change-Id: I3edb77d5b046691e64d600d61dcd44e892c31301
* remove unused typedefs and inline use-once typedefsNoel Grandin2015-11-181-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>
* Fast PCH generator and optimized PCH filesAshod Nakashian2015-11-151-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>
* use initialiser for Sequence<OUString>Noel Grandin2015-11-153-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>
* use initialiser syntax for Sequence<OUString>Noel Grandin2015-11-151-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>
* slideshow: add "glitter" slide transitionTomaž Vajngerl2015-11-132-0/+5
| | | | Change-Id: Ie89b64c4399cd0092eee579660c9fe85f8ca8e73
* Namespace cleanup and disambiguationAshod Nakashian2015-11-121-1/+1
| | | | | | | | Change-Id: Ib6d2f8b4e71436c3a7c26bdfc9847152ebaf0739 Reviewed-on: https://gerrit.libreoffice.org/19900 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* tdf#85232 WPG import: fix handling of line shapesMiklos Vajna2015-11-111-2/+11
| | | | | | | The missing convertMm100ToTwip() calls mispositioned the line shapes inside the groupshape in case of using drawingML inside DOCX files. Change-Id: I0c9d652de43d779f9073a8bfe22866ce4f31d0fa
* loplugin:nullptr (automatic rewrite)Stephan Bergmann2015-11-10100-514/+514
| | | | Change-Id: I62a20b440064aca6f102e61cb3984bb95e739a4f
* Clean up Sequence constructionStephan Bergmann2015-11-091-66/+44
| | | | | | | | | | ...to avoid silly errors like the one fixed with 37039fde1187c2e71bdde6e7fafd23c6ae8a871e "Missing comma." Change-Id: Iab4d25f44fd8867ee1ef5e15c209ada5c6ebb0c8 Reviewed-on: https://gerrit.libreoffice.org/19871 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* Missing commaStephan Bergmann2015-11-091-1/+1
| | | | Change-Id: Ia2497902771b78130b6263885bdb3362d1e6c76c
* loplugin:passstuffbyrefStephan Bergmann2015-11-091-1/+1
| | | | Change-Id: Ibcab688c042e32a81b936573503c4a9066244161
* pptx: "fall" transition, which needed p15 namespaceTomaž Vajngerl2015-11-098-0/+34
| | | | | | | | | | | Added p15 namespace which is present in MSO 2013+ documents. It adds a "prstTrans" element with a string "prst" attribute which is a name of the transition to be performed. This was added to support "fall" transition which translates to "fallOver" preset transition. Change-Id: I429bb106a12c1b99cce756502508e917720daef3
* pptx: import "Vortex" and "Ripple" transition + testTomaž Vajngerl2015-11-092-0/+10
| | | | Change-Id: I29d71e9c07c4964275c13772cdb6042624550acb
* new loplugin: oncevarNoel Grandin2015-11-093-54/+15
| | | | | | | Change-Id: If57390510dde4d166be3141b9f658a7453755d3f Reviewed-on: https://gerrit.libreoffice.org/19815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:stringconstantStephan Bergmann2015-11-081-1/+1
| | | | Change-Id: I33876585b5a406231954013051bc7f61045226b0
* oox: check for namespace in MCE is flawed, use a namespace listTomaž Vajngerl2015-11-081-7/+13
| | | | | | | | | | | | | | | | In "AlternateContent" nodes we have to check if we support the namespace which is provided in "Requires" attribute of "Choice". Currently we tried to resolve the namespace with a call to the xml filter, however this doesn't work as the filter is already gone. In writerfilter we also have to handle a similar situation but there we just compare it to a list of predefined namespace alias ("wps" and "wpg"). This commit adds a list of supported namespace aliases to fragmenthandler2 instead of the namespace checking to support the "p14" namespace alias correctly. Change-Id: I25c430b97336c9e140bb5641a76a60895734b91f
* add p14 namespace to xmlfilterbaseTomaž Vajngerl2015-11-081-2/+4
| | | | Change-Id: I34d253e9f5bdfff14f1940544ae5bbb019bf506b
* pptx: import outside/insde turning cube transitionTomaž Vajngerl2015-11-082-0/+16
| | | | Change-Id: I12f668aca158a8c868ecaeb37f6724852308a515
* oox: define p14 namespace in strict, define P14_TOKENTomaž Vajngerl2015-11-083-1/+6
| | | | Change-Id: I9c92b9a637f43fd425cd0741e480b72ee5cff919
* oox: p14 namespace (MSO 2010) + tokens for slide transitionsTomaž Vajngerl2015-11-082-0/+23
| | | | Change-Id: I72d1901ceb2e43e459efb197cb72bd701c7d8f63
* pptx: import/export of "cut through black" transitionTomaž Vajngerl2015-11-081-3/+1
| | | | | | | | "Cut through black" is not supported in ppt so we detectit only in pptx specific export code. This needed some changes in the pptx code for exporting transitions. Change-Id: Ibc7361311017b3ffadd289db4e8ae233e1101ea8
* pptx: fix export of newsflash transitionTomaž Vajngerl2015-11-081-3/+2
| | | | Change-Id: I0e34e1b8860b9142d3171246d41bb528e710d10c
* loplugin:stringconstant: elide explicit ctor usage (manually due to macros)Stephan Bergmann2015-11-062-5/+5
| | | | Change-Id: Ic8c87b17d0c2c1b18b01a44ababee0daccf1fb28
* loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann2015-11-063-10/+10
| | | | Change-Id: Ia944d081842753fcf82f77bda82defe1d5566b37
* use uno::Reference::set method instead of assignmentNoel Grandin2015-11-043-4/+4
| | | | Change-Id: I11822c50fa66d038a3d6f38054ab35c2e613f077
* yyyyyNoel Grandin2015-11-044-62/+36
| | | | Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
* tdf#89088 DOCX import: fix missing text due to throwing ShapeContextHandlerMiklos Vajna2015-11-021-1/+1
| | | | | | | | | | | | | | | | | | | Regression from commit 866a4436d3cfac1ff42d7996250bf96fb703aeaa (oox: handle textboxes in ShapeContextHandler::endFastElement(), 2014-06-04), the problem was that code in ShapeContextHandler::endFastElement() assumed that all the XShape implementation it may see provides a TextBox UNO property (which is specific to Writer) of type bool, but this is not true. Fix the problem by assuming false in case it has an other type. Testcase can be a simple "does it load" one, as in the meantime exceptions such as trying to read a bool from an uno::Any make the DOCX XFilter::filter() implementation return false, unlike in the originally reported LibreOffice 4.4 version that just silently discarded the remaining content of the document. Change-Id: I81781a7ec28d085ceee50d386b8eda023f83c29f
* UNO: no need to use OUString constructor when calling createInstanceNoel Grandin2015-10-301-1/+1
| | | | | | | Change-Id: I37da28539b94706574116d0fff5f008aabfb5526 Reviewed-on: https://gerrit.libreoffice.org/19682 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Too much copy pasta is not good for youTor Lillqvist2015-10-299-534/+465
| | | | Change-Id: Ie5a3cddd6fcf9d1a763284c1aea0fca579da4f8d
* oox: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl2015-10-274-25/+43
| | | | | | | With one additional m_Effects.clear() in EffectProperties::assignUsed() to make it idempotent like it was before and avoid duplicating elements. Change-Id: I105535a2a250e682a5d6976e0c7f74374b1f31ac
* Reduce scope of #include <tools/stream.hxx>Matteo Casalin2015-10-271-0/+1
| | | | Change-Id: I0752cbb0cb2e0f89607d81d9eda7ce7091449fd6
* sal_uIntPtr to sal_uInt64, sal_uLong to sal_Size for streamsMatteo Casalin2015-10-271-14/+14
| | | | Change-Id: I062f1f6c5b20ca47734a9a3cd1a229d51763a206
* Revert "oox: replace boost::ptr_vector with std::vector<std::unique_ptr>"Stephan Bergmann2015-10-234-42/+25
| | | | | | | This reverts commit d29e614ff9cd91c4e4a1bada6a21884e33323f8d, it broke CppunitTest_sd_export_tests. Change-Id: I908cc46cdf4df706ad64d04777b8e1401e0800c1
* com::sun::star->css in lotuswordpro,mysqlc,ooxNoel Grandin2015-10-2367-518/+521
| | | | Change-Id: Id99ff87c4eb3f1b36702261ce63d5d2793ea35d7
* oox: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl2015-10-234-25/+42
| | | | Change-Id: I105535a2a250e682a5d6976e0c7f74374b1f31ac
* chart series support hatches, tdf#94227Markus Mohrhard2015-10-211-0/+1
| | | | Change-Id: Ib3a1ccda738091466d5e2866823f64b254ed5bab
* more removal of com::sun::star typedefsNoel Grandin2015-10-211-3/+2
| | | | Change-Id: Ia73f1b4f1dcfa3f0936359e744afe76e02dcd2eb
* loplugin:defaultparamsStephan Bergmann2015-10-202-2/+2
| | | | Change-Id: I52308fced25173f6a4b1c56c0c494e89fb5c1648
* Turns out this was a non-debug buildStephan Bergmann2015-10-201-1/+1
| | | | Change-Id: Ica14ca0cb2320f9787d48e93a2fb81910601ce70
* Work around what looks like MSVC 2013 miscompilationStephan Bergmann2015-10-191-1/+6
| | | | Change-Id: Ic2ed1b00d9d29f004f1e3cd60af863d6aafc7188