summaryrefslogtreecommitdiff
path: root/writerfilter/source
AgeCommit message (Collapse)Author
2012-10-24fdo#46808, convert comphelper::ConfigurationHelper to XComponentContextNoel Grandin
Convert the helper methods to take an XComponentContext parameter, instead of XMultiServiceFactory. Change-Id: I9f0098af37b91f107d8799f14caa04756eac82b1
2012-10-23RtfFilter::filter: not allowed to throw WrongFormatException:Michael Stahl
throw a WrappedTargetRuntimeException instead :( Change-Id: Iebf2b709beea738ba513ec5ce884874b76fbf243
2012-10-23-Werror=maybe-uninitializedStephan Bergmann
Change-Id: I31eefa2444d7d108103818785e83816d07f8cde2
2012-10-23fdo#51145 give better error message on import invalid RTFMiklos Vajna
Change-Id: Idd81e58b8b0b95b1027b7ece434cb362a689f124
2012-10-22DomainMapper::lcl_attribute: typo fixesMiklos Vajna
Change-Id: Ib6ea496f7fb6d87011a74fc49e77c54d62cb09ec
2012-10-19writerfilter: remove unused ctorMiklos Vajna
Change-Id: I17ec2a253e35f90b4f670bb2981aba3402221e1f
2012-10-19import RTF_DPPOLYLINEMiklos Vajna
Change-Id: I65f1ddb9d0d691c126c8e94b2e60c8309b0d33ff
2012-10-18RTF_DOBYPARA import: Y is verticalMiklos Vajna
Change-Id: I46bf69bfce26375a2fb23ef4b00404beb8d8c135
2012-10-18fix import of RTF default page left/right marginMiklos Vajna
This is one more fallout from fdo#42407, which is still incomplete. Change-Id: Ie47f06be598ce5236c45bd3750ea7a21fd98175c
2012-10-18import RTF_DPLINEHOLLOWMiklos Vajna
Change-Id: I580bc2cb38b7fe4b42cfbd78672fc5b8d1d01398
2012-10-17import RTF_DODHGTMiklos Vajna
Change-Id: I6e97c33569e46171ed702b573d42ced805cded78
2012-10-17import RTF_DOBYPARAMiklos Vajna
Change-Id: Ifcfc6e1aca86960f72bcf2a8c7865b192ca1a491
2012-10-17make RTFDocumentImpl::runBreak privateMiklos Vajna
Change-Id: I9af3521d5c7c78da522d02a4436b8eb6ca4f14ce
2012-10-17implement import of RTF_{DPTXBXTEXT,DPTXBX}Miklos Vajna
Change-Id: I2e5f47a3e083ec914a5b95a1e038c21b72025a4f
2012-10-17fix import of RTF_PARD inside RTF_SHPTXTMiklos Vajna
Change-Id: Id722b61cec9b8ae6550122e192affecadfcb1217
2012-10-16RtfFilter::filter: add code to dump input stream for copy&pasteMiklos Vajna
This is especially useful when creating testcases for handling copy&paste input. Change-Id: I11be65484e7ac4dfac3d28576249143b7532a976
2012-10-15fdo#46669 sw: RTF paste should not change page stylesMiklos Vajna
Change-Id: Ic163a639fae9de838258b3cca9567a29ab875a35
2012-10-15fdo#52208 DOCX import: don't always ignore cont sect break at the doc endMiklos Vajna
Regression from commit 1fdd61db155cf63d5dd55cc2bfb45af33796e131, continuous section break does make sense at the end of the doc, if the previous type was a non-continuous. Change-Id: I6d82c67e068d8dc3ce1edb1a5fe6ad293afd805d
2012-10-13Remove consecutive break and a break which follows a returnJulien Nabet
Change-Id: I8dec9eda857f7da452992bc785426449933acc59
2012-10-13writerfilter: fix new clang warningsMiklos Vajna
Change-Id: I0f7cec0f300290fe3ea465f344cfda642824ed0b
2012-10-11fdo#55493 fix RTF import of specific PNG imageMiklos Vajna
The image was special in that the resulting Graphic's GetPrefMapMode().GetMapUnit() wasn't MAP_PIXEL. Change-Id: I681e344a042721b99f6cb2e599f9c65156d219a4
2012-10-11n#783638 DOCX import of wp:inline's distT/B/L/R attributesMiklos Vajna
Change-Id: I181fcae021eed07608b06744b469628e4d78ccba
2012-10-10writerfilter: these can be static in ConversionHelperMiklos Vajna
Change-Id: I2436a884627c4f9b112086cb7ca1a096093ea3f6
2012-10-09add editeng::ConvertBorderWidthFromWord:Michael Stahl
Replace the 2 duplicate implementations of this in ww8 and writerfilter with a common one. Differences were: 2) ww8 doubles the with, writerfilter does not 13) unsupported, mapped to THINTHICK_SMALLGAP vs. THICKTHIN_SMALLGAP 22) unsupported, mapped to DASHED vs. SOLID 26) INSET not supported in writerfilter 27) OUTSET not supported in writerfilter Change-Id: I533b77394388e736f38d70284a6a11061d81e813
2012-10-08cppcheck: unreadVariablejailletc36
Defined the aStr within the #ifdef block where it is used. Change-Id: I2878d2db002411783e814b0ecf02e2a030d2d6d4
2012-10-04fdo#46808, Adapt xml::sax::XParser UNO service to new styleNoel Grandin
The xml.sax.Parser service already existed, it just did not have a new-style service to create it. Change-Id: I6f145a7504ff9e149c802f723991954a2801cbc9
2012-10-04Related: rhbz#862467 band-aid when creating embedded object failsCaolán McNamara
Change-Id: Ie5ecc8f56636e692a6e17a2e8fab0cefd46cdfb4
2012-10-03probably a rather ugly hack for inline text frame in a table (bnc#780851)Luboš Luňák
Change-Id: I2bd76799cf0a5da09664d0e1b1a9adb466633be1
2012-10-03fdo#44278: fix leaked image when import docxCédric Bosdonnat
Unused temporary XShape need to be disposed to avoid remaining garbage in the document. Change-Id: Iaf6e720a1c47605136f7f9ccafb605cab6dc260a
2012-10-02Use prefixTor Lillqvist
Change-Id: I128623b27bd88795e21de13d7a6fc960de3b6ea8
2012-10-02Make Clang happyMiklos Vajna
Change-Id: I69c886d0a1875ec674f40c2422dc1490418c1da3
2012-10-02docx import: properly import table positionPierre-Eric Pelloux-Prayer
This a follow up of commit 53b7f7df0617bcbd7bbef9a34ef53e5097eb16dc Change-Id: Ia0f79ca24418636af14162e9f339237d847dc221 Reviewed-on: https://gerrit.libreoffice.org/714 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-10-02docx import: set table above/bottom spacing to 0Pierre-Eric Pelloux-Prayer
Conflicts: sw/qa/extras/ooxmlimport/ooxmlimport.cxx Change-Id: I3e0397dd3d5d14f1e584ac7bc3d22d4638393b06
2012-10-01Replace usage of rtl_*Memory with equivalent from string.hArnaud Versini
Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159 Reviewed-on: https://gerrit.libreoffice.org/734 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-01n#782345 import DOCX w:splitPgBreakAndParaMark compat optionMiklos Vajna
This fixes docx import of page breaks in empty paragraphs, when the compat option in question is set. Even empty paragraphs have an "end of paragraph" character in dmapper: import page breaks there, instead of delaying the import till the all-catcher importer at the start of the next paragraph. Change-Id: Ie5c37042b3c445e0669771d15c8eb46380192db3
2012-10-01fdo#52475 fix import of RTF_CHCBPAT with value 0Miklos Vajna
0 means auto, and for fdo#50539, this value was ignored. However a next sample shows that we should send something to the dmapper: COL_AUTO. Change-Id: I8d7d35125c9027dfb45288bbfbfa81ba4799e78d
2012-09-30writerfilter: unused includes in DomainMapperMiklos Vajna
Change-Id: Ia84271c5fe7064bfa2d71b84da9fa4d9df945d51
2012-09-28n#782061 DOCX import: w:position should respect w:sz in w:rPrDefaultMiklos Vajna
Subscript relative font size (w:position) is in percents in Writer, but is in half points in Word. When checking for the default font size to count the percent value, the mapper should search font size (w:sz) not only in direct character properties, but also in default character properties (w:rPrDefault). Change-Id: I9286d44c6498c765ddfee795d50921ef58b80071
2012-09-27writerfilter: unused includes in DomainMapper_ImplMiklos Vajna
Change-Id: I6df840e20da98918a8f1531e8d77a5b5c53101fb
2012-09-27n#781825 fix DOCX import of bottom para margin autospacingMiklos Vajna
If w:doNotUseHTMLParagraphAutoSpacing is enabled, it should be 100, not 200, see SwWW8ImplReader::GetParagraphAutoSpace(). Change-Id: I29c5e97c828f0f55b655410198bfa03dc42a196d
2012-09-26Apply shadow effect to graphics when importing from docx.Eilidh McAdam
Graphical objects imported into a text document do not seem to support differing X and Y distances for shadows, so the distance has been approximated by using the average of the two components. Change-Id: Ifd0c6d73b618cb2836837348d6f48c0efc0a9dc3 Reviewed-on: https://gerrit.libreoffice.org/703 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2012-09-26n#780843 fix docx import of cont section's header/footer on title pageMiklos Vajna
Change-Id: I129e154a3fea8a96607dc6350a99f4d6ca68196e
2012-09-25n#780853 fix DOCX import of w:sdtContent in table cellMiklos Vajna
The problem was that the framePr token made the table import fail. Given that frames inside w:sdtContent are invisible anway, just ignore them. Change-Id: I88ab9d5dd6cf362c629de74bc079c3108725f0a1
2012-09-24warning C4482: nonstandard extension used: enum used in qualified nameStephan Bergmann
Change-Id: If00750b312cd4a13e85c5f9b083161d5eb30157d
2012-09-24fdo#49655 fix RTF import of text in the middle of table definitionMiklos Vajna
Usually table text comes after the \intbl control word, but it turns out text is allowed earlier. Make sure such text is buffered, otherwise we'll send paragraph / run properties to the dmapper in the middle of table properties, which is obviously not allowed. Change-Id: I34f1df7e171316a7d926179689627301860d492f
2012-09-24fdo#49655 dmapper: fix default page style layoutMiklos Vajna
The default in Writer is mirrored, but in Word it's left and right. Change-Id: I8c615a3a18ad7493deb2a3a9369c13f3e4d5799d
2012-09-21fdo#49819 - allow slightly inconsistent docx files to be repairedMichael Meeks
2012-09-21n#780563: Fixed table import in shapes table handler was missingCédric Bosdonnat
Change-Id: I7720cfc706d9612fcc1e8a53b13a31f22b91d99e
2012-09-21n#779627: fixed writerfilter import of grid when there are nested tablesCédric Bosdonnat
When a nested table is ended, it resets the m_nCell to 0... and thus the filter forgets about the previous cells of the outer table row it is importing. Using a vector to store the m_nCell values for each table solves the problem Change-Id: I8007960f4c95d713bfedc6b815d5783a5d25af23
2012-09-21fdo#55187 fix DOCX import of unicode 0xNN0d when it's a separate runMiklos Vajna
E.g. 0x010d was parsed as a newline character... This also makes the RTF workaround from fdo#39856 unnecessary. Change-Id: I5e4a95b4436e1492b64961820702caace0a33e4b