summaryrefslogtreecommitdiff
path: root/xmloff
AgeCommit message (Collapse)AuthorFilesLines
2015-01-20Some more loplugin:cstylecast: xmloffStephan Bergmann1-1/+1
Change-Id: I45cb9467c618eed929c84656a26293c8d6087378
2015-01-19fdo#39440 reduce scope of local variablesMichael Weghorn7-12/+10
This addresses some cppcheck warnings. Change-Id: If7ad3584b3124ed0b337836071af1a5bd0451d85 Reviewed-on: https://gerrit.libreoffice.org/13972 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-11LeakSanitizer: leak detected in ooo56669-1.odtCaolán McNamara1-2/+2
Change-Id: Ifdd98068762762316dbfd50fb465ed3c970f53d9
2015-01-09xmloff_uxmloff fails on Linux too, now -> disable it (mergelibs)Matúš Kukan1-1/+1
Would be nicer to fix it though. Change-Id: Ia5f49a69374e9e79a9a16542bc44f279b9e5a6f7
2015-01-09override the overloading of "overload" to decrease cognitive (over-)loadMichael Stahl4-4/+4
Change-Id: I4d0e1de89d0bbdbea23bc5a46bf75ae0ce4e2796
2015-01-08Revert "Don't assume that the ZOrder property of shapes is an enumeration"David Tardon3-21/+12
This reverts commit 66c7dbbf7dfba8cfab63f8d1df72ace87e5bf7ca. See https://gerrit.libreoffice.org/#/c/13554/ . Conflicts: include/xmloff/shapeexport.hxx reportdesign/source/filter/xml/xmlExport.cxx sc/source/filter/xml/xmlexprt.cxx xmloff/source/draw/shapeexport.cxx Change-Id: I14fed9ad043a756a9e2d390c76fa907c349c3a2e
2015-01-06fdo#78921 save embedded fonts in Flat ODFDavid Tardon1-3/+43
Change-Id: I9d8614a5c20bab8e3b3d7c40e2504348c4386b64
2015-01-06fdo#84938: convert SEF_EXPORT_ #defines to 'enum class'Noel Grandin2-68/+68
Change-Id: I7165d0f1b6b4af4de5e5b39a21f36d726a1b0e30
2015-01-06fdo#84938: convert ERROR_ #defines to 'enum class'Noel Grandin2-15/+15
Change-Id: Ie76bac6b91a9faa4f9ff7dbdf2b455ea9016cf72
2015-01-06fdo#84938: convert EXPORT_ #defines to 'enum class'Noel Grandin20-133/+133
Change-Id: I2ed239fa073b5fa8fb56c1af9d4b0bac89acfacf
2015-01-06fdo#84938: convert XML_EXPORT_FLAG_ to 'enum class'Noel Grandin13-24/+24
Change-Id: I43d778e0eee19a56ea37898ec1c4309d3407775e
2015-01-06fdo#84938: convert IMPORT_ constants to 'enum class'Noel Grandin9-37/+37
Change-Id: Idaa8f07c62b3ba93c27ca5fe286720254baac10d
2015-01-06fdo#84938: convert TEXT_PROP_MAP #defines to 'enum class'Noel Grandin5-40/+40
Change-Id: Ia8c5913c60e3d509a906965d813c8d1380396dc6
2015-01-05export format of embedded font tooDavid Tardon1-0/+4
Change-Id: Ife7dbb298861a71987501f3847d3b931c7e83715
2015-01-05read embedded fonts from Flat ODFDavid Tardon2-3/+32
Change-Id: Ic94608f4afac9d8ac05ec3140d195b0526e9420a
2015-01-02Fix simple typos.Andrea Gelmini1-3/+3
Change-Id: I1fdbe47ed7a6e05d2cf20f4c296bffad4bbc6599 Reviewed-on: https://gerrit.libreoffice.org/13719 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara12-27/+26
you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2014-12-28Revert "Resolves: #i124452# correct svg:viewBox for EnhancedCustomShape..."Andras Timar1-42/+1
This reverts commit c6e316f52021cc26d4c5ec9a7b87a07fbf595b62. The bug #i124452# was in AOO only, no need to fix it in LibreOffice. Especially when the "fix" causes regression. The related fdo#76334 should be fixed one day, but that is a different issue. Conflicts: xmloff/source/draw/ximpcustomshape.cxx Change-Id: Ice0bf378f97e2caf0ee8386d0b5c0b8abcbcd1c2
2014-12-27fdo#84714 ODT import: read <loext:table> inside <draw:custom-shape>Miklos Vajna1-0/+1
A later version of ODF will hopefully allow <table:table> here as well, but read <loext:table> in the meantime. Change-Id: I42a461e0a6e9eff9387379acbab9660a155ecefe
2014-12-20fix buildLionel Elie Mamane1-2/+2
Change-Id: Ia528bd301e2f2ee1f7f3b009e3b9c3f395a4dcdb
2014-12-19correct function name in debug messageLionel Elie Mamane1-1/+1
Change-Id: I9c02fdd99504bdee6654d1072559a4afac6532a3
2014-12-19survive "TextBox" having no valueLionel Elie Mamane1-1/+1
Change-Id: Iebed41cfcc5899387e3defb8d8a0792276349098
2014-12-19Don't assume that the ZOrder property of shapes is an enumerationLionel Elie Mamane3-12/+21
...at least when we can easily not assume it. shapes = shapes of the same XShapes an enumeration = it is the sequence 0, 1, 2, 3, ..., XShapes->getCount()-1 We replace the ZOrder property by the index of the XShape in the XShapes (the same XShapes that is passed to seekShapes()... when that is easy to find. Else, use ZOrder and hope for the best. ZOrders are not always an enumeration. For example, in documents (forms) created by the Base forms wizard, it is not the case. The wrong assumptions was leading to the following bugs in the Base form wizard: - Only the first two controls in the form were successfully saved. The others were just dropped. - Whereas the labels had the proper style (background and text colour) applied while creating the document, these were not saved successfully Change-Id: I15b9a3ef3b16eafa9698332e35d82d51d51627f8
2014-12-19teach XML import/export about unsigned integer typesLionel Elie Mamane2-2/+15
resolves a shitload of warnings like warn:legacy.osl:941:1:xmloff/source/forms/elementimport.cxx:426: OElementImport::implImportGenericProperties: unsupported value type! warn:legacy.osl:941:1:xmloff/source/forms/elementimport.cxx:443: OElementImport::EndElement: could not set the property "ObjIDinMSO"! warn:legacy.osl:941:1:xmloff/source/forms/elementimport.cxx:444: caught an exception! in function:void xmloff::OElementImport::implApplyGenericProperties() type: com.sun.star.lang.IllegalArgumentException Change-Id: Ia598d12e7d9429fe4ad3b1e7173e11e75060a613
2014-12-19two references having same contentLionel Elie Mamane1-5/+4
Change-Id: I2db8842411e39d7d100d0627f8c930bb3f633d77
2014-12-19this is purely informative, SAL_WARN is overkillLionel Elie Mamane1-1/+1
Change-Id: Iccb98e50a678e5c53b69fb1052e3dac83cdcf5f5
2014-12-18xmloff: Use appropriate OUString functions on string constantsStephan Bergmann17-51/+49
Change-Id: I349e0c2575d9a5154ac7002d129a1851a3df7687
2014-12-17Introduce rtl::OUStringLiteral1Stephan Bergmann2-2/+2
...to use single ASCII character literals "more directly" in the OUString API (instead of having to go via an intermediary OUString ctor call). Especially useful for character literals that are defined as const variables or via macros ("direct" uses of character literals in the OUString API can often simply be replaced with single-character string literals, for improved readability). (The functions overloaded for OUStringLiteral1 are those that are actually used by the existing LO code; more could potentially be added. The asymmetry in the operator ==/!= parameter types is by design, though---writing code like 'x' == s is an abomination that shall not be abetted.) Change-Id: Ic5264714be7439eed56b5dfca6ccaee277306f1f
2014-12-12xmloff: Use appropriate OUString functions on string constantsStephan Bergmann17-91/+74
Change-Id: Idbe6ac27a4125bd9d9acb01ac42b60396abf0c81
2014-12-10xmloff: make the export of the horrible field marks aware of auto-stylesMichael Stahl1-96/+105
When exporting the .DOC bugdoc of fdo#87110 to ODF, the auto-styles export will iterate over the fieldmarks in the page header and add the attributes for them but not export the elements, so the first auto-style gets a bunch of duplicate attributes. Change-Id: I3fcf39f03e3d9ae5fca661efa7eb4bbb3eab9f5c
2014-12-10fdo#87110: xmloff: don't catch IllegalArgumentException hereMichael Stahl2-7/+11
There are at least 2 callers of InsertTextContent() that have non-trivial catch handlers for this exception, which aren't called now. (regression from bebf8ccfba37f77d6a43c7874249b31736467b17) Change-Id: I085b710dfd5877e9b7e71610951543eddf6a6e46
2014-12-09Resolves: fdo#87108 crash on saving fodgCaolán McNamara1-4/+7
Change-Id: Ib88f0e9b0a3ba229c9e9f6cf20831c16051e3e29
2014-12-08fdo#38835 strip out OUString globalsNoel Grandin3-45/+45
Change-Id: I1a435214af102461e02217f7d95248dac14e5f1a
2014-12-07export to extension namespace instead of odf namespaceMarkus Mohrhard1-2/+9
Change-Id: Ica66112199d6f81d1e8ddf8d78ddde49a3ea6037
2014-12-07remove invalid attribute that is not read anywayMarkus Mohrhard1-1/+0
Change-Id: Id7770ffda49ba7bc0ebc780c67c56b81152213f7
2014-12-07use correct xml element name, related fdo#45266Markus Mohrhard1-0/+1
Below data-pilot-groups the correct element name is data-pilot-group-member and not data-pilot-member. Change-Id: I41aecb7f85a881d13b3eaaa7be8de737b47ea312
2014-12-07don't write extension elements into ODF namespaces, related fdo#45266Markus Mohrhard1-3/+6
We will still import the old elements but only write them into the lo-ext namespace. Also it will only be exported for ODF 1.2 extended. Change-Id: I1c41716b8b16e186ec84767b4b3a636d083162b8
2014-12-07last inconsitently named data table valueMarkus Mohrhard2-2/+2
Change-Id: I1a558616156f5217e309c5957967a69d81c20b8e
2014-12-07more fixes for inconsistent namingMarkus Mohrhard2-2/+2
Change-Id: Iedb1b30d4e3905f884bc3bb39d4703a883e95c46
2014-12-07use a consistent naming schemeMarkus Mohrhard2-2/+2
Change-Id: Ia420779fd875cb2a81b90871b26940f8a0258b4d
2014-12-06the xlink:type attribute is mandatory, related fdo#79449Markus Mohrhard1-0/+1
Change-Id: I03c4217f786bc10aa915780dc10ea52d94019b6e
2014-12-05xmloff: remove pointless branch that does the same as the next oneMichael Stahl1-2/+0
Change-Id: Ib39ec9c045461590767a29ccdd28f39b2a623e88
2014-12-05fdo#86795: xmloff: ODF import: do not import checkbox fieldmark ...Michael Stahl1-15/+34
... if it has start/end, because Writer will become grumpy and crash. Change-Id: I6024051249eeac6ed9e43856fa77db969287f888
2014-12-01fdo#85496: add some asserts to detect this sort of problemMichael Stahl1-0/+14
Change-Id: Iff787c8d2a71bc3082192cc98e3d916badee65dd
2014-11-28xmloff: avoid assertion because AutoCorrect document doesn't ...Michael Stahl1-2/+4
... have a proper outline numbering rule. Change-Id: I7f73176fae6d181ec398c81daf492f4de08e0ae8
2014-11-27Resolves: fdo#84043 don't create duplicate Mirrored[X|Y] propertiesCaolán McNamara1-8/+24
regression from 13ef16423e78d3ea825172594f08c47d2f9bfd09 commit 13ef16423e78d3ea825172594f08c47d2f9bfd09 Author: Armin Le Grand <alg@apache.org> Date: Wed Nov 21 13:23:01 2012 +0000 For backward compatibility take mirrorings in setTransformation into account Also found an error in SdrObjCustomShape::TRGetBaseGeometry when MirrorY was used (cherry picked from commit 4116c33b12d3787c406f0348f89efcb1cf409507) Change-Id: I7bfb5dea32b8ab8498e3d92975c49b830c81e6fb
2014-11-26simplifyStephan Bergmann1-3/+2
Change-Id: I6cb7c66a8dbac1a887d4f218f5de9d73310c809b
2014-11-25Remove ptr_vector header include in favor of forward declaration.Kohei Yoshida1-0/+24
Change-Id: I0aed7ec1bd8ac30ef18147b385c8649a413e4e3a
2014-11-25xmloff: clean up some debug printfsMichael Stahl1-3/+0
Change-Id: I208bbe47d1134b6a362e50d54093e6d35e85f51b
2014-11-25xmloff: replace DBG_ASSERTs in txtlists.cxxMichael Stahl1-15/+11
Change-Id: I0b7ab0ed27ba23f9ad924819193dd30c70e48fed