summaryrefslogtreecommitdiff
path: root/oox
AgeCommit message (Collapse)Author
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
2015-09-14tdf#91293: Preserve hyperlink on URL field OOXML exportKatarina Behrens
The fix is twofold: 1.Get URL property from the underlying text field, not from the text run -- put text field properties into rXPropSet (that's what GETA macro later queries), not into rRun 6a043e9c0acff20e1618ca8ec15c21d5d0fd0d37 does s/rXPropSet/rRun/ afaics for no good reason 2. Retrieve string content from URL field early, so that the test for empty text content doesn't fire Change-Id: I4317e4a2f6f2e6f15c30932adc80f1227e010af0 Reviewed-on: https://gerrit.libreoffice.org/18031 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-09-14loplugin:unreffunStephan Bergmann
Change-Id: Ic355d203ea24af8bd13b09c004434f2e15ee3175
2015-09-14now we can also open the vba project in the MS vba editorMarkus Mohrhard
If I use another GUID I can't open the project. Change-Id: Idfd642daaa0e6fb9f3b9bcfc6e1ba467c035bf05
2015-09-14move a little bit closer to the export from MSOMarkus Mohrhard
Change-Id: I378d96f65fbeb2c529eae6a9c90ef7c0ecccc97d
2015-09-14fix the vba document module code exportMarkus Mohrhard
After some debugging it seems that MSO gets totally confused if these entries are missing. I need to look into MS-VBAL to make them more generic but at least that allows me to execute the macro in the exported files. Change-Id: I9648647323f87b2765c96950f470193f1a60bb9e
2015-09-14introduce a special vba export debug modeMarkus Mohrhard
In that mode we can write back existing files as part of the vba stream. That allows us to create files that contain to some part out of existing VBA streams. So we have streams that we know are correct and streams that are new from us. Change-Id: I1be04207f887146d9824f97d17866fda440f93a7
2015-09-14don't use VBA_EXPORT_DEBUG in masterMarkus Mohrhard
Change-Id: I89ae01c34f6a7faf62b97cf28220f7700a7241b7
2015-09-12coverity#1323913 Uninitialized pointer fieldCaolán McNamara
Change-Id: Ibcaac09b90f5f2bfa466b94dbb91bb75ae32e7ff
2015-09-12coverity#1323912 Improper use of negative valueCaolán McNamara
Change-Id: I7c403ccb40bfddee2e30ba10e755187490857596
2015-09-10include algorithm for std::minCaolán McNamara
Change-Id: I7b57b8f1c86b3ed1e31467fc7c094b3520d4e74e
2015-09-10fix windows buildCaolán McNamara
Change-Id: Ibd768bef633de63ad3f7e826eb8044e04c1159ae
2015-09-10oox: work around Android build problemMiklos Vajna
Android seems to be missing std::log2(), see <https://code.google.com/p/android/issues/detail?id=68906>. Change-Id: Iab335cec0c9c5fac0908579a65ea2d434ce2f68a Reviewed-on: https://gerrit.libreoffice.org/18466 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-09-10Attempt at making CppunitTest_sc_macros_test work againStephan Bergmann
...after b15b372c7cc64315e14c7600429f0995ed2b2666 "structure for vba export" broke it; moggi, please revisit Change-Id: I9cf1614b05ebad64898d0e62cfeb4cd2e24dc9e0
2015-09-10Missing includeStephan Bergmann
Change-Id: Ie8a045c82311556f79b8b37704fcd04c19614048
2015-09-10loplugin:cstylecastNoel Grandin
Change-Id: I237ee6cf764d5bca9147e6d5e0bbb1162ece06ac
2015-09-10loplugin:literaltoboolconversionNoel Grandin
Change-Id: I037b1978ddf69e4348913af1ccdc953a1e825d1e
2015-09-10loplugin:cstylecastNoel Grandin
Change-Id: Id42868685afabd42854655cb2fc5a48f932c888a