summaryrefslogtreecommitdiff
path: root/oox
AgeCommit message (Collapse)Author
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
2015-09-10Related: tdf#93676 in msword chart appears with axis positioned between ticksCaolán McNamara
Change-Id: Ibd16d255a45a220faf7681a74785549c32969f78
2015-09-10remove old commentMarkus Mohrhard
Change-Id: Ibf40c2c2f35832114eb74d32f05e87a5cfe7d810
2015-09-10always write \r\n instead of \n for source code in vba exportMarkus Mohrhard
Change-Id: Ib036ade472b9da4e12153cd0af796df29e750015
2015-09-10remove vba header from source codeMarkus Mohrhard
We add the header during import but should not export it. Change-Id: I2bab6b9dda50dab396fb8023212b1c6f0f035401
2015-09-10pass objects by const referenceMarkus Mohrhard
Change-Id: I67fb51c54edbcb877a2f840f30e93910909748ab
2015-09-10Export the PROJECT streamRosemary
Change-Id: I6cc72602c93ac6da64ca32a3ade526d089ce583a
2015-09-10the correct stream name is PROJECTwmMarkus Mohrhard
Change-Id: I82d12a9451670ab181996d3ab8ec1a8fa32ce86c
2015-09-10Export PROJECTwm streamRosemary
Change-Id: I06515a31b2587d3b3aa5bda03b47d228c563db54
2015-09-10Fix the module export codeRosemary
Change-Id: I56d239927d8a83b2b71f52da36394710a52b0a06
2015-09-10Export the module streamsRosemary
Change-Id: I132c71e06307dbb0a381d85a6d2ba7a9bd1dd5ec
2015-09-10Make the existing code genericRosemary
Modify the calls to the writePROJECTMODULE method within the writePROJECTMODULES method which are currently specific to the example document Change-Id: I20db96e6c4eb1009f7bc81bec3490b9084532854
2015-09-10also dump the module source codeMarkus Mohrhard
2015-09-10Write _VBA_PROJECT stream to a binary fileRosemary
The stream is written according to the MS-OVBA specification. Conflicts: oox/source/ole/vbaexport.cxx Change-Id: Icc63c988435d9b3bed8fdd499b80a17713f3794f
2015-09-10handle different callers for vba export codeMarkus Mohrhard
This now integrates it correctly with the XLS code, the XLSX one requires a bit more work to copy the stream to the OOXML file. Change-Id: Ic853ce795fc2ac2941083a76fd0a8cad7c6add09
2015-09-10we don't need that code anymoreMarkus Mohrhard
Change-Id: I77b5816a4e7743494444b0ac2366164a3bc5d13d
2015-09-10get correct vba project nameMarkus Mohrhard
Change-Id: I48efd62ca1df00b8a0cbecb01b394814ca40c2e9
2015-09-10small refactoring in the vba export codeMarkus Mohrhard
Change-Id: I68a7c7700b8405f4fe2b75516deff684f21e256c
2015-09-10add remaining test from spec for vba compressionMarkus Mohrhard
That test is testing the case that a sequence can not be compressed at all. Change-Id: I98d1065919acc9688d713ea09bf578c325b1f821
2015-09-10add another test from the VBA spec for the compression codeMarkus Mohrhard
Change-Id: I5368e30bbb383621153c31ae8705cff6df7dad90
2015-09-10add test from the VBA spec for the compression algorithmMarkus Mohrhard
Change-Id: I41d5aca8940e34b41e2cc70a72b6e076707bfac6
2015-09-10export the vba OLE container correctlyMarkus Mohrhard
Change-Id: Ic4b0db9dc69079be4ebe686d0c7a8edc91c41fa5
2015-09-10also log the module typeMarkus Mohrhard
2015-09-10list all libraries used in the documentMarkus Mohrhard
2015-09-10forgot to add the test makefileMarkus Mohrhard
Change-Id: If68972ac8e0f464869660e60e9bd54197ed0e5e6
2015-09-10add complext vba compression testMarkus Mohrhard
This is based on my real world test document. Change-Id: I6e6c38aa1ced7fe836a8926c26aa7d488d44e6d9
2015-09-10fix some of the vba compression testsMarkus Mohrhard
Change-Id: Icfb9b63206fe22641ebdef76619fe70e1f5d5e04
2015-09-10add one more test for vba compressionMarkus Mohrhard
Change-Id: Iba6b4e7b5d26ac7943f72e2a5b3d5d2dc4fc95fd
2015-09-10write compressed stream to a temporary fileMarkus Mohrhard
Change-Id: I4791ec65961129475bb81491dcf681295fcfdea6
2015-09-10add first vba compression testMarkus Mohrhard
Change-Id: I9e3abebb0ac932b46f7fc96cd37d39023b783af2