summaryrefslogtreecommitdiff
path: root/oox
AgeCommit message (Collapse)Author
2015-11-04yyyyyNoel Grandin
Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
2015-11-02tdf#89088 DOCX import: fix missing text due to throwing ShapeContextHandlerMiklos Vajna
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
2015-10-30UNO: no need to use OUString constructor when calling createInstanceNoel Grandin
Change-Id: I37da28539b94706574116d0fff5f008aabfb5526 Reviewed-on: https://gerrit.libreoffice.org/19682 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-29Too much copy pasta is not good for youTor Lillqvist
Change-Id: Ie5a3cddd6fcf9d1a763284c1aea0fca579da4f8d
2015-10-27oox: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl
With one additional m_Effects.clear() in EffectProperties::assignUsed() to make it idempotent like it was before and avoid duplicating elements. Change-Id: I105535a2a250e682a5d6976e0c7f74374b1f31ac
2015-10-27Reduce scope of #include <tools/stream.hxx>Matteo Casalin
Change-Id: I0752cbb0cb2e0f89607d81d9eda7ce7091449fd6
2015-10-27sal_uIntPtr to sal_uInt64, sal_uLong to sal_Size for streamsMatteo Casalin
Change-Id: I062f1f6c5b20ca47734a9a3cd1a229d51763a206
2015-10-23Revert "oox: replace boost::ptr_vector with std::vector<std::unique_ptr>"Stephan Bergmann
This reverts commit d29e614ff9cd91c4e4a1bada6a21884e33323f8d, it broke CppunitTest_sd_export_tests. Change-Id: I908cc46cdf4df706ad64d04777b8e1401e0800c1
2015-10-23com::sun::star->css in lotuswordpro,mysqlc,ooxNoel Grandin
Change-Id: Id99ff87c4eb3f1b36702261ce63d5d2793ea35d7
2015-10-23oox: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl
Change-Id: I105535a2a250e682a5d6976e0c7f74374b1f31ac
2015-10-21chart series support hatches, tdf#94227Markus Mohrhard
Change-Id: Ib3a1ccda738091466d5e2866823f64b254ed5bab
2015-10-21more removal of com::sun::star typedefsNoel Grandin
Change-Id: Ia73f1b4f1dcfa3f0936359e744afe76e02dcd2eb
2015-10-20loplugin:defaultparamsStephan Bergmann
Change-Id: I52308fced25173f6a4b1c56c0c494e89fb5c1648
2015-10-20Turns out this was a non-debug buildStephan Bergmann
Change-Id: Ica14ca0cb2320f9787d48e93a2fb81910601ce70
2015-10-19Work around what looks like MSVC 2013 miscompilationStephan Bergmann
Change-Id: Ic2ed1b00d9d29f004f1e3cd60af863d6aafc7188
2015-10-19loplugin:defaultparamsStephan Bergmann
Change-Id: Id2c0a8dbfe7110f816360ca9eb2bbca8e2f55a30
2015-10-17coverity#1327457 Uninitialized scalar fieldCaolán McNamara
Change-Id: Idbad4c6d09fd2eb9a044d8193fc7101de63c02f5
2015-10-13Use nRadius value at least to decide between "rect" and "roundRect" presetsStephan Bergmann
(found by clang-analyzer-deadcode.DeadStores) Change-Id: I27ff1222295a151a7616ed380439b87d27866899
2015-10-13Reduce scope of variableStephan Bergmann
Change-Id: I07745fc47f5d7908c35045e83cb230d4e91a813a
2015-10-13clang-analyzer-deadcode.DeadStoresStephan Bergmann
ever since 68e756de2ec7f9aeb1b6a6a28468745eca114715 "n#657896 - Gradient Transparencies and Muticolor Gradient fills" moved the use of nDmlANgle (to set aGradient.Angle) from after the if/else to inside the else branch. According to vmiklos: "i guess it's just an oversight that the 'nDmlAngle = nShapeRotation;' is not removed in the 'if' branch." Change-Id: I63e449e01a83415d988d6616388d724449997f39
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
2015-10-12cppcheck:variableScopeNoel Grandin
Change-Id: I037feb335499629300309851dcda3bb661f03d4f Reviewed-on: https://gerrit.libreoffice.org/19316 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-09remove redundant codeRosemary
- Use the existing createHexStringFromDigit() to export hex digits as strings - The parameters offset and stream name are not required Change-Id: If9aab7816efb81655c40a11743e8951ab0b26e1d
2015-10-09correct creation of hex string from digitRosemary
Change-Id: I891a2a0b3e2194892bd4629c22b823902d18adc2
2015-10-09Convert hex string to upper caseRosemary
Change-Id: I5ccdfc62a8fd3521b6c4ee0029e70b41aaf4542e
2015-10-08blind fix for OSXMarkus Mohrhard
2015-10-08don't hardcode the project idMarkus Mohrhard
Now that we have the encryption we no longer need to use the hardcoded project id. Change-Id: I014aa35344960eb960d9b05b76a11f8d8d7e0de6
2015-10-08Generate random numbers for seedRosemary
Change-Id: I7527b0526a74c4d13036d58d904f2b7293c3463f
2015-10-08oox: loplugin:unreffunMiklos Vajna
Change-Id: I8ee7d5690495bb089ab57da0d7ad6e31bb2154b7
2015-10-08oox: loplugin:loopvartoosmallMiklos Vajna
Change-Id: Id2f2275f1f1bdb94b032bcf3cd34e486c9620940
2015-10-08The correct size of length is 4Rosemary
Change-Id: I8735e68e1094e40f989ebc0a8a3926c9e2f06fd4
2015-10-08add test for projkey generationMarkus Mohrhard
Change-Id: I42957abbdcf396830713d7ca4eb7539e6c110e11
2015-10-08Correct export for strings of hexadecimal digitsRosemary
Change-Id: Ie71cca63cc4ac277c57516348f4c15f5bb2395c3
2015-10-08add initial tests for vba encryptionMarkus Mohrhard
Change-Id: Ic6128ecade39e8947863c9162523e0d9690f0026
2015-10-08Implement encryption for the VBA exportRosemary
Change-Id: Id994095de9f43cf0c2857272b613abe7cbd9324e
2015-10-07tdf#88154 workaround and unit testMarco Cecchetti
Fixed 45-degree layout for axis labels, too. Change-Id: I9764e281aeee0a439fa9eec1e3b0df840221b72f Reviewed-on: https://gerrit.libreoffice.org/18889 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
2015-10-01tdf#94559: third step to remove rtti.hxxOliver Specht
replaced use of PTR_CAST, IS_TYPE, ISA in oox, reportdesign, svl, svtools, svx, tools Change-Id: I1f85ff92267a0668eba625fa61b4f07feb8f3d4e Reviewed-on: https://gerrit.libreoffice.org/19002 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-09-30Fix typosAndrea Gelmini
Change-Id: I013414cf10e25acd5216643855aaa230258a1b5f Reviewed-on: https://gerrit.libreoffice.org/18962 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-09-29Renamed wrongly prefixed boolean variablesStefan Heinemann
Fixed tdf#94269 Change-Id: I63109cc4e095bad680d7637a065080ea368860ae Reviewed-on: https://gerrit.libreoffice.org/18851 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-09-29Remove newly meaningless commentStephan Bergmann
...after d35adb0835eb57ca6ef0576781a87d829c2689d0 "Retain the original project name" Change-Id: I9b351c79914bf31f2afcc69f3888fee9ea8b10ed
2015-09-29Retain the original project nameRosemary
Only the default project name is VBAProject. Change-Id: I11bfee4d395b79b86a944bf9b6809ef2215eb9c1
2015-09-28remove outputLength variable when calculating encryption verifierTomaž Vajngerl
Change-Id: I144957b64ba2b693db61c17e42b08014124f8c99
2015-09-27OOXML with VBA needs to be a different filter typeMarkus Mohrhard
The filter type also contains the file format, so we need to use a different type to keep the xlsm extension during export. Now the only missing part is the warning that saving as the non-VBA version will loose the VBA stream. Change-Id: I11f78d2c33cb2834086a4e9fad141b3e374b8991
2015-09-25better OOXML VBA exportMarkus Mohrhard
Change-Id: If02aa26e974b0f16b45c5476234c6425fd128ae4
2015-09-25export correct id for workbook streamMarkus Mohrhard
Change-Id: I03fa8243fa6472a75fc0881ba47c631e3730e5d3
2015-09-18Fix typosAndrea Gelmini
Change-Id: I021589aeca9ef6bceb1c828c2197f5ff58f85b09 Reviewed-on: https://gerrit.libreoffice.org/18707 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-09-18Workaround unit test failure by comparing as longMatúš Kukan
On 32bit system, for some reason casting to double gives wrong results. Failing unit test was testTdf87924 in CppunitTest_sw_ooxmlimport. Change-Id: If93e5288a381e50f30d035d56131b1d9235ac658 Reviewed-on: https://gerrit.libreoffice.org/18684 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-09-17boost->stdCaolán McNamara
Change-Id: Ifde84627578283bd057d7393eb7e5578ef5c029a
2015-09-14oox: loplugin:stringconstantMiklos Vajna
Change-Id: I16804662a1616f0c1f1dd434e6ae48660529a349