summaryrefslogtreecommitdiff
path: root/sax/source
AgeCommit message (Collapse)Author
2013-07-21Remove unused convertDateTimeTZ and convertDateTZJulien Nabet
Change-Id: I177584f6988cf3cb31c5508262d3907ef6be23d7
2013-07-15OUStringBuffer doesn't have append() overload for const char*Luboš Luňák
Change-Id: Ibde8e2021d33f01f91486fb6d3e24e7af0a47744
2013-07-15sax: more s/TimeZone/Timezone/Michael Stahl
Change-Id: I9b50e53b131fc835e792c52de6560d77ac454be9
2013-07-15i#108348: support DateTimeWithTimezone in user defined Document PropertiesMichael Stahl
- 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 Stahl
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 Bosdonnat
Change-Id: I3effd8a0cfe57875446536bbd0a93a73e630a44f (cherry picked from commit 4946cc813704703f7d988a6acf75c4d9e9c068a9)
2013-06-29remove OUString wrap for string literalsThomas Arnhold
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 Stahl
Change-Id: Ie2726c7ec941a5690e053d39212d7f516e2c27ba
2013-06-05sax: FastSaxSerializer: add well-formedness assertionsMichael Stahl
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 Stahl
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 Lillqvist
2013-04-18date/time IDL datatypes incompatible changeLionel Elie Mamane
- 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ňák
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. Rossmanith
Change-Id: Ic4f9bef02cc4bdc74b9a6d81e3317e10b9c79bd4
2013-03-27-Wunused-macrosStephan Bergmann
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-19further OUString cleanupThomas Arnhold
Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold
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 Arnhold
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ňák
Change-Id: I347495f7960da099afdfbf3db608e0347b832f99
2013-03-04sal_Bool to boolTakeshi Abe
Change-Id: I8c554fb3faead41c974af9c2a89728bd0bdf5eb6
2013-03-03Related to fdo#60724: correct spellingThomas Arnhold
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-23Fix typo, "charcter" -> "character"Julien Nabet
Change-Id: Idde59a616b16c52b7369dd67e7a06eab52b334c8
2013-02-13fdo#60471: svgio, sax: enable internal entity declarations for SVGMichael Stahl
Change-Id: I147acac61dfe0b626268fe1e600dcf641ca63a0c
2013-02-13sax: convert some legacy assertionsMichael Stahl
Change-Id: I3b4f1caa2c2d7a0fd88ea53bf05d01b2c7cc115a
2013-01-14sax: add methods to duplicate current top marker and reapply it laterPierre-Eric Pelloux-Prayer
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 McNamara
Change-Id: Iff3ce7c3a44010b3bc81fc0d2156216ee13948dc
2013-01-07added Converter::convertColor with opacity parameterChr. Rossmanith
Change-Id: I0f3759d8f75f2739b2815c37e8c81bc97e097ec8
2012-12-19wrap vararg sax functions in typesafe overloadsLuboš Luňák
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-12cppCheck: clarifyConditionjailletc36
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 Stahl
Change-Id: If2fbfe776039fe1a3104d541279ab52f219f45bf
2012-10-22fdo#46808, Adapt xml::sax::XWriter UNO service to new styleNoel Grandin
Create a merged XWriter interface for the service. The xml.sax.Writer service already existed, it just did not have an IDL file. Change-Id: I4e6d3f3c68f9282a55fc7aa19778f97632fd8ad5
2012-09-26sal_Bool -> boolNoel Grandin
Change-Id: I92e5f4f52ab19b607b5ed0314ee0d6c2334998c6
2012-09-20unusedcode: FastSaxSerializer is not used through UNOMatúš Kukan
Change-Id: I07d7b78be200f5f4a0674361237ef45b2bd1e3e1 Reviewed-on: https://gerrit.libreoffice.org/651 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-08sax: com.sun.star.xml.sax.FastSerializer seems to be unusedMatúš Kukan
Change-Id: I826da00c83589f468c499879d86546d60b2aa515 Reviewed-on: https://gerrit.libreoffice.org/480 Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Kohei Yoshida <kohei.yoshida@gmail.com>
2012-08-24sax: avoid pointless linking expwrap against saxMatúš Kukan
..only to share one class with fastsax in sax, where it's not used. The link dependency is ugly, mostly for libmerged. Use static library. Another option would be to link fastsax against expwrap. Change-Id: Ia85b01150959e2472d1ac04013b8b9a27232a070
2012-07-12XML_Parse returns enum XML_StatusMichael Stahl
Change-Id: Ie4dde5aa412dae05d2629ce5675356db70b2529b
2012-06-27re-base on ALv2 code.Michael Meeks
2012-06-25reduce static_initialization_and_destruction chainCaolán McNamara
Change-Id: I0c1b2f2d908c31d1510662880c13504d81445a6a
2012-06-22re-base on ALv2 code.Michael Meeks
Change-Id: I8018d9b5fa01d1720c0392dc5fdc4a0656f25a35
2012-06-21re-base on ALv2 code.Michael Meeks
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-16gbuildification of saxNorbert Thiebaud
Change-Id: I6e8220e88566e04b20687d54181205d31ec68e13
2012-06-01Targeted string re-work in padmin and saxThorsten Behrens
2012-05-31targeted string re-workNorbert Thiebaud
Change-Id: Ifd6b90778725d94a9338a53a4cdc514cdb595052
2012-05-25stop parsing on encountering internal entities in fastparser.cxxMichael Stahl
2012-05-25stop parsing on encountering internal entities in sax_expat.cxxMichael Stahl
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 McNamara
Change-Id: I5a254459a491b9547530d8e312260dceed21f25c
2012-05-04fdo#48253 Expand SAL_STATIC_CAST and SAL_CONST_CASTThomas Arnhold
Change-Id: I50f0887ceb4517d7ef234f970ca2ba679d533382
2012-04-20fdo#48969: GetConversionFactor: add inch as source unitMichael Stahl
Also, add whole bunch of missing cases while at it.
2012-04-20fdo#48969: switch units in Converter::convertDoubleMichael Stahl
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ňák