summaryrefslogtreecommitdiff
path: root/xmloff
AgeCommit message (Collapse)Author
2015-05-11loplugin:cstylecast: nop between pointer types of exactly same spellingStephan Bergmann
Change-Id: I72713a31aebe594b1a89c2d4a1c9f8aa37590e61
2015-05-08std::ptr_fun became deprecated since C++11Takeshi Abe
Change-Id: If93609d032c9864e0251230bf9ed76e6b6741a62 Reviewed-on: https://gerrit.libreoffice.org/15672 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-05-08XMLTransformerActionInit parameters are generically of type sal_uInt32Stephan Bergmann
Change-Id: Ic36339fbb78a6ac3233f3d75a1309cf1b0642fe0
2015-05-06xmloff: convert to assert in SvXMLMetaExportMichael Stahl
Change-Id: Ib959da6f4dab0b290955e8b786d6efeef7f307b0
2015-05-06xmloff: assert validity of XMLPropertySetMapper indexesMichael Stahl
Apparently -1 is used for invalidated ones. Change-Id: I31901ff9f1caf3d011e476e220cec71669f5a356
2015-05-06xmloff: assert existence of XMLPropertyHandlerMichael Stahl
Change-Id: I2554c77245eb2c22201b6e680ab42db666b2ee8b
2015-05-06convert FONTTOSUBSFONT constants to scoped enumNoel Grandin
Change-Id: I994bfc76d709d01406404991dbfbd49b15bd03f4
2015-05-02it works if we first set the size and then the position, tdf#86624Markus Mohrhard
Change-Id: I8ed98981ef3041839ab73b749a04febe369f66fe
2015-04-30xmloff: simplify code by using std::all_of/std::any_of/std::none_ofTakeshi Abe
Change-Id: I87311d8989c23538983d45ad9b12a64080441d78 Reviewed-on: https://gerrit.libreoffice.org/15569 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-04-30Bin some pointless comments and reduce some vertical whitespaceTor Lillqvist
Bin pointless '// predeclarations' or '// forward declarations' comments. If a programmer doesn't know what a forward declaration is, well, why read C++ source code? Also bin some pointless '// end of namespace foo' comments after namespace blocks just a handful of lines long, and some superfluous vertical whitespace. Change-Id: I2a31c5d73d9b4de8825fb8eb9e7559dbd7303ef9
2015-04-28XMLTransformerActionInit parameters are generically of type sal_uInt32Stephan Bergmann
Change-Id: I8a013c8ca8938ef2d8e1786cda3dba61fe3038a5
2015-04-28txtparae_bContainsIllegalCharacters var wants to be of type boolStephan Bergmann
Change-Id: Ie8b481ab1759725ba40e3cf1bb6611d3c058b53b
2015-04-28SvXMLEnumMapEntry holds all values as sal_uInt16Stephan Bergmann
Change-Id: I3af5f97e77240a0f0a3c96cffc03c8a005e8f0aa
2015-04-28tdf#90133 Extend ODF: variable decimal in scientific formatLaurent Balland-Poirier
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>
2015-04-27tdf#90133 Extend ODF: exponent sign of scientific formatLaurent Balland-Poirier
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>
2015-04-24loplugin:simplifyboolStephan Bergmann
Change-Id: I4a7ba9192956941f05e68ae8df3263d609a7c4dc
2015-04-23Improved loplugin:literaltoboolconversion looking into cond. exprs.Stephan Bergmann
...automatic rewriter fixes Change-Id: I6b04ca80f08f8a71ff94e309fd52f44d736751ee
2015-04-23Revert "-Werror,-Wunused-const-variable"Thorsten Behrens
Actually used with follow-up commit b94de8fa13faa2849ead136d22cfb46f7d3bfddc This reverts commit e24a02dc29d6e750ee4270dac429c8416c5b738c. Change-Id: I0f8226f756c7b3a813600351cc1be9bbbbcf67c2
2015-04-22Related tdf#88056: Use correct service nameKatarina Behrens
Now the page title field can finally be imported and displayed in Impress \o/ It was a simple copy'n'pasta error, but damn, was it hard to find ... Change-Id: I04a3c71568960a66721269da3208208e168a99ac
2015-04-22-Werror,-Wunused-const-variableCaolán McNamara
Change-Id: I2d150a8b387052e917f985907e2a7334682f1dc8
2015-04-22tdf#88056: Implement import of page title field from ODFKatarina Behrens
the field seems to get imported now, but still ain't displayed in Impress *sigh* Change-Id: I095b9a2c59145f984bc9db853cc22501ca103bb7
2015-04-22fix assert on export of ooo63141-1.doc to odtCaolán McNamara
if bAutoStyles is true then the mbDoSomething of the SvXMLElementExport is false, and the ctor/dtor doesn't do anything so any attributes added to the exporter are not cleared by the SvXMLElementExport dtor so only add the attribute if bAutoStyles if false and might as well extend the block to cover the use of SvXMLElementExport and use the other ctor which defaults mbDoSomething on Change-Id: If35cd35e902372562fd7e78b3f970d91fcec3c16
2015-04-21tdf#90640: xmloff: ODF export: fix style:background-image attributesMichael Stahl
... for Writer frames, which were missing the draw:opacity; turns out this is because now the the default valued properties are not exported any more, which causes them to be missing in the property array so the hard-coded indexes in XMLTextExportPropertySetMapper::handleElementItem() do not find them. (regression from c3e49660e782816d1203cb936156ef6d6a1ad572) Change-Id: I84b6c09b23a2275161135290f1b0ac9f52546a80
2015-04-21tdf88056: implement export of page title field to ODFKatarina Behrens
to loext namespace so far, since it isn't approved by ODF-TC yet Change-Id: I1bb7723bdccec9b670630da5e4d56f47cd615e43
2015-04-18xmloff: cleanup StyleMapTomaž Vajngerl
Change-Id: I487ab62f412512b0437e6b46a01a3be7c88f5760
2015-04-18these two attributes are not part of ODF and unnecessaryMarkus Mohrhard
Change-Id: I8eda0998f0bb9503cf7d6e89ace2fb1872273880
2015-04-17add attribute mandated by ODFMarkus Mohrhard
Make sure that it does not confuse our importer by adding an attibute to ignore it when the new elements have been added. Change-Id: I15991be9dd993e2aeb18c440a14de3711f8001f4
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin
ie. void f(void); becomes void f(); I used the following command to make the changes: git grep -lP '\(\s*void\s*\)' -- *.cxx \ | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;' and ran it for both .cxx and .hxx files. Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
2015-04-14xmloff: add back the presumably accidentally removed "FootnoteLineStyle"Michael Stahl
(regression from 7d9bb549d498d6beed2c4050c402d09643febdfa) Change-Id: I67ec4516ff431efd47451ff07fc261ba32e80385
2015-04-08xmloff: also print what is duplicateMichael Stahl
Change-Id: I87b5122b8f1f4e26ba16ebc1228fb77f8b7800d9
2015-04-08text:p is not allowed as child element of draw:frameMarkus Mohrhard
Regression from #i118485#. Change-Id: Ib242ca1417f46b731d62d117132cbed6c02448fb Reviewed-on: https://gerrit.libreoffice.org/15173 Tested-by: Jenkins <ci@libreoffice.org> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-04-08only try to export text:p for elements that really support itMarkus Mohrhard
Change-Id: Ie2c072c67ecaa0c0ec45c804ebbd4b3bcd631a13 Reviewed-on: https://gerrit.libreoffice.org/15172 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-04-08the attribute name is actually table:database-table-nameMarkus Mohrhard
Change-Id: I9522529d918e143aafa6ea368fdb3fa55416d58b Reviewed-on: https://gerrit.libreoffice.org/15176 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-04-07tdf#89802: xmloff: fix ODF import of frame with empty style name refMichael Stahl
draw:fill-gradient-name="" in the graphic properties now causes BaseFrameProperties_Impl::FillBaseProperties() to fail and prevent insertion of the SwXTextFrame. (regression from 6e61ecd09679a66060f932835622821d39e92f01) Change-Id: I9b4f3ddb0f0e1b3a80e86bbdc1af2dade1c8edf7
2015-04-07convert SvtModuleOptions::EFactory to enum classNoel Grandin
and fix issues in iterating through o3tl::enumarray Change-Id: Ia59ef9be44d8c92c2e406fa71aa92269578e26e3
2015-04-07loplugin:staticmethodsNoel Grandin
Change-Id: Id3d6b50e07ea0850af18ab9bdadfffe0e4602aab
2015-04-02Change INetProtocol enumerators to CamelCaseStephan Bergmann
...to avoid clashes with macros and poor warnings about hiding global FILE Change-Id: I444e8b958f029201b228937e088efabc4b6d3050
2015-04-02Change INetProtocol to scoped enumerationStephan Bergmann
...and fix o3tl::enumarray::operator [] const overload Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
2015-04-01Engineering notation: Slight optimisationLaurent Balland-Poirier
Update of commit Ia18f9e150ca32aa9bbe133c082c3f9330e949f11 Change-Id: I5118619f2ab669f90e0377d9cabdba4778179581 Reviewed-on: https://gerrit.libreoffice.org/15100 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-04-01Add support for cppu::UnoType<void>Stephan Bergmann
Change-Id: I88259ffaffc73979c240721d2db166c79d3085f1
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann
Change-Id: Ic3764caeeb2cdec397071706845bf8517c848917
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann
Change-Id: Ie25a2b8a84a146a5b988c6ef77127896d126e488
2015-03-29Clean up template-parameter-dependent C-style castsStephan Bergmann
Change-Id: Ia1ab134a0afbeeb3ae40264bd4233a47df26b734
2015-03-29Clean up remaining C-style casts among void pointersStephan Bergmann
Change-Id: I1b49c020d597b569e330482f4dbf20c15ccdae3f
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
Change-Id: I962bd44f2ef6204ed2ea51f79b752bd948f67209
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann
Change-Id: Ib054b36c87c87ae2189b5456bc9b12d7b76c49e7
2015-03-24also import and export to ODF the new databar propertyMarkus Mohrhard
Change-Id: Ib29a0d5c9fefe15fbd0f08a5cf9600eff58cd030
2015-03-24loplugin:constantfunction: xmloffNoel Grandin
Change-Id: I0ddcaada71eaa53cd7e6320c6ccaa8d8971f6df0
2015-03-23TyposJulien Nabet
Change-Id: Ie08a26a569b83bfe3ef4351dbb7b6e928745b95d
2015-03-22use ODFSaneDefaultVersion to determine if and how to store exponent-intervalEike Rathke
Change-Id: I58d4c75806d656cb3f8bf971efecba6f775e05a9