summaryrefslogtreecommitdiff
path: root/sax
AgeCommit message (Collapse)AuthorFilesLines
2012-05-25stop parsing on encountering internal entities in fastparser.cxxMichael Stahl2-0/+40
2012-05-25stop parsing on encountering internal entities in sax_expat.cxxMichael Stahl1-24/+47
The XML_UnparsedEntityDeclHandler is apparently deprecated anyway, so replace it with the newfangled XML_EntityDeclHandler.
2012-05-16remove unneeded include of boost/bind.hppCaolán McNamara1-1/+0
Change-Id: I5a254459a491b9547530d8e312260dceed21f25c
2012-05-04fdo#48253 Expand SAL_STATIC_CAST and SAL_CONST_CASTThomas Arnhold2-2/+2
Change-Id: I50f0887ceb4517d7ef234f970ca2ba679d533382
2012-04-29make gbuild the default assumption of build.plBjoern Michaelsen1-1/+0
this removes dmake completely out of the build for migrated modules build.pl now assumes modules to be gbuild, unless there is a prj/dmake file Change-Id: I674a036b182ee13c5ec093e83cb3d38133112d3b
2012-04-20fdo#48969: add unit test for Converter::convertDoubleMichael Stahl1-0/+72
2012-04-20fdo#48969: GetConversionFactor: add inch as source unitMichael Stahl1-10/+142
Also, add whole bunch of missing cases while at it.
2012-04-20fdo#48969: switch units in Converter::convertDoubleMichael Stahl1-1/+2
The factor here is used to divide, so the parameters have to be switched; this has always been broken but probably before 3ca2bef76886450058d1667703aeafe4c2e456c3 nothing called this. This also reverts 7bf1fa3757133f12cf6ca624f8cee6ba5363e7d8 because that was a workaround for the problem in the wrong place.
2012-04-12escape \n and \r too in escapeXml()Luboš Luňák1-0/+2
2012-04-08LinkTarget.mk: remove gb_LinkTarget_add_package_headersMichael Stahl1-1/+1
2012-04-08gbuild: "use" vs. "add":Michael Stahl4-8/+8
Naming convention for gbuild methods: - "add" is used for stuff that is logically a part of the target (i.e. not registered at the Module, but defined in the target's makefile) - "use" is used for stuff that is logically a different target (i.e. it is registered at the Module, has it's own makefile, may be in a different module than the target)
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi2-3/+3
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-02reorganize trickier staticsCaolán McNamara2-34/+47
2012-03-12sax: no matching function for call to 'max(int, sal_Int32&)'Ivan Timofeev1-1/+1
2012-03-12sax: replace Min/Max macros with std::maxMichael Stahl2-7/+5
2012-03-12sax: move xml2utf.cxx to libsax to prevent duplicate linkage warningsMichael Stahl4-13/+8
2012-03-10gbuild: get rid of realpath in gb_Foo_set_includeMatúš Kukan3-3/+3
2012-03-03Avoid temporary rtl::OUStringJulien Nabet1-2/+2
2012-02-29sax: ConverterTest: add leap year testsMichael Stahl1-0/+6
2012-02-29Correctly calculate leap year.Kohei Yoshida1-1/+1
With the old code, year 2000 would not be a leap year, but it actually is. With this, Calc correctly loads cell with date value of 2000-2-29. (regression from CWS sw33bf02 8786083eb9dabb0d7b328a217ba99a1d71493ad7) Signed-off-by: Stephan Bergmann <sbergman@redhat.com> Signed-off-by: Eike Rathke <erack@redhat.com> Signed-off-by: Michael Stahl <mstahl@redhat.com>
2012-02-29sax: this CalcXMLLen() was commented out since 2001Miklos Vajna1-48/+0
2012-02-26Avoid temporary rtl::OUStringJulien Nabet1-2/+1
2012-02-16Reduce verbiage slightlyTor Lillqvist1-1/+3
2012-02-16Use the same simple lo_main() on iOS as on AndroidTor Lillqvist2-70/+0
Let's do the iOS specific stuff in separate main() source file(s). Don't attempt to build complete iOS programs using normal LibreOffice mechanisms, it will work for only the very lowest level unit tests anyway, because of static linking and the circularish UNO/URE/bootstrap/whatnot (run-time) dependencies between different parts of the code. We thus can't build the various iOS-specific *_cppunittester_all unit test executables any more. Corresponding unit tests (and more complex ones) for iOS will have to be done in a different way.
2012-02-10Removed unused codeAlexander Bergmann2-88/+0
2012-02-10Prefer equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("...")) to equalsAscii("...")Takeshi Abe1-6/+6
2012-02-08update unused listCaolán McNamara2-18/+0
2012-02-08Added (and improved) READMEs for modules which used to be in libs-guiJosh Heidenreich1-0/+1
2012-02-05switch to include-based build rather than sourced-based buildNorbert Thiebaud1-35/+2
2012-01-21Removed some unused parameters; added SAL_UNUSED_PARAMETER.Stephan Bergmann4-28/+35
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC) is used to annotate legitimately unused parameters, so that static analysis tools can tell legitimately unused parameters from truly unnecessary ones. To that end, some patches for external modules are also added, that are only applied when compiling with GCC and add necessary __attribute__ ((unused)) in headers.
2012-01-16remove unimplemented methods from headersCaolán McNamara1-5/+0
2012-01-16Removing unused codeAlexander Bergmann1-48/+0
2012-01-16cleanup: remove unused prototype tooMichael Meeks1-1/+0
2012-01-16sax_fastparser::FastSerializerHelper::write(float)Alexander Bergmann1-5/+0
2012-01-05Fix for fdo43460 Part XXIX getLength() to isEmpty()Olivier Hallot6-11/+11
Part XXIX Modules sax, scaddins, sccomp, scripting
2012-01-05callcatcher: drop some unused methodsCaolán McNamara2-27/+0
2012-01-04sax: this had to be accidentally added when mergingMatúš Kukan1-2/+0
2011-12-24catch exception by constant referenceTakeshi Abe1-10/+10
2011-12-07in modules, when we have a env we are in stage gbuildBjoern Michaelsen1-0/+1
2011-12-01we are W3C XMLSchema here, not ISO 8601Eike Rathke2-11/+4
2011-11-30handle dates with year < 1000Eike Rathke2-6/+22
* 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-11-29move reconfigure into gbuildBjoern Michaelsen1-1/+1
2011-11-28fix conversions from cmRadek Doulik1-7/+5
2011-11-28added conversion from MeasureUnit::CMRadek Doulik1-0/+43
2011-11-25make gbuild makefiles run independant of pwd againBjoern Michaelsen1-2/+2
2011-11-21empty a bunch of d.lst filesMichael Stahl2-2/+1
2011-11-16tweak gbuild standart Makefile to allow partial build in unsourced envNorbert Thiebaud1-4/+4
This allow to run make in a module wihtout the need to source Env.Host.sh.
2011-10-15Fix overflow in smoketest, promotion from sal_Int32 to sal_Int64 doesn't ↵Caolán McNamara1-2/+3
happen before assign
2011-10-11#i108468#: clean up xmluconv code duplication, measured approach:Michael Stahl1-61/+21
modify sax::Converter::convertMeasure to use sal_Int64 instead of BigInt: should be sufficient, since the largest number is SAL_INT32_MAX * 10^7. remove duplicate methods from SvXMLUnitConverter: convertMeasurePx, convertMeasure (static variants) remove entirely duplicative class SvXMLExportHelper: GetConversionFactor, GetUnitFromString, AddLength change SvXMLUnitConverter interface from MapUnit to css::util::MeasureUnit. change SvXMLExport constructor params from MapUnit to css::util::MeasureUnit. rename some methods to turn compiler into merge conflict detector :)
2011-10-11#i108468#: clean up xmluconv code duplication, DateTime edition:Michael Stahl2-1/+191
remove duplicate methods from SvXMLUnitConverter: convertTime (all variants), convertDateTime (DateTime variants), convertTimeDuration. move convertAny from SvXMLUnitConverter to sax::converter.