summaryrefslogtreecommitdiff
path: root/oox
AgeCommit message (Collapse)AuthorFilesLines
2014-02-25Resolves: #i118640# force early destruction of last FragmentHandler...Armin Le Grand1-0/+13
to not let it use an already destroyed RelationsMap instance (cherry picked from commit 190444f7fd3fa9cfcd1955b3f5dcd916184d02f4) Conflicts: oox/source/core/xmlfilterbase.cxx Change-Id: Ibd09ff9fcba8f919df0704c8e3a64423518b932f (cherry picked from commit b071ce32befcc84a57a7ecd39667cb6658c0c866)
2014-02-24we only support simple labels in the InternalDataProvider, bnc#864396Markus Mohrhard1-0/+28
Change-Id: Ie31c5c73bb5185125fd4493c4e476997e2e9bc63 Reviewed-on: https://gerrit.libreoffice.org/8190 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
2014-02-24OOXML chart import: ignore rot values outside the valid rangeAndras Timar1-0/+5
Change-Id: I506a78a024d761d1d263a7bb1dcbf09a4bbcf4ef
2014-02-18prevent invalid OOXML files with trendlines, related #i88825#Markus Mohrhard1-7/+18
Change-Id: I503b24233060400cf4bbb40701bec0a3e101512a Reviewed-on: https://gerrit.libreoffice.org/8095 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-02-13fdo#73860 n#828390: New line is dropped while importing text.Muthu Subramanian1-0/+1
(cherry picked from commit 840f4fc4d677740fc4b0ebcb658f4a828e184dad) Signed-off-by: David Tardon <dtardon@redhat.com> Change-Id: Id36181f64bd154d271446ef27a124a81af5c8620
2014-02-11fix crash during file format detection, related #i101863#Markus Mohrhard1-1/+4
Change-Id: I2aec2e95f49ab70a9e94c5d52f70855f4381a24e Reviewed-on: https://gerrit.libreoffice.org/7986 Tested-by: Kohei Yoshida <libreoffice@kohei.us> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
2014-02-06rhbz#1017379 do not remove too much from the pathDavid Tardon1-1/+4
Change-Id: Ibffa7f2fbe91be9b95217ce36999e286ef444a37 (cherry picked from commit 5b35f21f1c69239d0605b0751bed87a410fbffee) Reviewed-on: https://gerrit.libreoffice.org/7896 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2014-01-24Use sal_Int32 to satisfy oox/helper/helper.hxx's convertLittleEndianDouglas Mencken3-4/+17
Fixes build error "no matching function for call to oox::ByteOrderConverter::convertLittleEndian(int&)" workaround rather maddening endian-specific template bustage together these two master patches hopefully fix the PPC build (also includes: Change-Id: I69dc97c93ef5efe8d71074ac3eca06a3bbc45253) Change-Id: I899f151ff99737247ce4090f59897eba842c40ba Reviewed-on: https://gerrit.libreoffice.org/7099 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-on: https://gerrit.libreoffice.org/7607 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-07fdo#72998: Custom shapes have improper size.Muthu Subramanian1-0/+6
Change-Id: I4f8b7f80f89ad713e274acf6fc93bb415e660baf
2013-12-04Add a means to check if a namespace exists.Kohei Yoshida4-1/+28
Useful when we just need to check if the stream has a certain namespace defined. Calling getNamespaceURL() may throw SAXException in such case. Change-Id: Ib2b7b202492390158270d87bab95d1793c9d8a70
2013-12-04oox: accelerate common case boolean reading.Michael Meeks1-0/+13
2013-12-04fastparser: Avoid copying all tokens into a sequence.Michael Meeks2-10/+7
2013-12-03fdo#71434: don't show master text if PlaceHolder types definedKorrawit Pruegsanusak1-3/+20
I've added all of valid PlaceHolder types from http://www.schemacentral.com/sc/ooxml/t-p_ST_PlaceholderType.html (cherry picked from commit bb1213a740b3b3b2b1967639939dd7a72c6d4237) Change-Id: I038fe43ff83699f92ff5eb9945bce12540058478 Reviewed-on: https://gerrit.libreoffice.org/6822 Reviewed-by: Muthu Subramanian K <muthusuba@gmail.com> Tested-by: Muthu Subramanian K <muthusuba@gmail.com> Reviewed-by: Thorsten Behrens <thb@documentfoundation.org> Tested-by: Thorsten Behrens <thb@documentfoundation.org>
2013-12-03Support regression curve name in OOXML (import & export).Tomaž Vajngerl3-11/+20
Change-Id: I847e0df4f160e4b5078961a0e77c1e1e3fff9bd4 Reviewed-on: https://gerrit.libreoffice.org/6875 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Reviewed-by: Thorsten Behrens <thb@documentfoundation.org> Tested-by: Thorsten Behrens <thb@documentfoundation.org>
2013-12-02Allow worker threads to use their own FastParser instances.Kohei Yoshida1-84/+86
To prevent deadlock during threaded sheet stream parsing. It now deadlocks at a different place. Conflicts: oox/source/core/xmlfilterbase.cxx sc/source/filter/oox/workbookfragment.cxx Change-Id: I0ba0f2c9a257e71b0a340ab14e369b06d5fd8829
2013-12-01fix 2D vs 3D coordinatesystem regression, fdo#67300Markus Mohrhard1-2/+2
regression from 088e86b865062dd4cc5ba0c85c6068dea62238db
2013-12-01fix validation error for OOXML chart export, related fdo#67300Markus Mohrhard1-2/+5
Change-Id: I7d74439bba3b912fe9b81ebeca865298bc32d71e
2013-11-22oox: avoid per element allocation and freeing of OUStringBuffers.Michael Meeks1-2/+2
Change-Id: Ie4d4d7740ae002422f73a3bfc57e1fe1ad67e50f
2013-11-22getChar() to return a null-terminated char array.Kohei Yoshida1-8/+6
No need to fetch string size with this change. Change-Id: Iae5f6c60430fc57985a0fec5bfec59727e5a8f0f
2013-11-22Compiler warning.Kohei Yoshida1-1/+1
Change-Id: I66b16e9767369fd54611f92d66cd1b43f4e8c5a8
2013-11-20Expose raw char array and use it to avoid OUString allocations.Kohei Yoshida1-0/+12
In SheetDataContext::importCell(). Change-Id: I52db64219f672ea5fbbda17686bf1173ceac5926
2013-11-20fastparser: avoid excessive alloc/frees for int / bool / double parsingMichael Meeks1-7/+20
Change-Id: I596bbc723558f04588d9e767d64732164524e57a
2013-11-19oox: tokenize wps:cNvCnPrMiklos Vajna2-0/+3
Change-Id: I4d7a962e01f5a41c3ea629f73433416195f2259c
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin2-13/+13
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-15fdo#71581: Use pictureFrame for images.Muthu Subramanian1-1/+1
Which would be a simple rect instead of the complicated shape.
2013-11-14fdo#65295 - fix gradient focus issueAdam Co1-1/+1
There was a wrong 'if' statement, that checked if the focus was over 75% and also if the angle was less than 180. If so - it compensated for that by adding 180 degrees to the angle (and losing the 'focus' attribute). But it should do that even if the angle is more than 180 degrees, so this was fixed. Reviewed on: https://gerrit.libreoffice.org/6647 Change-Id: Ib2dc8a61359e656721c5c6c99587d4d547eed835
2013-11-14fdo#70457: Preserve rotation of embedded bitmaps from docxJacobo Aragunde Pérez1-0/+3
When importing bitmaps coming from VML code, we were mistakenly ignoring rotation information: we have just added it to the existing XShape object. In the case of bitmaps expressed in DrawingML, the code was transforming them into SwXTextGraphicObjects which don't have rotation information. We are now preventing that transformation when rotation value differs from zero, leaving the XShape object that was built in the first pass through the document. Added a unit test. Conflicts: sw/qa/extras/ooxmlimport/ooxmlimport.cxx Reviewed on: https://gerrit.libreoffice.org/6484 Change-Id: I40100f8919894e48c005f8ed445bb5cad4f58d8b
2013-11-14fdo#70838: Fix size issue when exporting shapes to docx.Jacobo Aragunde Pérez1-9/+1
We were saving the size of the rotated shape bounding box in the docx file but that size was being interpreted as the size of the original, unrotated shape. Now VMLExport::Commit will use the dimensions of the rectangle received as a parameter to save to the file instead of those returned by SdrAttrObject ->GetSnapRect Change-Id: I53670db77f5e5320a87579dcd56617d5ccf1851a Reviewed-on: https://gerrit.libreoffice.org/6432 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-11-14Move MediaDescriptor from comphelper to unotoolsStephan Bergmann6-11/+9
...so it will be able to use SvtSecurityOptions internally. Change-Id: Id7433247e8fc53651935578510bedbcca5aa2ac9
2013-11-14Make requestAndVerifyDocPassword var with MediaDescriptor a mem fn of latterStephan Bergmann1-2/+2
Change-Id: I645d554c7ce592d93ca0696fa7e6068ce40c9058
2013-11-14remove unnecessary sal_Unicode casts in OOX moduleNoel Grandin11-28/+28
Change-Id: I2b9f26cb500a9e56f5860bd1b483ed284b84f50d
2013-11-13n#828390: Export subscript text.Muthu Subramanian1-0/+13
2013-11-13oox: initial import of wps:wspMiklos Vajna5-1/+135
We import something that's visible, but the shape is always inline, even when it has to be anchored. Change-Id: I6e20aa1a208f06731098ad21bb51c1ca840213d0
2013-11-13oox: add support for the wps namespaceMiklos Vajna3-0/+3
The plan is that once these are here, the writerfilter ooxml tokenizer can refer to them. And then the writerfilter will call back to oox to do the real drawingml import. Change-Id: I1f860d1ade21cde767ad259d46b8d38ff167662f
2013-11-12 #65836- Fix for exporting image inside vml data was corrupting file.sushil_shinde1-2/+7
- Handled exporting of image for all type of format in vmlexport. - fixed issue - .rels file was not getting exported for vmlexport. - Not handled for .wmf image (will work on it) Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Reviewed on: https://gerrit.libreoffice.org/6369 Change-Id: I9ccf7a36ae316a658f06d1074caa4e4b2f5d271f
2013-11-11convert OUString compareToAscii == 0 to equalsAsciiNoel Grandin6-7/+7
Convert code like aStr.compareToAscii("XXX") == 0 to aStr.equalsAscii("XXX") which is both easier to read and faster. Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
2013-11-11convert OUString !compareToAscii to equalsAsciiNoel Grandin1-3/+3
Convert code like if( ! aStr.compareToAscii("XXX") ) to if( aStr.equalsAscii("XXX") ) which is both clearer and faster. Change-Id: I267511bccab52f5225b291acbfa4e388b5a5302b
2013-11-05update pchThomas Arnhold1-0/+8
Change-Id: I10f3dbd9513052b3bbe30ddc6523cd231f26ded3
2013-11-04oox: use proper integer type when calling PK11_DigestFinalMichael Stahl1-1/+1
Change-Id: I5ff79c55446bd9f3e350fb128793ffef51be843f
2013-10-31Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin1-1/+1
This is both an optimisation and a cleanup. This converts code like aStr.indexOf("XX") == 0 to aStr.startsWith("XX") and converts code like aStr.lastIndexOf("XXX") == aStr.getLength() - 3 to aStr.endsWith("XXX") Note that in general aStr.lastIndexOf("X") == aStr.getLength() - 1 converts to aStr.isEmpty() || aStr.endsWith("X") so I used the surrounding context to determine if aStr could be empty when modifying the code. Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-10-29cppcheck: duplicate break or break which follows a returnJulien Nabet1-1/+0
Change-Id: I0985d28289e31969cb9b048b221abfae1572025d
2013-10-23fixincludeguards.sh: ooxThomas Arnhold27-81/+56
Change-Id: Ibc1fb5c149461d6030749a974c6d37aa11ad0e16
2013-10-23mark as copy and pasteThomas Arnhold2-0/+4
Change-Id: I315e6d2d75ec15655f0c926339b5af0e50a1190f
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist1-1/+1
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-22n#839727: Crash fix.Muthu Subramanian1-1/+2
2013-10-22n#839727: Chart missing dataset.Muthu Subramanian1-0/+19
This was because there is no explicit category in the chart - while libreoffice expects it.
2013-10-20wrong comparisonCaolán McNamara1-1/+1
regression since ed338bc212725f422f0def21aafc82f05e350646 Change-Id: Ia5dfe7a551abe244c313d3bdb2b90196fc0c6ba2
2013-10-20drop unnecessary tools/string includesCaolán McNamara4-5/+0
Change-Id: I4278999b9b7d184c26036bbe9e3b98420f461e8c
2013-10-17oox: special-case single-character a-z token mapping.Michael Meeks1-0/+14
Change-Id: I58a810cc6062d5b42558dd5c0f37426a8a210f40
2013-10-17fdo#54938: Adapt svtools and comphelper module ...Marcos Paulo de Souza3-34/+7
to use cppu::supportsService and other pieces. Change-Id: I16893b3d31a8055acd214ff23d01e63d38fe0826 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>