summaryrefslogtreecommitdiff
path: root/sax/qa
AgeCommit message (Collapse)AuthorFilesLines
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
2011-09-21OSL_TRACE: Remove trailing newlinesThomas Arnhold1-4/+4
Done with perl regex: s/(\n\s*OSL_TRACE\(\s*\"[^\n]+?)\s*(\\n)+(\"[^\n]*\)\;\n)/$1$3/gs; - removed trailing whitespaces and (multiple) newlines
2011-09-16Removed leftover makefile.mk after gbuildization.Stephan Bergmann1-77/+0
2011-09-12sb140: #i113503# mixing system CppUnit and OOo STLport does not work, backed ↵Stephan Bergmann2-1/+4
out a6913c9677c2 For LibO, that just means replacing sal/cppunit.h with sal/precppunit.hxx.
2011-09-12sb140: #i117694# some CppUnit related cleanupStephan Bergmann2-35/+2
2011-08-02Add static sax cppunittester for iOSTor Lillqvist1-0/+139
2011-06-19Merge branch 'master' into feature/gnumake4Bjoern Michaelsen2-7/+5
Conflicts: basebmp/prj/d.lst basebmp/test/basictest.cxx basebmp/test/makefile.mk basegfx/inc/basegfx/basegfxdllapi.h basegfx/inc/basegfx/tools/debugplotter.hxx basegfx/inc/basegfx/tuple/b2ituple.hxx basegfx/prj/d.lst basegfx/source/numeric/makefile.mk basegfx/source/polygon/makefile.mk basegfx/source/range/makefile.mk basegfx/source/raster/makefile.mk basegfx/source/tuple/makefile.mk basegfx/source/vector/makefile.mk basegfx/test/basegfx1d.cxx basegfx/test/makefile.mk basegfx/util/makefile.mk canvas/Library_canvasfactory.mk canvas/Module_canvas.mk canvas/prj/build.lst canvas/prj/d.lst canvas/source/cairo/cairo_canvashelper_texturefill.cxx canvas/source/cairo/makefile.mk canvas/source/tools/makefile.mk comphelper/qa/string/makefile.mk cppcanvas/Module_cppcanvas.mk cppcanvas/inc/cppcanvas/cppcanvasdllapi.h cppcanvas/prj/build.lst cppcanvas/prj/d.lst cppcanvas/source/mtfrenderer/makefile.mk cppcanvas/util/makefile.mk i18npool/source/search/makefile.mk regexp/Library_regexp.mk regexp/prj/d.lst sax/CppunitTest_sax.mk sax/Library_sax.mk sax/prj/d.lst sax/qa/cppunit/test_converter.cxx sax/source/expatwrap/attrlistimpl.hxx sax/util/makefile.mk svtools/Library_svt.mk tools/Executable_sspretty.mk ucbhelper/prj/d.lst ucbhelper/source/provider/configureucb.cxx ucbhelper/source/provider/provconf.cxx ucbhelper/util/makefile.mk unotools/Library_utl.mk unotools/Module_unotools.mk unotools/Package_inc.mk unotools/prj/build.lst vcl/Library_desktop_detector.mk vcl/Library_vcl.mk vcl/Library_vclplug_gtk.mk vcl/aqua/source/gdi/salprn.cxx vcl/inc/aqua/saldata.hxx vcl/unx/generic/gdi/salgdi3.cxx