summaryrefslogtreecommitdiff
path: root/oox
AgeCommit message (Collapse)AuthorFilesLines
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann88-324/+324
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann1-2/+2
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
2015-10-12cppcheck:variableScopeNoel Grandin1-1/+1
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 codeRosemary1-54/+40
- 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 digitRosemary1-1/+1
Change-Id: I891a2a0b3e2194892bd4629c22b823902d18adc2
2015-10-09Convert hex string to upper caseRosemary1-1/+1
Change-Id: I5ccdfc62a8fd3521b6c4ee0029e70b41aaf4542e
2015-10-08blind fix for OSXMarkus Mohrhard1-0/+1
2015-10-08don't hardcode the project idMarkus Mohrhard1-11/+8
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 seedRosemary1-2/+8
Change-Id: I7527b0526a74c4d13036d58d904f2b7293c3463f
2015-10-08oox: loplugin:unreffunMiklos Vajna1-0/+4
Change-Id: I8ee7d5690495bb089ab57da0d7ad6e31bb2154b7
2015-10-08oox: loplugin:loopvartoosmallMiklos Vajna1-1/+1
Change-Id: Id2f2275f1f1bdb94b032bcf3cd34e486c9620940
2015-10-08The correct size of length is 4Rosemary1-1/+1
Change-Id: I8735e68e1094e40f989ebc0a8a3926c9e2f06fd4
2015-10-08add test for projkey generationMarkus Mohrhard2-15/+29
Change-Id: I42957abbdcf396830713d7ca4eb7539e6c110e11
2015-10-08Correct export for strings of hexadecimal digitsRosemary1-14/+28
Change-Id: Ie71cca63cc4ac277c57516348f4c15f5bb2395c3
2015-10-08add initial tests for vba encryptionMarkus Mohrhard4-8/+150
Change-Id: Ic6128ecade39e8947863c9162523e0d9690f0026
2015-10-08Implement encryption for the VBA exportRosemary1-0/+134
Change-Id: Id994095de9f43cf0c2857272b613abe7cbd9324e
2015-10-07tdf#88154 workaround and unit testMarco Cecchetti2-2/+65
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 Specht3-3/+3
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 Gelmini5-5/+5
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 Heinemann1-3/+3
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 Bergmann1-1/+1
...after d35adb0835eb57ca6ef0576781a87d829c2689d0 "Retain the original project name" Change-Id: I9b351c79914bf31f2afcc69f3888fee9ea8b10ed
2015-09-29Retain the original project nameRosemary1-8/+8
Only the default project name is VBAProject. Change-Id: I11bfee4d395b79b86a944bf9b6809ef2215eb9c1
2015-09-28remove outputLength variable when calculating encryption verifierTomaž Vajngerl1-4/+2
Change-Id: I144957b64ba2b693db61c17e42b08014124f8c99
2015-09-27OOXML with VBA needs to be a different filter typeMarkus Mohrhard1-2/+4
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 Mohrhard1-1/+33
Change-Id: If02aa26e974b0f16b45c5476234c6425fd128ae4
2015-09-25export correct id for workbook streamMarkus Mohrhard1-6/+16
Change-Id: I03fa8243fa6472a75fc0881ba47c631e3730e5d3
2015-09-18Fix typosAndrea Gelmini1-1/+1
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úš Kukan1-1/+1
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 McNamara12-36/+30
Change-Id: Ifde84627578283bd057d7393eb7e5578ef5c029a
2015-09-14oox: loplugin:stringconstantMiklos Vajna1-1/+1
Change-Id: I16804662a1616f0c1f1dd434e6ae48660529a349
2015-09-14tdf#91293: Preserve hyperlink on URL field OOXML exportKatarina Behrens1-18/+22
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 Bergmann1-0/+4
Change-Id: Ic355d203ea24af8bd13b09c004434f2e15ee3175
2015-09-14now we can also open the vba project in the MS vba editorMarkus Mohrhard2-29/+100
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 Mohrhard1-1/+8
Change-Id: I378d96f65fbeb2c529eae6a9c90ef7c0ecccc97d
2015-09-14fix the vba document module code exportMarkus Mohrhard1-2/+12
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 Mohrhard1-12/+71
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 Mohrhard1-1/+1
Change-Id: I89ae01c34f6a7faf62b97cf28220f7700a7241b7
2015-09-12coverity#1323913 Uninitialized pointer fieldCaolán McNamara1-4/+9
Change-Id: Ibcaac09b90f5f2bfa466b94dbb91bb75ae32e7ff
2015-09-12coverity#1323912 Improper use of negative valueCaolán McNamara1-3/+4
Change-Id: I7c403ccb40bfddee2e30ba10e755187490857596
2015-09-10include algorithm for std::minCaolán McNamara1-0/+1
Change-Id: I7b57b8f1c86b3ed1e31467fc7c094b3520d4e74e
2015-09-10fix windows buildCaolán McNamara1-4/+5
Change-Id: Ibd768bef633de63ad3f7e826eb8044e04c1159ae
2015-09-10oox: work around Android build problemMiklos Vajna1-1/+1
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 Bergmann1-0/+3
...after b15b372c7cc64315e14c7600429f0995ed2b2666 "structure for vba export" broke it; moggi, please revisit Change-Id: I9cf1614b05ebad64898d0e62cfeb4cd2e24dc9e0
2015-09-10Missing includeStephan Bergmann1-0/+4
Change-Id: Ie8a045c82311556f79b8b37704fcd04c19614048
2015-09-10loplugin:cstylecastNoel Grandin1-14/+14
Change-Id: I237ee6cf764d5bca9147e6d5e0bbb1162ece06ac
2015-09-10loplugin:literaltoboolconversionNoel Grandin1-1/+1
Change-Id: I037b1978ddf69e4348913af1ccdc953a1e825d1e
2015-09-10loplugin:cstylecastNoel Grandin1-1/+1
Change-Id: Id42868685afabd42854655cb2fc5a48f932c888a
2015-09-10Related: tdf#93676 in msword chart appears with axis positioned between ticksCaolán McNamara1-0/+11
Change-Id: Ibd16d255a45a220faf7681a74785549c32969f78
2015-09-10remove old commentMarkus Mohrhard1-1/+0
Change-Id: Ibf40c2c2f35832114eb74d32f05e87a5cfe7d810
2015-09-10always write \r\n instead of \n for source code in vba exportMarkus Mohrhard1-1/+2
Change-Id: Ib036ade472b9da4e12153cd0af796df29e750015