Commit graph

2358 commits

Author SHA1 Message Date
Miklos Vajna
0085902674 fdo#46662 fix RTF import of numbering levelnumbers
To handle stateful encodings, we process hex characters in one go for a
run. Levelnumbers of numberings should be an exception, since there the
special characters (here: 0x7, which is table cell end) have no special
meaning.
2012-02-29 12:21:48 +01:00
Miklos Vajna
f31548f70c RTFFrame::getSprms: use SAL_N_ELEMENTS() 2012-02-28 10:07:37 +01:00
Caolán McNamara
db088d3238 clarify ambiguities 2012-02-27 09:45:56 +00:00
Miklos Vajna
b538f6a0f4 fdo#45187 revert "writerfilter import, fixed the shapes import"
This reverts commit 0e26bd2097. Sadly
without a test document for the original issue there is no better fix
for this one.

Acked-by: Luboš Luňák <l.lunak@suse.cz>
Acked-by: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
2012-02-24 15:43:24 +01:00
Cédric Bosdonnat
f0a0b8fb67 removed remaining #if DEBUG 2012-02-23 13:56:24 +01:00
Miklos Vajna
0915f1b3d7 fdo#42465 fix RTF import of unicode characters with backwards compatibility 2012-02-22 17:13:22 +01:00
Miklos Vajna
fe4cea3e8b RTF: clean up border property handling 2012-02-22 12:06:32 +01:00
Miklos Vajna
343b52ee76 implement RTF import of non-box paragraph borders 2012-02-22 12:06:22 +01:00
Miklos Vajna
fa9e867a34 implement import of RTF_DOB{X,Y}{MARGIN,PAGE} 2012-02-21 17:28:40 +01:00
Miklos Vajna
bbef8b4a93 implement import of RTF_DPLINE 2012-02-21 17:28:40 +01:00
Miklos Vajna
c306532e0b writerfilter: try to silence MacOSX-Intel tinderbox 2012-02-20 17:06:38 +01:00
Stephan Bergmann
fe981519f5 gb_JunitTest_JunitTest takes only one argument 2012-02-20 16:39:59 +01:00
Miklos Vajna
4ac4816766 n#695479 fix rtf/docx import of transparent frames
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.
2012-02-20 15:53:41 +01:00
Elton Chung
d30b4e9fb6 Get rid of size() == 0 2012-02-19 17:07:46 +04:00
Miklos Vajna
d7baacd81b fdo#45543 fix RTF import of ms932-encoded characters 2012-02-13 18:44:48 +01:00
Miklos Vajna
e0328096dc n#695479 fix RTF import of text frames with exact height 2012-02-13 12:54:18 +01:00
Miklos Vajna
492dbf9cec fix RTF import of ffres token for checkboxes 2012-02-13 11:05:14 +01:00
Matúš Kukan
4b30ec9def fdo#39491 -I$(OUTDIR)/inc is set in SOLARINC 2012-02-10 21:41:45 +01:00
Miklos Vajna
63dfa72b5e n#703032 fix RTF import of page breaks right before text frames 2012-02-10 10:06:05 +01:00
Miklos Vajna
6e29607d0f rtftok: remove unused variable
Leftover from commit 01292f171c.
2012-02-09 18:03:38 +01:00
Miklos Vajna
c32b9cd213 fdo#45553 fix RTF import of space-before/after tokens 2012-02-09 11:25:43 +01:00
Josh Heidenreich
700b794126 Added and improved READMEs for modules which used to be in filter 2012-02-08 07:46:58 +01:00
Miklos Vajna
0e79718a10 rtftok: use m_r prefix for C++ reference members only 2012-02-07 17:50:35 +01:00
Miklos Vajna
66fa759bb6 n#192129 fix RTF import of PNG images with bogus width/height
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.
2012-02-07 17:04:16 +01:00
Miklos Vajna
6656ddb261 RTFSdrImport::resolve: replace 75 in the importer as well 2012-02-06 16:37:57 +01:00
Miklos Vajna
75378a82e1 n#228839 an empty table grid can't have implicit merges 2012-02-06 10:59:54 +01:00
Norbert Thiebaud
c857dff7fc switch to include-based build rather than sourced-based build 2012-02-05 19:34:05 -06:00
Muhammad Haggag
d8cb61f5f3 dmapper: Switch paragraphs to RTL based on the value of w:BiDi.
This is a fix for 43398: FORMATTING: Documents opened in LibreOffice Writer incorrectly appear as right justified.

