summaryrefslogtreecommitdiff
path: root/xmloff
AgeCommit message (Collapse)Author
2016-09-09remove direct memory managementDavid Tardon
Change-Id: Id0278f15e0c46a32cf07900dffdf27b3acb2649c
2016-09-09drop useless commentsDavid Tardon
Change-Id: Idbecb59bbefb4e63e1de80b8a28033be31e3dd58
2016-09-09fix indentationDavid Tardon
Change-Id: I0292b9408b0ff74f133daba955a81d9ac706b336
2016-09-09use std::unique_ptrDavid Tardon
Change-Id: Ic6ebe839fa22e6a7b9904ad00877eddd78331ba4
2016-09-09remove direct memory managementDavid Tardon
Change-Id: I5dd5d9130f11f47c4b48c1aae9748434ac751d95
2016-09-09fix indentationDavid Tardon
Change-Id: I7f2bf5b4ee507cd50904a193bfd64b293cbdd922
2016-09-09drop useless commentsDavid Tardon
Change-Id: I0493541da0d444ab94676365e93d4e0e5712bbea
2016-09-09use std::unique_ptrDavid Tardon
Change-Id: If5e2e9a47480cca5fea09f96e876aece9cb21f9e
2016-09-09remove direct memory managementDavid Tardon
Change-Id: I15823666ce8ea1840dc7b927d1a6f2f810edf2d2
2016-09-09remove direct memory managementDavid Tardon
Change-Id: Ie5103347fc30095778d96d46ce702bf4f0da00a6
2016-09-09resolve the snafu with 2 separate refcounted basesDavid Tardon
Change-Id: Ia275596d54ea27436f03d01297fb78b6ca09e8a6
2016-09-07loplugin:stringconstantStephan Bergmann
Change-Id: I972a8423f3751de50c95d83ddcefe449493ccf57
2016-09-07Resolves: tdf#101963 loading zh-TW ROC calendar use EE|E instead of YYYY|YYEike Rathke
This still (unnecessarily) prefixes with [~ROC] but preserves the intended "no leading zero" semantics. Change-Id: I154be0978a8147ceddefcb546c257d44f770b5de
2016-09-07loplugin:constantparam in vcl..xmlscriptNoel Grandin
Change-Id: Icf66c08071b154259c9e551342d30331caf2b15a Reviewed-on: https://gerrit.libreoffice.org/28685 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-09-06use std::unique_ptrDavid Tardon
Change-Id: I0cc84cc6b18849118a2b7824a8e4b37ca063cd50
2016-09-06rewrite using a for loopDavid Tardon
Change-Id: Ia58651d011064e4d324e5e7851b681f4d13d41a7
2016-09-06drop unneeded dynamic allocationDavid Tardon
Change-Id: I9e19c33998137ee0065f92ccb980d1ff5a82115b
2016-09-06remove extra whitespaceDavid Tardon
Change-Id: I07dd8be5e74c0776d24222d8af2628535c9ba980
2016-09-05Fixes for migrating SvXMLImport to use FastParser:Mohammed Abdul Azeem
These are necessary for implementing fast interfaces for the contexts. Change-Id: I37655c85c76b42782a49eeea3140490213047341 Reviewed-on: https://gerrit.libreoffice.org/28641 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-09-02tdf101725 - fixed missing autotexts from StandardMohammed Abdul Azeem
Change-Id: I1f751888e5fc28b54f4e32344769d568433eb387 Reviewed-on: https://gerrit.libreoffice.org/28572 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-09-01Resolves: tdf#100182 index entries lost on saveCaolán McNamara
regression from... commit 3e6ba91e2d6d362f4af91566e740f5dbc310e026 Date: Wed Nov 25 10:53:40 2015 +0200 loplugin:unusedfields in include/xmloff Change-Id: I979743671e9a2e868d815f917427588b7b0320ba which removed ctor for sDocumentIndexMark and sDocumentIndex when it should have just removed sDocumentIndeb Change-Id: I5ed5a2d30a3f76c6b45bbf74a3720420d0fcf676
2016-08-30loplugin:countusersofdefaultparamsNoel Grandin
Change-Id: I69f55593e6101906e0e97565f2cfc818852258dd Reviewed-on: https://gerrit.libreoffice.org/28486 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-30remove useless (and wrong) commentDavid Tardon
Change-Id: I151945c4617a3fc0e68ef8e5ecf1949cb0ab5f53
2016-08-30fix copypastaDavid Tardon
Change-Id: I26a94dcc6339eceee685a2340cef5ff5ba595037
2016-08-29Make SvXMLTokenMap compatible with FastTokens:Mohammed Abdul Azeem
Added seperate map for fastToken and Token, to get token using only fastToken. Default values are derived for fastTokens from prefixKey and localName. Duplicate/ dummy tokens need to be overidden with different values. Change-Id: I17268754d8fd1bac29dd7bae05706ff20b8314ae Reviewed-on: https://gerrit.libreoffice.org/28415 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-26Make SvXMLTokenMap compatible with FastTokens:Daniel Sikeler
Added new methods for the fasttokens and a lot of entries must be updated in later commits. Change-Id: I37de9c8d4bdeb75f678902a422a5961670480562 Reviewed-on: https://gerrit.libreoffice.org/28355 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-25cid#1371771 Uncaught exceptionStephan Bergmann
Change-Id: I47105f30e702f9bc40cb711f862fb25796202d09
2016-08-25tdf#89329: use unique_ptr for pImpl in officeformsArnold Dumas
Change-Id: Icdf742cbdbecab11be6a3fdd4387ade1c8fd7c15 Reviewed-on: https://gerrit.libreoffice.org/28368 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-23GSoC - First cut at migrating xmloff/ to use FastParser:Mohammed Abdul Azeem
This lays the foundation for using fast parser and contexts. Tokens are detokenized and made to emit events just like legacy parser interfaces. Change-Id: I11659be68026e112fdd06f8a847f3f2c876dae35 Reviewed-on: https://gerrit.libreoffice.org/28175 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-23use rtl::Static for static std::ordered_set in XMLPropStyleContextNoel Grandin
we suspect the current situation of causing a crash on shutdown after the tokenmap unit test: (gdb) bt 20 __gnu_cxx::new_allocator<std::__detail::_Hash_node_base*>::deallocate (this=0x7fffffff52c7, __p=0x78a700) at /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/ext/new_allocator.h:110 std::allocator<rtl::OUString>, std::__detail::_Identity, std::equal_to<rtl::OUString>, rtl::OUStringHash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, true, true> >::_M_deallocate_buckets ( this=0x2aaab3166640 <XMLPropStyleContext::maParaSet>, __p=0x78a700, __n=11) at /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/bits/hashtable.h:794 std::allocator<rtl::OUString>, std::__detail::_Identity, std::equal_to<rtl::OUString>, rtl::OUStringHash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, true, true> >::~_Hashtable ( this=0x2aaab3166640 <XMLPropStyleContext::maParaSet>, __in_chrg=<optimized out>) at /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/bits/hashtable.h:959 rtl::OUStringHash, std::equal_to<rtl::OUString>, std::allocator<rtl::OUString> >::~unordered_set ( this=0x2aaab3166640 <XMLPropStyleContext::maParaSet>, __in_chrg=<optimized out>) at /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/bits/unordered_set.h:93 rtl::OUStringHash, std::equal_to<rtl::OUString>, std::allocator<rtl::OUString> >::~unordered_set ( this=0x2aaab3166640 <XMLPropStyleContext::maParaSet>, __in_chrg=<optimized out>) at /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/debug/unordered_set:113 Change-Id: Iff36d4f217b8bb07083d2e599afade1f86206165
2016-08-22GSoC - Keeping both token lists in xmloff/ consistent:Mohammed Abdul Azeem
Added dummy tokens to keep the lists consistent and a test case to check the same. Change-Id: Ia58f1f77a5100a9fb3c7226fcad1fef1bd5aec39 Reviewed-on: https://gerrit.libreoffice.org/28183 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-19At which point, TokenmapTest::setUp/tearDown are redundant againStephan Bergmann
Change-Id: I0b3017427aa0d3cf9450734c677b442e61fdbe63
2016-08-19attempt to fix the xmloff/tokenmap tinderbox failureNoel Grandin
Change-Id: I1b70ef90de374ade858b8207802b8048b2dfd248
2016-08-18coverity#1371377 Resource leakCaolán McNamara
Change-Id: Ib8fddfe5c62b937d23306a31a2a8ab9c83179546
2016-08-18coverity#1371368 Resource leakCaolán McNamara
Change-Id: I5c35b3eaa6e9afe10096bf5013f83ff51cb870a4
2016-08-18coverity#1371136 Explicit null dereferencedCaolán McNamara
Change-Id: I61a9bf2b99eabef1802de73ac10fab1c9279c238
2016-08-18cppcheck: noCopyConstructorCaolán McNamara
Change-Id: Id5323cb6f52666f85965e11b07e4f2bca8af4e78
2016-08-18xmloff tokenmap: allocate map on heap instead of as class memberEike Rathke
Try to make the tinderbox happy.. Change-Id: I564d554739fc38d2a901d38ad676c9ba28f3c233
2016-08-18xmloff tokenmap: do not assume anything did not failEike Rathke
Change-Id: If13feffe41631b45605511fbad07965e0d5cb8d5
2016-08-18convert SdrCaptionEscDir to scoped enumNoel Grandin
Change-Id: Iec6dfbdc65efde86ff24ddc51c48eb697bf4ead1
2016-08-18convert SdrCaptionType to scoped enumNoel Grandin
Change-Id: I5c1a2300ec6b3d9dc3085affa08cc544f46b27d6
2016-08-18convert XFormTextStyle to scoped enumNoel Grandin
Change-Id: I88facbbbe262d9e26d2b45703c4f05c71bf51479
2016-08-18convert XFormTextAdjust to scoped enumNoel Grandin
Change-Id: Ibc38e73aa5f2134cde7f1ea25b158ea9b8f241a9
2016-08-18convert XFormTextShadow to scoped enumNoel Grandin
Change-Id: I1ff9d2f4aec60f050d9dde8e4c0e991169f585cd
2016-08-17loplugin:staticcallNoel Grandin
Change-Id: I0e35e3e6b7540fb1b8a65b034095d2b1fe80715f
2016-08-17loplugin:staticmethodsTor Lillqvist
Change-Id: I84fe6603010defcfae32250c86e75cf2237f64a1
2016-08-16tdf#100547 Save to ODF XY customized namesLaurent Balland-Poirier
Trendline equation: Following change 27069 https://gerrit.libreoffice.org/27069 Save customized names of X and Y variables in extended ODF Change-Id: Ie39487866f7671f4468a37f48847038fbd2cec2a Reviewed-on: https://gerrit.libreoffice.org/27233 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Laurent BP <laurent.balland-poirier@laposte.net>
2016-08-16GSoC - fix build of fasttokenhandlerMohammed Abdul Azeem
Change-Id: If561895da71e08bd9e58fce281c412d9f9206cad
2016-08-16GSoC - implement global tokenhandler for odf-tokensDaniel Sikeler
This generates perfect hash for odf-tokens and use them with the tokenhandler. With added test case to check to and fro mapping between tokens. This is taken from Daniel's work in feature/fastparser branch. Change-Id: I7cf77c1eb6c9dd68fd78108c6e0726507c7672e1 Reviewed-on: https://gerrit.libreoffice.org/28073 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-08-16loplugin:stringstaticStephan Bergmann
Change-Id: I062c3269b98e6833b99e50c1784f531e57ea3ea7