summaryrefslogtreecommitdiff
path: root/writerfilter
AgeCommit message (Collapse)Author
2012-03-20fdo#43965 fix RTF import of \up and \dn with custom parametersMiklos Vajna
Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
2012-03-20fdo#43965 dmapper: fix line width defaultMiklos Vajna
Writer's default is 0, but Word's default is 26 (15 in 1/8 pt) Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
2012-03-20Related: fdo#46662 fix RTF import of leveltext destinationMiklos Vajna
After leveltext is imported, the levelnumbers group modifies the contents of the previous group, but this modification was lost when the stack was popped. Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
2012-03-13Fix crash with document from bnc#693238Tor Lillqvist
Signed-off-by: Cedric Bosdonnat <cbosdonnat@suse.com>
2012-03-13Bug 45563 - incorrect IMPORT of Zotero RTF, regressionChristina Rossmanith
(cherry picked from commit f8c9ed1663ac675ed2151a584fcbf86b319cdaf1) Signed-off-by: Miklos Vajna <vmiklos@suse.cz>
2012-03-12fdo#45543 fix RTF import of ms932-encoded charactersMiklos Vajna
(cherry picked from commits d7baacd81bbcfaa35b7fbf9981fa3fa7c9fb1cb4, 0915f1b3d77afa694a2ca692aec307846827da99 and 00859026749e005759ce4e7115b746b064cd902b) Signed-off-by: Caolán McNamara <caolanm@redhat.com>
2012-03-11Add a virtual destrcutor to value to prevent memory leak in RTFValueArnaud Versini
(cherry picked from commit f32fe9f5012e3ee184e1a1fca6814bee9105d8fb) Signed-off-by: Miklos Vajna <vmiklos@suse.cz>
2012-03-05implement RTF import of non-box paragraph bordersMiklos Vajna
(cherry picked from commit 343b52ee76f1a88a27007319af644dcce76536cc) Signed-off-by: Michael Stahl <mstahl@redhat.com>
2012-03-01implement import of RTF_DOB{X,Y}{MARGIN,PAGE}Miklos Vajna
(cherry picked from commit fa9e867a342a37d84f02f7e801962761cc1d2b6f) Signed-off-by: Michael Stahl <mstahl@redhat.com>
2012-03-01implement import of RTF_DPLINE, regression from LO 3.4Miklos Vajna
(cherry picked from commits bbef8b4a93ff840fa6306cc6e41e1e2dd3e6c8fa and 456a59b24d4ba5ac341f76b4302e82b687e97f69) Signed-off-by: Michael Stahl <mstahl@redhat.com>
2012-02-28n#695479 fix rtf/docx import of transparent framesMiklos Vajna
Previously all frames were opaque by default, which is the Writer but not the docx/rtf default. Change the default, while keeping the possibility to set an opaque color background for the frame. (cherry picked from commits 4ac48167662c592c21025b89fe8f6925c680c6e0 and c306532e0bed1df36abf5d7ad6f0363056e69739) Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2012-02-16fdo#45553 fix RTF import of space-before/after tokensMiklos Vajna
(cherry picked from commit c32b9cd2139249f0c680f664a0ceac3702dd0e73) Signed-off-by: Caolán McNamara <caolanm@redhat.com>
2012-02-14n#695479 fix RTF import of text frames with exact heightMiklos Vajna
(cherry picked from commit e0328096dc21ce12d15db2045074e7860872570f) Signed-off-by: Michael Stahl <mstahl@redhat.com>
2012-02-13n#703032 fix RTF import of page breaks right before text framesMiklos Vajna
Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
2012-02-08n#192129 fix RTF import of PNG images with bogus width/heightMiklos Vajna
For example Apache FOP generates RTF output where the \picw and \pich values are even negative, SvxRTFParser::ReadBmpData() used the same trick to solve the issue. Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat@free.fr>
2012-02-07n#228839 an empty table grid can't have implicit mergesMiklos Vajna
Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
2012-02-06rtf import: Check for the first run even when getting \parCédric Bosdonnat
(cherry picked from commit 1d1f049859e080b403c743f7e0604bd72475a824) Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
2012-01-31fdo#43965 fix RTF import of page break symbolMiklos Vajna
This was unnoticed so far as both Writer and Word output \pagebb instead of \page when exporting page breaks. (cherry-picked from commits 2aa3d43a3746c797391afb1a08c024d512976006 and d1f3018b0e6d0889febcf09a6c95a2ec354137c0) Signed-off-by: Michael Stahl <mstahl@redhat.com>
2012-01-23use $(GPERF) instead of using gperf from pathBapt
(cherry picked from commit f908fc4ca5bb7ae6d779df4239510fb0a0b84635) Signed-off-by: Michael Stahl <mstahl@redhat.com>
2012-01-23fdo#44983 Fix RTF import of \paperh and \paperwMiklos Vajna
These keywords should not only set the *default* paper height/width but also set the current values. (cherry picked from commit c39e891d4dc963d2cac9843b426494e4dc490278)
2012-01-20Fix RTF import of dotted and word underlineMiklos Vajna
The problem was that these are flags, not toggles. Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
2012-01-12fdo#41034 improve RTF import of table cell spacingsMiklos Vajna
1) for empty cells, not only paragraph properties, but but character properties should be emitted as well (e.g. font) 2) \sb and \sb is an attribute, not an sprm (it was ignored) 3) \sl was ~ignored due to a typo (cherry picked from commit 9f15592e08f17908b1e54fed200d0ec6aff29509)
2012-01-12fdo#38057 implement RTF import progressbarMiklos Vajna
(cherry picked from commit 92c7b6733e55a6ab62bc231ecf0ffd5c0da7c8d2) Conflicts: writerfilter/source/rtftok/rtftokenizer.cxx
2012-01-12fix prefix of command line switches (-- instead of -) fdo#40991Andras Timar
2012-01-09fdo#42151 fix RTF import of vertically merged table cellsMiklos Vajna
The problem was that \row took care of states (which is right, since \trowd wants to reset row properties to the default state), but it should not respect state pops. (cherry picked from commit 7ec8f13d3ac0650c7e62e31220f1eda9d0a9284c)
2012-01-06fdo#44053 fix RTF import of implicit horizontal table cell mergesMiklos Vajna
(cherry picked from commit 01292f171cc851ba092510f10a97cd293670829e)
2011-12-27Related: fdo#43380 fix parsing of the \cf RTF tokenMiklos Vajna
Send the real color value to dmapper, not the index, which is meaningless outside the tokenizer. (cherry picked from commit e71d6df4137515f928d87375e404459cf9f310be)
2011-12-27fdo#43380: fix crash in DomainMapper_Impl::SetFieldFFDataMiklos Vajna
(cherry picked from commit e4e77861c6a42d040230f4b1ca22ad5e8c3d52a2)
2011-12-22fdo#40937 fix RTF import of images with invalid crop dataMiklos Vajna
Add a try-catch, so in case setting crop data fails, the size data will be still set. (cherry picked from commit 3c86591749aae36f997944d9c972d1c71b21bc7b)
2011-12-20fdo#42109 fix RTF import of fields inside tablesMiklos Vajna
(cherry picked from commit 133f4d750a46dc67797d2f23f25a1bb39620d59f)
2011-12-14n#228839: Fix RTF import crasher with \keep in table propertiesCédric Bosdonnat
2011-12-13n#703032: Fixed an RTF import crash when handling formdata in non-FORM fieldsCédric Bosdonnat
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
2011-12-13RTF import: default scale for images is 100% not 0%Cédric Bosdonnat
This fixes the import of pictures in n#228839 and n#77738
2011-12-12dmapper: when parsing NS_ooxml::LN_CT_Spacing_lineRule, pTopContext may be nilMiklos Vajna
(cherry picked from commit dc78a1c44c478dc7abb25ff5cbbb7477348f0dd1)
2011-12-07in modules, when we have a env we are in stage gbuildBjoern Michaelsen
2011-12-07normalize Red Hat, Inc. spellings, and bump to latest templateCaolán McNamara
2011-12-07make the linear xml processing API more genericLuboš Luňák
I'm pretty sure I'll love to use it in writerfilter instead of the normal API whenever I get the chance.
2011-12-07remove needless TODOLuboš Luňák
2011-12-07process element in endFastElement(), not in dtorLuboš Luňák
Otherwise with malformed xml the dtor is called in a place where the processing of the formula apparently corrupts the internal representation somehow and it is impossible to write the document back as docx. As a bonus, all UI elements related to saving get disabled, so the document then cannot be saved at all. Although this is only with malformed xml, which hopefully should never happen, it's still better to avoid this. Moreover it seems to be the proper way of coding the handlers anyway.
2011-12-05RTF import: fixed the handling of frame properties n#417818Cédric Bosdonnat
Change the RTF tokenizer to send the same tokens than the docx tokenizer for the <w:framePr> element.
2011-12-05sw, fixed some missing include in dbglevel>1Cédric Bosdonnat
2011-12-05docx: actually import the last frame of a section.Cédric Bosdonnat
When there is no paragraph outside the frame before the section end, the paragraphs weren't transformed to a frame.
2011-11-30read m:oMathParaLuboš Luňák
I'm unsure on what the difference to o:Math actually is, so just make sure the element and its contents are not ignored and each contained m:oMath will be read in separately.
2011-11-29set gb_PARTIALBUILD in CustomTargetsBjoern Michaelsen
2011-11-29move reconfigure into gbuildBjoern Michaelsen
2011-11-29I hate sal_Int*. Fix ambiguous overload on windows.Luboš Luňák
2011-11-29EMBEDDED_OBJECT UNO property now works, remove hackLuboš Luňák
2011-11-29set properly initial size of starmath component when importing docxLuboš Luňák
2011-11-29the bit hackish addFormula() shortcut is no longer necessaryLuboš Luňák
2011-11-29clean up and format codeLuboš Luňák