Miklos Vajna
b030c48949
RTFDocumentImpl::dispatchSymbol: warning fix
2011-08-04 12:32:39 +02:00
Miklos Vajna
1c043a8fde
Merge remote-tracking branch 'feature/gsoc2011_rtfimport'
2011-08-04 12:05:49 +02:00
Caolán McNamara
b6c00d0ac7
callcatcher: remove unused methods
2011-08-04 09:35:53 +01:00
Caolán McNamara
17d7eaa742
callcatcher: remove unused methods
2011-08-04 09:35:53 +01:00
Kohei Yoshida
760589c835
Check if the XML stream contains '<?xml' at the beginning.
...
If not, we'll simply bail out. Note that this will temporarily break
type detections for those esoteric, non-XML file format types that
incorrectly depended on the XML filter detect service to detect their
format types. To make them work again, please write a different
detection service other than the css.comp.filters.XMLFilterDetect.
2011-08-03 21:14:37 -04:00
Miklos Vajna
74561937b7
CVE-2010-3451-1.rtf: reduce size of this
...
The fix for this is in commit 9bd6527559cf12ef7b04761212e26149e1a229a7,
reverting the rtfnum.cxx part of it shows that this smaller sample tests
the issue as well.
2011-08-04 01:31:34 +02:00
Miklos Vajna
6f48388f89
add new failing test rtf files
2011-08-04 01:18:52 +02:00
Miklos Vajna
4b3008dc45
testrtf: ignore dotfiles
2011-08-04 01:04:15 +02:00
Miklos Vajna
fe02b4ec17
reject files with unmatched { or }
2011-08-04 00:57:43 +02:00
Miklos Vajna
957a48e650
dmapper: m_xText may be null
2011-08-04 00:57:24 +02:00
Miklos Vajna
a249d1e96f
testrtftok: fix path on windows
2011-08-03 21:35:15 +02:00
Miklos Vajna
0b4df1d83d
a control word's name cannot be longer than 32 letters
2011-08-03 20:18:18 +02:00
Miklos Vajna
a426d5890e
more passing rtf test docs
2011-08-03 19:47:22 +02:00
Miklos Vajna
7a897a329b
fixes for CVE-2010-3333-1.rtf
2011-08-03 19:47:22 +02:00
Miklos Vajna
f2c14788dd
fixes for CVE-2007-0245-1.rtf
2011-08-03 19:42:07 +02:00
Miklos Vajna
e9eeee0d82
initial rtf unit test
2011-08-03 19:35:05 +02:00
Miklos Vajna
6353ccd87f
couple of null pointer checks for the unit test
2011-08-03 19:02:44 +02:00
Miklos Vajna
735dea2d93
the old filter does not support parsing without a destination document
2011-08-03 16:36:13 +02:00
Miklos Vajna
8560e419af
RtfFilter::filter: always do an import, unless a source document is given
2011-08-03 16:27:13 +02:00
Caolán McNamara
086a0140f6
callcatcher: remove unused methods
2011-08-03 13:30:49 +01:00
Robert Nagy
a3b17c3390
Revert "fix: qnametostr is no cxx file"
...
This reverts commit f526eddfa4feaf02461b3f218eeed36e9004f948.
2011-08-03 13:25:20 +02:00
Thomas Arnhold
d6aff719e2
fix: qnametostr is no cxx file
2011-08-02 23:14:05 +02:00
Caolán McNamara
b30767a579
add correct missing file
2011-08-02 12:31:58 +01:00
Caolán McNamara
a5fc552a75
add missing file
2011-08-02 12:31:58 +01:00
Lionel Elie Mamane
9015ccd2f1
Missing externals declarations
2011-08-02 12:22:45 +02:00
Caolán McNamara
fc0c96fb24
convert in one pass, rather than point by point
2011-08-02 11:06:46 +01:00
Caolán McNamara
113801b03d
callcatcher: remove unused methods
2011-08-02 11:06:46 +01:00
Caolán McNamara
819b2afc03
callcatcher: remove unused code
2011-08-02 11:06:46 +01:00
Caolán McNamara
ff9d837942
callcatcher: remove unused code
2011-08-02 11:06:46 +01:00
Caolán McNamara
889986c2e0
ditch unused code
2011-08-02 11:06:46 +01:00
Caolán McNamara
4c5441068b
ditch this
2011-08-02 11:06:46 +01:00
Kohei Yoshida
6a36a0fa74
Fixed messed up indentations.
2011-08-01 15:18:49 -04:00
Troy Rollo
a197cee991
Import of xrefs to numbered paragraphs from docx
...
The first part of this patch adds importing of cross-references to numbered
paragraphs from docx file.
The second part provides a fix to imports of bookmarks from docx, which in
the test files I have end up importing with an empty bookmark name. The
problem is that for each bookmark, DomainMapper_Impl::AddBookmark is called
twice - once with an empty string for rBookmarkName, and once for the
string that is in the file. The fix I have used is to ensure the passed in
name is used if the bookmark has presiously been added, and the old one has
an empty string as the name. This works, but I am not sure it is correct -
I have not investigated why it is called with an empty string in the first
place.
Signed-off-by: Luboš Luňák <l.lunak@suse.cz>
2011-08-01 17:22:51 +02:00
Troy Rollo
295185572f
Fix parent level count in numbering from docx
...
Before this patch, when importing from docx, if there were no parent
numbering levels in the number formats for outline numbered paragraphs, the
import would include all parent levels back to the second numbering level,
in the third and subsequent numbering levels.
Signed-off-by: Luboš Luňák <l.lunak@suse.cz>
2011-08-01 16:40:03 +02:00
Tor Lillqvist
b9bee88e1b
Add consistent Emacs and vim mode lines
2011-07-30 23:01:51 +03:00
Tor Lillqvist
4324ef704e
We need libxml2, too
2011-07-30 22:22:05 +03:00
Matúš Kukan
f50f28cfb2
convert writerperfect to gbuild
2011-07-30 10:38:46 +02:00
Miklos Vajna
5ed204f4b8
Merge remote-tracking branch 'feature/gsoc2011_rtfimport'
2011-07-29 17:45:27 +02:00
Miklos Vajna
fd335cd16a
no need to call lcl_RtfToString in product build
2011-07-29 17:40:31 +02:00
Miklos Vajna
74c5553345
Add initial support for the EQ field (fdo#36089)
2011-07-29 17:32:41 +02:00
Miklos Vajna
ec30985a7e
handle groups inside fldinst destination
2011-07-29 17:32:41 +02:00
Miklos Vajna
67f442f27f
send cell width values in the first row only
2011-07-29 17:32:41 +02:00
Miklos Vajna
f6b6f0b244
RTFSprms::erase: use return value to signal if the call was a noop
2011-07-29 17:32:41 +02:00
Miklos Vajna
2499397cb3
avoid sending duplicated paragraph flags
2011-07-29 17:32:41 +02:00
Miklos Vajna
a42629233f
inherit table definition from previous row if it's missing
2011-07-29 17:32:41 +02:00
Miklos Vajna
daca5316d0
Support table definition at the start of the row
...
Old writers like Word97 output the table definition there, instead of at
the end.
2011-07-29 17:32:41 +02:00
Miklos Vajna
7ae9a0cb2a
these are unused
2011-07-29 17:32:40 +02:00
Miklos Vajna
360480425a
these static methods are no longer needed
2011-07-29 17:32:40 +02:00
Miklos Vajna
b612a56783
Introduce the RTFSprms class
...
Instead of hardwiring an ugly list in RTFParserState::Clone(), turn the
RTFSprms_t typedef to a real class with a proper copy constructor.
2011-07-29 17:32:40 +02:00
Miklos Vajna
572bad05f8
Introduce RTFParserState::Clone, closes fdo#36922
2011-07-29 17:32:40 +02:00