summaryrefslogtreecommitdiff
path: root/sax/qa
AgeCommit message (Collapse)AuthorFilesLines
2014-09-19Use FastSaxParser directlyMatúš Kukan1-7/+6
Change-Id: I2f21438a0ccc6bc096f3257c48e088c4114d9f45
2014-09-18fastparser: Use dummy token handler in unit test instead of an oox one.Matúš Kukan1-3/+36
Change-Id: I4562156858982857a17e8837106c4c946f175be7
2014-05-14various loplugin:passsequencebyrefNoel Grandin1-2/+2
Change-Id: Id1045a7f66b4fa10b6491587ba07246a31ceba72
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann2-4/+4
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-18Find places where OUString and OString are passed by value.Noel Grandin1-2/+2
It's not very efficient, because we generally end up copying it twice - once into the parameter and again into the destination OUString. So I create a clang plugin that finds such places and generates a warning so that we can convert them to pass-by-reference. Change-Id: I5341a6ea9e3190f4b4c05c42c85595e3dcd83361
2014-02-12Improve output in case of test failureStephan Bergmann1-2/+2
Change-Id: If094349998d41972f50e12363a5a223ee87fdcec
2013-12-19css.xml.sax service ctor clean-upStephan Bergmann1-5/+2
Change-Id: I556904861e93a145cfe65f61218926851e4e8eb0
2013-12-17Improve CPPUNIT_ASSERTsStephan Bergmann1-9/+8
Change-Id: I971602ce562ae0e11be5ac7b4d1eefbd342b625c
2013-12-10sax, xmloff: fix ODF import/export of text:time/text:time-valueMichael Stahl1-1/+137
The value written for an Impress time field is something like text:time-value="0000-00-00T23:28:07" (in LO 3.5+) or text:time-value="0-00-00T23:28:07" (in OOo 3.3) which contains an invalid all-zero date. Such values are actually rejected by the ODF import since commit ae3e2f170045a1525f67e9f3e9b7e03d94f2b56b. Actually there was no real support to read the RelaxNG type timeOrDateTime before. So fix that by: - adding convertTimeOrDateTime/parseTimeOrDateTime functions to sax::Converter - recognizing and ignoring the 2 invalid all-zero values written by LO 3.5 and historic OOo respectively - writing a bare "time" in text:time-value if the DateTime struct contains zero Date members (Older OOo versions and AOO cannot actually read that, but everything they _can_ read is invalid ODF...) Change-Id: I754076caee74a5163ed3f972af0f23796aa14f9f
2013-10-21Remove comphelper::ComponentContextStephan Bergmann1-3/+4
Change-Id: Idc5974e5a2ec68e8f1b2312a88fab15092c82788
2013-10-21FastTokenHandler service should apparently have a default constructorStephan Bergmann1-6/+3
Change-Id: Iad5c4e05832128b5f41860cc4ae96f0472c37491
2013-10-17sax: fix build: needs explicit typeMatúš Kukan1-4/+4
Change-Id: I5a5c52215b0177d663f0694515240c3f95a3ab40
2013-10-17sax: add unit test for FastAttributeListMatúš Kukan1-0/+83
Change-Id: Ie87c80383991dca84b4f6e2074c5c53567ded0b6
2013-10-17sax: add unit test for FastSaxParserMatúš Kukan1-0/+98
Adapt FastSaxParser so that it does not require XFastDocumentHandler. Change-Id: I7af49752dfbb4b55b8dde094fe6b762bd179be78
2013-08-04fixup SAL_INFO macros to actually print the stringsLionel Elie Mamane1-10/+10
Change-Id: I26bf8376d27f7fcbf8a83b7356d252dce9061fcb
2013-08-04sax converter unittest: test accept trailing zeros in fractional secondsLionel Elie Mamane1-1/+1
Change-Id: I3b6080df1cf8c13b5c0781c34c7806ac3c2cfbc7
2013-07-15i#108348: support DateTimeWithTimezone in user defined Document PropertiesMichael Stahl1-3/+3
- fix interface of sax::Converter to allow passing time zones (rename the parsing methods while at it to reduce pointless overloading) - SfxDocumentMetaData supports DateWithTimezone and DateTimeWithTimezone in user-defined properties - add some ugly hacks to SfxCustomPropertiesPage to preserve existing time zones (which are not displayed in UI currently) Change-Id: Ice94112b9d79c285f80b5beda15f0ace91db97f3
2013-07-15i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.Michael Stahl1-31/+32
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>
2013-06-29i#108348 sax::Converter: support negative date and dateTimeMichael Stahl1-2/+4
Change-Id: Ie2726c7ec941a5690e053d39212d7f516e2c27ba
2013-04-18date/time IDL datatypes incompatible changeLionel Elie Mamane1-22/+25
- nanosecond precision - signed (allowed negative) year Also: assorted improvements / bugfixes in date/time handling code. Some factorisation of copy/pasted code. Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák1-26/+26
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-02-19fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERTRadu Ioan1-35/+25
- replaced osl_trace with sal_info - added new log areas to log-area.dox Change-Id: Ib47c4b4c9604bca1f8a635dd01bb89702b47b591 Reviewed-on: https://gerrit.libreoffice.org/2010 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
2012-08-15warning C4310: cast truncates constant valueMichael Stahl1-1/+1
Change-Id: I3ebaec3953f86e8f42937e29fad54bafe87900fa
2012-08-15sigh.. MSVC warning C4146: unary minus applied to unsigned type?Michael Stahl1-2/+2
Change-Id: Ic2bbde637fd0a074f89b5ffa7af6e87d7cb408c5
2012-08-15oops forgot #include limitsMichael Stahl1-0/+2
Change-Id: I49161e270eda68d693181c3fff578ba5511bc6d4
2012-08-15overflow in implicit constant conversion [-Werror=overflow]Michael Stahl1-2/+2
Change-Id: I4fa1168a06118066c72a66801d911a49653f425f
2012-08-15decodeBase64 test is done and workingArtur Dorda1-0/+14
Change-Id: I4dfc20e0e577f986c626d4c4bab5b4e3214e4567
2012-08-15encodeBase64 test is workingArtur Dorda1-0/+32
Change-Id: I598ea47ff02b15fdb1d7ff3992d2c660f5a41c95
2012-08-15added some extreme values in string-to-measure testArtur Dorda1-0/+3
Change-Id: I8fd9029f42159444e7bb56f89eeb83fdb3745732
2012-08-15'string to number' test coveredArtur Dorda1-0/+15
Change-Id: Ib8a81edce168be5babd1bcd62746199de77c2ade
2012-08-15'number to string' test coveredArtur Dorda1-0/+20
Change-Id: Ic6bdc9448509e6f8251709c22576cc10cf9b8eb2
2012-08-15'string to color' test coveredArtur Dorda1-0/+14
Change-Id: I024296d1f71bd06837547cd8af3adc2cf2830b95
2012-08-15'color to string' test coveredArtur Dorda1-0/+19
Change-Id: Ia65d1bef19ec02efbb5d7dd784d4cc48c3dd51f2
2012-08-15'percent to string' test coveredArtur Dorda1-0/+13
Change-Id: I6966191a3adde0af318021ce8eec910763c42585
2012-08-15'string to percent' test coveredArtur Dorda1-0/+20
Change-Id: Ib18e28cba03c7032e8a446449b2839e7b7534133
2012-08-15'bool to string' test coveredArtur Dorda1-0/+13
Change-Id: I8ee1142b2a68799a650f501e2fe491a5ed8d7a5e
2012-08-15'string to bool' test coveredArtur Dorda1-0/+18
Change-Id: I6613167703974d802d17d7fd8cdf0f552721c33c
2012-08-15'measure to string' test covered in test_converter.cxxArtur Dorda1-1/+17
Change-Id: If764eb4d87db93dc2907bc21fb1b9f10687a7ee4
2012-08-15Added testing 'measure to string' functionArtur Dorda1-0/+10
Change-Id: I36de98025ec72230cd960191ab47ab39ce965cc5
2012-08-15All the MeasureUnit values are covered in converter testArtur Dorda1-1/+20
Change-Id: I6c447bb3948566ad10d9935397089ed1fceac1da
2012-08-15Started testing measures in converter test, first: string to measureArtur Dorda1-0/+16
Change-Id: I96296b75d7c1f131a96add9dd17dfbffa079e343
2012-08-02Bin no longer used iOS cppunit stuff that even breaks the buildTor Lillqvist1-128/+0
Change-Id: I459f7fd097a81ef5977974f52b0cc2c2f155a810
2012-06-29another unit test issueMichael Meeks1-49/+49
2012-06-27re-base on ALv2 code.Michael Meeks2-49/+31
2012-06-27targetted re-work of cppunit pieces.Michael Meeks2-6/+1
2012-04-20fdo#48969: add unit test for Converter::convertDoubleMichael Stahl1-0/+72
2012-02-29sax: ConverterTest: add leap year testsMichael Stahl1-0/+6
2011-12-01we are W3C XMLSchema here, not ISO 8601Eike Rathke1-5/+3
2011-11-30handle dates with year < 1000Eike Rathke1-2/+7
* Read dates with years consisting of less than 4 digits. ISO 8601 specifies that years are to be written with a minimum of 4 digits. However, be lenient in what we accept. * Write years < 1000 with leading zeros to comply with ISO 8601 YYYY.
2011-09-27Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *().Stephan Bergmann1-4/+4