summaryrefslogtreecommitdiff
path: root/sax
AgeCommit message (Collapse)Author
2014-01-10Use boolStephan Bergmann
Change-Id: Iae455f53f8317eecb8edc38d111c9ef7398a36fb
2014-01-07remove unnecessary sal_Unicode casts in OUStringBuffer::append callsNoel Grandin
Convert code like: buf.append( static_cast<sal_Unicode>('!') ); to: buf.append( '!' ); Change-Id: Iacb03a61de65a895540940953b49620677b3d051
2014-01-03WaE: C4101: 'e' : unreferenced local variableTor Lillqvist
Change-Id: I06c0f9dc742736f632ed9210ae954e0dc19ca19d
2013-12-31don't call top on an empty stackCaolán McNamara
Change-Id: Ibe4b4d3785535816b40d46fd0baa60f01e1f9d33
2013-12-31fastparser: avoid std::stack::top() - cache it's results.Michael Meeks
amazingly std::stack::top() takes 146 pseudo-cycles to do not much, so instead cache the result in a single pointer in lieu of burning that code. Change-Id: Ie326be47da6cbad0850e5f1026a1632bb840b6b8
2013-12-20fastparser: move lclGetErrorMessage into the anonymous namespace.Michael Meeks
Change-Id: I70e1597f917c2a8dedb5b38807dfde7ec05a1a39
2013-12-20fastparser:: move Entity:: code into the anonymous namespace.Michael Meeks
Change-Id: I564e35aa63e4c01cc1a0fb45f674dc1a2a0e89ec
2013-12-20fastparser: fix load regressionMichael Meeks
Remove erroneous assert: maSavedException is indeed empty for XML parser reported exceptions. Clean cut/paste code, and comment. Change-Id: Ia538bcc87a7efcd079d3021e00ac4d2eb62f3e8d
2013-12-19css.xml.sax service ctor clean-upStephan Bergmann
Change-Id: I556904861e93a145cfe65f61218926851e4e8eb0
2013-12-19Add .component <implementation constructor="..." featureStephan Bergmann
...to directly call constructor functions of ComponentContext-based C++ implementations of (non-single-instance) UNO services. The case where these calls would need to be bridged across different environments (e.g., from gcc3 to gcc3:affine) is not yet implemented. bootstrap.component and expwrap.component are adapted accordingly as a proof-of- concept (which had previously been adapted to use the prefix="direct" feature, which may become unnecessary again in the end, depending on how to handle single-instance services/singletons). More to follow. Change-Id: I18682d75bcd29d3d427e31331b4ce8161dbb846d
2013-12-18Change from ServiceManager- to ComponentContext-based implementationsStephan Bergmann
Change-Id: Iba701c520ad27925bb5e67697e22132b53160ab2
2013-12-18sax: various clean up. Move _getFactory next to the implementation.Matúš Kukan
Use more anonymous namespaces, de-duplicate code, bin some comments. Makes the library smaller. Change-Id: Id0cefdcaa72a74741303fc27e36038488ef8b059
2013-12-18Allow UNO component libraries to have each implementation in its own function.Matúš Kukan
Demonstrating on expwrap library. There is hope, this will bring code size savings for mobile platforms, where we don't need every implementation. Change-Id: I3519fb6148fd7a47ed9df092c73779ea6add552f
2013-12-17sax: avoid usage of double for parsing nanoseconds here tooMichael Stahl
Change-Id: Iddf93a116cb333db6465a915dae692c33a60241a
2013-12-17...and nDigits > 9 is harmless in following for loop and need not be cappedStephan Bergmann
Change-Id: I30c4005e5983f5007edfed692b74f07b31899755
2013-12-17readUnsignedNumberMaxDigits can read more than maxDigits charsStephan Bergmann
...so that is what the std::min was good for that the previous commit erroneously removed. Change-Id: I0cb08ab79f85ce4b919232845994c9b8bae35646
2013-12-17Fix namingStephan Bergmann
Change-Id: Ia7c62d57c56a27e097dbe252b6c6cac8fba7ace5
2013-12-17Avoid inaccurate floating-point computationsStephan Bergmann
...otherwise at least my --disable-dbgutil --disable-debug Linux x86_64 build failed the CppunitTest_sax_cpputest with 8999999 vs. 9000000 nanoseconds. Change-Id: I05e0febf413f9f9e01227a0cc4e0f46a5243fe61
2013-12-17Improve CPPUNIT_ASSERTsStephan Bergmann
Change-Id: I971602ce562ae0e11be5ac7b4d1eefbd342b625c
2013-12-17Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-12-11fdo#60698: Merge fastsax and sax_shared into expwrapMarcos Paulo de Souza
Change-Id: I6f8c6827c00db50184a46f39968f882b944d18d4 Reviewed-on: https://gerrit.libreoffice.org/6967 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
2013-12-10sax, xmloff: fix ODF import/export of text:time/text:time-valueMichael Stahl
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-12-03sax: stop using SAX_DLLIMPLEMENTATION for both sax and fastsaxMichael Stahl
Change-Id: I243ec20015beec6b98ee0af55eb7c387008f32f1
2013-12-03we need to pass the variable to get correct dll linkageMarkus Mohrhard
Change-Id: I447218101e1791375273580a313dd54708303d7a
2013-12-03no inheritance so no virtual neededMarkus Mohrhard
Change-Id: Ia6c481bbf5353db4c2801a53ae1455534c6978bd
2013-12-02Hide the implementation.Kohei Yoshida
Change-Id: Ibfd9bf626a40c3ec4eb18d09944e8943163595c8
2013-12-02Add a means to check if a namespace exists.Kohei Yoshida
Useful when we just need to check if the stream has a certain namespace defined. Calling getNamespaceURL() may throw SAXException in such case. Change-Id: Ib2b7b202492390158270d87bab95d1793c9d8a70
2013-12-02Move this header out into a public place.Kohei Yoshida
Change-Id: I356b26947d1018276d8a9ff6012fdad3ca2c0fd8
2013-12-02Remove inline methods from the header.Kohei Yoshida
Change-Id: Ie2cff194c1db5eaa992c4bcaaa06ec9a419d85a7
2013-12-02Move this out of the namespace scope.Kohei Yoshida
Change-Id: I4aec1d45edb47ea16adaa8d2ac23340b8f421bae
2013-11-27Urgh - add embarassingly missing ~Michael Meeks
Change-Id: I6ffcb1561920eba2cbc3fa019431d84f07386570
2013-11-27fastparser: Outline virtual destructor to please MSVC++.Michael Meeks
Change-Id: I8368698e80e5ebe339b822a9e0e767e8ba867e07
2013-11-26fastparser: strncmp needs a length.Michael Meeks
2013-11-26Presumably wants to use strcmpStephan Bergmann
Change-Id: I978a692fbf464b476811b445b16c7e1b0eec9e25
2013-11-26fastparser: special case xmlns more sensibly.Michael Meeks
2013-11-26fastparser: Avoid copying all tokens into a sequence.Michael Meeks
2013-11-26fastparser: don't waste cycles churning reference counts.Michael Meeks
2013-11-24cppcheck: fix same expression on both sidesJulien Nabet
Change-Id: I3de69e2ae186ea1ae8f792588c04b4e799ce1331
2013-11-23fastparser: avoid allocation and conversion of elementnames we don't need.Michael Meeks
Change-Id: I4c09aaa12b53181e50662de2721d170c195c7c86
2013-11-22getChar() to return a null-terminated char array.Kohei Yoshida
No need to fetch string size with this change. Change-Id: Iae5f6c60430fc57985a0fec5bfec59727e5a8f0f
2013-11-20Expose raw char array and use it to avoid OUString allocations.Kohei Yoshida
In SheetDataContext::importCell(). Change-Id: I52db64219f672ea5fbbda17686bf1173ceac5926
2013-11-20fastparser: avoid excessive alloc/frees for int / bool / double parsingMichael Meeks
Change-Id: I596bbc723558f04588d9e767d64732164524e57a
2013-11-20fix spelling in commentNoel Grandin
Change-Id: Icae96e2b64709b2a9aaf6a5576c29d9d5c8a9868
2013-11-20sax: -Werror=sign-compareMiklos Vajna
Change-Id: I2e7d482b29fc5859c32fa1731a5f1fd551509e88
2013-11-19fastparser: accelerate value tokenisation as well.Michael Meeks
Change-Id: I99a39e91c684adb1fc92cdb466477cfa90104961
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-14remove unnecessary sal_Unicode casts in various placesNoel Grandin
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-11-11remove unnecessary use of OUString constructorNoel Grandin
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-10-25fdo#54938: More uses of cppu::supportsServiceMarcos Paulo de Souza
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 Lillqvist
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c