summaryrefslogtreecommitdiffstats
path: root/oox
Commit message (Collapse)AuthorAgeFilesLines
* Related bnc#819614: Set the position and name immediately.Jan Holesovsky2013-09-162-9/+3
| | | | Change-Id: I4c1046040f52e261004df95125b53e42dc8fca4b
* Related bnc#819614: The diagram is a group.Jan Holesovsky2013-09-162-9/+2
| | | | | | | | It is not really desired to import diagrams broken into individual objects; makes trouble with the hieararchy, and also the user wants to see it as a group - can be ungrouped for modifications easily. Change-Id: I0533a69af9e377804bf0e06b2ce873fd0c9bde02
* Save should encrypt OOXML document if it was loaded encrypted.Tomaž Vajngerl2013-09-155-67/+30
| | | | | | | | Currently Agile encryption is not supported, so all documents loaded with "agile" encryption will be encrypted with "standard" encryption when they are saved afterwards. Change-Id: Id0477f43c00ed70032ca6b3390eebb1105d5ffa7
* Avoid crash when a comment contains data, but no textKatarina Behrens2013-09-131-1/+5
| | | | | | | | | calling back() on empty vector results in undef behaviour Crash originally reported here: http://lists.freedesktop.org/archives/libreoffice/2013-September/055827.html Change-Id: Ibefdc7e2495fc31d748c16fedd3cee5eb957bfa2
* n#834720: Labels wrongly interpreted as dates.Muthu Subramanian2013-09-111-3/+1
| | | | If the numFormat is available we should probably use that.
* oox: Smart-Art DOMs stored in the InteropGrabBagAndres Gomez2013-09-114-39/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The XDocuments representing the DOM documents of a DrawingML diagram (Smart-Art) are now stored as the PropertyValues "OOXData", "OOXLayout", "OOXStyle", "OOXColor" and "OOXDrawing" into the "InteropGraBag" property of the parent SvxGroupShape created from such diagram. Modified the oox::drawingml::dgm::Diagram class to be able to hold the map storing the XDocuments and its names. Added the getDomMap() method to obtain the map directly and the getDomsAsPropertyValues method to get the map as a sequence of Property Values. Modified the methods for importing and loading the Smart-Art into the Diagram so they add automatically the DOM documents to it. Modified the oox::drawingml::Shape class to be able to hold the sequence of PropertyValues storing the XDocuments and its names coming from the oox::drawingml::dgm::Diagram class. Added the getDiagramDoms() and setDiagramDoms() methods. Enhanced the oox::shape::ShapeContextHandler::getShape() method to add the extended drawing document to the oox::drawingml::Shape class. Modified the oox::drawingml::Shape::createAndInsert() method to store the sequence of XDocuments in the "InteropGrabBag" property of the GroupShape service SvxGroupShape implementation representing a Smart-Art. Change-Id: I7d0b9dfbfc9d5299ddd25fab394e5e9a422d1dd1 Reviewed-on: https://gerrit.libreoffice.org/5849 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
* n#834722: Chart shown flipped.Muthu Subramanian2013-09-091-1/+2
| | | | | Auto and manual axis positioning seems to cause a problem. Needs to be tested with more charts.
* s/wiki.services.openoffice.org/wiki.openoffice.org/gAndras Timar2013-09-071-1/+1
| | | | Change-Id: I059fbee385a109069c70f3869021c8e2ee48fee1
* bnc#779642 VML import: handle drawinglayer rectangle char spacingMiklos Vajna2013-09-062-0/+20
| | | | Change-Id: I79fa72c9235682030d23a03fdb0c7c40370c4a8a
* bnc#779642 VML import: handle drawinglayer rectangle insetMiklos Vajna2013-09-061-0/+9
| | | | Change-Id: If8b064ca9a52bb02ff41f07e00142702a29df818
* bnc#779642 VML import: import result of sdt fieldsMiklos Vajna2013-09-061-0/+5
| | | | | | | We can't have e.g. placeholder fields on drawinglayer rectangles, but at least the result of the field is now imported. Change-Id: I135f205c4231645f11f824495993c4dbea4135ed
* CID#1078768: pass big parameter by referenceMarkus Mohrhard2013-09-061-1/+1
| | | | Change-Id: I423e6e0b3a7c16461765b5086f729cce028c4b6e
* update pchThomas Arnhold2013-09-051-3/+19
| | | | Change-Id: I6d5e8d3fd69189935a3338fee19b60022f70a7eb
* CID#1078784 and CID#1078785 fix memory leaksMarkus Mohrhard2013-09-051-5/+5
| | | | Change-Id: I5a878bfb0a6947616b1d0bfaad2541bb46903676
* bnc#779642 VML import: fix TextHorizontalAdjust when layout-flow is verticalMiklos Vajna2013-09-051-0/+11
| | | | | | | | The shape had no special properties about hori/vert text adjustment, so it should be hori left / vert top. Then it has vertical layout-flow, so vert should be top and hori should be right (vert was center). Change-Id: Ia89d8587b6a822ead45198dc5d1ba23907cc3567
* oox: Enhancing the debugging outputAndres Gomez2013-09-042-23/+24
| | | | | | | Change-Id: Ifc055befd5d7436d44e95ce105c52f3c4f061796 Reviewed-on: https://gerrit.libreoffice.org/5768 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* Remove some unused code from unusedcode.easyMarcos Paulo de Souza2013-09-011-19/+0
| | | | | | | Change-Id: Ic3e96eebbb914c5b905a8c58532ead9cb01dd41d Reviewed-on: https://gerrit.libreoffice.org/5721 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Forgotten one SAL_CALL in AgileDocumentHandlerTomaž Vajngerl2013-08-241-1/+1
| | | | Change-Id: I28ad4fe77c9c8474f4f650e9ea5ab309be307fb5
* and also add SAL_CALL to AgileTokenHandlerTomaž Vajngerl2013-08-241-7/+7
| | | | Change-Id: I9b88fe7c932ba2d1b94eeeff7d35b1d011117316
* Encryption: and add exceptions to methods that need itTomaž Vajngerl2013-08-241-8/+26
| | | | Change-Id: I8101f00bc4820ec3100e2c08a9dd21248c909081
* Convert vector block* to const array block*.Tomaž Vajngerl2013-08-241-10/+11
| | | | | | | Looks like my compiler eats a lot of things thrown at him but others don't. Change-Id: If1d080a545e6c2a17e19b389eeb1714aa0569644
* fdo#35422 Support to open encrypted Office 2010 and 2013 formatsTomaž Vajngerl2013-08-249-626/+1261
| | | | | | | | | | | | Additionally encryption and decryption has been refactored. 2 engines have been added: AgileEngine and Standard2007Engine, which contain core functions for encryption and decryption. Standard2007Engine refers to encryption and decryption as used in Office 2007 and AgileEngine refers to encryption and decryption as used in Office 2010 and 2013. AgileEngine does not yet support encryption. Change-Id: Ica1d4d5a109fb204012b92a0c39325fe0b99b793
* VML import: fix default value of mso-wrap-distance-left/rightMiklos Vajna2013-08-231-4/+9
| | | | Change-Id: I2168358076d9c5ce3271b21cd5a541e51aa502f9
* fdo#67737 : fix for flip not being imported & rendered correctlyRi GangHu2013-08-222-17/+48
| | | | | | | | | | Signed-off-by: Adam Co <rattles2013@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/5272 Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Change-Id: I5c8440edad0381e33b64f64bb54aa8f1bc304007
* finish deprecation of O(U)String::valueOf()Luboš Luňák2013-08-2115-38/+38
| | | | | | | Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
* VML import of mso-wrap-distance-{left,right,top,bottom}Miklos Vajna2013-08-162-0/+23
| | | | Change-Id: Ib16be0bf83120ed7aeb01f29634d51421fc351c8
* n#831457: Recommiting the patch.Muthu Subramanian2013-08-161-0/+3
| | | | Fixed the test cases - false negatives.
* Sprinkle more warnings into the generated custom shape preset source filesTor Lillqvist2013-08-157-0/+564
| | | | Change-Id: I1c19e8a7d775b1c37649dd36b611d145fd4ce47e
* Update the custom shape preset source files to actually be generatedTor Lillqvist2013-08-156-1263/+1287
| | | | | | | | | They had been edited manually a couple of times... (Instead in the previous commits I edited the generating script and the input data.) Change-Id: I3c89d021450a3c3e64055991450c205251fdd41f
* Work on the custom shape preset generationTor Lillqvist2013-08-154-20/+64
| | | | | | | | | | | | Don't generate code that uses the old RTL_CONSTASCII_USTRINGPARAM horror. Update the README file to have actually working command lines, and at the same time make it into a shell script that can actually be run. Use SAL_INFO with tag oox.cscode to output the stuff that the generatePresetsCXX.pl is looking for. Change-Id: I3f8f756fbe8e35857c2bd07beece0f3ab4234e7f
* fdo#56976: Remove duplicate upDownArrow and add upArrow definitionTor Lillqvist2013-08-151-34/+17
| | | | | | | See http://social.msdn.microsoft.com/Forums/en-US/73038923-5081-4591-9f50-088454ca9e27/probable-bug-with-updownarrowuparrow. Change-Id: Ibab5a0e16c40df8caa8abe760c78e54e5cc096b0
* Reverting fix - because the unit test seems to be failing.Muthu Subramanian2013-08-151-3/+0
|
* n#831457: Placeholders text size is not correct.Muthu Subramanian2013-08-151-0/+3
| | | | | | | Placeholders (or shapes without text imported from the files) have wrong font size. This is because the size (and probably other text attributes) aren't applied from the mastertextlist to the shape itself.
* Move OOXML decryption to DocumentCrypt.Tomaž Vajngerl2013-08-152-646/+433
| | | | | | | | OOXML decryption was implemented in filterdetect. With this the decryption was moved to a common place where it shares functions and constants with encryption. Change-Id: Id334daf7c2eb1e18735d6a500132f6bb61bb3ba0
* sal_Bool to boolTakeshi Abe2013-08-151-18/+18
| | | | Change-Id: If1d8a48e115cd7fbaa0032791275b3b49684d748
* Mark as constTakeshi Abe2013-08-151-1/+1
| | | | Change-Id: Ic7ee570935b5d827dc01a483877ea5021da5abea
* warning C4702: unreachable codeMichael Stahl2013-08-151-1/+0
| | | | Change-Id: I1fcd578955a1f65921c8891916e239bc6f0b9748
* WaE: array subscript is above array boundsTor Lillqvist2013-08-141-1/+11
| | | | | | | | | Avoid a (presumably bogus) warning produced by gcc 4.7 and 4.8, at least those in the Android NDK, in an optimising compilation. As such the code probably was OK, even if a bit ugly and suboptimal, as it doesn't seem to be sure whether various buffer lengths should be hardcoded or can be variable, etc. Change-Id: I29790cb7a9cb65735e4ebb9a1a198f8575282ecf
* WaE: unused function 'lclReadEncryptionInfo'Tor Lillqvist2013-08-141-26/+0
| | | | Change-Id: I5c98b96b77b1366884bdc593cf29d32d4e60de7b
* Remove printf statementTomaž Vajngerl2013-08-141-1/+0
| | | | Change-Id: Ibae83ef39dec7270c287ee04e38efa0bc5af48ac
* fdo#59524 Also write sheet length so MS Office will open it.Tomaž Vajngerl2013-08-141-1/+10
| | | | Change-Id: I44407a15ca338bc7a24b5de8f8a60ad4e4f2b03d
* fdo#59524 Encryption for MS Office 2007 Spreadsheet documentsTomaž Vajngerl2013-08-144-1/+579
| | | | | | | | This enables saving of MS 2007 spreadsheet documents with a password. The encryption used is the same as used in Office 2007 (however different than in Office 2010 and 2013 which use "agile" encryption). Change-Id: I3539e811d95b6f9178246ab269d13bb385a48bd2
* RTF import: handle rotation on groupshapesMiklos Vajna2013-08-131-1/+1
| | | | Change-Id: I7892224a118b6566e26b3ffc472c88f3c7f58620
* VML import: handle rotation on groupshapesMiklos Vajna2013-08-121-3/+10
| | | | Change-Id: I37f0081ae0a8af838c9f5bf158b340d726d7d1a3
* Fix timezone && fractional second handling of GetDateTimeFromW3CDTFLionel Elie Mamane2013-08-091-13/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) The timezone correction was inverted. Imagine we are parsing "2004-03-02T14:18:20+02". Before correction, aOslDTime contains "2004-03-02 14:18:20". According to the comment, we want to convert that to UTC time, so we have to *subtract* 2 hours, not *add* two hours. From http://www.w3.org/TR/NOTE-datetime: A time zone offset of "+hh:mm" indicates (...) a local time zone which is "hh" hours and "mm" minutes *ahead* of UTC. So if it is 14:18:20 in the timezone two hours ahead of UTC, it is two hours *earlier* in UTC, namely 12:18:20, and we need to *subtract* two hours, not *add* two hours. 2) Handling of fractions of a second was buggy: It reads only one digit after the dot. This could be a valid implementation decision to handle only deciseconds. However: 1) It then multiplies that by 10^9 (10e8 == 10*10^8, not 10^8!), and sticks that in the NanoSeconds field... That is 10 times too big: 0.3s == 3*10^8 ns 2) If there were additional digits, it then looks for the timezone offset specificator (beginning with '+' or '-') at these additional digits; it does not skip them: nOptTime is set to 0+3+2, i.e. to 5. Change-Id: I4738dc069e37f29c8bbd9e689689a933027af840 Reviewed-on: https://gerrit.libreoffice.org/4743 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
* bnc#593612: workaround for grpFillFelix Zhang2013-08-051-3/+2
| | | | Change-Id: Ib75f2e5e0d77b5a65c6d3d75e7dd477251948bcc
* Mark as constTakeshi Abe2013-07-292-2/+2
| | | | Change-Id: Ib78b25641ae20a3eb23545649f08b963e34c74ff
* fdo#60990 VML export: fix handling of v:fill's on attributeMiklos Vajna2013-07-241-1/+1
| | | | Change-Id: I8230a80b6a530b172e02a08a1a4dd201f533670a
* n#820077: Use duotone with GraphicProperties as well.Muthu Subramanian2013-07-191-15/+21
|
* n#820077: Import images with duotone filter.Muthu Subramanian2013-07-172-1/+42
| | | | Also, contains implementation for a simple duotone filter.