summaryrefslogtreecommitdiff
path: root/xmloff
AgeCommit message (Collapse)AuthorFilesLines
2012-03-05don't create uno::Sequence with new, fdo#46825Markus Mohrhard2-13/+9
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> (cherry picked from commit 61600b62068bf7837c532c8b32377984ee76af1e) Signed-off-by: Eike Rathke <erack@redhat.com> Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2012-02-13fdo#42771: Fix crash when loading an invalid .fodt.Jan Holesovsky1-4/+10
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 Stahl1-1/+22
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 Stahl2-7/+26
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 Stahl1-11/+21
Signed-off-by: Petr Mladek <pmladek@suse.cz>
2012-01-13use INCLUDE instead of SOLARINC, and after local includesEike Rathke1-1/+1
2012-01-06fdo#43862: reintroduce fo:margin-* on top of fo:margin for backward compatCédric Bosdonnat1-8/+2
2011-12-23fdo#44082: fix hyphenation attributes:Michael Stahl1-2/+2
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 Stahl3-7/+22
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 Michaelsen1-0/+1
2011-12-06impress210: #i41995# fixed distinct shape and page idChristian Lippka ORACLE4-0/+37
# 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 Stahl1-51/+47
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 Štrba1-0/+2
2011-12-03xmloff: load and store embedded mediaMichael Stahl2-14/+111
2011-12-01typo fix: explicitely -> explicitlyLior Kaplan1-1/+1
2011-12-01get rid of class Date and Time default ctor with system time penaltyEike Rathke3-5/+5
2011-12-01Remove uses of charAtAugust Sodora1-13/+13
2011-11-30handle dates with year < 1000Eike Rathke1-2/+9
* 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 Michaelsen1-1/+1
2011-11-28switch source and target units, so that it works right with sax conversionsRadek Doulik1-1/+1
2011-11-27remove precompiled_xxx.hxx/cxxNorbert Thiebaud2-510/+0
2011-11-27remove pch from the include listNorbert Thiebaud2-2/+0
2011-11-27remove include of pch header from xmloffNorbert Thiebaud353-696/+0
2011-11-27remove pre-compiled header support in gbuild and gbuildified moduleNorbert Thiebaud1-2/+0
2011-11-26Remove some uses of OUString::setCharAtAugust Sodora1-2/+2
2011-11-25make gbuild makefiles run independant of pwd againBjoern Michaelsen1-1/+1
2011-11-24fdo#43152 ooo#114415 fixed crash on unnamed form elementEike Rathke1-1/+4
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 Yoshida2-0/+2
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 Thiebaud1-4/+4
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 Bergmann4-6/+4
2011-11-11callcatcher: remove some unused codeCaolán McNamara2-33/+0
2011-11-10callcatcher: remove unused methodsCaolán McNamara2-17/+0
2011-11-08Removed some SvStringsSortDtorDaisuke Nishino1-9/+7
2011-11-03callcatcher: drop unused methodsCaolán McNamara4-102/+0
2011-11-03callcatcher: ditch some unused codeCaolán McNamara3-75/+0
2011-11-02update list post SvUShorts removalCaolán McNamara2-47/+0
2011-11-02callcatcher: some unused codeCaolán McNamara2-18/+0
2011-11-01eliminate SvUShorts typeDaniel Di Marco2-15/+11
2011-10-28ODF conformance - Impress table markup fixesThorsten Behrens2-2/+3
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 Bergmann2-2/+2
2011-10-19Simplified comphelper::OSequenceIterator and its uses.Stephan Bergmann2-26/+33
2011-10-17WaE: potentially uninitialized local variable 'nColor' usedTor Lillqvist1-1/+1
2011-10-11xmluconv.hxx: noncopyable (thank you tinderbox)Michael Stahl2-1/+4
2011-10-11#i108468#: clean up xmluconv: add a pImpl to SvXMLUnitConverterMichael Stahl2-73/+102
2011-10-11#i108468#: clean up xmluconv code duplication, measured approach:Michael Stahl60-1180/+524
modify sax::Converter::convertMeasure to use sal_Int64 instead of BigInt: should be sufficient, since the largest number is SAL_INT32_MAX * 10^7. remove duplicate methods from SvXMLUnitConverter: convertMeasurePx, convertMeasure (static variants) remove entirely duplicative class SvXMLExportHelper: GetConversionFactor, GetUnitFromString, AddLength change SvXMLUnitConverter interface from MapUnit to css::util::MeasureUnit. change SvXMLExport constructor params from MapUnit to css::util::MeasureUnit. rename some methods to turn compiler into merge conflict detector :)
2011-10-11#i108468#: clean up xmluconv code duplication, DateTime edition:Michael Stahl24-887/+137
remove duplicate methods from SvXMLUnitConverter: convertTime (all variants), convertDateTime (DateTime variants), convertTimeDuration. move convertAny from SvXMLUnitConverter to sax::converter.
2011-10-11#i108468#: clean up xmluconv code duplication, part 1:Michael Stahl112-1162/+937
move convertNumber64 from SvXMLUnitConverter to sax::converter. remove duplicate methods from SvXMLUnitConverter: convertBool, convertPercent, convertColor, convertNumber, convertDouble, indexOfComma, encodeBase64, decodeBase64, decodeBase64SomeChars, clearUndefinedChars
2011-10-10make xmloff ByteString freeCaolán McNamara7-74/+61
2011-10-05conversion operator is goneCaolán McNamara5-50/+50
2011-10-05callcatcher: unused methodsCaolán McNamara1-60/+0