summaryrefslogtreecommitdiff
path: root/sax
AgeCommit message (Collapse)AuthorFilesLines
2013-11-14remove unnecessary sal_Unicode casts in various placesNoel Grandin2-103/+103
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-11-11remove unnecessary use of OUString constructorNoel Grandin2-27/+27
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-10-25fdo#54938: More uses of cppu::supportsServiceMarcos Paulo de Souza3-27/+6
Change-Id: Id6bed78d92eba52283a17ab3ca66e751c225e48d Reviewed-on: https://gerrit.libreoffice.org/6423 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist1-1/+1
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-21Remove comphelper::ComponentContextStephan Bergmann1-3/+4
Change-Id: Idc5974e5a2ec68e8f1b2312a88fab15092c82788
2013-10-21FastTokenHandler service should apparently have a default constructorStephan Bergmann2-9/+5
Change-Id: Iad5c4e05832128b5f41860cc4ae96f0472c37491
2013-10-21WaE: unreferenced local variableTor Lillqvist1-1/+1
Change-Id: I9783f03e656049b4f3b7f0a26a7ae626db5a13f6
2013-10-17sax: build fix: don't prefix enum valuesMatúš Kukan1-17/+17
Change-Id: I6f4eac6103821227bc72de8c3bb0fb89a7a8bc9d
2013-10-17sax_attributes: needs cppuhelper on WindowsMatúš Kukan1-0/+1
Change-Id: I5c9fca7f895b57fcfc5cdd8e5cbd879c74fbbf04
2013-10-17sax_parser: needs also boost_headersMatúš Kukan1-0/+4
Change-Id: I2b0dd5a63d3a0d064c6431e01ad76fff111b67e6
2013-10-17sax: fix build: needs explicit typeMatúš Kukan1-4/+4
Change-Id: I5a5c52215b0177d663f0694515240c3f95a3ab40
2013-10-17fastparser: don't use multithreading for small documentsMatúš Kukan2-28/+57
Determined by XInputStream::available(). Change-Id: I450f4796d9c072b395393582bfc3e1e7768e243b
2013-10-17fastparser: don't create temporary Events; use references to event listMatúš Kukan2-78/+72
Change-Id: I1e12fbeeb90d6020d0566d05fc0318082e1da5fc
2013-10-17fastparser: reuse event lists if possibleMatúš Kukan2-12/+29
Instead of allocating and freeing the memory all the time. Change-Id: I53800abaca51d42d7d44a98fb271de7df7f90f58
2013-10-17fastparser: re-work locking, add high & low watermarks, change sizes etc.Michael Meeks2-6/+37
Change-Id: I7fe1435addc6dce5a74a8411f7825cea331a5b3f
2013-10-17fastparser: implementation using two threadsMatúš Kukan3-26/+215
Instead of calling methods directly, generate EventList - vector of Events, where arguments for the callee are stored. Change-Id: I227a0ef3038566664ac8f294770152c8b445997b
2013-10-17fastparser: cache default namespace token for ooxml.Michael Meeks2-15/+29
Change-Id: Iee98ec92380d6d0404ab236e062ddbc2378cda43
2013-10-17FastAttributeList: avoid OStrings in attribute list; just use char bufferMatúš Kukan2-19/+46
Change-Id: I4879563fae3b85c68bbd1c4b260f9833848f4bda
2013-10-17FastAttributeList: use vectors instead of map; the size is smallMatúš Kukan1-38/+35
This is also preparation to avoid OString internal usage. Change-Id: If0ea36155d8ab3f5c91c2aafd6932fabeadadd41
2013-10-17fastparser: remove duplicated OString version methodsMatúš Kukan2-74/+21
Also remove AttributeData and make the two for-cycles faster. Change-Id: If0343992173bb333eee39c33bcb86acaa5a3d288
2013-10-17fastparser: isolate calls to XFastContextHandler in Entity's methodsMatúš Kukan2-124/+141
Unfortunately, we have to store maNamespace in two stacks. One for future parser thread to compute tokens and one for main thread calling XFastContextHandler. Now we are prepared to implement multithreading. Change-Id: I421b55afa2e9ea80142e6068c7a515d31913ba69
2013-10-17fastparser: store mnNamespaceCount in another stackMatúš Kukan2-12/+17
This is preparation work for multithreading. mnNamespaceCount will be handled in parser thread and the rest in main thread. Change-Id: I571026ea499f6876b8dafb4e1bdc56d1add649e5
2013-10-17sax: add unit test for FastAttributeListMatúš Kukan3-0/+111
Change-Id: Ie87c80383991dca84b4f6e2074c5c53567ded0b6
2013-10-17sax: add unit test for FastSaxParserMatúš Kukan4-6/+146
Adapt FastSaxParser so that it does not require XFastDocumentHandler. Change-Id: I7af49752dfbb4b55b8dde094fe6b762bd179be78
2013-10-17remove not implemented method declarationMatúš Kukan1-1/+0
Change-Id: I340ab40724cc864920cea05db63440803e60e275
2013-10-11fastparser: don't allocate uno::Sequences when we don't need to.Michael Meeks2-5/+26
Change-Id: Ic2fff8cabbc077b6fc9dabffd2c6fcf555152b11
2013-10-04fdo#46374 replace stardiv in comments where applicableThomas Arnhold2-4/+4
Change-Id: Icd07fba84735325408741ad10864c63ea32a6481
2013-10-02-Werror,-Wunused-variableStephan Bergmann1-1/+0
Change-Id: I50ec542176d1f6dbc731a0b20380c77930aa8fdc
2013-10-02WaE: unused variableTor Lillqvist1-2/+0
Change-Id: I15cdfface36f75180e5f5962c1be4d4ceb2728b9
2013-10-02-Werror,-Wunused-functionStephan Bergmann1-17/+0
Change-Id: Ic8692444519af1d5d3532b2cd348fe3194ab47d4
2013-08-31fdo#62475 - remove visual noisePhilipp Riemer1-2/+0
Change-Id: I7409f7a58796c9bf7542b6a7904ad40581637eeb
2013-08-31fix indentationPhilipp Riemer1-11/+11
This is a follow up commit to - 22d1beb78a475e4846af945afde1c4d6c263b5d6 - 1c7af455ab9345304a7ac48ce2e0310de2ac8a75 Change-Id: I55ff666c357c89ad355a1a5bc0d0347fcc188476
2013-08-31fdo#62475 - remove visual noisePhilipp Riemer1-48/+9
This is a follow up commit to - 22d1beb78a475e4846af945afde1c4d6c263b5d6 - 1c7af455ab9345304a7ac48ce2e0310de2ac8a75 Change-Id: I102685391125f3b4f7bdf838f8bd17a2283d558d
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