summaryrefslogtreecommitdiffstats
path: root/writerfilter
Commit message (Collapse)AuthorAgeFilesLines
...
* fdo#66145: fix for FirstIsShared flagAdam Co2013-07-223-0/+7
| | | | | | | Change-Id: Id8cc3829ccd5806295b0f240a570dc1d66ed0c87 Reviewed-on: https://gerrit.libreoffice.org/5002 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
* n#825976: handle TOC \h field for illustrations tables in writerfilterCédric Bosdonnat2013-07-221-39/+63
| | | | | Change-Id: I9ebc91d5f0e706dc1e316e0aa8494af7aec4da4e (cherry picked from commit 43f7bc96c0117a77610bfa5e1edfa870123f56f1)
* writerfilter: make sure the redline stack always has at least one elementMiklos Vajna2013-07-221-0/+5
| | | | | | | | One element is pushed to that stack in the constructor, so calling top() on it always OK, as long as we check during pop() that the stack won't be empty. Change-Id: I010bd77897ab2a3684e7d9c5c0450e7bda626fc0
* fdo#65632 RTF import: send NS_ooxml::LN_trackchange only once for one rangeMiklos Vajna2013-07-182-3/+13
| | | | | | | | | | | | | | | The problem was that in case we had {\deleted foo\b bar} then both "foo" and "bar" triggered a trackchange, but "}" only ended one, resulting in overlapping redline ranges. This was cought by core, but caused a performance problem. For the first bugdoc, before: real 3m57.803s after: real 0m3.072s Change-Id: Ibf6f2db30109f0b9a2571d2e4fb3cc76294f68d1
* Related: fdo#65632 DOCX import: make start/end of trackchange both be an sprmMiklos Vajna2013-07-173-7/+9
| | | | | | | | | The end is an attribute since 0211e8bc457a12570988f4aee7dea42c2fc6d56f, but this just confuses dmapper. With this, the DOCX version of the bugdoc can now be imported without getting an exception in DomainMapper_Impl::CreateRedline(). Change-Id: If820b43a267a62ecdc323eef49bf13d576165269
* Related: fdo#65632 DOCX filter: fix import of non-redlined footnoteMiklos Vajna2013-07-172-9/+16
| | | | Change-Id: Ie1a86e6b59c43c3ee54076d5d68aa3fca0d6a515
* Mark as constTakeshi Abe2013-07-175-8/+8
| | | | Change-Id: I59ac01eacf31061093b83ab3057963de7ea4a2e7
* i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.Michael Stahl2013-07-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add IsUTC member to: com.sun.star.util.DateTime com.sun.star.util.DateTimeRange com.sun.star.util.Time Add new stucts with explicit time zones: com.sun.star.util.DateTimeWithTimezone com.sun.star.util.DateWithTimezone com.sun.star.util.TimeWithTimezone Adapt the sax::Converter to read/write timezones, and fix the unit test. Everything else just uses default (no time zone), this commit is just to fix the API. STRUCT: /UCR/com/sun/star/util/DateTime nFields1 = 7 != nFields2 = 8 Registry2 contains 1 more fields STRUCT: /UCR/com/sun/star/util/DateTimeRange nFields1 = 14 != nFields2 = 15 Registry2 contains 1 more fields STRUCT: /UCR/com/sun/star/util/Time nFields1 = 4 != nFields2 = 5 Registry2 contains 1 more fields Conflicts: sc/source/filter/oox/unitconverter.cxx Change-Id: I01f7a6d082a6b090c8efe71d2de137474c495c18 Reviewed-on: https://gerrit.libreoffice.org/4833 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* fdo#54900 RTF import: support setting para align after textMiklos Vajna2013-07-151-0/+1
| | | | | | | | Both Word and Writer typically write all paragraph properties before the first text in each paragraph, but at least for paragraph alignment, it's valid to write them at the end. Change-Id: I0337e63678ad45c662a204ab2fc59378607abe74
* use static LanguageTag::convertTo...() for standalone conversionsEike Rathke2013-07-131-1/+1
| | | | | | | | If no LanguageTag instance is at hand use the static methods to convert between BCP 47 string, Locale and MS-LangID instead of creating temporary instances. Change-Id: I9597f768078eb81c840e84a5db5617f26bb7dc09
* fdo#66682 RTF export: fix level text of SVX_NUM_ARABICMiklos Vajna2013-07-101-1/+4
| | | | | | | | | | | Even if level text is not ASCII, we should just write the placeholder values (0x00, 0x01, etc.) in a hex encoded form, without Unicode. Regression from 07d01742c69f1c0335bc7e1b57abd8341ce255e7. Also, fix the import side, so the previous bad output now looks bad in Writer as well. Change-Id: I2f93892006c07eec243ec7dfcb23372d243a2db4
* writerfilter: move the crash test file to "pass" directoryMichael Stahl2013-07-101-0/+12
| | | | Change-Id: I8a97eac789e3e8234673de87653b78c39dafe14c
* rhbz#960019 : RTF import: handle extra groups in listoverride entryMichael Stahl2013-07-101-2/+12
| | | | | | | This crashed because for a single listoverride entry 2 SPRMs were sent to the domain-mapper, and the second one was empty. Change-Id: Ic41ffd8bd4edcff065f49ecef3464efedd909d63
* writerfilter: not every field has a Content propertyMichael Stahl2013-07-101-3/+6
| | | | | | | | | ... so don't try to get it unconditionally (but SetExpression does have it). (regression from c7e4264bed4e77daccf2f72063e5e00f1008c3cf) Change-Id: I14d24bd70f569ba0bc4f1e48d56ebf43c1441783
* fdo#66565 RTF import: don't produce cell widths smaller than MINLAYMiklos Vajna2013-07-091-2/+3
| | | | | | | | | | | In case we have a table of a given width and the second (or later) row has fewer cells, we have to add a fake cell to such a row. However, it doesn't make sense to do this when the difference is only a few twips: we can't create such a small frame inside the cell later anyway. Regression from c3b0f13546b30e5db3aecd311c7178e4e0933208. Change-Id: Ibc0f02d4184b58bd423c3405e786e1ec25b9dd13
* -Werror,-Wdeprecated-register (Clang trunk towards 3.4)Stephan Bergmann2013-07-081-0/+12
| | | | | | | ...in files generated by gperf; an alternative could be to use -isystem instead of -I in gb_Library_use_custom_headers. Change-Id: I316684ab5342977655a5642903b13e127adaf95c
* Related: fdo#66040 RTF import: by default, do create a group shape for \shpgrpMiklos Vajna2013-07-083-3/+21
| | | | | | | | The bugfix was just for the special case when we must create textframes due to the contained tables, this one add support for the default case when we want a real group shape. Change-Id: I74b77b233235959266a24660c970a79e41d8b272
* RTFSdrImport: support stacking of parentsMiklos Vajna2013-07-082-4/+22
| | | | Change-Id: Ie8f039ce403832e54251a751609d91b8d608ed79
* writerfilter: add RTFLookahead to be able to look ahead during importMiklos Vajna2013-07-054-2/+194
| | | | Change-Id: I1da765373c352c8a2aa486fe6210b16bf492728c
* RTFTokenizer: remember start pos of current groupMiklos Vajna2013-07-052-1/+10
| | | | Change-Id: I953ca1d3fb5532ac8261ef0def033a4c0fcd79c6
* RTF import: extract RTFListener out of RTFDocumentImplMiklos Vajna2013-07-056-176/+240
| | | | Change-Id: I735f6a3148ece6f28644c5433180482f8cc1323f
* fdo#39001 RTF import: fix fake empty page at the end of the docMiklos Vajna2013-07-051-5/+7
| | | | | | | | | In case we have a \sect, there was no \sbknone (so it counts as a page break as well) and there is nothing after it, we should not make extra efforts to make that have some effect, but adding at least one empty paragraph to that new page. Change-Id: Ibcbecabcb590ed34ef96a97698e4ab8f638d3483
* writerfilter: PropertyMap::Insert's bIsTextProperty parameter is unusedMiklos Vajna2013-07-0512-231/+227
| | | | Change-Id: I2d55043490f895ef439e88bcd1fed51b857255be
* Fixed bad cherry-pick conflict handling in writerfilterCédric Bosdonnat2013-07-041-2/+2
| | | | Change-Id: I4771e198872bbc797df6388af395d7bc14cb2d76
* n#825976: Fixed the import of Table of FiguresCédric Bosdonnat2013-07-043-2/+19
| | | | | | | | | | | | | | | | Support the TOC \c switch and fixed the SetExpression current presentation property to have updated fields and TOC. (cherry picked from commit 22a22a0983ec9c95e5b471395fc1c5bb813bd0d2) Conflicts: writerfilter/source/dmapper/DomainMapper_Impl.cxx writerfilter/source/dmapper/PropertyIds.cxx Conflicts: writerfilter/source/dmapper/PropertyIds.cxx Change-Id: I6fbd7cc38cf8ea7f08a0d15d1f39ffe4805dd62b
* n#825976: Added common flags support for SEQ field importCédric Bosdonnat2013-07-041-3/+26
| | | | | | | | | (cherry picked from commit 031ced0d1ade5350ef0b17a245a2cb5c76e6173d) Conflicts: writerfilter/source/dmapper/DomainMapper_Impl.cxx Change-Id: I9a4505cf060880811abfe355b2ebf810cde9a4d6
* bnc#820504 VML import: don't anchor shapes TO_PAGEMiklos Vajna2013-07-041-1/+1
| | | | | | | | | | In theory, this is a problem because Word formats only support AT_CHAR and AS_CHAR, so importing something as AT_PAGE is buggy. In practice, this also leads to unvisible shapes, since f0d001a378c64ea457e722266e60c96522c72e9b. Change-Id: Ie730d67a789ef12734cede1f9b6c27764a66f237
* writerfilter::dmapper::PropertyDefinition::bIsTextProperty is never readMiklos Vajna2013-07-047-71/+69
| | | | Change-Id: I9d0ce39c1c47d8b89bd675ce91f6cfe2e9c3a061
* fdo#66543: fixed line number attribute START VALUE wasnt imported and exportedAdam Co2013-07-042-2/+14
| | | | | Change-Id: I09e0356f994f5eb328f741723ac7dbfea51419ed Reviewed-on: https://gerrit.libreoffice.org/4693
* Drop unused DomainMapperTableManager::CopyTextProperties()Miklos Vajna2013-07-032-40/+0
| | | | Change-Id: Ibe99d4f3f4254329ca1b7269221f4e7cba1201a1
* n#820503: initial MCE support in writerfilter ooxml tokenizerCédric Bosdonnat2013-07-034-8/+67
| | | | | | | | | | writerfilter OOXML tokenizer was just ignoring the mce elements and thus getting the Choice content and the Fallback one. This initial support drops all mc:Choice contents to read mc:Fallback. At least for drawingML vs VML support, we have a much better support of the fallback. Change-Id: Ic0bf69d0436994e9cfcf38accdd57d17e9f391fe (cherry picked from commit f4112ce9e7840efbcd567c4d18ed4519a1e91294)
* fix for wrong case value in dmapperAdam Co2013-07-031-2/+2
| | | | | | | Change-Id: I8463c72e2a18ca7fe0adacc8f523a8cff04db516 Reviewed-on: https://gerrit.libreoffice.org/4654 Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
* RTF import: support shapes inside tablesMiklos Vajna2013-07-012-8/+21
| | | | | | | This is a better fix for fdo#47802, now that shape import is no longer buffered. Change-Id: Idce6d11e6774d1fe7fc04b6a52d5b77a3879381e
* RTFValue: support storing RTFShapeMiklos Vajna2013-07-012-3/+36
| | | | Change-Id: Ia24fe7556598ad88f3b72a62bef2361a3fd0a712
* SmOoxmlImport: update doc on how to extract handled token listMiklos Vajna2013-07-012-1/+2
| | | | Change-Id: I7cea50e99a4ffd9eac357251ffe630921ec64795
* remove OUString wrap for string literalsThomas Arnhold2013-06-292-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: https://gerrit.libreoffice.org/4624 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* remove some createFromAscii usageThomas Arnhold2013-06-291-3/+3
| | | | | | | | there are a lot more of them: git grep 'createFromAscii[^)]*"' Change-Id: Ibc2e9cae208d8b9c91667bb3b177c6bd6d3a9424
* RTFDesitnationState -> RTFDestinationStateMiklos Vajna2013-06-282-6/+6
| | | | Change-Id: I74e371b531d1a0d5cc9393dd10b9ee2c65ac2e4e
* DOCX import fix for table with auto sizeAdam Co2013-06-282-2/+43
| | | | | Change-Id: Ic86f4f142e579bdef3e954492e1c1e382a545739 Reviewed-on: https://gerrit.libreoffice.org/4496
* n#820800: docx import of wrap polyon was based on dest size of pictureCédric Bosdonnat2013-06-273-7/+6
| | | | | | | ... instead of the original size of it. Change-Id: Ib251206dd092a7c47343caf50bd05a3dfec1af09 (cherry picked from commit ae6981601b0e9175efaf9849b1279290ea3380f6)
* bnc#823675 RTF import: fix import of numbering bullet associated fontMiklos Vajna2013-06-262-4/+14
| | | | | | | | | | | | There were multiple problems here: - \f had a special handler for the listlevel destination, \af had not - in case of multiple \f or \af, the first one is used for the bullet font - in case only \af is used for the bullet font, its value should be used for \f as well Change-Id: I6631504c1aa9f2e0792a3469a5fdce5b7bd49518
* Kill RTFDocumentImpl::getState()Miklos Vajna2013-06-265-9/+33
| | | | | | | | RTFParserState is private to RTFDocumentImpl, exposing it is not a good idea. One more step towards RTFTokenizer not speaking directly to RTFDocumentImpl, but through an interface. Change-Id: I3f626d4f2c560a20d9e24105459e95a66d0a87ca
* fdo#66040 RTF import: initial groupshape supportMiklos Vajna2013-06-253-6/+57
| | | | | | | | | | | | | | There are two cases here: if the shapes contain tables (or other Writer-specific features), we should use text frames and we should not create the actual group shape, as Writer textframes can't be part of such group shapes. The other case is when the shapes contain simple text, OTOH there are groupshape-level transformations defined, in that case we should choose drawinglayer rectangles and actually create a group shape. This commit implements support for the first case only. Change-Id: I9dc99b0711ce5c7a29ea0b14539df0121f9de3d0
* remove unused variableLuboš Luňák2013-06-251-1/+0
| | | | Change-Id: I5dd8dc9a3a256e51706d32249260f6561202bbc9
* fdo65400: fix for Character Shading being lostAdam Co2013-06-255-93/+173
| | | | | | | | | | | | | | | | | This bug fixes the DOCX import and export filters, adds a new property to the document model and updates the UNO API. There is no need to add layout \ UI updates, because in Word the only way to turn this on\off is using a simple button, and there is no way to control the shading color itself. However, ODF import \ export filters should be updated in a future commit. Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Change-Id: I1d34cec79289e38c08e42a4c6265d998e1edfdef Reviewed-on: https://gerrit.libreoffice.org/4452 Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
* bnc#823655 fix RTF import of freeform shape coordinatesMiklos Vajna2013-06-241-7/+7
| | | | | | | E.g. 0,1 was imported as 1,0, as we did not differentiate between not having the coordinate yet and having it as zero. Change-Id: Ia5fbbcc791dc9c6866ffd4c146793690661d81b4
* fdo#56679, fdo#65710 : fix for import and export of underline colorAdam Co2013-06-241-2/+6
| | | | | | | Change-Id: Ifc45900d73802ef99c55d7af4ee04314dd04f1c5 Reviewed-on: https://gerrit.libreoffice.org/4459 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
* cppcheck: fix inefficient checkingJulien Nabet2013-06-231-3/+3
| | | | Change-Id: If015900345304a9545ab0b66c6998a9d6bad9d1f
* bnc#823655 RTF import: ignore styles without a typeMiklos Vajna2013-06-211-0/+3
| | | | | | Regression from 29dcdf6b56f8dbc1b7de0478afb04122f8dbf0f9. Change-Id: I970c0e7b3652d7e6f093815b90e04e0c45904b28
* fdo#43641 writerfilter: tokenize lc:lockedCanvasMiklos Vajna2013-06-202-0/+24
| | | | | | | These are just the minimal changes, so that writerfilter calls into oox::shape::ShapeContextHandler, which does the real work. Change-Id: Ia53731ac8592964b70e8a438ed09262463c05360