summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/README-rtf.txt
blob: 95f4946a9abc280d56c57710275c1c997841cf8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This file incorporates work covered by the following license notice:
#
#   Licensed to the Apache Software Foundation (ASF) under one or more
#   contributor license agreements. See the NOTICE file distributed
#   with this work for additional information regarding copyright
#   ownership. The ASF licenses this file to you under the Apache
#   License, Version 2.0 (the "License"); you may not use this file
#   except in compliance with the License. You may obtain a copy of
#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
#

---------------------------------------------------------------------

Summary of new features in RtfExport

---------------------------------------------------------------------

Miklos Vajna

<vmiklos@vmiklos.hu>
---------------------------------------------------------------------

Table of Contents

1. Introduction

    1.1. Terminology
    1.2. General

2. List if fixed bugs
3. List of new features

    3.1. Nested tables
    3.2. Character properties
    3.3. Sections
    3.4. Graphics
    3.5. Bookmarks
    3.6. Fields
    3.7. Drawing
    3.8. Form fields
    3.9. OLE objects

4. Changes in the source code outside RTF


---------------------------------------------------------------------

1.�Introduction

---------------------------------------------------------------------

The biggest difference is that the new exporter is a UNO component,
and it?s based on the MSWord base classes, the vision here is that
this way much less code can achieve the same set of features,
reducing the amount of duplicated code.


1.1.�Terminology

--------------

  * The "MSO OK, OOo KO" and similar abbreviations describe if the
    given new feature is supported by the OOo RTF importer or it can
    be tested using Microsoft Office.
  * RtfExport refers to the new UNO-based exporter, RtfWriter refers
    to the old built-in one.


1.2.�General

--------------

RtfWriter sometimes created documents where the first { is closed in
the middle of the document. MSO ignores this problem, but OOo stops
parsing the rest of the document if this happens, in other words
everything after such a bug is ignored. This can be reproduced by for
example parprops.odt, but it?s triggered in several other cases as
well. RtfExport has no automatic prevention for this, either - but
during development I primarily test the output with OOo, so hopefully
the bug will pop up less frequently.


---------------------------------------------------------------------

2.�List if fixed bugs

---------------------------------------------------------------------

  * https://bz.apache.org/ooo/show_bug.cgi?id=51469 postit
    fields
  * https://bz.apache.org/ooo/show_bug.cgi?id=66619 page
    margins
  * https://bz.apache.org/ooo/show_bug.cgi?id=69856 page
    numbers
  * https://bz.apache.org/ooo/show_bug.cgi?id=81569 { and } in
    document title
  * https://bz.apache.org/ooo/show_bug.cgi?id=84703 redlines
  * https://bz.apache.org/ooo/show_bug.cgi?id=91166 russian
    chars
  * https://bz.apache.org/ooo/show_bug.cgi?id=92673 bookmarks
    across tables
  * https://bz.apache.org/ooo/show_bug.cgi?id=100507 ole
    object export
  * https://bz.apache.org/ooo/show_bug.cgi?id=103993 same as #
    81569 just for doc comments
  * https://bz.apache.org/ooo/show_bug.cgi?id=106677
    listoverride index starts at zero
  * https://bz.apache.org/ooo/show_bug.cgi?id=38344 enhanced
    character space


---------------------------------------------------------------------

3.�List of new features

---------------------------------------------------------------------


3.1.�Nested tables

--------------

This was new in Word2000 and it?s now supported by RtfExport (MSO OK,
OOo KO)


3.2.�Character properties

--------------

The following are now supported:

  * blinking (MSO OK, OOo KO)
  * expanded spacing (MSO OK, OOo OK)
  * pair kerning (MSO OK, OOo OK)


3.3.�Sections

--------------

RtfExport writes:

  * column breaks (MSO OK, OOo OK)
  * special breaks (when the next page should be an odd or an even
    page; MSO OK, OOo KO)
  * the write-protected property of sections is experted properly
    (MSO OK, OOo KO)
  * better page numbers (inherited type from page styles, restarts;
    MSO OK, OOo KO)
  * line numbering (MSO OK, OOo KO)


3.4.�Graphics

--------------

PNG graphics are exported in WMF format as well, so that not only MSO
and OOo can display graphics from the output document, but Wordpad as
well.


3.5.�Bookmarks

--------------

Implicit bookmarks like reference to a footnote did not work in OOo
(one got an Error: Reference source not found message when opening
the result), this now works as expected. (MSO OK - the importer
previously autocorrected this as well, OO OK)


3.6.�Fields

--------------

  * Table of contents is now written as a field, so it?s properly
    read-only (MSO OK, OOo KO)
  * Postit comments are now exported. (MSO OK, OOo KO)


3.7.�Drawing

--------------

Drawing objects for Word 97 through Word 2007 (shapes) are now
implemented:

  * basic shapes (rectangle, ellipse, etc.)
  * lines, including free-form ones
  * texts, including vertical ones and their (paragraph and
    character) formatting

(MSO OK, OOo KO)


3.8.�Form fields

--------------

All types supported by the RTF format are exported, namely:

  * text boxes
  * check boxes
  * list boxes

(MSO OK, OOo KO)


3.9.�OLE objects

--------------

Their result is exported as a picture - RtfWriter did not export
anything. (MSO OK, OOo OK)

For math, the native data is written as well, so you can edit the
object, too. (MSO OK, OOo KO)


---------------------------------------------------------------------

4.�Changes in the source code outside RTF

---------------------------------------------------------------------

These are refactorings I needed for RTF. To my best knowledge they do
not change the output of other filters from a user?s point of view.

  * The code that splits runs according to bookmarks is moved from
    DocxExport to MSWordExportBase
  * WW8_SdrAttrIter has been refactored to MSWord_SdrAttrIter
  * MSWordExportBase::SubstituteBullet can avoid replacing bullets
  * wwFontHelper::InitFontTable can really load all fonts
  * An obvious typo in WW8AttributeOutput::CharTwoLines has been
    fixed