summaryrefslogtreecommitdiff
path: root/oox
AgeCommit message (Collapse)Author
2013-09-13Avoid crash when a comment contains data, but no textKatarina Behrens
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
2013-09-11n#834720: Labels wrongly interpreted as dates.Muthu Subramanian
If the numFormat is available we should probably use that.
2013-09-11oox: Smart-Art DOMs stored in the InteropGrabBagAndres Gomez
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>
2013-09-09n#834722: Chart shown flipped.Muthu Subramanian
Auto and manual axis positioning seems to cause a problem. Needs to be tested with more charts.
2013-09-07s/wiki.services.openoffice.org/wiki.openoffice.org/gAndras Timar
Change-Id: I059fbee385a109069c70f3869021c8e2ee48fee1
2013-09-06bnc#779642 VML import: handle drawinglayer rectangle char spacingMiklos Vajna
Change-Id: I79fa72c9235682030d23a03fdb0c7c40370c4a8a
2013-09-06bnc#779642 VML import: handle drawinglayer rectangle insetMiklos Vajna
Change-Id: If8b064ca9a52bb02ff41f07e00142702a29df818
2013-09-06bnc#779642 VML import: import result of sdt fieldsMiklos Vajna
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
2013-09-06CID#1078768: pass big parameter by referenceMarkus Mohrhard
Change-Id: I423e6e0b3a7c16461765b5086f729cce028c4b6e
2013-09-05update pchThomas Arnhold
Change-Id: I6d5e8d3fd69189935a3338fee19b60022f70a7eb
2013-09-05CID#1078784 and CID#1078785 fix memory leaksMarkus Mohrhard
Change-Id: I5a878bfb0a6947616b1d0bfaad2541bb46903676
2013-09-05bnc#779642 VML import: fix TextHorizontalAdjust when layout-flow is verticalMiklos Vajna
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
2013-09-04oox: Enhancing the debugging outputAndres Gomez
Change-Id: Ifc055befd5d7436d44e95ce105c52f3c4f061796 Reviewed-on: https://gerrit.libreoffice.org/5768 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-09-01Remove some unused code from unusedcode.easyMarcos Paulo de Souza
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>
2013-08-24Forgotten one SAL_CALL in AgileDocumentHandlerTomaž Vajngerl
Change-Id: I28ad4fe77c9c8474f4f650e9ea5ab309be307fb5
2013-08-24and also add SAL_CALL to AgileTokenHandlerTomaž Vajngerl
Change-Id: I9b88fe7c932ba2d1b94eeeff7d35b1d011117316
2013-08-24Encryption: and add exceptions to methods that need itTomaž Vajngerl
Change-Id: I8101f00bc4820ec3100e2c08a9dd21248c909081
2013-08-24Convert vector block* to const array block*.Tomaž Vajngerl
Looks like my compiler eats a lot of things thrown at him but others don't. Change-Id: If1d080a545e6c2a17e19b389eeb1714aa0569644
2013-08-24fdo#35422 Support to open encrypted Office 2010 and 2013 formatsTomaž Vajngerl
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
2013-08-23VML import: fix default value of mso-wrap-distance-left/rightMiklos Vajna
Change-Id: I2168358076d9c5ce3271b21cd5a541e51aa502f9
2013-08-22fdo#67737 : fix for flip not being imported & rendered correctlyRi GangHu
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
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-16VML import of mso-wrap-distance-{left,right,top,bottom}Miklos Vajna
Change-Id: Ib16be0bf83120ed7aeb01f29634d51421fc351c8
2013-08-16n#831457: Recommiting the patch.Muthu Subramanian
Fixed the test cases - false negatives.
2013-08-15Sprinkle more warnings into the generated custom shape preset source filesTor Lillqvist
Change-Id: I1c19e8a7d775b1c37649dd36b611d145fd4ce47e
2013-08-15Update the custom shape preset source files to actually be generatedTor Lillqvist
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
2013-08-15Work on the custom shape preset generationTor Lillqvist
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
2013-08-15fdo#56976: Remove duplicate upDownArrow and add upArrow definitionTor Lillqvist
See http://social.msdn.microsoft.com/Forums/en-US/73038923-5081-4591-9f50-088454ca9e27/probable-bug-with-updownarrowuparrow. Change-Id: Ibab5a0e16c40df8caa8abe760c78e54e5cc096b0
2013-08-15Reverting fix - because the unit test seems to be failing.Muthu Subramanian
2013-08-15n#831457: Placeholders text size is not correct.Muthu Subramanian
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.
2013-08-15Move OOXML decryption to DocumentCrypt.Tomaž Vajngerl
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
2013-08-15sal_Bool to boolTakeshi Abe
Change-Id: If1d8a48e115cd7fbaa0032791275b3b49684d748
2013-08-15Mark as constTakeshi Abe
Change-Id: Ic7ee570935b5d827dc01a483877ea5021da5abea
2013-08-15warning C4702: unreachable codeMichael Stahl
Change-Id: I1fcd578955a1f65921c8891916e239bc6f0b9748
2013-08-14WaE: array subscript is above array boundsTor Lillqvist
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
2013-08-14WaE: unused function 'lclReadEncryptionInfo'Tor Lillqvist
Change-Id: I5c98b96b77b1366884bdc593cf29d32d4e60de7b
2013-08-14Remove printf statementTomaž Vajngerl
Change-Id: Ibae83ef39dec7270c287ee04e38efa0bc5af48ac
2013-08-14fdo#59524 Also write sheet length so MS Office will open it.Tomaž Vajngerl
Change-Id: I44407a15ca338bc7a24b5de8f8a60ad4e4f2b03d
2013-08-14fdo#59524 Encryption for MS Office 2007 Spreadsheet documentsTomaž Vajngerl
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
2013-08-13RTF import: handle rotation on groupshapesMiklos Vajna
Change-Id: I7892224a118b6566e26b3ffc472c88f3c7f58620
2013-08-12VML import: handle rotation on groupshapesMiklos Vajna
Change-Id: I37f0081ae0a8af838c9f5bf158b340d726d7d1a3
2013-08-09Fix timezone && fractional second handling of GetDateTimeFromW3CDTFLionel Elie Mamane
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>
2013-08-05bnc#593612: workaround for grpFillFelix Zhang
Change-Id: Ib75f2e5e0d77b5a65c6d3d75e7dd477251948bcc
2013-07-29Mark as constTakeshi Abe
Change-Id: Ib78b25641ae20a3eb23545649f08b963e34c74ff
2013-07-24fdo#60990 VML export: fix handling of v:fill's on attributeMiklos Vajna
Change-Id: I8230a80b6a530b172e02a08a1a4dd201f533670a
2013-07-19n#820077: Use duotone with GraphicProperties as well.Muthu Subramanian
2013-07-17n#820077: Import images with duotone filter.Muthu Subramanian
Also, contains implementation for a simple duotone filter.
2013-07-16fdo#66929: fix for default textbox inset valuesAdam Co
Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Change-Id: I0e9fa5e73e802f85f02c3fcc5c276ed0c1cb2a58
2013-07-15explicitly export no fill to .docx when fillstyle is set to none (bnc#581614)Luboš Luňák
The shapes have detectmouseclick="t" for some reason, leading to the v:fill tag being written, but the default is solid fill, so if there's otherwise actually no fill, explicitly say so. Change-Id: I2a8d24ce4d0da1082b4eefbad0db51e2e6fe1bc9
2013-07-15i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.Michael Stahl
Add IsUTC member to: com.sun.star.util.DateTime com.sun.star.util.DateTimeRange com.sun.star.util.Time Add new stucts with explicit time zones: com.sun.star.util.DateTimeWithTimezone com.sun.star.util.DateWithTimezone com.sun.star.util.TimeWithTimezone Adapt the sax::Converter to read/write timezones, and fix the unit test. Everything else just uses default (no time zone), this commit is just to fix the API. STRUCT: /UCR/com/sun/star/util/DateTime nFields1 = 7 != nFields2 = 8 Registry2 contains 1 more fields STRUCT: /UCR/com/sun/star/util/DateTimeRange nFields1 = 14 != nFields2 = 15 Registry2 contains 1 more fields STRUCT: /UCR/com/sun/star/util/Time nFields1 = 4 != nFields2 = 5 Registry2 contains 1 more fields Conflicts: sc/source/filter/oox/unitconverter.cxx Change-Id: I01f7a6d082a6b090c8efe71d2de137474c495c18 Reviewed-on: https://gerrit.libreoffice.org/4833 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>