summaryrefslogtreecommitdiff
path: root/sax
AgeCommit message (Collapse)AuthorFilesLines
2013-08-23cppcheck: fix duplicate if/elseJulien Nabet1-0/+2
I don't know if it's possible to parse EBCDIC knowing that there are several implementations So I commented the block and added a TODO. => no time wasted for this block (ok "micro waste")+ 1 less cppcheck report Change-Id: I72b72b68295eab7be5332166b955adaddf6ee5c3
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák3-5/+5
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-20Re-work 8bit characters in source code, or remove them.Michael Meeks1-1/+1
Change-Id: I93e14d4936c0ffbe03425d4a54bb0e09bc62b3e3 Reviewed-on: https://gerrit.libreoffice.org/5550 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-08-15Mark as constTakeshi Abe1-1/+1
Change-Id: Ic7ee570935b5d827dc01a483877ea5021da5abea
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-08-01Mark as constTakeshi Abe1-1/+1
Change-Id: Idd1d0641d5b7d8594f354c7d2e2a9093ecc6b2f7
2013-07-21Remove unused convertDateTimeTZ and convertDateTZJulien Nabet1-12/+0
Change-Id: I177584f6988cf3cb31c5508262d3907ef6be23d7
2013-07-15OUStringBuffer doesn't have append() overload for const char*Luboš Luňák1-1/+1
Change-Id: Ibde8e2021d33f01f91486fb6d3e24e7af0a47744
2013-07-15sax: even more boost_headersMichael Stahl1-0/+2
Change-Id: I6d78c737d7cd049c7b148da3b4d30166bb7c8517
2013-07-15sax: more s/TimeZone/Timezone/Michael Stahl1-4/+4
Change-Id: I9b50e53b131fc835e792c52de6560d77ac454be9
2013-07-15i#108348: support DateTimeWithTimezone in user defined Document PropertiesMichael Stahl2-47/+54
- 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 Stahl2-55/+212
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-07-03fastsax: provide the element name instead of prefix for unknown elementsCédric Bosdonnat1-1/+1
Change-Id: I3effd8a0cfe57875446536bbd0a93a73e630a44f (cherry picked from commit 4946cc813704703f7d988a6acf75c4d9e9c068a9)
2013-06-29remove OUString wrap for string literalsThomas Arnhold5-7/+7
For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: https://gerrit.libreoffice.org/4624 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-29i#108348 sax::Converter: support negative date and dateTimeMichael Stahl2-10/+18
Change-Id: Ie2726c7ec941a5690e053d39212d7f516e2c27ba
2013-06-05sax: FastSaxSerializer: add well-formedness assertionsMichael Stahl2-1/+54
In an --enable-dbgutil build, assert on the following XML well-formedness violations: * Element Type Match (-> start/end tag mismatch) * Unique Att Spec (-> duplicate attributes) Change-Id: I1d5c405b4316ba941be1db7df6cacf00b5837261
2013-06-05sax: SaxWriter: add well-formedness assertionsMichael Stahl1-2/+32
In an --enable-dbgutil build, assert on the following XML well-formedness violations: * Element Type Match (-> start/end tag mismatch) * Unique Att Spec (-> duplicate attributes) Change-Id: I1e32a9fd096463a418a197fcdb3174df79f7a785
2013-05-15Spelling "separate" (etc) correctly is hardTor Lillqvist1-1/+1
2013-04-24gbuild: drop empty use_packages callsDavid Tardon2-6/+0
Change-Id: I8e9f70eb5d929c98b4379416c2259a74e31d587f Reviewed-on: https://gerrit.libreoffice.org/3503 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-24gbuild: drop uses of removed packagesDavid Tardon1-1/+0
Change-Id: I400fad08c0ae7b6b34bad63693f54856867e4dac Reviewed-on: https://gerrit.libreoffice.org/3502 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-24move URE headers to include/David Tardon1-3/+0
Change-Id: Ib48a12e902f2311c295b2007f08f44dee28f431d Reviewed-on: https://gerrit.libreoffice.org/3499 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-23execute move of global headersBjoern Michaelsen7-796/+0
see https://gerrit.libreoffice.org/#/c/3367/ and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
2013-04-18date/time IDL datatypes incompatible changeLionel Elie Mamane2-123/+128
- 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-09rename expat external to 'expat'David Tardon2-2/+2
expat_utf16 is long gone, so there is no need to fool around with expat_utf8. Change-Id: I0dd4a5c4d78805e98913e645cc83d2ab634bcb89
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák18-183/+165
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-04-01Remove RTL_CONSTASCII_(U)STRINGPARAM in scaddins/saxChr. Rossmanith2-5/+5
Change-Id: Ic4f9bef02cc4bdc74b9a6d81e3317e10b9c79bd4
2013-03-28add missing dep on sal/types.hDavid Tardon1-0/+2
Change-Id: I76ab0b77a9d68feac2f14dc2f45c9bb39c15e585
2013-03-27-Wunused-macrosStephan Bergmann1-1/+0
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-19further OUString cleanupThomas Arnhold2-5/+5
Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold1-2/+2
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: https://gerrit.libreoffice.org/2835 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold2-3/+3
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-18Wundef, fix various more or less broken debug codeLuboš Luňák2-5/+5
Change-Id: I347495f7960da099afdfbf3db608e0347b832f99
2013-03-14remove legacy build.pl prj/build.lst files.Michael Meeks1-2/+0
2013-03-04sal_Bool to boolTakeshi Abe2-5/+5
Change-Id: I8c554fb3faead41c974af9c2a89728bd0bdf5eb6
2013-03-03Related to fdo#60724: correct spellingThomas Arnhold2-2/+2
Using the autocorrect list of LibreOffice extras/source/autotext/lang/en-US/acor/DocumentList.xml Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657 Script: http://pastebin.ca/2327716
2013-02-28remove all d.lstMichael Stahl1-0/+0
Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885
2013-02-27cppu: new ZipPackage_cppu_odk_headersMichael Stahl1-1/+1
Change-Id: I4ceee0ed3438a18e13c186ebd8d390604d26ec28
2013-02-23Fix typo, "charcter" -> "character"Julien Nabet1-7/+7
Change-Id: Idde59a616b16c52b7369dd67e7a06eab52b334c8
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>
2013-02-13fdo#60471: svgio, sax: enable internal entity declarations for SVGMichael Stahl1-10/+32
Change-Id: I147acac61dfe0b626268fe1e600dcf641ca63a0c
2013-02-13sax: convert some legacy assertionsMichael Stahl2-11/+10
Change-Id: I3b4f1caa2c2d7a0fd88ea53bf05d01b2c7cc115a
2013-01-26gbuild: do not copy boost headers aroundMichael Stahl2-0/+3
- do not use gb_UnpackedTarball_copy_header_files for boost - adapt the optimization in concat-deps.c for new path - use boost_headers in all LinkTargets that require it - add explicit include paths to mysqlc, mysqlcppconn, libvisio, liborcus Change-Id: I0c43e73ed43cc9d2e6bce8faf55e992d655a0bb9
2013-01-14sax: add methods to duplicate current top marker and reapply it laterPierre-Eric Pelloux-Prayer4-0/+29
The need for this is ooxml: we need to have a duplicate entry (rPr) like this: <p> <pPr> <rPr>...</rPr> </pPr> <r> <rPr>...</rPR> </r> </p> This patch allows to do that by setting aside a copy of the <rPr> line, and then merging the copy when needed. Change-Id: I3868a822aa9e5210f3d814c68398a38f95072cd5 Reviewed-on: https://gerrit.libreoffice.org/1648 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-01-13callcatcher: update and remove newly unused codeCaolán McNamara2-25/+0
Change-Id: Iff3ce7c3a44010b3bc81fc0d2156216ee13948dc
2013-01-07added Converter::convertColor with opacity parameterChr. Rossmanith2-2/+27
Change-Id: I0f3759d8f75f2739b2815c37e8c81bc97e097ec8
2012-12-19wrap vararg sax functions in typesafe overloadsLuboš Luňák2-24/+121
Now automatic conversions can take place (no getStr() needed), and there are compile errors when used improperly. The FSEND terminator is also no longer needed, but it's better to dump it only after forgetting it no longer silently breaks backports. Change-Id: Ib47e6eda2d5e12ce889b69bf2affbda3679c2d3f
2012-11-15sax: no obvious reason why expwrap should use expat_utf16Michael Stahl1-1/+1
Change-Id: Id2d476c4fc13ccfb501ef920f75e2a95a7ce3734
2012-11-12cppCheck: clarifyConditionjailletc361-1/+1
Remove some warnings about: Boolean result is used in bitwise operation Suspicious condition (assignment + comparison) Also reduce scope of a variable. Change-Id: I553e5a09ed1d6276be61efbbb2c28d165a69af39 Signed-off-by: jailletc36 <christophe.jaillet@wanadoo.fr> Reviewed-on: https://gerrit.libreoffice.org/1031 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2012-11-11sax: FastSaxSerializer: cannot do anything without a streamMichael Stahl1-0/+2
Change-Id: If2fbfe776039fe1a3104d541279ab52f219f45bf