Commit graph

1910 commits

Author SHA1 Message Date
Miklos Vajna
d4ad67379e WaE: initialise these, older gcc does not recognize we always do so later 2011-08-12 15:24:42 +02:00
Miklos Vajna
dd525ec15c Merge remote-tracking branch 'feature/gsoc2011_rtfimport' 2011-08-12 14:58:10 +02:00
Miklos Vajna
bcc2fbef8f fdo#37691: Initial support for the textbox shape
For now, only pictures supported
2011-08-12 12:34:26 +02:00
Miklos Vajna
f40fcd9d10 support picture at the start of the document 2011-08-12 12:19:08 +02:00
Miklos Vajna
e0514fd4e8 Picture frame: we need the destination text outside the pict group
I broke this in 6751324082
2011-08-12 11:40:21 +02:00
Norbert Thiebaud
751531df52 add the module oox into tail_build's fold 2011-08-11 23:10:40 -05:00
Miklos Vajna
7a01b7cba3 we already have a using directive for these 2011-08-11 16:45:33 +02:00
Miklos Vajna
70569eb6d6 fix the "last char is missing from footnote when Word produces the rtf" bug 2011-08-11 16:23:48 +02:00
Luboš Luňák
f511fee19b adjust for timezone when reading datetime 2011-08-11 16:02:50 +02:00
Luboš Luňák
593ae387ce do not ignore attributes on <w:comment> 2011-08-11 16:02:49 +02:00
Miklos Vajna
d80ff1025b ignore RTF_FORMSHADE 2011-08-11 16:00:55 +02:00
Miklos Vajna
fa73964707 implement RTF_NOLINE 2011-08-11 15:43:29 +02:00
Miklos Vajna
bad3177c55 the rtf exporter uses RTF_ENDDOC to order footnotes to the end of a chapter 2011-08-11 15:26:02 +02:00
Miklos Vajna
c8f3ce0a24 rtftok: send footnote numbering types 2011-08-11 14:59:00 +02:00
Miklos Vajna
df10654b1d dmapper: implement footnote numbering types 2011-08-11 13:35:55 +02:00
Miklos Vajna
308df0b438 skip RTF_AFTNRSTCONT and RTF_AFTNRESTART 2011-08-11 12:20:42 +02:00
Miklos Vajna
4ace481210 implement footnote numbering types 2011-08-11 11:09:09 +02:00
Miklos Vajna
5a38c231cc implement RTF_FTNSTART 2011-08-11 10:22:41 +02:00
Miklos Vajna
8d4a0dbc11 it's enough to set these as a default sprm 2011-08-11 10:14:27 +02:00
Miklos Vajna
da8f7be84f implement RTF_AFTNSTART 2011-08-11 10:10:26 +02:00
Miklos Vajna
d7d9d3a744 implement endnote numbering types 2011-08-10 20:14:02 +02:00
Miklos Vajna
53b709286c skip RTF_AENDDOC and RTF_AENDNOTES 2011-08-10 19:12:03 +02:00
Miklos Vajna
7c9156d9c5 implement the RTF_FALT destination 2011-08-10 18:43:08 +02:00
Miklos Vajna
6751324082 Move destination text to RTFParserState
For example a font name may be interrupted by an RTF_FALT destination
anytime.
2011-08-10 18:35:54 +02:00
Miklos Vajna
3721e245b4 RTFDocumentImpl: avoid raw pointers 2011-08-10 17:07:52 +02:00
Miklos Vajna
41430f1026 RTFValue: avoid raw pointers 2011-08-10 16:40:39 +02:00
Miklos Vajna
e20a75a4f3 dmapper: implement PAGEREF field 2011-08-10 16:15:23 +02:00
Miklos Vajna
ed7b24e4d5 Fix page numbers
I broke that in commit 5338fee30b
2011-08-10 11:44:04 +02:00
Miklos Vajna
e7253c562e use RTFSkipDestination instead of skipDestination() 2011-08-08 23:43:55 +02:00
Miklos Vajna
825c6e7190 Add a new RTFSkipDestination class
The idea is that calling skipDestination() all the time before return is
boring: better to just place an RTFSkipDestination and its destructor
will do its job when it goes out of scope.
2011-08-08 23:41:44 +02:00
Miklos Vajna
197fe11da2 RTFDocumentImpl: add set/get methods for SkipUnknown 2011-08-08 23:24:17 +02:00
Miklos Vajna
98158723b2 implement font alignment paragraph sprms 2011-08-08 18:49:31 +02:00
Miklos Vajna
9d4f6c02b1 dmapper: paragraph vertical alignment support 2011-08-08 17:26:28 +02:00
Miklos Vajna
57a189d7f9 DomainMapper_Impl::AddBookmark: missing empty stack check 2011-08-08 16:18:56 +02:00
Miklos Vajna
ea31506b0d fix shape import for the unit test 2011-08-08 16:16:24 +02:00
Miklos Vajna
5338fee30b dmapper: more null pointer checks for the unit test 2011-08-08 16:15:58 +02:00
Miklos Vajna
e077fe6efa Fix paragraph styles in non-debug build
In debug build, StyleSheetEntry::StyleSheetEntry already set the style
type to paragraph.
2011-08-08 13:11:03 +02:00
Miklos Vajna
c6f68eb654 modelfactory may not be available, that's fine 2011-08-08 12:17:08 +02:00
Miklos Vajna
b030c48949 RTFDocumentImpl::dispatchSymbol: warning fix 2011-08-04 12:32:39 +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
0b4df1d83d a control word's name cannot be longer than 32 letters 2011-08-03 20:18:18 +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
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
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
Miklos Vajna
fd335cd16a no need to call lcl_RtfToString in product build 2011-07-29 17:40:31 +02:00