summaryrefslogtreecommitdiff
path: root/xmloff
AgeCommit message (Collapse)AuthorFilesLines
2012-11-05Merge remote-tracking branch 'origin/libreoffice-3-6-3' into suse-3.6Petr Mladek6-17/+77
Conflicts: desktop/source/app/sofficemain.cxx instsetoo_native/util/openoffice.lst solenv/inc/minor.mk Change-Id: I3e9510067c7173f6c71368e70ba6dfe168c5318e
2012-10-15odf: export old path without unsupported commands in draw namespace as wellRadek Doulik1-6/+16
- to preserve at least some data for older versions of Libre Office Change-Id: I2a33706c2a2344e45b57a00469a7387072f8602b
2012-10-15odf: export arcangleto commands in enhanced path (use drawooo namespace)Radek Doulik4-6/+13
Change-Id: I43a2c08ee8dfc0abe4d05579b837b5be0944c0fe
2012-09-17fdo#49571: ODF import: ignore "text:enable-numbering" attributeMichael Stahl1-1/+0
It has been imported as an alien attribute since CWS impressodf12 5b364c2e8baf9b1f6bbe611c0fd6895a88056afc, and could not be written to a document created from scratch anyway. Change-Id: I054fcf71d7ddc3ed19735b8aa898d1b1a12db5b9 (cherry picked from commit 9a081484321b3f42bee3b43d18c4bd75b9603b01) Reviewed-on: https://gerrit.libreoffice.org/619 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-17fdo#49876: ODF export: do not export font-size="0pt"Michael Stahl1-0/+2
This is invalid, font size must be positive. Change-Id: I2425d7c596ca9c7c80c0d24c44cdd9ec1ac1dd80 (cherry picked from commit c9699f82edf67a55f4cfdd885fa779b13d816c87) Reviewed-on: https://gerrit.libreoffice.org/617 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-17fdo#49678: ODF export: add svg:viewBox to draw:connectorMichael Stahl1-0/+18
This attribute is mandatory; for the given bugdoc various svg:viewBox="0 0 2500 1" are now written. Change-Id: I7ea2294e0796546dcbb245993c01c2dd2b2a755a (cherry picked from commit a2959aba6affa06dc0c6fb19d0c2b73958e6b221) Reviewed-on: https://gerrit.libreoffice.org/616 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-17fdo#49677: ODF export: always add xlink:type attributeMichael Stahl1-0/+1
The xlink:type was optional on text:a and draw:a elements in ODF 1.1 but is mandatory in ODF 1.2 Change-Id: Ifc7301ed1b0120d31a156751888dea1a55e952fe (cherry picked from commit a27a6b68b7e4d2a4674b4de59fc487b17c7c9907) Reviewed-on: https://gerrit.libreoffice.org/614 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-17fdo#30711: ODF export: "text:name" is mandatory on bookmarks:Michael Stahl2-16/+56
XMLTextParagraphExport: Add a mapping that generates names for those field marks that don't have a name so validators don't complain. (regression from 7a1c5e54afe4e4ef7e17c2e9c969cd41221edc28) There is still the problem that we cannot easily guarantee that the names (generated or from some field param) do not clash with the names of actual bookmarks... Change-Id: I9ed65b94b3e8f725db4354222f2565176b32be52 (cherry picked from commit 22b615a7a54e6424bf3a492d2a07573ad9090949) Reviewed-on: https://gerrit.libreoffice.org/612 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-08-04fdo#38056: fix XMLTextImportPropertyMapper regression:Michael Stahl1-51/+52
The invalidation introduced in 7f9928bfa561ccb6ed4e2baacc7d6960bc1ce231 is unfortunately in the wrong place; the pAllFoo actually point at vector elements, and so they must not be dereferenced after new elements are added to the vector, so move the invalidation up a bit. Change-Id: I244d1d5cfd40469ff6d2c081e057355460d34cf4 (cherry picked from commit 9e74e9f3c0931f34fb5421056851a06b83501ce9) Signed-off-by: Ivan Timofeev <timofeev.i.s@gmail.com>
2012-08-02sd, sfx2, writerfilter, xmloff: fix some warningsMichael Stahl1-1/+1
Signed-off-by: Petr Mladek <pmladek@suse.cz>
2012-07-20fdo#38056: ODF import: fix page style attributes:Michael Stahl1-0/+51
PageMasterImportPropMapper: in the case of a single "fo:border" and "style:border-line-width" attribute, it is possible that the border is imported wrongly, like this: 1. pAllBorderProperty is set from the imported value, with name "TopBorder" 2. individual pNewBorder[i] are created as copies from pAllBorderProperty, one of which also with name "TopBorder" 3. pNewBorder[i] is updated with widths from pBorderWidths[i] 4. the individual pNewBorder[i] are added to the property vector 5. the property vector is sorted by property name 6. the properites are applied in order; if the pNewBorder[TOP] happens to precede the pAllBorderProperty (which is indeterminate as they both have name "TopBorder"), then the pAllBorderProperty will overwrite the border widths computed in step 3. Thus, nerf the various pAllFoo properties so they do not override the individual Foo properties later on. (cherry picked from commit 7f9928bfa561ccb6ed4e2baacc7d6960bc1ce231) Change-Id: I87755f1184d59da2aa72ac053e6f77d7295d6958 Signed-off-by: Miklos Vajna <vmiklos@suse.cz>
2012-07-13fix a crash with empty stringLuboš Luňák1-4/+2
If it's named nLast, then it's supposed to point to the last character, which, with an empty string, logically means it should point before the start of the string. Change-Id: I248fbe80c1c4b1c2c8d39f0bcf772f9b85415e4a Signed-off-by: Miklos Vajna <vmiklos@suse.com>
2012-06-27add support for axis color import/exportMarkus Mohrhard2-0/+2
Change-Id: I713981b9ae1a82ca0b014cde88abdc32af1f9975
2012-06-12fix invalid vector.push_back(vector.back())Michael Stahl2-4/+8
The vector::back() does not return a value but a reference, hence this is invalid. Change-Id: I8624b649deb8fb4de0d1d8af1288068acc80cef2 (cherry picked from commit cd18b8e313b792f5fc42edb3314a95d202406899) Signed-off-by: Michael Stahl <mstahl@redhat.com>
2012-06-05fdo#30711: fix some problems in 7a1c5e54:Michael Stahl1-29/+20
The elements are exported without checking for bAutoStyles, and the Any conversion is overly verbose. Change-Id: Iebb52c8cd2638424dd48d28ec5a12c10a41f6cbf (cherry picked from commit 4190e9351e69730f0097e6cdf4dad2fafa10577e)
2012-06-05Catch more remnant ODFVER_LATEST instances.Thorsten Behrens2-3/+3
This extends commit d0af38eaa029c2f2c2617544c8b6798c463381b9, converting more latest-ver to 1.2-extended cases.
2012-06-05Fix fdo#50704 Default to absolute svg:d paths for ODF1.2 compat-modeThorsten Behrens6-23/+34
This writes out absolute paths, to side-step buggy odf consumers' wrong handling of the 'z' statement (i.e. they ignore it for current positions).
2012-06-05Add ODF1.2 extended-but-more-compatible modeThorsten Behrens4-6/+8
With several legacy pre-ODF1.2 and ODF1.2-only consumers out there, folks wanted a more backward-compatible ODF1.2 extended mode, that uses stuff deprecated in 1.2, and/or is 'bug-compatible' to older OOo-versions. Therefore, adding ODFVER_012_EXT_COMPAT, and sticking it to several attributes that were ODFVER_LATEST before.
2012-06-05Unify ODF extended vs. ODF1.2 handlingThorsten Behrens2-8/+6
Make "export extended ODF" consistently mean "version > ODF1.2". Future ODF versions need manual review anyway, of the various changes/additions we ship. Change-Id: I0f6c1646b306e18f0abcdd1a1802fece821b2e93
2012-06-04fdo#46808, Adapt UNO services to new style, Part 7, updating ::createNoel Grandin2-4/+9
Update calls to factories to use new ::create methods Change-Id: I01d4417820f52718836c92faf3c2fae0dc96b30d Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, added some tweaks.
2012-06-04nuke unused definesTakeshi Abe1-3/+0
Change-Id: I7924da4bff73ca8f82c76eb8cb211401530acdeb
2012-06-03Import X errorbars.Rafael Dominguez6-20/+192
Change-Id: I069271ad1c0f2fc5ec0854d6fb13aa0dc25be01d
2012-06-03Export errorbars attributes and styles to XML.Rafael Dominguez1-1/+23
- Instead of exporting the errorbar data to the series in a global way now each errorbar has its own attributes depending on their user settings, so we can have different data for each type bar (only when using ODF 1.2 extended) and still keeping it backward compatible with old formats.
2012-06-03Map errorbars properties from chart2 API to xml.Rafael Dominguez3-0/+11
2012-06-02targeted string re-workNorbert Thiebaud15-452/+410
Change-Id: I342f1b8ac6c8205b6c587578a6b10a6ca51758fa
2012-06-02targeted string re-workNorbert Thiebaud3-14/+14
Change-Id: I588fadc51fec90b3b04d61c2c63880236c535183
2012-06-02targeted string re-workNorbert Thiebaud15-568/+558
Change-Id: I56fe169cb78e8b3d57a5949f90b8d364e95a3917
2012-06-01targeted string re-workNorbert Thiebaud1-2/+1
Change-Id: I44518bb1b464bb0b458c0b5f1c249ef160ea3b26
2012-06-01targeted string re-workNorbert Thiebaud3-64/+59
Change-Id: I1e47f90e387724e74312091e577f010fb16ca72f
2012-05-31targetted re-work of minor cppcheck fixesMichael Meeks1-5/+4
Change-Id: Id0c3cecaccb4d9733149061f652684d3398e9bf2
2012-05-31nuke unused typedefTakeshi Abe1-1/+0
Change-Id: I8848d0e687c3b19be1a8bc1f41c2a0c94e13bbbf
2012-05-29targeted string re-workNorbert Thiebaud1-6/+6
Change-Id: If9a9889fa36bc76c9afed295568ed9a05de4587f
2012-05-29targeted string re-workNorbert Thiebaud3-31/+31
Change-Id: Ibc811f2ef501a91172e096a700821ab6bd9406ea
2012-05-29targetted SAL_N_ELEMENTS reversion.Michael Meeks2-28/+29
Change-Id: I30be93ccaeb1f9fd17cbe9e3ed3165e094810b2e
2012-05-26support remaining data bar attributes in odf import/exportMarkus Mohrhard2-0/+4
Change-Id: I6fdf7a6158002003938ee039152d582776aba5db
2012-05-25import new conditional format informationMarkus Mohrhard1-0/+2
Change-Id: Iaa16792a74a3e33d3880cb9db41baf5613804387
2012-05-24use correct namespace for calc odf extensionsMarkus Mohrhard4-1/+15
Change-Id: I6e0feab7e1d649fbf4dafb9f06d57f68e9a4b934
2012-05-24first part for databar exportMarkus Mohrhard2-0/+12
# Changes to be committed: Change-Id: Iffe020d60982c2872c1a451f9d0e4e1d4f5e349f
2012-05-22-Werror=unused-parameterStephan Bergmann4-5/+3
Change-Id: I06dc09d57821ac729182764882558fa079b5ed37
2012-05-22WaE: unused parameter 'rStrName'Tor Lillqvist1-1/+1
Change-Id: Ia760fe7ae66f8caadb10947c3d743a9f64a55dc5
2012-05-22make row heights ( incl default row height ) from excel are saved absoluteNoel Power8-0/+62
Currently default row heights imported from Excel are not adjusted Optimally ( AdjustRowHeight() is no longer called ) However to ensure correct round tripping the CR_MANUALSIZE flag *is* still set, this results in the style:use-optimal-row-height="true" being set for default row height(s) when saving as odf. So, for example absolute positions which are calculated on importing the Excel document ( where the row height is *not* optimally adjusted ) are still saved with the 'style:use-optimal-row-height' set. When the row heights are read back into calc the row sizes are changed any absolutely positioned objects are now out of place. This patch ensures *all* row heights are from an imported excel document are saved with style:use-optimal-row-height="false" Change-Id: If898b97ddb0c8b59a401d7b3c133b0eec09cd1db
2012-05-20Some cppcheck cleaningJulien Nabet1-3/+3
Change-Id: Ic30cdeffabec1eb1a6c153ac450a3d28064ef534
2012-05-19Fix Prefer prefix ++/-- operators for non-primitive typesJulien Nabet3-4/+4
Change-Id: I4ebb1027151c3bc34f81fb1e13de6c4c5cfed54d
2012-05-18removed unused const rtl::OUStringTakeshi Abe6-10/+0
Change-Id: If02be864f958de96ae1c54fe575b1828410390b1
2012-05-17some more ConstAsciiString behind OSL_ENSURECaolán McNamara1-2/+2
Change-Id: Ic93ec84ce62234364d233a9188a65439e88a79fe
2012-05-17merge the 5 ConstAsciiString duplicate classes togetherCaolán McNamara7-123/+73
a) merge them together and move it into comphelper b) turn it into a POD rather than having vast amounts of destructors registered into the cxa_atexit chain Change-Id: I04d3b9d7804f8e233013c916df9d617a0f84f96a
2012-05-16completely nutso merge bustage since 2004Caolán McNamara1-4/+0
useless unused fat global objects since 146f73bcfa48ddddd18a1eb449aaa5ddd43d2dd2 Change-Id: I2a5f54d34b498a64b658f158f98269f16e2e71f8
2012-05-14removed unused static rtl::OUStringTakeshi Abe2-3/+0
Change-Id: I5a097beaaeb30214ed6071bba1297e551291922b
2012-04-29make gbuild the default assumption of build.plBjoern Michaelsen1-1/+0
this removes dmake completely out of the build for migrated modules build.pl now assumes modules to be gbuild, unless there is a prj/dmake file Change-Id: I674a036b182ee13c5ec093e83cb3d38133112d3b
2012-04-20fdo#48969: switch units in Converter::convertDoubleMichael Stahl1-1/+1
The factor here is used to divide, so the parameters have to be switched; this has always been broken but probably before 3ca2bef76886450058d1667703aeafe4c2e456c3 nothing called this. This also reverts 7bf1fa3757133f12cf6ca624f8cee6ba5363e7d8 because that was a workaround for the problem in the wrong place.