summaryrefslogtreecommitdiff
path: root/xmloff
AgeCommit message (Collapse)Author
2020-08-28remove dead code in SdXMLHeaderFooterDeclContextNoel Grandin
Change-Id: I58e3f3a4a02ebcb24b7e975e30e57d8b57cd52dc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101533 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-28use fastparser in SvXMLNumFormatContextNoel Grandin
Change-Id: I310fe566ba3df511e4499afe0c9f7206f3451ff9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101528 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-28Change OUStringLiteral from char[] to char16_t[]Stephan Bergmann
This is a prerequisite for making conversion from OUStringLiteral to OUString more efficient at least for C++20 (by replacing its internals with a constexpr- generated sal_uString-compatible layout with a SAL_STRING_STATIC_FLAG refCount, conditionally for C++20 for now). For a configure-wise bare-bones build on Linux, size reported by `du -bs instdir` grew by 118792 bytes from 1155636636 to 1155755428. In most places just a u"..." string literal prefix had to be added. In some places char const a[] = "..."; variables have been changed to char16_t, and a few places required even further changes to code (which prompted the addition of include/o3tl/string_view.hxx helper function o3tl::equalsIgnoreAsciiCase and the additional OUString::createFromAscii overload). For all uses of macros expanding to string literals, the relevant uses have been rewritten as u"" MACRO instead of changing the macro definitions. It should be possible to change at least some of those macro definitions (and drop the u"" from their call sites) in follow-up commits. Change-Id: Iec4ef1a057d412d22443312d40c6a8a290dc6144 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101483 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-08-27Fix typos in codeAndrea Gelmini
It passe "make check" on Linux Change-Id: I9e663ac6fc4818d74cb4b239387ba8b1d7db0ee4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101470 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-08-27use fastparser in CreateHeaderFooterContextNoel Grandin
Change-Id: Ic0a4e4911bb56fd9731e0e9d3850387b1f26b1d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101474 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-27xmloff: prefix members of XMLTextFieldImportContextJulien Nabet
Change-Id: I8a67d0c1c24e6c82803198fe343d4ee1c095b9b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101484 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-08-27fix bug in XMLEventsImportContextNoel Grandin
ever since commit 10e08b1d398e6aa91aa4ced0ca6c966349be8b5d Date: Fri Feb 14 13:27:23 2020 +0200 convert XMLEventsImportContext to fastparser Change-Id: I3bdc514f25a38f598d2a764c536b46f6ded9d14c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101473 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-27Fix typosAndrea Gelmini
It passed "make check" on Linux Change-Id: I5f39984f1c30fcde46ed411faac3f8d637d10d6f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101449 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-08-27convert remaining XMLPropStyleContext subclasses to fastparserNoel Grandin
Change-Id: If78be8caf1b1a87ef16abf04a29bc30762ddb90b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101440 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-27expand out StringSet typedefNoel Grandin
Change-Id: If7791d51d055ad918b54a52bee3f13a79c5468f6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101435 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-27Fix typosAndrea Gelmini
Change-Id: Ieebf8bc3051d1f6b99cf72629aa411e27de21640 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101403 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-08-26use more fastparser in SdXMLMasterPageContextNoel Grandin
and drop some unused code Change-Id: I4ed57ab843759e2214ad2b679003fcc329c073ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101382 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-26remove slowparser stuff from SvXMLStyleContextNoel Grandin
Change-Id: Ic4efc2eba7d1cdd71df76b535811c706bab3860e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101347 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-26use fastparser in SwXMLStylesContext_ImplNoel Grandin
Change-Id: I81075b44ec8417bf0126aa5a64389b434c1247f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101345 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-26use fastparser in SdXMLStylesContextNoel Grandin
Change-Id: I5cf46f6ba8366c92a18d1cc00eb7eebf8ae82be6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101343 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-26use more fastparser in XMLTableStyleContextNoel Grandin
Change-Id: I558459138f3d4191b6ecdcf726d022497dbb9f06 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101321 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-25use more fastparser in OReportStylesContextNoel Grandin
Change-Id: Ie8126206d9144ccba1fb120d47af9ebe35a345d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101320 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-25-Werror=maybe-uninitializedNoel Grandin
which only shows up in an optimised build, using gcc Change-Id: I16015c7d139680aba11bf183c3e2bceb79c9ecba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101330 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-25use more fastparser in PageStyleContextNoel Grandin
Change-Id: I1de96a68881e5f035c34136cd3ad89fa7cad29ee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101310 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-25use fastparser in PageStyleContextNoel Grandin
Change-Id: Iaa433e5c8c5712bbcbef519c613927dbffa22906 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101305 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-25use fastparser in XMLFontStylesContextNoel Grandin
Change-Id: I122216400ae5f97bc2a757146f84f146ba92afb2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101303 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-25use more fastparser in SdXMLStylesContextNoel Grandin
Change-Id: I251833e14b96729ce754912fd4bfc68fe2e57299 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101294 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-24use fastparser in SdXMLNumberFormatImportContextNoel Grandin
Change-Id: I3a63a80363d1c9b41e9ea73e2cc6c78d24bb1bad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101246 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-24fix some fastparser related bugsNoel Grandin
in my previous commits, which interacted in entertaining ways to prevent any unit test from finding them Change-Id: Ifc3a5e7bbf83549d9f56eac70d9e6a064a6fb103 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101286 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-24crashtesting: sdr::table::TableDesignStyle doesn't support XPropertySetCaolán McNamara
rStyle is a sdr::table::TableDesignStyle which doesn't support XPropertySet Change-Id: I4987cfd57abc1954e108271d85433ad6e8b1493f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101266 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-23WaE: -Werror=maybe-uninitializedCaolán McNamara
with --enable-dbgutil + --enable-optimized=debug Change-Id: I98fdc7e0b97c48bfb7c425013640c91c29e46a3c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101244 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-23use fastparser in SdXMLPresentationPageLayoutContextNoel Grandin
Change-Id: Ic3b371be9a363d40cd5c82dcc1d00fa5b007cf5c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101243 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-23use fastparser in SdXMLPageMasterContextNoel Grandin
Change-Id: Ie4c9419a226eb14e0ff0ded23e2749e68dadcaa9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101241 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-23use fastparser in CreateTableTemplateContextNoel Grandin
Change-Id: Ic9274c30bfceba7d85d7c80ad259b3eab93ff618 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101175 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-23remove debugging assertsNoel Grandin
accidentally left behind in commit 7b83a28f1eb7d0687d07cfaaf8cfaaf9a8eea8c1 use fastparser in SdXMLHeaderFooterDeclContext Change-Id: I53f7733fd186eb5ac8c4d143a9f847721d5ae81d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101192 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-23use fastparser in XMLTextMasterStylesContextNoel Grandin
Change-Id: I2eaae244264ca9ab726d8e69a3e53a76481b5a36 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101173 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-23Fix typosAndrea Gelmini
Change-Id: I6e3e5df63adc7acdac7f41adc1988a734580b084 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101219 Tested-by: Julien Nabet <serval2412@yahoo.fr> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-08-22use fastparser in XMLBitmapStyleContextNoel Grandin
Change-Id: Ic5764083c10a30b5d31c197a92bcfb7a4333aa42 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101172 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-22use fastparser for fill stylesNoel Grandin
Change-Id: I2dcc34863eec5f3ba02ee6df4e64604926b072d4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101171 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-22add bounciness velocity and density options to physics animationsSarper Akdemir
Adding new xml options to specify the starting velocity, bounciness, and density of the rigid body that physics animation control. Change-Id: Ifaba785e82c8ee17be00711a3e7a75257e7704ae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101141 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-08-21Fix typo in codeAndrea Gelmini
Change-Id: Id4df6228804bb31bde0a11327c69eb939cc57ccf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101101 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-08-21use fastparser in XMLLineNumberingImportContextNoel Grandin
Change-Id: Ib6e590eccffea94dccc4b943d3cf92124882c064 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101170 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-21use fast-parser in XMLFootnoteConfigurationImportContextNoel Grandin
Change-Id: Ic139ef9956f59178582a344f65926f95a6423f14 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101149 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-21no need to call superclass hereNoel Grandin
there is no CreateChildContext in the superclass (and the next implementation of that method that is actually called is not going to do anything useful here) Change-Id: I503924eaaef8f450549c2eaa2195661ce0de8c2f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101136 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-21use fast-parser in XMLIndexBibliographyConfigurationContextNoel Grandin
Change-Id: If83d582978803c0e79bf59f4e0576410a1849289 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101133 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-21tdf#135942: avoid collecting autostyles during writing themMike Kaganski
This modifies the container over which iteration is performed. Additionally, make sure that all nested table autostyles are collected on the first phase. Change-Id: I74c0bb1aaacad095226c21e6bf51cc8668133bb3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101096 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-08-21rhbz#1870501 crash on reexport of odgCaolán McNamara
where SdrObjects in a list have no navigation position set a regression from 450cd772aa734cfcb989c8cedd3c0a454db74a34 Fix fdo#64512 Handle xml:id correctly on multi-image draw:frames this just reverts that and adds the test case that crashed Change-Id: I1a49dab9578699c42fe845e8ec42de40159dec3d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101074 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-21use fastparser in SdXMLStylesContextNoel Grandin
Change-Id: Idd15d117d71e607691bec9911ff0cc194ca5ce01 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101093 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-20use fastparser in SvXMLNumFormatContextNoel Grandin
which requires making SvXMLStylesContext capable of doing both fast and slow-parser paths. Change-Id: I57428b10ac2d67bc233cc978c9a0c0c3755d60e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101022 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-20make physics based animation effects importable-exportableSarper Akdemir
Makes physics based animation effects importable and exportable on content.xml. Uses one new xml token animatePhysics. Also adds a new animation preset called Physics Basic that is available under Emphasis animation effect category. Change-Id: I38b0511f973668655cff78becebe3f1e628d9083 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100247 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-08-20xmloff: ODF export of page style: don't export draw:fillMichael Stahl
... attributes on header-style and footer-style in strict ODF. Change-Id: Ic1af26b6112a5afbb70a82b29dbacd3dcec14ec3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101012 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-08-20use fastparser in SdXMLHeaderFooterDeclContextNoel Grandin
actually, it can do both fast and slow parser paths for now, because it is used in a place fast-parser doesn't reach yet. Which means that I had to make SvXMLStyleContext also capable of handling both fast and slow parser paths. Change-Id: I24fd5bfb6603e93a5f752365c246ce47dabea8bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101017 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-19convert SvXMLStylesTokens to scoped enumNoel Grandin
as a step towards converting the *StyleContext classes to fastparser Change-Id: I0440cbce91d7b20e7181c3a6112791a9af2210b8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100954 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-18Fix typosAndrea Gelmini
Change-Id: I85a91d24943430b42217ac91611f182059d8ec69 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100919 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-08-18loplugin:unusedvarsglobalNoel Grandin
tackle some read-only vars. Mark some of them const to make it obvious they are not really used, and to make the constantparam plugin see more data. Change-Id: Ia25927745866746aa1aa9d5affd5857ad9f9ee24 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100895 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>