summaryrefslogtreecommitdiff
path: root/writerfilter
AgeCommit message (Collapse)Author
2015-01-19fdo#39440 reduce scope of local variablesMichael Weghorn
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-17writerfilter: turn RTFFieldStatus into a C++11 scoped enumerationMiklos Vajna
Change-Id: Ibd6a9824651b0e8376b06b1d74c409ba6950a66b
2015-01-14rhbz#1180114: writerfilter: don't crash on w:customXmlDelRangeStart etc.Michael Stahl
We can't do anything sensible with these CustomXML elements but now we have to handle them because. (regression from 9dbf817fe5c5253fba0831aefa17575ae0ba3af1) Change-Id: If4247890ff9961a77434587802670d28608a7922
2015-01-14writerfilter: document action tokenidMichael Stahl
Change-Id: I5c8118682cdb2c6fb5b86c9eafa30dbfd4b67f1f
2015-01-11Use std::initializer_list ctorMiklos Vajna
Change-Id: I0238d8f4ae6b92f92f8bb92df33da5552a158cbe
2015-01-10writerfilter: clean up RTFFrame::getSprms()Miklos Vajna
Change-Id: I68bacfc41dc7b104a07c44135c0124e3f6464d67
2015-01-10RTF filter: change uses of cppu::WeakImplHelper* to use variadic variantsMiklos Vajna
Change-Id: Iea8552570146bd516ca2ee241caa4fcc3047b9f7
2015-01-10RtfFilter: indentation fixesMiklos Vajna
Change-Id: I584045f8b626ff3a51e868c586581219bf4a758c
2015-01-07fdo#84938: convert STREAM_ #defines to 'enum class'Noel Grandin
Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
2015-01-05Some loplugin:revisibility clean-upStephan Bergmann
Stumbled across such redundant visibility re-specifications when looking at the odd case of cppu_unsatisfied_iquery_msg declared CPPU_DLLPUBLIC in cppu/source/cppu/cppu_opt.cxx and used in inline code in include/com/sun/star/uno/Reference.hxx with only a declaration lacking CPPU_DLLPUBLIC visible, and wondering how that actually works on Windows. However, this plugin is probably not worth it being run all the time, so committing it to compilerplugins/clang/store/. Change-Id: Ibc3c4e7499213de1b419ce7eb85455cb832e1510
2015-01-05WaE: passing class rtl::OUString by value, rather pass by referenceTor Lillqvist
Change-Id: I6a6b24706ed07c5de9870604b6fe5e382ca776c8
2015-01-04fdo#79738: FILEOPEN: Number lines in footer not compatible with MSOCharu Tyagi
Reviewed on: https://gerrit.libreoffice.org/13539 Change-Id: I309f9cfc31420e350acc05be7ff422c8aefad782
2015-01-03Use std::make_sharedMiklos Vajna
Change-Id: I27281dfbb95c410c2725ec7ce93b91eed41061e2
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara
you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2015-01-01Use std::make_shared to create RTFDocumentImplMiklos Vajna
Change-Id: I5a4fc60b30829cf8d9e8e7f142331dbb0007ac9b
2014-12-30writerfilter: boost::shared_ptr -> c++11 std::shared_ptrMiklos Vajna
Change-Id: Ib5649d8979093bb147c61eebcf95a472ad899672
2014-12-28RtfFilter::filter: don't leak pInMiklos Vajna
Change-Id: I2510cd7faa48c0287498bdbc2511e29dbc62860a
2014-12-26writerfilter: turn RTFBmpStyle into a C++11 scoped enumerationMiklos Vajna
Change-Id: Idbb1b2f2573d5c807d647bc1ecfee3da82be5574
2014-12-25writerfilter: turn SourceDocumentType into a C++11 scoped enumerationMiklos Vajna
Change-Id: I11c550d0ec5a10f17116ac8f7025c0283e292f2e
2014-12-24writerfilter: turn RTFInternalState into a C++11 scoped enumerationMiklos Vajna
Change-Id: I7407aeba6ddcfd783cee508faa6731c59d0b9759
2014-12-23writerfilter: turn RTFError into a C++11 scoped enumerationMiklos Vajna
Change-Id: Ib909ea6f8ed18a008f9e5079b88fc862abe13da2
2014-12-22fix indentationMiklos Vajna
Change-Id: Iebc587c55d83a7dbafd149fc605fcd9b6bab456c
2014-12-22writerfilter: fold single remaining header of resourcemodel into dmapperMiklos Vajna
Change-Id: I54cc8ebda18c8ca7071c39210687f28adbc4790a
2014-12-22resolveSprmProps() is used only in dmapperMiklos Vajna
Change-Id: I24227d700830a227ed8aa780b3b9e15c57b46f6e
2014-12-22-Werror,-Winconsistent-missing-overrideStephan Bergmann
Change-Id: If94e9c666c4c2d47e5c25b9f04f674f838b23267
2014-12-21writerfilter: hardcoded cFieldStart/Sep/EndMiklos Vajna
Change-Id: If7278418e1c7f8b8f812ce0b01720f8666e9ae5a
2014-12-21TagLogger is used only in dmapperMiklos Vajna
Change-Id: Ic88909ded4a28b1c019a03eefdaf3716cfbe9079
2014-12-21writerfilter: refactor to get rid of remaining scary PositionHandler staticsMiklos Vajna
Change-Id: I954504ad6b730866504a470b8d966fdfe1d58550
2014-12-21writerfilter: refactor to get rid of savedPositionOffset{V,H} staticsMiklos Vajna
Which are extremely scary, allowing a shape position from one doc to appear in an other if two writerfilter import is in progress at the same time. This partially reverts 8fa1a0874765ea7db57e496f1d92731b9ab09280 (read wp:positionOffset, wp:alignV and wp:alignH properly (bnc#513579), 2011-05-04). Change-Id: I0fcddf88fa56f5f9288e47bcd100c38ee9cf2f13
2014-12-20Unused enumeration valueMiklos Vajna
Change-Id: I82a1f902311fb5b1cb18460c40169cd93234bc88
2014-12-20writerfilter: clean up copy&pasted dmapper_logger start / endMiklos Vajna
Change-Id: Iacae41a32acec153b1db1e1a03b2f2913d114d9b
2014-12-20writerfilter: pass the whole MediaDescriptor to dmapperMiklos Vajna
This gives dmapper access to the document URL. Change-Id: I4844c2fe97815f788de87b53170d4a1d1faebde8
2014-12-19Support for docx import of fixed date and time fields.Eilidh McAdam
If a field is fixed, mark it as such and parse value to seed it. This is the other half of the docx filter improvement for fdo#59886. Reviewed on: https://gerrit.libreoffice.org/13431 Change-Id: Id00c454921cd386589e04b9572f4040898625a6f
2014-12-19Small fix for docx date field format import.Eilidh McAdam
The standard allows for arbitrary amounts of whitespace between tokens. MSO outputs with a space between \@ and ", LO doesn't. To account for this, any whitespace between these tokens is stripped and parsing assumes a command looks like: DATE \@"some format". Change-Id: I2620780da3ee873af6f35e236c7c34a073aebe73 Reviewed-on: https://gerrit.libreoffice.org/13430 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-12-19DOCX filter: handle decimal number format with no level text correctlyMiklos Vajna
The first problem was that no level text means no list text in Word, but Writer only does that for the "none" numbering format. Also, when the numbering format is "none", then Writer doesn't show the follow character (typically a tab), either, but Word does: add a zero width space as a suffix to mimic the Word behavior on DOCX import. Adapt CppunitTest_sw_rtfimport accordingly, that effectively tested that LabelFollowedBy is lost on import. Change-Id: I7d5c7e62ba3d02da4a750ba5afad07e68b0b8c38
2014-12-19writerfilter: unused includeMiklos Vajna
Change-Id: Ibde8c193c9558b297e7afe71cd87390143b6f25b
2014-12-18writerfilter: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I42d89d0cc8bf9e9a0918345147ae2f64b5aabf58
2014-12-17rtl::OUStringLiteral to the rescueStephan Bergmann
...for cases where ? "a" : "bb" does not work, as well as to work around the MSVC bug for cases like ? "a" : "b". Change-Id: Id404716047aca5cc81440f291616d92365379b8f
2014-12-17fix Windows buildLászló Németh
Change-Id: I690163d7ab6d62c93da33d416e8757311f5d35c1
2014-12-16(related fdo#84685): writerfilter: RTF import: support \tc TOC entryMichael Stahl
Change-Id: Icda252e1f092707728d3a24df50fba7080e759bb
2014-12-16fdo#84685: writerfilter: RTF import: support \xe index entryMichael Stahl
Change-Id: Ia957541a5997961aa86b2eb8537ebd29d3092691
2014-12-15writerfilter: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I113dba36c8c6a15f93fb4f15cd85ddb07ce5eecf
2014-12-15Unused includesMiklos Vajna
Change-Id: I84e475a64cf09e4eeea524b73f8febf7f0a1a46b
2014-12-14fdo#86761 RTF import: positive border width and fLine=0 means no borderMiklos Vajna
Regression from 01a32b7d074511bed24044dc94e1159aea62722b (fdo#85179 RTF filter: import image border, 2014-10-23), there were a number of problems here: - CppunitTest_sw_htmlexport: revert back to the old behavior, where in case there is no border, we don't set the color of it. - The testcase of the above commit omitted fLine=1 shape property, which is present in the original bugdoc, and only with that should we put a border around the shape. - Let fLine=1 explicitly change the line style from NONE. - dmapper: if line style is NONE, then don't bother setting the border color and width. Change-Id: Iffee41066d42822b699c478821645b9742df3f58
2014-12-13writerfilter: only dmapper needs LoggedResourcesMiklos Vajna
Change-Id: Ic8c691c4185ec8b808e75885f9354c35d68be58c
2014-12-13writerfilter: only dmapper needs DomainMapper.hxxMiklos Vajna
Change-Id: I9508938754cf353ecc210eb13d7063ac7ef437bf
2014-12-13Avoid '#include "../'Miklos Vajna
Change-Id: I1ae598269b81095dc7d6ad83044f228d1297bfb8
2014-12-13writerfilter: use DomainMapperFactoryMiklos Vajna
Change-Id: I8053676f9aec8f20dc9753c5651a072c5d80c1f2
2014-12-12writerfilter: let ImportFilter only assume that DomainMapper is a StreamMiklos Vajna
Change-Id: I2e0db194357657df81d8cd94f42cdfbd2c3a2664
2014-12-12writerfilter: add a factory for DomainMapperMiklos Vajna
Ideally the XFilter implementations should only know that DomainMapper implements Stream, nothing more. Add a factory and use it in RtfFilter. When ImportFilter will do the same, then the DomainMapper class definition can be an implementation detail. Change-Id: If19cf23e61c2f78189d834261d57c569b9173b12