summaryrefslogtreecommitdiff
path: root/xmloff
AgeCommit message (Collapse)Author
2012-07-31sd, sfx2, writerfilter, xmloff: fix some warningsMichael Stahl
Signed-off-by: Petr Mladek <pmladek@suse.cz>
2012-07-20fdo#38056: ODF import: fix page style attributes:Michael Stahl
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-06-12fix invalid vector.push_back(vector.back())Michael Stahl
The vector::back() does not return a value but a reference, hence this is invalid. Change-Id: I8624b649deb8fb4de0d1d8af1288068acc80cef2
2012-04-20fdo#48969: switch units in Converter::convertDoubleMichael Stahl
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. Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
2012-03-26Compatibility option for incorrect relative moves after closePath (fdo#47406)Fridrich Štrba
Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2012-03-26Fix fdo#47406 incorrect relative moves after closePathThorsten Behrens
I missed the fact that odf export still uses the old exporter in xmloff/source/draw/xexptran.cxx, which was not fixed wrt. the update of current position in basegfx/source/polygon/b2dsvgpolypolygon.cxx Conflicts: xmloff/source/draw/xexptran.cxx
2012-03-02don't create uno::Sequence with new, fdo#46825Markus Mohrhard
The uno::Sequence copy c'tor creates a flat copy and increments the ref count. So if you use new and later delete together with the copy constructor you get a double delete. Signed-off-by: Kohei Yoshida <kohei.yoshida@suse.com>
2012-02-13fdo#42771: Fix crash when loading an invalid .fodt.Jan Holesovsky
createTextCursorByRange() likes to throw runtime exception, even though it just means 'we were unable to create the cursor'. Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2012-02-07fdo#45534: ODF export: fix draw:fit-to-sizeMichael Stahl
In ODF 1.1 and 1.2 this attribute is of type boolean, so only write the new values if the extended format is selected. (regression introduced with e479f47f7d48dbd0d701bf347b6a2d5121ba3d34)
2012-02-07fdo#45449: ODF export: frames: invalid "min-width"Michael Stahl
XMLTextParagraphExport::addTextFrameAttributes: delay writing of the fo:min-width and fo:min-height attributes so that they end up at the draw:text-box element, and not at draw:frame where they are invalid. Testing reveals that the ODF import can already handle reading the attributes from the draw:text-box elements, so there doesn't seem to be a backward compatibility problem.
2012-01-24rhbz#746174: also export list restart for non root listMichael Stahl
Signed-off-by: Petr Mladek <pmladek@suse.cz>
2012-01-13use INCLUDE instead of SOLARINC, and after local includesEike Rathke
2012-01-06fdo#43862: reintroduce fo:margin-* on top of fo:margin for backward compatCédric Bosdonnat
2011-12-23fdo#44082: fix hyphenation attributes:Michael Stahl
These have type positiveInteger, so don't write 0 values: 20.191 fo:hyphenation-push-char-count 20.192 fo:hyphenation-remain-char-count (cherry picked from commit 59a5c37d0df9b5612552c4b749191385ca0adc80)
2011-12-23fdo#44073: ODF export: fix layout grid invalid ODFMichael Stahl
The following 3 attributes have been added in ODF 1.2, so don't write them into ODF 1.1 files: style:layout-grid-base-width 20.297 style:layout-grid-snap-to 20.305 style:layout-grid-standard-mode 20.306 Additionally, style:layout-grid-snap-to was written wrongly as style:layout-grid-snap-to-characters, which does not exist in any ODF spec. For backward compatibility with previous OOo/LO versions, write the wrong attribute in addition to the correct one in ODF extended mode, even though validators complain about it (consider removing that some years from now). (cherry picked from commit c1e1ef80e8428514499b061e00801a6a6298d0b0)
2011-12-07in modules, when we have a env we are in stage gbuildBjoern Michaelsen
2011-12-06impress210: #i41995# fixed distinct shape and page idChristian Lippka ORACLE
# HG changeset patch # User Christian Lippka ORACLE <christian.lippka@oracle.com> # Date 1299691906 -3600 # Node ID 0b9b11216b0d3401f8824542dd5f2794eb141035 # Parent 69091b8fc77c9951fcdc52b800a37a92dc70bf84 impress210: #i41995# fixed distinct shape and page id
2011-12-06refactor media embedding completely:Michael Stahl
Do the tempfile handling in SdrMediaObj, not in the window; this has the advantage that it works even in the presence of clipboard documents without SfxBaseModels and thus without storage (sc, sw). The SdrMediaObj instances share ownership of a temp file.
2011-12-05The ODG should have office:drawing after office:body, not office:graphicsFridrich Štrba
2011-12-03xmloff: load and store embedded mediaMichael Stahl
2011-12-01typo fix: explicitely -> explicitlyLior Kaplan
2011-12-01get rid of class Date and Time default ctor with system time penaltyEike Rathke
2011-12-01Remove uses of charAtAugust Sodora
2011-11-30handle dates with year < 1000Eike Rathke
* Read dates with years consisting of less than 4 digits. ISO 8601 specifies that years are to be written with a minimum of 4 digits. However, be lenient in what we accept. * Write years < 1000 with leading zeros to comply with ISO 8601 YYYY.
2011-11-29move reconfigure into gbuildBjoern Michaelsen
2011-11-28switch source and target units, so that it works right with sax conversionsRadek Doulik
2011-11-27remove precompiled_xxx.hxx/cxxNorbert Thiebaud
2011-11-27remove pch from the include listNorbert Thiebaud
2011-11-27remove include of pch header from xmloffNorbert Thiebaud
2011-11-27remove pre-compiled header support in gbuild and gbuildified moduleNorbert Thiebaud
2011-11-26Remove some uses of OUString::setCharAtAugust Sodora
2011-11-25make gbuild makefiles run independant of pwd againBjoern Michaelsen
2011-11-24fdo#43152 ooo#114415 fixed crash on unnamed form elementEike Rathke
An unnamed form element without parent container lead to a crash when trying to obtain a unique name by iterating over (now not) existing container elements.
2011-11-18Added handler to handle the new <table:filter-set-item> elements.Kohei Yoshida
The export is working, while the import part is still in progress.
2011-11-16tweak gbuild standart Makefile to allow partial build in unsourced envNorbert Thiebaud
This allow to run make in a module wihtout the need to source Env.Host.sh.
2011-11-14Removed comphelper -> unotools processfactory.hxx duplication.Stephan Bergmann
2011-11-11callcatcher: remove some unused codeCaolán McNamara
2011-11-10callcatcher: remove unused methodsCaolán McNamara
2011-11-08Removed some SvStringsSortDtorDaisuke Nishino
2011-11-03callcatcher: drop unused methodsCaolán McNamara
2011-11-03callcatcher: ditch some unused codeCaolán McNamara
2011-11-02update list post SvUShorts removalCaolán McNamara
2011-11-02callcatcher: some unused codeCaolán McNamara
2011-11-01eliminate SvUShorts typeDaniel Di Marco
2011-10-28ODF conformance - Impress table markup fixesThorsten Behrens
Fix for fdo#35190 - Impress writes invalid ODF for the table styles (text:style-name instead of table:style-name).
2011-10-24Some warning cleanup (found with trunk Clang).Stephan Bergmann
2011-10-19Simplified comphelper::OSequenceIterator and its uses.Stephan Bergmann
2011-10-17WaE: potentially uninitialized local variable 'nColor' usedTor Lillqvist
2011-10-11xmluconv.hxx: noncopyable (thank you tinderbox)Michael Stahl
2011-10-11#i108468#: clean up xmluconv: add a pImpl to SvXMLUnitConverterMichael Stahl