summaryrefslogtreecommitdiffstats
path: root/include/xmloff/xmlnumfe.hxx
Commit message (Collapse)AuthorAgeFilesLines
* use more compact namespace syntax in /includeNoel Grandin2020-05-031-3/+3
| | | | | | | | | excluding the UDK headers of course Change-Id: Iac7ab83d60265f7d362c860776f1de9d5e444ec0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93268 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Revert "loplugin:constfields in xmloff"Noel Grandin2020-03-161-1/+1
| | | | | | | | | This reverts commit 0302c9b192c3b7ba10daabed61d6864c24c14070. Change-Id: Ib919429e22ad039d6a82fe081f4e5421fe08905d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90549 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:constmethod in xmloffNoel Grandin2019-09-031-1/+1
| | | | | | | Change-Id: I79ff1001a3ac8fde10de1ab391772e2bfeb6a314 Reviewed-on: https://gerrit.libreoffice.org/78546 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Fix typosAndrea Gelmini2019-07-191-1/+1
| | | | | | | Change-Id: I8222cf7aae977f0e26645dea6e4cfaee94446a2c Reviewed-on: https://gerrit.libreoffice.org/75946 Tested-by: Jenkins Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
* tdf#42949 Fix IWYU warnings in include/xmloff/*Gabor Kelemen2019-01-221-4/+4
| | | | | | | | | | Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: Id20e0bc42e39f868a7c5d49d756f2ad5e14a86c0 Reviewed-on: https://gerrit.libreoffice.org/66637 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
* loplugin:constfields in xmloffNoel Grandin2018-09-131-1/+1
| | | | | | | Change-Id: I9623e6b483b28f5b50a2c76016bcc319b375a35a Reviewed-on: https://gerrit.libreoffice.org/60394 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Revert "tdf#118324 Extend ODF for blank in integer"Eike Rathke2018-07-101-3/+3
| | | | | | | | | | | | | | | | | | | | | This reverts commit c290f692dd28094d41dff686f3faa1c4e14b556e. Reverting because a) makes builds fail with errors from the schema validator in saving unit tests b) the loext:max-blank-integer-digits is now saved for some number formats where it is not necessary For example, load sc/qa/unit/data/ods/tdf102370_ExponentWithoutSign.ods save as .xlsx reload the .xlsx save as .ods (which effectively is what the ScExportTest::testExponentWithoutSignFormatXLSX() unit test does and makes the schema validator stumble) Change-Id: Iaac7e42b23317e7977876c9b5d545c76a1e2a4d2 Reviewed-on: https://gerrit.libreoffice.org/57240 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* tdf#118324 Extend ODF for blank in integerLaurent BP2018-07-101-3/+3
| | | | | | | | | | | | | | | Following resolution of tdf#117575, this commit add disambiguation between '0' and '?' in integer part XML_MAX_BLANK_INTEGER_DIGITS is added for the number of '?' XML_MIN_INTEGER_DIGITS is the number of '?' and '0' This preserve compatibility with previous versions: in previous versions '?' will be transformed in '0' It also applies to scientific and fraction numbers. Change-Id: I6e1185bbece9c615240425cc973d59052b22aa34 Reviewed-on: https://gerrit.libreoffice.org/56352 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
* loplugin:useuniqueptr in SvXMLNumFmtExportNoel Grandin2018-01-251-2/+2
| | | | | | | Change-Id: I720450a4bee17673907fba2e9a34879d2a98bcae Reviewed-on: https://gerrit.libreoffice.org/48481 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Resolves: tdf#102075 support system [$-F400] time and [$-F800] long dateEike Rathke2017-10-051-2/+2
| | | | | | | | | | | | | | | By substituting a (valid matching the type) format using these special LCID modifier values with the current system locale's format. See ECMA-376-1:2016 18.8.31 numFmts (Number Formats) and https://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.numberingformats.aspx which seems to be the only documentation available. Change-Id: Ieca048a77d4ef473ae475e202557d1353ff5387d Reviewed-on: https://gerrit.libreoffice.org/43148 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
* use strong_int for LanguageTypeNoel Grandin2017-04-261-1/+2
| | | | | | | Change-Id: If99a944f7032180355da291ad283b4cfcea4f448 Reviewed-on: https://gerrit.libreoffice.org/36629 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* GetWasUsed can return by value, no need to be a special snowflakeNoel Grandin2017-01-301-1/+1
| | | | | | | Change-Id: I4ef22fa49ee883ff0bddb49d1711e8521905502f Reviewed-on: https://gerrit.libreoffice.org/33658 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* update loplugin:unnnecessaryvirtual to handler destructorsNoel Grandin2016-11-041-2/+2
| | | | | | | | | and update modules writerfilter..xmloff with the resulting changes Change-Id: I54d19c22ddb0ff579b32e4934d266c925b19305c Reviewed-on: https://gerrit.libreoffice.org/30530 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:expandablemethods in xmloffNoel Grandin2016-10-241-1/+0
| | | | Change-Id: I995a4167ac4df5ca35d963dcf68ae802a997e1e1
* tdf#100834 Extend ODF for integer/fraction delimiterLaurent Balland-Poirier2016-07-271-1/+1
| | | | | | | | | | | Any string can be used as delimiter between integer and fraction. It is now saved/loaded to/from ODF, as it was from XLS. Change-Id: Ie6364d1cdefc020ea615c18099118135c619f96b Reviewed-on: https://gerrit.libreoffice.org/27262 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* tdf#89329: use unique_ptr for pImpl in xmlnumfeXisco Fauli2016-06-061-1/+2
| | | | | | | Change-Id: I1c07b20f187d4b7045d68e0b7f95725de039bf77 Reviewed-on: https://gerrit.libreoffice.org/25743 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* tdf#99661 Add max-denominator-value attribute to number:fractionLaurent Balland-Poirier2016-05-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Add max-denominator-value attibute to <number:fraction> to comply with ODF 1.3 See https://issues.oasis-open.org/browse/OFFICE-3695 Specify loext or number according to ODF version This value is only used to stored the number of digits in numerator. No other values than 9, 99, 999,... are expected. Add loext:max-numerator-digits attributes to <number:fraction> to distinguish ??/?? and ##/## or any combination Not saved for ODF strict min-...-digits indicates the number of '?' max-...-digits indicates the total number of '?' and '#' This needs to be saved with both min-...-digits at least one because previous versions cannot have min-...-digits of 0. See tdf#38097 Change-Id: Ibd785579aa75edc315e3bd94935a146d82bbeeef Reviewed-on: https://gerrit.libreoffice.org/24903 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* Remove excess newlinesChris Sherlock2016-02-091-1/+0
| | | | | | | | | | | | | | | | | | | A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
* com::sun::star->css in include/ucbhelper to include/xmlscriptNoel Grandin2015-10-231-7/+5
| | | | Change-Id: Iaa7f0b8455a601d3992c08cde0943c709c417256
* loplugin:unusedmethods xmloffNoel Grandin2015-07-151-3/+0
| | | | | | | Change-Id: I9d15d8edcc6746c055336bf31e5b0c15cb971ffe Reviewed-on: https://gerrit.libreoffice.org/17061 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* tdf#90133 Extend ODF: variable decimal in scientific formatLaurent Balland-Poirier2015-04-281-3/+3
| | | | | | | | | | | | Variable decimal is only saved in ODF for number, and do not consider partial variable decimal: 0.0## is saved as 0.000 This patch extend ODF with loext:min-decimal-digit for number format and scientific format Change-Id: I5022458da47bbd33c3e195c280e75c43faca5f8d Reviewed-on: https://gerrit.libreoffice.org/15135 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* tdf#90133 Extend ODF: exponent sign of scientific formatLaurent Balland-Poirier2015-04-271-1/+1
| | | | | | | | | | | Scientific Format without sign in exponent, such as 0.00E0, are managed by LibO, and can be saved in XLS format This commit allows to save in ODF Change-Id: Ia0c4589e2af942543ea296f970d163bc1d1d6f05 Reviewed-on: https://gerrit.libreoffice.org/14955 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* tdf#30716 start Engineering notation: implement exponent-intervalLaurent Balland-Poirier2015-03-221-1/+1
| | | | | | | | | | | | | | | | ODF1.3 implement a new attribute for engineering notation https://issues.oasis-open.org/browse/OFFICE-1828 This commit only add this attribute to ODF import/export. Engineering notation is not yet available. Treat also thousand separator with exponent-interval Change XML_NAMESPACE_NUMBER to XML_NAMESPACE_LO_EXT for exponent-interval Change-Id: Ia18f9e150ca32aa9bbe133c082c3f9330e949f11 Reviewed-on: https://gerrit.libreoffice.org/14875 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* Remove ptr_vector header include in favor of forward declaration.Kohei Yoshida2014-11-251-2/+1
| | | | Change-Id: I0aed7ec1bd8ac30ef18147b385c8649a413e4e3a
* prevent invalid ods files with loext:fill-characterMarkus Mohrhard2014-08-161-1/+2
| | | | | | | | | | | | | | | | | | | | | ODF specifies that extension elements in a document are removed before the validation. With our old implementation of the number format export this could result in two number:text elements following each other. According to the spec a number:text element may not follow another number:text element. The number:text element before loext:fill is actually not that interesting so it makes more sense to make this one an extension element. Possible documents showing issues: fdo45268-1.xlsx fdo49150-1.xlsx and many more Change-Id: I3ad92b8a61a246b3dbc0132d9a2c367488a766d0
* just use a typedef, don't inherit from boost::ptr_containerMarkus Mohrhard2014-08-161-1/+3
| | | | Change-Id: I1a63802dfeb702f6f6e9506339fd299b98fd8604
* remove unnecessary whitespaceMarkus Mohrhard2014-08-161-1/+1
| | | | Change-Id: I9de4fdd28c6d75133289b1c8a655381ecc5675c7
* xmloff: sal_Bool->boolNoel Grandin2014-03-311-18/+18
| | | | Change-Id: Ib4a73215187923dccd72fc7793ffd4bcbef24ab9
* fdo#65108 inter-module includes <> include/xmloffNorbert Thiebaud2013-11-091-3/+3
| | | | Change-Id: I1d2da1dd3c82e95b8ad4883ce83b42f6dcb6200f
* fixincludeguards.sh: include/xml*Thomas Arnhold2013-10-231-2/+2
| | | | Change-Id: Iffab819621615c59709c087202cc578af00dd799
* execute move of global headersBjoern Michaelsen2013-04-231-0/+134
see https://gerrit.libreoffice.org/#/c/3367/ and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a