Cause: dmapper used to treat the presence of a w:BiDi element in a paragraph's properties as an indicator of RTL directionality, which is incorrect. A w:BiDi  element may have a value of 0, indicating LTR.

Fix: Inspect the integral value of w:BiDi elements before switching to RTL.
2012-02-02 11:57:49 +00:00
Miklos Vajna
d1f3018b0e fdo#43965 more \page vs \pagebb fixes
The previous commit even reset \pagebb at the end of the paragraph,
which is not what the spec says.
2012-01-30 23:35:14 +01:00
Miklos Vajna
2aa3d43a37 fdo#43965 fix RTF import of page break symbol
This was unnoticed so far as both Writer and Word output \pagebb instead
of \page when exporting page breaks.
2012-01-30 21:33:22 +01:00
Miklos Vajna
00db55ff83 writerfilter: drop unnecessary includes from DomainMapper.cxx 2012-01-25 14:29:28 +01:00
Olivier Hallot
f94399ef80 Fix for fdo43460 Part XLV getLength() to isEmpty()
Part XLV
Modules
writerfilter, writerperfect
2012-01-23 19:17:18 -02:00
Bapt
f908fc4ca5 use $(GPERF) instead of using gperf from path 2012-01-23 12:08:56 +01:00
Miklos Vajna
c39e891d4d fdo#44983 Fix RTF import of \paperh and \paperw
These keywords should not only set the *default* paper height/width but
also set the current values.
2012-01-21 01:02:10 +01:00
Miklos Vajna
370fc96b92 Fix RTF import of dotted and word underline
The problem was that these are flags, not toggles.
2012-01-20 01:38:03 +01:00
Miklos Vajna
3520d6dfdd writerfilter/documentation: describe what an sprm is 2012-01-19 20:50:45 +01:00
Luboš Luňák
9f03ad248e a feeble attempt at at least some docs for writerfilter 2012-01-19 14:29:55 +01:00
Luboš Luňák
58de34f633 fix reading w:charset, you misdesigned writerfilter monster (fdo#34814) 2012-01-19 14:29:54 +01:00
Miklos Vajna
80852d8526 writerfilter: remove empty line before shebang 2012-01-18 02:15:10 +01:00
Miklos Vajna
f4f774a3ae writerfilter: drop exec bit on non-script files 2012-01-18 02:15:10 +01:00
David Tardon
1f4edb5ded WaE: narrowing conversion from unsigned int to sal_Int32 2012-01-15 20:27:27 +01:00
Matúš Kukan
58b8a4d25d these are not old component files anymore 2012-01-15 16:11:33 +01:00
Miklos Vajna
9f15592e08 fdo#41034 improve RTF import of table cell spacings
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
2012-01-12 16:31:10 +01:00
Andras Timar
aab14cb9fb fix prefix of command line switches (-- instead of -) 2012-01-11 19:25:45 +01:00
August Sodora
5a180fd905 Fix MacOSX build 2012-01-11 00:15:51 -05:00
Miklos Vajna
b5d9e500ed microopt, avoid unnecessary call to Tell() 2012-01-11 02:06:35 +01:00
Miklos Vajna
92c7b6733e fdo#38057 implement RTF import progressbar 2012-01-11 01:53:18 +01:00
Miklos Vajna
3dbe4c18d0 Related: fdo#42151 implement cell text flow support 2012-01-09 19:52:35 +01:00
Miklos Vajna
7ec8f13d3a fdo#42151 fix RTF import of vertically merged table cells
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.
2012-01-09 15:13:59 +01:00
Takeshi Abe
b35c0ae4ff catch exception by constant reference 2012-01-09 03:17:20 +09:00