2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 # Licensed to the Apache Software Foundation (ASF) under one or more
11 # contributor license agreements. See the NOTICE file distributed
12 # with this work for additional information regarding copyright
13 # ownership. The ASF licenses this file to you under the Apache
14 # License, Version 2.0 (the "License"); you may not use this file
15 # except in compliance with the License. You may obtain a copy of
16 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 ---------------------------------------------------------------------
21 Summary of new features in RtfExport
23 ---------------------------------------------------------------------
28 ---------------------------------------------------------------------
38 3. List of new features
41 3.2. Character properties
50 4. Changes in the source code outside RTF
53 ---------------------------------------------------------------------
57 ---------------------------------------------------------------------
59 The biggest difference is that the new exporter is a UNO component,
60 and it?s based on the MSWord base classes, the vision here is that
61 this way much less code can achieve the same set of features,
62 reducing the amount of duplicated code.
69 * The "MSO OK, OOo KO" and similar abbreviations describe if the
70 given new feature is supported by the OOo RTF importer or it can
71 be tested using Microsoft Office.
72 * RtfExport refers to the new UNO-based exporter, RtfWriter refers
73 to the old built-in one.
80 RtfWriter sometimes created documents where the first { is closed in
81 the middle of the document. MSO ignores this problem, but OOo stops
82 parsing the rest of the document if this happens, in other words
83 everything after such a bug is ignored. This can be reproduced by for
84 example parprops.odt, but it?s triggered in several other cases as
85 well. RtfExport has no automatic prevention for this, either - but
86 during development I primarily test the output with OOo, so hopefully
87 the bug will pop up less frequently.
90 ---------------------------------------------------------------------
94 ---------------------------------------------------------------------
96 * https://bz.apache.org/ooo/show_bug.cgi?id=51469 postit
98 * https://bz.apache.org/ooo/show_bug.cgi?id=66619 page
100 * https://bz.apache.org/ooo/show_bug.cgi?id=69856 page
102 * https://bz.apache.org/ooo/show_bug.cgi?id=81569 { and } in
104 * https://bz.apache.org/ooo/show_bug.cgi?id=84703 redlines
105 * https://bz.apache.org/ooo/show_bug.cgi?id=91166 russian
107 * https://bz.apache.org/ooo/show_bug.cgi?id=92673 bookmarks
109 * https://bz.apache.org/ooo/show_bug.cgi?id=100507 ole
111 * https://bz.apache.org/ooo/show_bug.cgi?id=103993 same as #
112 81569 just for doc comments
113 * https://bz.apache.org/ooo/show_bug.cgi?id=106677
114 listoverride index starts at zero
115 * https://bz.apache.org/ooo/show_bug.cgi?id=38344 enhanced
119 ---------------------------------------------------------------------
121 3.�List of new features
123 ---------------------------------------------------------------------
130 This was new in Word2000 and it?s now supported by RtfExport (MSO OK,
134 3.2.�Character properties
138 The following are now supported:
140 * blinking (MSO OK, OOo KO)
141 * expanded spacing (MSO OK, OOo OK)
142 * pair kerning (MSO OK, OOo OK)
151 * column breaks (MSO OK, OOo OK)
152 * special breaks (when the next page should be an odd or an even
153 page; MSO OK, OOo KO)
154 * the write-protected property of sections is exported properly
156 * better page numbers (inherited type from page styles, restarts;
158 * line numbering (MSO OK, OOo KO)
165 PNG graphics are exported in WMF format as well, so that not only MSO
166 and OOo can display graphics from the output document, but Wordpad as
174 Implicit bookmarks like reference to a footnote did not work in OOo
175 (one got an Error: Reference source not found message when opening
176 the result), this now works as expected. (MSO OK - the importer
177 previously autocorrected this as well, OO OK)
184 * Table of contents is now written as a field, so it?s properly
185 read-only (MSO OK, OOo KO)
186 * Postit comments are now exported. (MSO OK, OOo KO)
193 Drawing objects for Word 97 through Word 2007 (shapes) are now
196 * basic shapes (rectangle, ellipse, etc.)
197 * lines, including free-form ones
198 * texts, including vertical ones and their (paragraph and
199 character) formatting
208 All types supported by the RTF format are exported, namely:
221 Their result is exported as a picture - RtfWriter did not export
222 anything. (MSO OK, OOo OK)
224 For math, the native data is written as well, so you can edit the
225 object, too. (MSO OK, OOo KO)
228 ---------------------------------------------------------------------
230 4.�Changes in the source code outside RTF
232 ---------------------------------------------------------------------
234 These are refactorings I needed for RTF. To my best knowledge they do
235 not change the output of other filters from a user?s point of view.
237 * The code that splits runs according to bookmarks is moved from
238 DocxExport to MSWordExportBase
239 * WW8_SdrAttrIter has been refactored to MSWord_SdrAttrIter
240 * MSWordExportBase::SubstituteBullet can avoid replacing bullets
241 * wwFontHelper::InitFontTable can really load all fonts
242 * An obvious typo in WW8AttributeOutput::CharTwoLines has been