summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-03-08enable ODF export validationMarkus Mohrhard
Change-Id: I09f517a49507a2eb31118f88f31dc2ff8b03de6a
2014-03-08Fix types in a testJacobo Aragunde Pérez
Change-Id: I2f857f564e100cc4cf6b885c5a8f96e506b4046f
2014-03-08ooxml: fix export of empty date controlsJacobo Aragunde Pérez
The text contained in the <sdtContent> tag acts both as a help message to the user and as the actual data; for example, Word 2010 is able to set the date of the control from the text in the content if the w:fullDate attribute in <date> tag is not set. For that reason we should not use the sdtContent as the "HelpText" property of the control in any case, only when it is empty. The name of the parameter rDefaultText was modified to reflect that string does not represent any default text, only the content of the <sdtContent> tag. Change-Id: Ic10334a949969ec8c7c3e25f73fb937a50ee0f7f TODO: is it worth to internationalize the help text?
2014-03-08ooxml: export date controls properlyJacobo Aragunde Pérez
Export date controls as ooxml Standard Document Tags (SDT) instead of replacing them with plain text. SDT date controls contain the date in ISO format as an attribute of <date> tag, a custom date format that can be specified by the user in the <dateFormat> tag and the date formatted in that custom format in the <w:sdtContent> tag. The unit test testFormControl from ooxmlexport suite was removed, it only checked if the date control was exported as text and it obviously fails now. A new test that checks the values of the exported control was written instead. A pair of date format functions were added to datetimeutils.hxx. TODO: to avoid supporting all the posible custom formats that can be specified in the <dateFormat> tag, it is forced to dd/mm/yyyy on export. Change-Id: I9d1b6f840ee9e133831fdb04ad399fe31bcb2063
2014-03-08writerfilter: import date into docx date controlsJacobo Aragunde Pérez
Date controls specified by <sdt> tags in docx documents were being imported but the date was being discarded. To import the date, we added an attribute to the CT_SdtDate resource in the ooxml model file to be able to read the date ISO definition contained by the fullDate attribute. We store it in the SdtHelper class and we transform it in a Date when the control is created. Change-Id: Iac2d4f99c31188848c109fafb54121bfcdde060d
2014-03-08unotools: extractDate and extractTime functionsJacobo Aragunde Pérez
Added a pair of functions to split a UNO DateTime object into the corresponding Date and Time objects. Change-Id: I6bf31d83b3843a9482d6bf538a5dd7130c2c7046
2014-03-08unotools: improve date parser to support timezonesJacobo Aragunde Pérez
ISO8601 defines timezones with formats like 'Z', '+01', '-08:30' or '+0830' at the end of the datetime string, but our parser was failing when the string contained any timezone information. I have modified the parser so it doesn't fail in case of the string contains a timezone. Moreover, I check that the timezone definition is correct according to the standard [1] and I extract it to the string tokTz. Unfortunately UNO Time class doesn't contain any field to store the timezone, only the boolean field IsUTC, which I fill accordingly. TODO: add a timezone field to UNO and fill it from the parser. [1] https://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators Change-Id: I9d33b19efbc6d41a74b02ece2dfa12fa12fac5eb
2014-03-08Translate German stringJacobo Aragunde Pérez
Change-Id: Ib936712a8dd49a7130057aebf0ba529e65eb2c66
2014-03-08coverity#707884 Uninitialized scalar fieldCaolán McNamara
Change-Id: I21810eac9579b536017b8187497d04dbbc0109c6
2014-03-08coverity#707879 Uninitialized scalar fieldCaolán McNamara
Change-Id: I618fa64876dc27a3d3ced9281f1b02b97a983166
2014-03-08coverity#707878 Uninitialized scalar fieldCaolán McNamara
Change-Id: I80289d98a5ce58a539516d08d1fc37258ca97e52
2014-03-08coverity#707877 Uninitialized scalar fieldCaolán McNamara
Change-Id: I9454da6940f4d63f916e655b237d78fc701025e9
2014-03-08coverity#708370 Uninitialized scalar fieldCaolán McNamara
Change-Id: I9496ce4f5b5233e700aac0a46794e391929d7fbc
2014-03-08coverity#708374 unused mbPolygonIsLine memberCaolán McNamara
Change-Id: I1c171cf237927b7a118a947ea914407c06d4a863
2014-03-08coverity#708376 Uninitialized scalar fieldCaolán McNamara
Change-Id: Ia7c44a27679ee4f4deb6a99ac0f44d31c1f642a7
2014-03-08coverity#708378 Uninitialized scalar fieldCaolán McNamara
Change-Id: Id0e463abec7434ee1609071651dce16c9357f205
2014-03-08coverity#1130369 Dereference after null checkCaolán McNamara
Change-Id: Id931c038f3715ea69a798de4b14b46dfa9d2afda
2014-03-08coverity#1190360 Unintended sign extensionCaolán McNamara
Change-Id: I1fa3a668d47190af3197801a4d99e135d50e2088
2014-03-08coverity#1190346 silence Unchecked return valueCaolán McNamara
Change-Id: If6223276d2d45431a674047b9540d4ac3eb71395
2014-03-08fix OOXML validation errorMarkus Mohrhard
Change-Id: Ib87eadad99285e19d73f4de58690de501084293c
2014-03-08fix OOXML validaition errorMarkus Mohrhard
Change-Id: I26e063cd1971d980583e884ca2f4e0ba9d9391ad
2014-03-08remove one more debug outputMarkus Mohrhard
Change-Id: Ib4b94d2a7e429721299fd07db4bd7a97c7773c0d
2014-03-08fix OOXML validation error, related fdo#36731Markus Mohrhard
Missing elements for gradient fill background export. Change-Id: Ib3ed3b5e353d3b02dffa5c118e14fd2187bd924a
2014-03-08fix OOXML validation error, related fdo#42698Markus Mohrhard
Missing percentage sign in type. The values of XML_d and XML_sp seem insane. Change-Id: If6762ed70d3536c0eeea3ee687991dad60f5e71e
2014-03-08remove whitespacesMarkus Mohrhard
Change-Id: I7937b154d0417876634711224ed5678eefa2654d
2014-03-08copy&paste from xmloffMiklos Vajna
Change-Id: I3d700c439fa7112f391f464f744d6e0dcb8e43cf
2014-03-08unused OOXMLUniversalMeasureValue ctorMiklos Vajna
Change-Id: I4f956cc9aeab0ad761076f25e920c79cdb75c115
2014-03-08writerfilter: remove no longer needed doctok/resources.xmiMiklos Vajna
Change-Id: Ieda9780452af21aef40b925eff6693b8098e91f7
2014-03-08writerfilter: remove no longer needed doctok/resourcetools.xslMiklos Vajna
Change-Id: I378df2ddfc0912610b5f0d674c2a76601f4440c8
2014-03-08writerfilter: remove no longer needed doctok/sprmcodetostr.xslMiklos Vajna
Change-Id: I4dcb2a6e73b95054204e31a3a54eedad2689db2c
2014-03-08writerfilter: remove no longer needed doctok/sprmids.xslMiklos Vajna
Change-Id: Ia846d279ea5a4d375f8eb3736a0aabd419a07382
2014-03-08'explicit' makes no sense for a default constructorMatteo Casalin
Change-Id: Ib70c75e43ecf020fcb39696bddea414b0de9bbf7
2014-03-08Remove '#define INLINE', inline in method definition is enoughMatteo Casalin
Change-Id: I9c7ae289492e3ec8ada111a8dddfb5426ef22d30
2014-03-08Remove unused headers and forward declarationsMatteo Casalin
Change-Id: I8e8406dab1bca2a3349043eecaca168ff9ac00fb
2014-03-08OSL_ASSERT to SAL_WARN_IFMatteo Casalin
Change-Id: Ib6102579f8b7c8899322992919cc922393fe70d8
2014-03-08switch: ungroup two case which perform different operationsMatteo Casalin
Change-Id: I099501a596ebeb2820192d08de80eae342191bb7
2014-03-08return does not handle converion to OUStringNorbert Thiebaud
Change-Id: Ifa33978d9cb0bc26d33088973a898d606f14805d
2014-03-08return does not handle converion to OUStringNorbert Thiebaud
Change-Id: Iaf6cd34a2ecbbce191aa81f18049f6ffe681fa45
2014-03-08use 'native' OUString api in lotuswordpro instead of macro and wrappersNorbert Thiebaud
Change-Id: Iccb78b59c3de9f29975d10fa4e34232cd3bf2cc3
2014-03-08coverity#735759 Unchecked dynamic_castNorbert Thiebaud
Change-Id: I48e618355f97ac366db2337cdd0787b1b39ae46e
2014-03-08coverity#704853 Unchecked dynamic_castNorbert Thiebaud
Change-Id: I94e03ce14fdcd7fde99992e57d9f30c75c6e8fa1
2014-03-08coverity#704675 Unchecked dynamic_castNorbert Thiebaud
Change-Id: I50570ba37733ae700dca96e1175fcd2ac0c97333
2014-03-08coverity#704725 Unchecked dynamic castNorbert Thiebaud
Change-Id: I524fe7b4ac1cc9a78b2295ec27730dded415bd02
2014-03-08typo in coverity#704692 fixNorbert Thiebaud
Change-Id: Iae5db52f8240d96528258cec944b08ea29ff6084
2014-03-07coverity#705404: Argument cannot be negativeNorbert Thiebaud
Change-Id: I235a5323ee0fd60aee03c691c0c7fdf6e6e4c08b
2014-03-07coverity#704693 Unchecked dynamic castNorbert Thiebaud
Change-Id: I5363aeccf469b70a76ee66f8f70dff1eb18cac52
2014-03-07coverity#704692 Unchecked dynamic castNorbert Thiebaud
Change-Id: Ida91761479f1f3685da56b6dc5adcdfd5eb70cdb
2014-03-07coverity#704691 Unchecked dynamic castNorbert Thiebaud
Change-Id: I1a85857299ceadf2d91ec74bd12cefb856311ccb
2014-03-07coverity#704690 Unchecked dynamic castNorbert Thiebaud
Change-Id: Id392c07f27f8f7d8b05b0604ccf7b9180a6eb6a8
2014-03-07coverity#704689 Unchecked dynamic castNorbert Thiebaud
Change-Id: I3c321b6008bccb4f67a023b34a5cf02d465b2909