<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openoffice.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Chengjh</id>
	<title>Apache OpenOffice Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openoffice.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Chengjh"/>
	<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/wiki/Special:Contributions/Chengjh"/>
	<updated>2026-12-06T03:29:12Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/NumberingEnhancementforMSInteroperability&amp;diff=205545</id>
		<title>Writer/NumberingEnhancementforMSInteroperability</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/NumberingEnhancementforMSInteroperability&amp;diff=205545"/>
		<updated>2012-09-28T01:36:47Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Graphic Bullets Interoperability with MS Word Binary Format */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Feature Scope=&lt;br /&gt;
The enhancement contains:&lt;br /&gt;
&lt;br /&gt;
===Support the ODF attribute &amp;quot;List Level&amp;quot; for paragraph styles===&lt;br /&gt;
&lt;br /&gt;
Loading and saving List Level attribute of paragraph style.&lt;br /&gt;
&lt;br /&gt;
UI support of List Level attribute setting.&lt;br /&gt;
&lt;br /&gt;
New numbering calculating rule.&lt;br /&gt;
&lt;br /&gt;
MS doc style mapping, and numbering mapping, filter updating.&lt;br /&gt;
&lt;br /&gt;
===Inherited outline level attribute===&lt;br /&gt;
&lt;br /&gt;
Child paragraph&amp;#039;s Headline styles can associate outline numbering style and be regard as TOC collect-able styles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Numbering in the writer=&lt;br /&gt;
&lt;br /&gt;
Numbering or Bullet is a special character appeared at the front of a paragraph. In writer, the key concept of Numbering/Bullet is the numbering rule. Numbering rule is a numbering calculating rule. Numbering rule defines a serious of attributes for formatting Numbering/Bullet character. These attributes are: Type(Bullet, Picture Bullet and Numbering), Level(Level 1 – Level 10, a number rule have 10 levels), Style, Size, Color, Font, Space, etc.&lt;br /&gt;
&lt;br /&gt;
There are two types of numbering rules in writer, one is &amp;#039;&amp;#039;&amp;#039;Outline Numbering Rule&amp;#039;&amp;#039;&amp;#039; , the other is &amp;#039;&amp;#039;&amp;#039;Normal Numbering Rule&amp;#039;&amp;#039;&amp;#039;. &lt;br /&gt;
&lt;br /&gt;
There are only one Outline Numbering Rule, lots of Normal Numbering Rules in one document. In general, a Normal Numbering Rule is applied to a paragraph when &amp;quot;Bullets and Numbering&amp;quot; is used to format a paragraph. &lt;br /&gt;
&lt;br /&gt;
===There are three ways to use numbering to format a paragraph.===&lt;br /&gt;
&lt;br /&gt;
1) Outline Number Rule can be configured through &amp;quot;Outline Numbering&amp;quot; dialog (Main Menu-&amp;gt;Tools-&amp;gt;Outline Numbering). User can configure several options for each outline level, a predefined paragraph style, such as &amp;quot;heading 1&amp;quot;, can be bound to an outline level, when user applies this paragraph style to a paragraph, the Outline Number Rule is applied to this paragraph automatically.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;text-align:center;&amp;quot;&amp;gt;[[File:dlg_outline_numbering.png]]&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2) &amp;quot;Style and Formatting&amp;quot; dialog (Main Menu-&amp;gt;Format-&amp;gt;Style and Formatting, F11) lists all writer&amp;#039;s predefined numbering rules, user can apply those list style directly to a paragraph, the list styles in this dialog are Normal Numbering Rules. User can also create new named customized numbering rule then apply it to a paragraph.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;text-align:center;&amp;quot;&amp;gt;[[File:dlg_style_and_formatting.png]]&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3) &amp;quot;Bullets and Numbering&amp;quot; dialog (Main Menu-&amp;gt;Format-&amp;gt;Bullets and Numbering), user can use this dialog to create a customized numbering rule then apply it to a paragraph. The name of the applied customized numbering rules can not be controlled by the user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;text-align:center;&amp;quot;&amp;gt;[[File:dlg_bullets_and_numbering.png]]&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Additional to the dialog:&lt;br /&gt;
&lt;br /&gt;
:: User can use the buttons in the Formatting Toolbar.&lt;br /&gt;
&lt;br /&gt;
:: User can use the Auto Correct Option &amp;quot;Apply numbering ...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
:: User presses F12 or Shift+F12&lt;br /&gt;
&lt;br /&gt;
:: User opens the &amp;quot;Bullet and Numbering&amp;quot; toolbar and uses its buttons. [[User:Regina|Regina]] 17:47, 18 August 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
=Feature implement=&lt;br /&gt;
&lt;br /&gt;
===Import and Export of paragraph style with attribute &amp;quot;list-level&amp;quot;===&lt;br /&gt;
&lt;br /&gt;
Here is a sample file [[File:numbering.odt]] which contains a paragraph style named &amp;quot;ParaStyle&amp;quot;, the paragraph style has an attribute list-level=6.&lt;br /&gt;
&lt;br /&gt;
The XML description of the paragraph style is &lt;br /&gt;
&lt;br /&gt;
    &amp;lt;style:style style:name=&amp;quot;ParaStyle&amp;quot; style:family=&amp;quot;paragraph&amp;quot; style:parent-style-name=&amp;quot;Default_20_Text&amp;quot; style:list-style-name=&amp;quot;Untitled1&amp;quot; style:list-level=&amp;quot;6&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;style:text-properties fo:font-size=&amp;quot;80pt&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/style:style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===UI used to link a list level to a paragraph style===&lt;br /&gt;
&lt;br /&gt;
Create a new list style from dialog &amp;quot;Style and Formatting&amp;quot;, in the options tab page we add a list box control &amp;quot;Paragraph Sytle&amp;quot;, give the users an option to link a level of current list style to a paragraph style.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;text-align:center;&amp;quot;&amp;gt;[[File:listlevel.png]]&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Graphic Bullets Interoperability with MS Word Binary Format=&lt;br /&gt;
Graphic Bullets is a kind of bullets and used in both MS Office and Apache OpenOffice.org. It provides fancy graphics to replace the special characters as bullet,which is used broadly. This wiki will only focus on the graphic bullets in Apache OpenOffice.org Writer.&lt;br /&gt;
==Problem Description==&lt;br /&gt;
Currently,this feature is missing the fidelity with MS Word binary file format in Apache OpenOffice.org Writer.When loading a MS Word binary file containing graphic bullets into Apache OpenOffice.org Writer,the graphic bullets will be lost,instead of a default normal special character bullet.Reversely,when creating graphic bullets in Apache OpenOffice.org Writer and saving to MS Word binary format,the graphic bullets is also lost,instead of a default normal special character bullet.&lt;br /&gt;
&lt;br /&gt;
==Goal and Scope of the Improvement==&lt;br /&gt;
#When loading a MS Word binary document with graphic bullets into Writer,the graphic bullets will be parsed and mapped to Writer&amp;#039;s graphic bullet correctly.&lt;br /&gt;
#The loaded graphic bullets from a MS Word binary document can be modified and saved back correctly&lt;br /&gt;
#The loaded graphic bullets from a MS Word binary document can be saved as an odt file correctly&lt;br /&gt;
#The graphic bullets created in Writer can be saved as MS Word binary document correctly&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/NumberingEnhancementforMSInteroperability&amp;diff=205542</id>
		<title>Writer/NumberingEnhancementforMSInteroperability</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/NumberingEnhancementforMSInteroperability&amp;diff=205542"/>
		<updated>2012-09-28T01:15:00Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* UI used to link a list level to a paragraph style */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Feature Scope=&lt;br /&gt;
The enhancement contains:&lt;br /&gt;
&lt;br /&gt;
===Support the ODF attribute &amp;quot;List Level&amp;quot; for paragraph styles===&lt;br /&gt;
&lt;br /&gt;
Loading and saving List Level attribute of paragraph style.&lt;br /&gt;
&lt;br /&gt;
UI support of List Level attribute setting.&lt;br /&gt;
&lt;br /&gt;
New numbering calculating rule.&lt;br /&gt;
&lt;br /&gt;
MS doc style mapping, and numbering mapping, filter updating.&lt;br /&gt;
&lt;br /&gt;
===Inherited outline level attribute===&lt;br /&gt;
&lt;br /&gt;
Child paragraph&amp;#039;s Headline styles can associate outline numbering style and be regard as TOC collect-able styles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Numbering in the writer=&lt;br /&gt;
&lt;br /&gt;
Numbering or Bullet is a special character appeared at the front of a paragraph. In writer, the key concept of Numbering/Bullet is the numbering rule. Numbering rule is a numbering calculating rule. Numbering rule defines a serious of attributes for formatting Numbering/Bullet character. These attributes are: Type(Bullet, Picture Bullet and Numbering), Level(Level 1 – Level 10, a number rule have 10 levels), Style, Size, Color, Font, Space, etc.&lt;br /&gt;
&lt;br /&gt;
There are two types of numbering rules in writer, one is &amp;#039;&amp;#039;&amp;#039;Outline Numbering Rule&amp;#039;&amp;#039;&amp;#039; , the other is &amp;#039;&amp;#039;&amp;#039;Normal Numbering Rule&amp;#039;&amp;#039;&amp;#039;. &lt;br /&gt;
&lt;br /&gt;
There are only one Outline Numbering Rule, lots of Normal Numbering Rules in one document. In general, a Normal Numbering Rule is applied to a paragraph when &amp;quot;Bullets and Numbering&amp;quot; is used to format a paragraph. &lt;br /&gt;
&lt;br /&gt;
===There are three ways to use numbering to format a paragraph.===&lt;br /&gt;
&lt;br /&gt;
1) Outline Number Rule can be configured through &amp;quot;Outline Numbering&amp;quot; dialog (Main Menu-&amp;gt;Tools-&amp;gt;Outline Numbering). User can configure several options for each outline level, a predefined paragraph style, such as &amp;quot;heading 1&amp;quot;, can be bound to an outline level, when user applies this paragraph style to a paragraph, the Outline Number Rule is applied to this paragraph automatically.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;text-align:center;&amp;quot;&amp;gt;[[File:dlg_outline_numbering.png]]&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2) &amp;quot;Style and Formatting&amp;quot; dialog (Main Menu-&amp;gt;Format-&amp;gt;Style and Formatting, F11) lists all writer&amp;#039;s predefined numbering rules, user can apply those list style directly to a paragraph, the list styles in this dialog are Normal Numbering Rules. User can also create new named customized numbering rule then apply it to a paragraph.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;text-align:center;&amp;quot;&amp;gt;[[File:dlg_style_and_formatting.png]]&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3) &amp;quot;Bullets and Numbering&amp;quot; dialog (Main Menu-&amp;gt;Format-&amp;gt;Bullets and Numbering), user can use this dialog to create a customized numbering rule then apply it to a paragraph. The name of the applied customized numbering rules can not be controlled by the user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;text-align:center;&amp;quot;&amp;gt;[[File:dlg_bullets_and_numbering.png]]&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Additional to the dialog:&lt;br /&gt;
&lt;br /&gt;
:: User can use the buttons in the Formatting Toolbar.&lt;br /&gt;
&lt;br /&gt;
:: User can use the Auto Correct Option &amp;quot;Apply numbering ...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
:: User presses F12 or Shift+F12&lt;br /&gt;
&lt;br /&gt;
:: User opens the &amp;quot;Bullet and Numbering&amp;quot; toolbar and uses its buttons. [[User:Regina|Regina]] 17:47, 18 August 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
=Feature implement=&lt;br /&gt;
&lt;br /&gt;
===Import and Export of paragraph style with attribute &amp;quot;list-level&amp;quot;===&lt;br /&gt;
&lt;br /&gt;
Here is a sample file [[File:numbering.odt]] which contains a paragraph style named &amp;quot;ParaStyle&amp;quot;, the paragraph style has an attribute list-level=6.&lt;br /&gt;
&lt;br /&gt;
The XML description of the paragraph style is &lt;br /&gt;
&lt;br /&gt;
    &amp;lt;style:style style:name=&amp;quot;ParaStyle&amp;quot; style:family=&amp;quot;paragraph&amp;quot; style:parent-style-name=&amp;quot;Default_20_Text&amp;quot; style:list-style-name=&amp;quot;Untitled1&amp;quot; style:list-level=&amp;quot;6&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;style:text-properties fo:font-size=&amp;quot;80pt&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/style:style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===UI used to link a list level to a paragraph style===&lt;br /&gt;
&lt;br /&gt;
Create a new list style from dialog &amp;quot;Style and Formatting&amp;quot;, in the options tab page we add a list box control &amp;quot;Paragraph Sytle&amp;quot;, give the users an option to link a level of current list style to a paragraph style.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;text-align:center;&amp;quot;&amp;gt;[[File:listlevel.png]]&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Graphic Bullets Interoperability with MS Word Binary Format=&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202744</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202744"/>
		<updated>2012-07-02T09:19:23Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Writer Track Changes Enhancement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/Oliver/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony/AOO only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Edit-&amp;gt;Changes-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Track Changes&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Change Record On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Edit-&amp;gt;Changes-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony/AOO above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony/AOO has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Track Changes in Symphony/AOO is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony/AOO: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony/AOO&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
&lt;br /&gt;
In this chapter,we only present our imagine based on our investigated knowledge. Our knowledge should be limited. So, this is just the beginning and it is hard to avoid flaws.We open them, hope revisions and more creative ideas from senior volunteers.&lt;br /&gt;
&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final &amp;lt;nowiki&amp;gt; [Current Hide]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup &amp;lt;nowiki&amp;gt;[Current Show]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
&lt;br /&gt;
Here,we only present simple principles. More creative input are welcome and expected.&lt;br /&gt;
&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
&lt;br /&gt;
The new design is mainly re-using the mechanism of SwClient and SwModify, which represents the “Observer Design Patten”. And the design proposals should not limited to the idea, and they are open for discussion and creative brainstorm.&lt;br /&gt;
&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice.org. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.org.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony/AOO&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202743</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202743"/>
		<updated>2012-07-02T08:54:27Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* GAP from UI Perspective */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony/AOO only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Edit-&amp;gt;Changes-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Track Changes&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Change Record On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Edit-&amp;gt;Changes-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony/AOO above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony/AOO has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Track Changes in Symphony/AOO is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony/AOO: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony/AOO&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
&lt;br /&gt;
In this chapter,we only present our imagine based on our investigated knowledge. Our knowledge should be limited. So, this is just the beginning and it is hard to avoid flaws.We open them, hope revisions and more creative ideas from senior volunteers.&lt;br /&gt;
&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final &amp;lt;nowiki&amp;gt; [Current Hide]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup &amp;lt;nowiki&amp;gt;[Current Show]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
&lt;br /&gt;
Here,we only present simple principles. More creative input are welcome and expected.&lt;br /&gt;
&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
&lt;br /&gt;
The new design is mainly re-using the mechanism of SwClient and SwModify, which represents the “Observer Design Patten”. And the design proposals should not limited to the idea, and they are open for discussion and creative brainstorm.&lt;br /&gt;
&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice.org. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.org.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony/AOO&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202742</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202742"/>
		<updated>2012-07-02T08:53:43Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* GAP from UI Perspective */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony/AOO only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Edit-&amp;gt;Changes-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Track Changes&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Edit-&amp;gt;Changes-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony/AOO above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony/AOO has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Track Changes in Symphony/AOO is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony/AOO: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony/AOO&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
&lt;br /&gt;
In this chapter,we only present our imagine based on our investigated knowledge. Our knowledge should be limited. So, this is just the beginning and it is hard to avoid flaws.We open them, hope revisions and more creative ideas from senior volunteers.&lt;br /&gt;
&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final &amp;lt;nowiki&amp;gt; [Current Hide]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup &amp;lt;nowiki&amp;gt;[Current Show]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
&lt;br /&gt;
Here,we only present simple principles. More creative input are welcome and expected.&lt;br /&gt;
&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
&lt;br /&gt;
The new design is mainly re-using the mechanism of SwClient and SwModify, which represents the “Observer Design Patten”. And the design proposals should not limited to the idea, and they are open for discussion and creative brainstorm.&lt;br /&gt;
&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice.org. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.org.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony/AOO&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202741</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202741"/>
		<updated>2012-07-02T08:52:36Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Problem Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony/AOO only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Edit-&amp;gt;Changes-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Edit-&amp;gt;Changes-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony/AOO above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony/AOO has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Track Changes in Symphony/AOO is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony/AOO: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony/AOO&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
&lt;br /&gt;
In this chapter,we only present our imagine based on our investigated knowledge. Our knowledge should be limited. So, this is just the beginning and it is hard to avoid flaws.We open them, hope revisions and more creative ideas from senior volunteers.&lt;br /&gt;
&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final &amp;lt;nowiki&amp;gt; [Current Hide]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup &amp;lt;nowiki&amp;gt;[Current Show]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
&lt;br /&gt;
Here,we only present simple principles. More creative input are welcome and expected.&lt;br /&gt;
&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
&lt;br /&gt;
The new design is mainly re-using the mechanism of SwClient and SwModify, which represents the “Observer Design Patten”. And the design proposals should not limited to the idea, and they are open for discussion and creative brainstorm.&lt;br /&gt;
&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice.org. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.org.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony/AOO&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202740</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202740"/>
		<updated>2012-07-02T08:51:24Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Current Class Diagram */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony/AOO only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Edit-&amp;gt;Changes-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony/AOO above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony/AOO has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Track Changes in Symphony/AOO is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony/AOO: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony/AOO&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
&lt;br /&gt;
In this chapter,we only present our imagine based on our investigated knowledge. Our knowledge should be limited. So, this is just the beginning and it is hard to avoid flaws.We open them, hope revisions and more creative ideas from senior volunteers.&lt;br /&gt;
&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final &amp;lt;nowiki&amp;gt; [Current Hide]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup &amp;lt;nowiki&amp;gt;[Current Show]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
&lt;br /&gt;
Here,we only present simple principles. More creative input are welcome and expected.&lt;br /&gt;
&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
&lt;br /&gt;
The new design is mainly re-using the mechanism of SwClient and SwModify, which represents the “Observer Design Patten”. And the design proposals should not limited to the idea, and they are open for discussion and creative brainstorm.&lt;br /&gt;
&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice.org. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.org.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony/AOO&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202739</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202739"/>
		<updated>2012-07-02T08:50:37Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Details */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony/AOO only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Edit-&amp;gt;Changes-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony/AOO above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony/AOO has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Track Changes in Symphony/AOO is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony/AOO: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
&lt;br /&gt;
In this chapter,we only present our imagine based on our investigated knowledge. Our knowledge should be limited. So, this is just the beginning and it is hard to avoid flaws.We open them, hope revisions and more creative ideas from senior volunteers.&lt;br /&gt;
&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final &amp;lt;nowiki&amp;gt; [Current Hide]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup &amp;lt;nowiki&amp;gt;[Current Show]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
&lt;br /&gt;
Here,we only present simple principles. More creative input are welcome and expected.&lt;br /&gt;
&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
&lt;br /&gt;
The new design is mainly re-using the mechanism of SwClient and SwModify, which represents the “Observer Design Patten”. And the design proposals should not limited to the idea, and they are open for discussion and creative brainstorm.&lt;br /&gt;
&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice.org. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.org.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony/AOO&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202738</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202738"/>
		<updated>2012-07-02T08:50:02Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Details */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony/AOO only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Edit-&amp;gt;Changes-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony/AOO above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony/AOO has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Track Changes in Symphony/AOO is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
&lt;br /&gt;
In this chapter,we only present our imagine based on our investigated knowledge. Our knowledge should be limited. So, this is just the beginning and it is hard to avoid flaws.We open them, hope revisions and more creative ideas from senior volunteers.&lt;br /&gt;
&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final &amp;lt;nowiki&amp;gt; [Current Hide]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup &amp;lt;nowiki&amp;gt;[Current Show]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
&lt;br /&gt;
Here,we only present simple principles. More creative input are welcome and expected.&lt;br /&gt;
&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
&lt;br /&gt;
The new design is mainly re-using the mechanism of SwClient and SwModify, which represents the “Observer Design Patten”. And the design proposals should not limited to the idea, and they are open for discussion and creative brainstorm.&lt;br /&gt;
&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice.org. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.org.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony/AOO&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202737</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202737"/>
		<updated>2012-07-02T08:47:38Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony/AOO only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Edit-&amp;gt;Changes-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony/AOO above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony/AOO has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
&lt;br /&gt;
In this chapter,we only present our imagine based on our investigated knowledge. Our knowledge should be limited. So, this is just the beginning and it is hard to avoid flaws.We open them, hope revisions and more creative ideas from senior volunteers.&lt;br /&gt;
&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final &amp;lt;nowiki&amp;gt; [Current Hide]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup &amp;lt;nowiki&amp;gt;[Current Show]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
&lt;br /&gt;
Here,we only present simple principles. More creative input are welcome and expected.&lt;br /&gt;
&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
&lt;br /&gt;
The new design is mainly re-using the mechanism of SwClient and SwModify, which represents the “Observer Design Patten”. And the design proposals should not limited to the idea, and they are open for discussion and creative brainstorm.&lt;br /&gt;
&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice.org. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.org.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony/AOO&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202736</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202736"/>
		<updated>2012-07-02T08:45:36Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony/AOO only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Edit-&amp;gt;Changes-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony/AOO above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
&lt;br /&gt;
In this chapter,we only present our imagine based on our investigated knowledge. Our knowledge should be limited. So, this is just the beginning and it is hard to avoid flaws.We open them, hope revisions and more creative ideas from senior volunteers.&lt;br /&gt;
&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final &amp;lt;nowiki&amp;gt; [Current Hide]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup &amp;lt;nowiki&amp;gt;[Current Show]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
&lt;br /&gt;
Here,we only present simple principles. More creative input are welcome and expected.&lt;br /&gt;
&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
&lt;br /&gt;
The new design is mainly re-using the mechanism of SwClient and SwModify, which represents the “Observer Design Patten”. And the design proposals should not limited to the idea, and they are open for discussion and creative brainstorm.&lt;br /&gt;
&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice.org. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.org.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony/AOO&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202735</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202735"/>
		<updated>2012-07-02T08:44:57Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony/AOO only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Edit-&amp;gt;Changes-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony/AOO above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
&lt;br /&gt;
In this chapter,we only present our imagine based on our investigated knowledge. Our knowledge should be limited. So, this is just the beginning and it is hard to avoid flaws.We open them, hope revisions and more creative ideas from senior volunteers.&lt;br /&gt;
&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final &amp;lt;nowiki&amp;gt; [Current Hide]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup &amp;lt;nowiki&amp;gt;[Current Show]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
&lt;br /&gt;
Here,we only present simple principles. More creative input are welcome and expected.&lt;br /&gt;
&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
&lt;br /&gt;
The new design is mainly re-using the mechanism of SwClient and SwModify, which represents the “Observer Design Patten”. And the design proposals should not limited to the idea, and they are open for discussion and creative brainstorm.&lt;br /&gt;
&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice.org. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.org.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202734</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202734"/>
		<updated>2012-07-02T08:42:30Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Problem Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony/AOO only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
&lt;br /&gt;
In this chapter,we only present our imagine based on our investigated knowledge. Our knowledge should be limited. So, this is just the beginning and it is hard to avoid flaws.We open them, hope revisions and more creative ideas from senior volunteers.&lt;br /&gt;
&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final &amp;lt;nowiki&amp;gt; [Current Hide]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup &amp;lt;nowiki&amp;gt;[Current Show]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
&lt;br /&gt;
Here,we only present simple principles. More creative input are welcome and expected.&lt;br /&gt;
&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
&lt;br /&gt;
The new design is mainly re-using the mechanism of SwClient and SwModify, which represents the “Observer Design Patten”. And the design proposals should not limited to the idea, and they are open for discussion and creative brainstorm.&lt;br /&gt;
&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice.org. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.org.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202733</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202733"/>
		<updated>2012-07-02T08:39:45Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* To Do Tasks and Effort Evaluation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
&lt;br /&gt;
In this chapter,we only present our imagine based on our investigated knowledge. Our knowledge should be limited. So, this is just the beginning and it is hard to avoid flaws.We open them, hope revisions and more creative ideas from senior volunteers.&lt;br /&gt;
&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final &amp;lt;nowiki&amp;gt; [Current Hide]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup &amp;lt;nowiki&amp;gt;[Current Show]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
&lt;br /&gt;
Here,we only present simple principles. More creative input are welcome and expected.&lt;br /&gt;
&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
&lt;br /&gt;
The new design is mainly re-using the mechanism of SwClient and SwModify, which represents the “Observer Design Patten”. And the design proposals should not limited to the idea, and they are open for discussion and creative brainstorm.&lt;br /&gt;
&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice.org. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.org.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=File:8_7_5_3.jpg&amp;diff=202732</id>
		<title>File:8 7 5 3.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=File:8_7_5_3.jpg&amp;diff=202732"/>
		<updated>2012-07-02T08:36:20Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: uploaded a new version of &amp;quot;File:8 7 5 3.jpg&amp;quot;:&amp;amp;#32;Updated&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WriterTrackChanges&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=File:8_7_5_2.jpg&amp;diff=202731</id>
		<title>File:8 7 5 2.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=File:8_7_5_2.jpg&amp;diff=202731"/>
		<updated>2012-07-02T08:33:57Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: uploaded a new version of &amp;quot;File:8 7 5 2.jpg&amp;quot;:&amp;amp;#32;Updated&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WriterTrackChanges&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=File:8_7_4_1.jpg&amp;diff=202730</id>
		<title>File:8 7 4 1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=File:8_7_4_1.jpg&amp;diff=202730"/>
		<updated>2012-07-02T08:32:16Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: uploaded a new version of &amp;quot;File:8 7 4 1.jpg&amp;quot;:&amp;amp;#32;Updated&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WriterTrackChanges&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202729</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202729"/>
		<updated>2012-07-02T08:31:07Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* New Design */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
&lt;br /&gt;
In this chapter,we only present our imagine based on our investigated knowledge. Our knowledge should be limited. So, this is just the beginning and it is hard to avoid flaws.We open them, hope revisions and more creative ideas from senior volunteers.&lt;br /&gt;
&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final &amp;lt;nowiki&amp;gt; [Current Hide]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup &amp;lt;nowiki&amp;gt;[Current Show]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
&lt;br /&gt;
Here,we only present simple principles. More creative input are welcome and expected.&lt;br /&gt;
&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
&lt;br /&gt;
The new design is mainly re-using the mechanism of SwClient and SwModify, which represents the “Observer Design Patten”. And the design proposals should not limited to the idea, and they are open for discussion and creative brainstorm.&lt;br /&gt;
&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice.org. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.org.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202728</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202728"/>
		<updated>2012-07-02T08:28:48Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Principles of Combine and Split */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
&lt;br /&gt;
In this chapter,we only present our imagine based on our investigated knowledge. Our knowledge should be limited. So, this is just the beginning and it is hard to avoid flaws.We open them, hope revisions and more creative ideas from senior volunteers.&lt;br /&gt;
&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final &amp;lt;nowiki&amp;gt; [Current Hide]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup &amp;lt;nowiki&amp;gt;[Current Show]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
&lt;br /&gt;
Here,we only present simple principles. More creative input are welcome and expected.&lt;br /&gt;
&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202727</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202727"/>
		<updated>2012-07-02T08:27:09Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Operations for Records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
&lt;br /&gt;
In this chapter,we only present our imagine based on our investigated knowledge. Our knowledge should be limited. So, this is just the beginning and it is hard to avoid flaws.We open them, hope revisions and more creative ideas from senior volunteers.&lt;br /&gt;
&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final &amp;lt;nowiki&amp;gt; [Current Hide]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup &amp;lt;nowiki&amp;gt;[Current Show]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202726</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202726"/>
		<updated>2012-07-02T08:25:51Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Design Proposals */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
&lt;br /&gt;
In this chapter,we only present our imagine based on our investigated knowledge. Our knowledge should be limited. So, this is just the beginning and it is hard to avoid flaws.We open them, hope revisions and more creative ideas from senior volunteers.&lt;br /&gt;
&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202725</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202725"/>
		<updated>2012-07-02T08:25:09Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Procedure of Hide Action */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202724</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202724"/>
		<updated>2012-07-02T08:24:39Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Procedure of Show Action */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Edit-&amp;gt;Changes-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=File:7_1_1.jpg&amp;diff=202723</id>
		<title>File:7 1 1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=File:7_1_1.jpg&amp;diff=202723"/>
		<updated>2012-07-02T08:21:52Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: uploaded a new version of &amp;quot;File:7 1 1.jpg&amp;quot;:&amp;amp;#32;Updated&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WriterTrackChanges&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202722</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202722"/>
		<updated>2012-07-02T08:20:27Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Proposal of Achieving the Goals */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and prototype of conception...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and prototype of conception.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202721</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202721"/>
		<updated>2012-07-02T08:19:12Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Details */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and POC...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and POC.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202720</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202720"/>
		<updated>2012-07-02T08:18:40Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Details */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;AOO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
For more detailed GAPs, please refer to Document: [notes://GREATWALL/4825749C002622C1/BF25AB0F47BA5DD785256499006B15A4/97F5E6F700B4E7F7882577610058EC51 Notes Link]&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and POC...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and POC.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202719</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202719"/>
		<updated>2012-07-02T08:16:41Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* GAP from UI Perspective */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice.org Writer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Edit-&amp;gt;Changes-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO Writer-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Options...-&amp;gt;AOO-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Edit-&amp;gt;Changes-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Edit-&amp;gt;Changes-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Edit-&amp;gt;Changes-&amp;gt;Accept or Reject...”&lt;br /&gt;
* Insert-&amp;gt;Comment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Compare Document...&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Edit-&amp;gt;Changes-&amp;gt;Merge Document...&lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
For more detailed GAPs, please refer to Document: [notes://GREATWALL/4825749C002622C1/BF25AB0F47BA5DD785256499006B15A4/97F5E6F700B4E7F7882577610058EC51 Notes Link]&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and POC...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and POC.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202718</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202718"/>
		<updated>2012-07-02T08:14:40Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* GAP from UI Perspective */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007/2010 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Red ones are GAPs.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Yellow ones need enhancement.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Reviewing-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;Lotus Symphony Document-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Tools-&amp;gt;Reviewing-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Tools-&amp;gt;Reviewing-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject”&lt;br /&gt;
* Create-&amp;gt;Comment &amp;lt;br/&amp;gt; (Note feature of OO3)&amp;lt;br/&amp;gt; Shown by Side-Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Compare Document&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Merge Document, &lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
For more detailed GAPs, please refer to Document: [notes://GREATWALL/4825749C002622C1/BF25AB0F47BA5DD785256499006B15A4/97F5E6F700B4E7F7882577610058EC51 Notes Link]&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and POC...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and POC.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202717</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202717"/>
		<updated>2012-07-02T08:13:33Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Requirement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Red ones are GAPs.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Yellow ones need enhancement.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Reviewing-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;Lotus Symphony Document-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Tools-&amp;gt;Reviewing-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Tools-&amp;gt;Reviewing-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject”&lt;br /&gt;
* Create-&amp;gt;Comment &amp;lt;br/&amp;gt; (Note feature of OO3)&amp;lt;br/&amp;gt; Shown by Side-Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Compare Document&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Merge Document, &lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
For more detailed GAPs, please refer to Document: [notes://GREATWALL/4825749C002622C1/BF25AB0F47BA5DD785256499006B15A4/97F5E6F700B4E7F7882577610058EC51 Notes Link]&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and POC...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and POC.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=File:2_4.jpg&amp;diff=202716</id>
		<title>File:2 4.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=File:2_4.jpg&amp;diff=202716"/>
		<updated>2012-07-02T08:12:32Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: AOO_TOC&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AOO_TOC&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202715</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202715"/>
		<updated>2012-07-02T08:08:34Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Requirement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
11#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Red ones are GAPs.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Yellow ones need enhancement.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Reviewing-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;Lotus Symphony Document-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Tools-&amp;gt;Reviewing-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Tools-&amp;gt;Reviewing-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject”&lt;br /&gt;
* Create-&amp;gt;Comment &amp;lt;br/&amp;gt; (Note feature of OO3)&amp;lt;br/&amp;gt; Shown by Side-Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Compare Document&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Merge Document, &lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
For more detailed GAPs, please refer to Document: [notes://GREATWALL/4825749C002622C1/BF25AB0F47BA5DD785256499006B15A4/97F5E6F700B4E7F7882577610058EC51 Notes Link]&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and POC...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and POC.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202714</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202714"/>
		<updated>2012-07-02T08:07:47Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Requirement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability,high fidelity with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal contracts that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Certain Application to Handling ODT Document&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If the data of change records can be separated. That will benefit such kind of applications to handle the change record data from document. For example, the record data can be seperated converiently and also can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
12#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after being loaded...the page numbers will not be duplicated,otherwise,the result will be same with Symphony..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Red ones are GAPs.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Yellow ones need enhancement.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Reviewing-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;Lotus Symphony Document-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Tools-&amp;gt;Reviewing-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Tools-&amp;gt;Reviewing-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject”&lt;br /&gt;
* Create-&amp;gt;Comment &amp;lt;br/&amp;gt; (Note feature of OO3)&amp;lt;br/&amp;gt; Shown by Side-Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Compare Document&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Merge Document, &lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
For more detailed GAPs, please refer to Document: [notes://GREATWALL/4825749C002622C1/BF25AB0F47BA5DD785256499006B15A4/97F5E6F700B4E7F7882577610058EC51 Notes Link]&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and POC...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and POC.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=File:8_7_1_1.jpg&amp;diff=202177</id>
		<title>File:8 7 1 1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=File:8_7_1_1.jpg&amp;diff=202177"/>
		<updated>2012-06-13T08:14:36Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: uploaded a new version of &amp;quot;File:8 7 1 1.jpg&amp;quot;:&amp;amp;#32;Reverted to version as of 08:12, 13 June 2012&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WriterTrackChanges&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=File:8_7_1_1.jpg&amp;diff=202176</id>
		<title>File:8 7 1 1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=File:8_7_1_1.jpg&amp;diff=202176"/>
		<updated>2012-06-13T08:12:34Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: uploaded a new version of &amp;quot;File:8 7 1 1.jpg&amp;quot;:&amp;amp;#32;Reverted to version as of 07:00, 13 June 2012&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WriterTrackChanges&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=File:8_7_1_1.jpg&amp;diff=202175</id>
		<title>File:8 7 1 1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=File:8_7_1_1.jpg&amp;diff=202175"/>
		<updated>2012-06-13T08:12:10Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: uploaded a new version of &amp;quot;File:8 7 1 1.jpg&amp;quot;:&amp;amp;#32;updated&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WriterTrackChanges&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=File:7_2_1.jpg&amp;diff=202174</id>
		<title>File:7 2 1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=File:7_2_1.jpg&amp;diff=202174"/>
		<updated>2012-06-13T08:11:13Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: uploaded a new version of &amp;quot;File:7 2 1.jpg&amp;quot;:&amp;amp;#32;Reverted to version as of 08:09, 13 June 2012&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WriterTrackChanges&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=File:7_2_1.jpg&amp;diff=202173</id>
		<title>File:7 2 1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=File:7_2_1.jpg&amp;diff=202173"/>
		<updated>2012-06-13T08:10:33Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: uploaded a new version of &amp;quot;File:7 2 1.jpg&amp;quot;:&amp;amp;#32;Reverted to version as of 08:09, 13 June 2012&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WriterTrackChanges&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=File:7_2_1.jpg&amp;diff=202172</id>
		<title>File:7 2 1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=File:7_2_1.jpg&amp;diff=202172"/>
		<updated>2012-06-13T08:10:13Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: uploaded a new version of &amp;quot;File:7 2 1.jpg&amp;quot;:&amp;amp;#32;updated&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WriterTrackChanges&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=File:7_2_1.jpg&amp;diff=202171</id>
		<title>File:7 2 1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=File:7_2_1.jpg&amp;diff=202171"/>
		<updated>2012-06-13T08:09:35Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: uploaded a new version of &amp;quot;File:7 2 1.jpg&amp;quot;:&amp;amp;#32;Reverted to version as of 06:52, 13 June 2012&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WriterTrackChanges&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=File:7_2_1.jpg&amp;diff=202170</id>
		<title>File:7 2 1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=File:7_2_1.jpg&amp;diff=202170"/>
		<updated>2012-06-13T08:09:19Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: uploaded a new version of &amp;quot;File:7 2 1.jpg&amp;quot;:&amp;amp;#32;updated&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WriterTrackChanges&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202169</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202169"/>
		<updated>2012-06-13T07:59:14Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* GAP from Contents */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal document that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From IBM Docs&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The data of change records should be separated. Thus, the record data can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
12#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after loaded...the page numbers will not be duplicated..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Red ones are GAPs.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Yellow ones need enhancement.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Reviewing-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;Lotus Symphony Document-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Tools-&amp;gt;Reviewing-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Tools-&amp;gt;Reviewing-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject”&lt;br /&gt;
* Create-&amp;gt;Comment &amp;lt;br/&amp;gt; (Note feature of OO3)&amp;lt;br/&amp;gt; Shown by Side-Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Compare Document&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Merge Document, &lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
=== GAP from Contents ===&lt;br /&gt;
==== Overview ====&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
For more detailed GAPs, please refer to Document: [notes://GREATWALL/4825749C002622C1/BF25AB0F47BA5DD785256499006B15A4/97F5E6F700B4E7F7882577610058EC51 Notes Link]&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and POC...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and POC.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202168</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202168"/>
		<updated>2012-06-13T07:55:38Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Impact Areas and Risk */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal document that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From IBM Docs&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The data of change records should be separated. Thus, the record data can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
12#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after loaded...the page numbers will not be duplicated..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Red ones are GAPs.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Yellow ones need enhancement.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Reviewing-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;Lotus Symphony Document-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Tools-&amp;gt;Reviewing-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Tools-&amp;gt;Reviewing-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject”&lt;br /&gt;
* Create-&amp;gt;Comment &amp;lt;br/&amp;gt; (Note feature of OO3)&amp;lt;br/&amp;gt; Shown by Side-Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Compare Document&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Merge Document, &lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
== GAP from Contents ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
=== Details ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
For more detailed GAPs, please refer to Document: [notes://GREATWALL/4825749C002622C1/BF25AB0F47BA5DD785256499006B15A4/97F5E6F700B4E7F7882577610058EC51 Notes Link]&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and POC...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and POC.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202167</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202167"/>
		<updated>2012-06-13T07:55:22Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal document that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From IBM Docs&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The data of change records should be separated. Thus, the record data can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
12#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after loaded...the page numbers will not be duplicated..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Red ones are GAPs.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Yellow ones need enhancement.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Reviewing-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;Lotus Symphony Document-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Tools-&amp;gt;Reviewing-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Tools-&amp;gt;Reviewing-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject”&lt;br /&gt;
* Create-&amp;gt;Comment &amp;lt;br/&amp;gt; (Note feature of OO3)&amp;lt;br/&amp;gt; Shown by Side-Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Compare Document&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Merge Document, &lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
== GAP from Contents ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
=== Details ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
For more detailed GAPs, please refer to Document: [notes://GREATWALL/4825749C002622C1/BF25AB0F47BA5DD785256499006B15A4/97F5E6F700B4E7F7882577610058EC51 Notes Link]&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and POC...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and POC.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202166</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202166"/>
		<updated>2012-06-13T07:55:00Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Current Design */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal document that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From IBM Docs&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The data of change records should be separated. Thus, the record data can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
12#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after loaded...the page numbers will not be duplicated..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Red ones are GAPs.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Yellow ones need enhancement.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Reviewing-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;Lotus Symphony Document-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Tools-&amp;gt;Reviewing-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Tools-&amp;gt;Reviewing-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject”&lt;br /&gt;
* Create-&amp;gt;Comment &amp;lt;br/&amp;gt; (Note feature of OO3)&amp;lt;br/&amp;gt; Shown by Side-Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Compare Document&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Merge Document, &lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
== GAP from Contents ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
=== Details ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
For more detailed GAPs, please refer to Document: [notes://GREATWALL/4825749C002622C1/BF25AB0F47BA5DD785256499006B15A4/97F5E6F700B4E7F7882577610058EC51 Notes Link]&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and POC...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and POC.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Appendix:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/ToDo]]&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202165</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202165"/>
		<updated>2012-06-13T07:54:40Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Procedure of Show Action */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal document that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From IBM Docs&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The data of change records should be separated. Thus, the record data can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
12#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after loaded...the page numbers will not be duplicated..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Red ones are GAPs.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Yellow ones need enhancement.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Reviewing-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;Lotus Symphony Document-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Tools-&amp;gt;Reviewing-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Tools-&amp;gt;Reviewing-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject”&lt;br /&gt;
* Create-&amp;gt;Comment &amp;lt;br/&amp;gt; (Note feature of OO3)&amp;lt;br/&amp;gt; Shown by Side-Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Compare Document&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Merge Document, &lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
== GAP from Contents ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
=== Details ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
For more detailed GAPs, please refer to Document: [notes://GREATWALL/4825749C002622C1/BF25AB0F47BA5DD785256499006B15A4/97F5E6F700B4E7F7882577610058EC51 Notes Link]&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and POC...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and POC.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Appendix:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/ToDo]]&lt;br /&gt;
&lt;br /&gt;
= Current Design =&lt;br /&gt;
== Current Class Diagram ==&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:]]&lt;br /&gt;
&lt;br /&gt;
== Procedure of Insert Action ==&lt;br /&gt;
[[Image:]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Procedure of Delete Action ==&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202164</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202164"/>
		<updated>2012-06-13T07:54:22Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Procedure of Hide Action */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal document that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From IBM Docs&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The data of change records should be separated. Thus, the record data can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
12#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after loaded...the page numbers will not be duplicated..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Red ones are GAPs.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Yellow ones need enhancement.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Reviewing-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;Lotus Symphony Document-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Tools-&amp;gt;Reviewing-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Tools-&amp;gt;Reviewing-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject”&lt;br /&gt;
* Create-&amp;gt;Comment &amp;lt;br/&amp;gt; (Note feature of OO3)&amp;lt;br/&amp;gt; Shown by Side-Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Compare Document&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Merge Document, &lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
== GAP from Contents ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
=== Details ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
For more detailed GAPs, please refer to Document: [notes://GREATWALL/4825749C002622C1/BF25AB0F47BA5DD785256499006B15A4/97F5E6F700B4E7F7882577610058EC51 Notes Link]&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and POC...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and POC.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Appendix:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/ToDo]]&lt;br /&gt;
&lt;br /&gt;
= Current Design =&lt;br /&gt;
== Current Class Diagram ==&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:]]&lt;br /&gt;
&lt;br /&gt;
== Procedure of Insert Action ==&lt;br /&gt;
[[Image:]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Procedure of Delete Action ==&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
== Procedure of Show Action ==&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:]]&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202163</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202163"/>
		<updated>2012-06-13T07:53:42Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Problems */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal document that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From IBM Docs&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The data of change records should be separated. Thus, the record data can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
12#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after loaded...the page numbers will not be duplicated..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Red ones are GAPs.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Yellow ones need enhancement.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Reviewing-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;Lotus Symphony Document-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Tools-&amp;gt;Reviewing-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Tools-&amp;gt;Reviewing-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject”&lt;br /&gt;
* Create-&amp;gt;Comment &amp;lt;br/&amp;gt; (Note feature of OO3)&amp;lt;br/&amp;gt; Shown by Side-Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Compare Document&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Merge Document, &lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
== GAP from Contents ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
=== Details ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
For more detailed GAPs, please refer to Document: [notes://GREATWALL/4825749C002622C1/BF25AB0F47BA5DD785256499006B15A4/97F5E6F700B4E7F7882577610058EC51 Notes Link]&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and POC...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and POC.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Appendix:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/ToDo]]&lt;br /&gt;
&lt;br /&gt;
= Current Design =&lt;br /&gt;
== Current Class Diagram ==&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:]]&lt;br /&gt;
&lt;br /&gt;
== Procedure of Insert Action ==&lt;br /&gt;
[[Image:]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Procedure of Delete Action ==&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
== Procedure of Show Action ==&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:]]&lt;br /&gt;
&lt;br /&gt;
== Procedure of Hide Action ==&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202162</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202162"/>
		<updated>2012-06-13T07:53:28Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Design Proposals */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal document that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From IBM Docs&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The data of change records should be separated. Thus, the record data can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
12#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after loaded...the page numbers will not be duplicated..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Red ones are GAPs.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Yellow ones need enhancement.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Reviewing-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;Lotus Symphony Document-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Tools-&amp;gt;Reviewing-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Tools-&amp;gt;Reviewing-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject”&lt;br /&gt;
* Create-&amp;gt;Comment &amp;lt;br/&amp;gt; (Note feature of OO3)&amp;lt;br/&amp;gt; Shown by Side-Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Compare Document&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Merge Document, &lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
== GAP from Contents ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
=== Details ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
For more detailed GAPs, please refer to Document: [notes://GREATWALL/4825749C002622C1/BF25AB0F47BA5DD785256499006B15A4/97F5E6F700B4E7F7882577610058EC51 Notes Link]&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and POC...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and POC.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Appendix:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/ToDo]]&lt;br /&gt;
&lt;br /&gt;
= Current Design =&lt;br /&gt;
== Current Class Diagram ==&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:]]&lt;br /&gt;
&lt;br /&gt;
== Procedure of Insert Action ==&lt;br /&gt;
[[Image:]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Procedure of Delete Action ==&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
== Procedure of Show Action ==&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:]]&lt;br /&gt;
&lt;br /&gt;
== Procedure of Hide Action ==&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
== Problems ==&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202161</id>
		<title>Writer/ToDo/TrackChanges</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Writer/ToDo/TrackChanges&amp;diff=202161"/>
		<updated>2012-06-13T07:52:29Z</updated>

		<summary type="html">&lt;p&gt;Chengjh: /* Design Principles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;center&amp;gt;Writer Track Changes Enhancement&amp;lt;/center&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;On Path to Vision&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Author: chengjh/zhengfan(@apache.org)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Date:June 13, 2012&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;Status:[[Draft]]/Reviewing/Approved&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This document will focus on studying Track Changes of Apache OpenOffice.org Writer, and try to explore better design to improve the function area for expected interoperability with MS Word. Additionally, Track Changes of Apache OpenOffice.org Spreadsheet is beyond the scope and will not be impacted.&lt;br /&gt;
&lt;br /&gt;
== Requirement ==&lt;br /&gt;
* &amp;#039;&amp;#039;From legal community&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The track changes area is demanded to get 100% interoperability with MS Word. Otherwise, they will never use Symphony/Apache OpenOffice.org. And that means contents cannot move to different pages comparing with MS Word because there are references within the legal document that must be accurate enough.&lt;br /&gt;
&lt;br /&gt;
The related function area is “compare/merge documents”. End users want to open two documents at the same time and see the differences between them. It is like a version thing. They have their old document, and saved it as old, then made some changes, saved it as new. At last, they want to open both in the same screen and are able to see the differences. Spreadsheet is also asked to provide the capability. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From IBM Docs&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The data of change records should be separated. Thus, the record data can be applied to the original document to get the final results.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;From Customers/Known Defects&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Brief Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Severity&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Priority&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[Feature Gap]Unable to Print Comments generate in Edit Revisions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| 4-Hindrance&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2#&lt;br /&gt;
| The contents are distorted in the sample doc file&lt;br /&gt;
| 2-Severely Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[L3][Legal][Feature][Reviewing]Formating of Track Changes is not supported in Sym1.3 and 2.0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4#&lt;br /&gt;
| Deletion of field lost, in both Windows &amp;amp; Linux&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5#&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;[FFC]the font of the texts that revisioned in MS Word can not marked as the Format action in SD.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6#&lt;br /&gt;
| The recorded format can not be reject&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7#&lt;br /&gt;
| The record formatting change lost when merge document&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8#&lt;br /&gt;
| The changes of the text in Header are accept automatically after create Footer in the doc.&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9#&lt;br /&gt;
| Can not merge document if the changes only appear in frame, header and footnote&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P3&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10#&lt;br /&gt;
| All comments lost and some revision text mess up with the sample file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P2&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12#&lt;br /&gt;
| TOC is not correct for revision record with doc file&lt;br /&gt;
| 3-Restricted&lt;br /&gt;
| P1&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
2#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[Image:2_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
12#:&lt;br /&gt;
&lt;br /&gt;
[[Image:2_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
In Apache OpenOffice.org Writer,the TOC will be updated after loaded...the page numbers will not be duplicated..but the track changes of TOC are still lost.&lt;br /&gt;
&lt;br /&gt;
== Problem Description ==&lt;br /&gt;
* &amp;#039;&amp;#039;Interoperability Problems&amp;#039;&amp;#039;When loading a MS Word document containing track changes,some records may be lost,position of recorded flying objects will be lost,contents layout may be disordered.&lt;br /&gt;
* &amp;#039;&amp;#039;Core Functionality Problems&amp;#039;&amp;#039;Currently,Symphony only provides limitation track changes functions,only supports to record basic contents and attributes. Comparing with MS Word, obvious function GAPs are existing. Moreover, the design of the function area has problem too.&lt;br /&gt;
* &amp;#039;&amp;#039;Stability Problems&amp;#039;&amp;#039;Because of the function and design limitation, once flying objects exist within recorded contents, the operations of these redlines will lead to stability problems.&lt;br /&gt;
* &amp;#039;&amp;#039;Other Related Problems&amp;#039;&amp;#039;Comments management problem and print problem,presentation problem of deletion records...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Stability Problem Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.New a SW document,insert a table or frame into the doc.&lt;br /&gt;
&lt;br /&gt;
2.Click &amp;quot;Tools-&amp;gt;Reviewing-&amp;gt;Record&amp;quot; to check it.&lt;br /&gt;
&lt;br /&gt;
3.Press &amp;quot;Ctrl+A&amp;quot; to select all, then press &amp;quot;Delete&amp;quot; key to delete the selected content.(The frame or table will marked deleted tag).&lt;br /&gt;
&lt;br /&gt;
4.Insert a graphic into one cell or frame.&lt;br /&gt;
&lt;br /&gt;
5.Save the doc or then undo,crash&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Analysis and Root Cause:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This problem is caused by the conflict of design between Change Record and flying object related undo action;&lt;br /&gt;
&lt;br /&gt;
In Writer of OpenOffice, a flying object related undo action is implemented based on a pointer of SwFlyFrmFmt, which has a reference to the actual flying object. In order to ensure the validation of the pointer, the destruction of the pointer is managed by the undo action. For example, if a flying object is removed by end user, the corresponding SwFlyFrmFmt is not be destructed accordingly, but removed from the flying frame format list of the document (SwDoc::pSpzFrmFmtTbl), and said SwFlyFrmFmt is maintained by the undo action only; &lt;br /&gt;
&lt;br /&gt;
But on the other hand, the change record (Reviewing) will delete SwFlyFrmFmt directly in corresponding range of a &amp;quot;Delete&amp;quot; type record without doing undo action correspondingly while changing the mode option of change record from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot;(That is reasonable, for changing the Change Record options from &amp;quot;Show&amp;quot; to &amp;quot;Hide&amp;quot; make no sense for users as a modification). Said directly deleting of SwFlyFrmFmt will makes the SwFlyFrmFmt pointer referred in flying object related undo actions (if there are some) to be a dangling pointer, and the crash will happens sooner or later;&lt;br /&gt;
&lt;br /&gt;
In general, root cause of said problem could be summarized as: an object is managed by 2 conflict patterns.&lt;br /&gt;
&lt;br /&gt;
== Comparison and GAP ==&lt;br /&gt;
=== GAP from UI Perspective ===&lt;br /&gt;
Although MS Office 2007 uses ribbon, which is different against 2003, the interfaces are almost the same.&lt;br /&gt;
&lt;br /&gt;
[[Image:4_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Red ones are GAPs.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Yellow ones need enhancement.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;MS Office&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Track Changes&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | Reviewing&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Track Changes (on/off)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * Tools-&amp;gt;Reviewing-&amp;gt;Record&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change Tracking Options (Detailed Settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;Lotus Symphony Document-&amp;gt;Changes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Change User Name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * File-&amp;gt;Preference-&amp;gt;User Data&amp;lt;br/&amp;gt; (But the new user name can only be applied to Note, not changes&amp;#039; comments.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Balloon&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Revisions in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show All Revisions Inline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| * All Changes are Inline, when the changes are not hidden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| * Show Only Comments and Formattings in Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Display Options&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final;&lt;br /&gt;
&lt;br /&gt;
Original Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Original.&lt;br /&gt;
| &lt;br /&gt;
| By “Tools-&amp;gt;Reviewing-&amp;gt;Show”, &lt;br /&gt;
&lt;br /&gt;
Final Showing Markup;&lt;br /&gt;
&lt;br /&gt;
Final.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show what type of Markups?&lt;br /&gt;
&lt;br /&gt;
Show which reviewer&amp;#039;s markups?&lt;br /&gt;
| &lt;br /&gt;
| Show ALL changes (Deletions, Insertion, Formatting) of all reviewers.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Reviewing Pane&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Accept/Reject &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Buttons on Ribbon Toolbar&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Comment&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Comment are shown by side-balloons&lt;br /&gt;
| &lt;br /&gt;
| There are 2 kinds of comment in Sym.&lt;br /&gt;
&lt;br /&gt;
* Tools-&amp;gt;Reviewing-&amp;gt;Comment&amp;lt;br/&amp;gt; Can only be viewed by “Tools-&amp;gt;Reviewing-&amp;gt;Accept or Reject”&lt;br /&gt;
* Create-&amp;gt;Comment &amp;lt;br/&amp;gt; (Note feature of OO3)&amp;lt;br/&amp;gt; Shown by Side-Balloons&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Compare&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Compare&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Compare Document&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Combine&lt;br /&gt;
| &lt;br /&gt;
| Tools-&amp;gt;Reviewing-&amp;gt;Merge Document, &lt;br /&gt;
&lt;br /&gt;
Showing reviewer&amp;#039;s changes of both documents.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| Show Source Documents&lt;br /&gt;
&lt;br /&gt;
(Show the 2 documents in windows)&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarks:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All changes, comments can be navigated through by buttons.&lt;br /&gt;
&lt;br /&gt;
Some hot functions should have an entry from toolbar/sidebar, i.e., Reviewing On/Off, Comment, Accept/Reject, etc.&lt;br /&gt;
&lt;br /&gt;
== GAP from Contents ==&lt;br /&gt;
=== Overview ===&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Common Contents and Attributes Supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Characters&lt;br /&gt;
## Character attributes&lt;br /&gt;
## Paragraph &amp;lt;nowiki&amp;gt;[Except Paragraph Formats]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Table &amp;lt;nowiki&amp;gt;[Except Table Merge/Cell Merge/Cell Split/Insert Column/Delete Column/Insert Row/Delete Row/Adjust Column Width/Adjust Row Height...]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Notes/Comments &amp;lt;nowiki&amp;gt;[Except the contents add/delete,formats changes of the contents within notes/comments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;Contents un-supported:[Create/Modify/Delete]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## Textbox&lt;br /&gt;
## Drawings&lt;br /&gt;
## Graphic&lt;br /&gt;
## Frame &amp;lt;nowiki&amp;gt;[Except the contents add/delete and character formats modification]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## OLE&lt;br /&gt;
## Contents within Flying Objects/1),2),3),5)...&lt;br /&gt;
## Styles &amp;lt;nowiki&amp;gt;[Except character styles]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
## Bullets and Numbering&lt;br /&gt;
## Page Attributes&lt;br /&gt;
## Document Attributes&lt;br /&gt;
## Paragraph Attributes&lt;br /&gt;
&lt;br /&gt;
* Behaviors Differences&lt;br /&gt;
&lt;br /&gt;
# &lt;br /&gt;
## All deleted contents are marked with “Strikethrough” lines. If the “Tools-&amp;gt;Reviewing-&amp;gt;Record” is checked, the deleted contents will still there. And MS Word has move all deleted contents into comments display area by default. So,that will lead to the different layout when loading a MS Word document with tracking changes.&lt;br /&gt;
## MS Word supports to track changes on the contents un-supported by Symphony above,especially, to the “Flying” contents. Once the “Flying” contents are deleted,they will have no places in a MS Word document,but Symphony has to provide positions and display them,which also leads to layout differences.&lt;br /&gt;
## Different Strategy to make change record activity...&lt;br /&gt;
&lt;br /&gt;
=== Details ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;S/N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Item Description&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;MS Word 2003&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Symphony 3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Comments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.1#&lt;br /&gt;
| Create Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.2#&lt;br /&gt;
| Create Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.3#&lt;br /&gt;
| Create Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.4#&lt;br /&gt;
| Create fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.5#&lt;br /&gt;
| Create Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.6#&lt;br /&gt;
| Create Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.7#&lt;br /&gt;
| Create Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1.8#&lt;br /&gt;
| Create Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.1#&lt;br /&gt;
| Delete Text /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.2#&lt;br /&gt;
| Delete Table /*including copy and paste*/&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.3#&lt;br /&gt;
| Delete Graphic/Frame/Drawing/Form/...Flying..&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| If the created drawing is out of the painting canvas,it will not be recorded...not sure whether it is a word&amp;#039;s bug..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.4#&lt;br /&gt;
| Delete fields/.../content that is within SwPaM data structure&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.5#&lt;br /&gt;
| Delete Header/Footer&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| In MS Word,Header/Footer can only be created through inputting content into Header/Footer,otherwise,Header/Footer will not be created..&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.6#&lt;br /&gt;
| Delete Footnote and Endnote&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.7#&lt;br /&gt;
| Delete Break(Line Break/Column Break/Page Break)&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2.8#&lt;br /&gt;
| Delete Comments&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.1#&lt;br /&gt;
| Text Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.2#&lt;br /&gt;
| Format Text through Text Style&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.3#&lt;br /&gt;
| Paragraph Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.4#&lt;br /&gt;
| Bullet/Numbering Paragraph&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.5#&lt;br /&gt;
| Format Paragraph through Paragraph Style&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.6#&lt;br /&gt;
| Flying Object(Graphic/Drawing/Frame/Form..) Properties Change&lt;br /&gt;
| N&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.7#&lt;br /&gt;
| Adjust Table Column/Row&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3.8#&lt;br /&gt;
| Page Properties Change&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.1#&lt;br /&gt;
| Deleted Content Moved to the Side&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.2#&lt;br /&gt;
| Consistent Comments Feature&lt;br /&gt;
| Y&lt;br /&gt;
| N&lt;br /&gt;
| Comments within Reviewing in Symphony is different with the Comments Feature&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5.1#&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;How a&amp;#039;&amp;#039;re you&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;How are y&amp;#039;&amp;#039;ou&lt;br /&gt;
&lt;br /&gt;
How are you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MS: Record three actions&lt;br /&gt;
&lt;br /&gt;
Symphony: one action if within given time&lt;br /&gt;
| Y&lt;br /&gt;
| Y&lt;br /&gt;
| Different Strategy to record the changes&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
For more detailed GAPs, please refer to Document: [notes://GREATWALL/4825749C002622C1/BF25AB0F47BA5DD785256499006B15A4/97F5E6F700B4E7F7882577610058EC51 Notes Link]&lt;br /&gt;
&lt;br /&gt;
== Goals ==&lt;br /&gt;
# Ensure the high fidelity Interoperability with MS Word,MS Word 2003 is the first and 2010 is the second.&lt;br /&gt;
# Enhance the Function Area to eliminate the GAPs&lt;br /&gt;
# Ensure the Stability&lt;br /&gt;
# Ensure the Usability&lt;br /&gt;
&lt;br /&gt;
== Proposal of Achieving the Goals ==&lt;br /&gt;
We will finish the initial investigation,solution proposals and POC...and then propose the project to Apache OpenOffice.org community to recruit volunteers. The final design and implementation will be released with AOO.&lt;br /&gt;
&lt;br /&gt;
Currently, we are on the investigation of solution proposals and POC.&lt;br /&gt;
&lt;br /&gt;
== Current Design ==&lt;br /&gt;
=== Current Class Diagram ===&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Insert Action ===&lt;br /&gt;
[[Image:7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Delete Action ===&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Show Action ===&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Procedure of Hide Action ===&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
== Design Proposals ==&lt;br /&gt;
=== Design Principles ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Data Structure should meet the requirements of more powerful functionalities of Track Changes[extensibility,],for complete fidelity interoperability with MS Word&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Document Model should not be changed when switching between different status&lt;br /&gt;
# Avoid existing stability problems through the new design&lt;br /&gt;
# Ensure compatibility with previous releases of Symphony and OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Destination Data for Tracking ===&lt;br /&gt;
==== Plane Data ====&lt;br /&gt;
# Characters&lt;br /&gt;
# Paragraphs&lt;br /&gt;
# Table&lt;br /&gt;
# Section&lt;br /&gt;
# Fields&lt;br /&gt;
# Cross References&lt;br /&gt;
# References&lt;br /&gt;
# Footnote and Endnote&lt;br /&gt;
# Comments&lt;br /&gt;
&lt;br /&gt;
==== Attributes Data ====&lt;br /&gt;
# Character Attributes&lt;br /&gt;
# Paragraph Attributes&lt;br /&gt;
# Numbering and Bullets&lt;br /&gt;
# Breaks&lt;br /&gt;
# Document Attributes&lt;br /&gt;
&lt;br /&gt;
==== Format Data ====&lt;br /&gt;
# Character Styles&lt;br /&gt;
# Paragraph Styles&lt;br /&gt;
# List Styles&lt;br /&gt;
# Page Attributes&lt;br /&gt;
# Page Styles&lt;br /&gt;
# Drawing/Graphic/Textbox/OLE/...&lt;br /&gt;
&lt;br /&gt;
=== Records for Tracking ===&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;Create and Delete Plane Data [Including Ctrl+C/V/X]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
# Modify Attributes Data&lt;br /&gt;
# Modify Format Data,among with which Drawing/Graphic/Textbox/OLE/... will be optional&lt;br /&gt;
&lt;br /&gt;
=== Operations for Records ===&lt;br /&gt;
# Accept&lt;br /&gt;
# Reject&lt;br /&gt;
# Combine&lt;br /&gt;
# Split&lt;br /&gt;
# Show Original&lt;br /&gt;
# Show Final&lt;br /&gt;
# Show Original with Markup&lt;br /&gt;
# Show Final with Markup&lt;br /&gt;
&lt;br /&gt;
=== Principles of Combine and Split ===&lt;br /&gt;
==== Principles of Combine ====&lt;br /&gt;
# Time-slice consideration&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
==== Principles of Split ====&lt;br /&gt;
# Attribute Types,just like portion&lt;br /&gt;
# Range consideration&lt;br /&gt;
&lt;br /&gt;
=== Relation and Change Notification ===&lt;br /&gt;
From the relation analysis, the record will not only act as the data(SwModify),but also as the observer(SwClient). According to the current mechanism, the idea design will compromised for the technical limitation.&lt;br /&gt;
&lt;br /&gt;
==== Destination Data and Record ====&lt;br /&gt;
# When destination data is changed,the recorded data in the redline will be changed at the same time. &lt;br /&gt;
# When switching between the show status, the status type of a record will be changed, the change will be notified to the destination data automatically. At that time, the destination data acts as an observer. &amp;#039;&amp;#039;&amp;#039;Obviously, the record acts as the data model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Record and Record ====&lt;br /&gt;
# If there is only parallel relation between two records,their changes will not impact each other.&lt;br /&gt;
# If there is nested relation between two records, when the outer record is accepted or rejected,the nested record should be notified. &amp;#039;&amp;#039;&amp;#039;So, the record acts as an observer.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== New Design ===&lt;br /&gt;
==== Data Structure ====&lt;br /&gt;
This is the class diagram draft of the new design. The middle class SwRedline_New will replace the currently existing class SwRedline. The left will be designed to keep compatible with the previous releases of Symphony and OpenOffice. And The right will be designed to support more complex contents based on the known mechanism. Among them, SwRedline_New will provide the basic abstract methods to operate the change records,whose implementations will assigned to the child class SwPaMRedline and SwFmtRedline to provide respectively.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_1_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Framework ====&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_2_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== For Plane Data ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To plane data, we will align the design to the current implementation..Please refer to the left of the class diagram draft of new design. The goal of the design is to keep compatible with the previous releases of Symphony and OpenOffice.&lt;br /&gt;
The redline will record the created characters or paragraphs and deleted characters or paragraphs.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the record contains the node index range, and content index range, once the destination data is changed,such as create new characters or paragraphs,the record will be updated along with the change.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of paragraph.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Attributes Data ====&lt;br /&gt;
To attributes data, the attributes of characters will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases. But, actually, only the position or range of the contents that the attributes applied are recorded, not the attributes. So,the characters attributes have also problem.&lt;br /&gt;
So,this chapter will only focus on the paragraphs attributes. From the working logic of paragraphs attributes, there are two ways to apply paragraphs attributes. One is the SwItemSet,the other is SwTxtFmtColl,paragraph style. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
When the paragraph attribute is changed from the “Paragraph Properties” dialog,the pAttrSet member variable will be instanced,and the changed attributes will be stored in the member variable...By default, the pAttrSet is null.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of paragraph&amp;#039;s pAttrSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet.&lt;br /&gt;
Idealistically, we need the class of change record is able to take two roles, data and observer. Currently, according to the design and implementation of SwModify and SwClient, and their applications, the two roles can not be acted at the same time...Based on the current knowledge, the change record will only take the observer role in our new design.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the pAttrSet member variable of a paragraph will be changed if any paragraph attribute modification,so it is impossible to observe the pointer of pAttrSet. Thus, SwTxtNode will be observed by the record. Once any attribute modified of a paragraph, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of SwTxtNode.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
==== For Format Data ====&lt;br /&gt;
Almost, all the format data are child class of SwFmt. And SwFmt is a child class of SwModify. Thus,the main idea of the design is to use the current mechanism of SwModify and SwClient. Any change of SwModify can be notified to SwClient automatically. Conversely, we can also use SwClient to do certain operations of SwModify. Such as, when switching status,especially, switching status between “Show” and “Hide”, we can take use of the record to access instances of SwModify&amp;#039;s child classes and set the pre-designed control attributes.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Character Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The character styles will be separated. Its design and implementation will keep align with the original, which is mainly for the consideration of compatibility with previous releases.&lt;br /&gt;
From the class diagram, we can see the working logic and manage of character attributes are very complex. Currently, this part will not changed.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;To Drawing/Graphic/Textbox/OLE/...:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Each flying object in Writer will have a kind of instance of SwFmt&amp;#039;s child class. Please refer to the class diagram.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_5_3.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Paragraph Styles:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the diagram of paragraph styles.&lt;br /&gt;
&lt;br /&gt;
[[Image:8_7_4_1.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this chapter,we will use paragraph style as the example.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Data Design:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To this part,the right of the class diagram draft of new design will be taken. The redline will record the changes of SwFmt&amp;#039;s aSet, and also the changes of its parent because we see there is existing the inheritable relationship between SfxItemSet. Moreover, the parent SwFmt&amp;#039;s aSet is also under record because of the inheritable styles.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Implementation Description:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Because the aSet member variable of a SwFmt will be changed if any attribute modification,so it is impossible to observe the aSet. Thus, the instance of SwFmt&amp;#039;s child class will be observed by the record. Once any attribute modified, the existing record will be notified for ItemSet Update.&lt;br /&gt;
# If the record is operated, especially switching between “Show” and “Hide”, the redline list will be went through to set the related control variable or status of the instance of SwFmt&amp;#039;s child class.&lt;br /&gt;
# Presentation module will control the rendering of the change records at their original places,which mainly focus on building portions.&lt;br /&gt;
# The change records will not be moved as before.&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Appendix:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/ToDo]]&lt;br /&gt;
&lt;br /&gt;
= Current Design =&lt;br /&gt;
== Current Class Diagram ==&lt;br /&gt;
This is the Redline class diagram. From the inherited relationship of Redline, we can see Redline is a child class of SwPaM, which determines its capabilities directly, along with the capabilities of Symphony&amp;#039;s tracking changes.&lt;br /&gt;
&lt;br /&gt;
[[Image:]]&lt;br /&gt;
&lt;br /&gt;
== Procedure of Insert Action ==&lt;br /&gt;
[[Image:]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Procedure of Delete Action ==&lt;br /&gt;
Similar with 5.2.&lt;br /&gt;
&lt;br /&gt;
== Procedure of Show Action ==&lt;br /&gt;
Call “MoveFromSection” to move the contents of delete records from the given section to the document body.&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
[[Image:]]&lt;br /&gt;
&lt;br /&gt;
== Procedure of Hide Action ==&lt;br /&gt;
Call “MoveToSection” to move the contents of delete records from the document body to the given section .&lt;br /&gt;
&lt;br /&gt;
This procedure will be invoked when un-checking “Tools-&amp;gt;Reviewing-&amp;gt;Show”, and also when saving document.&lt;br /&gt;
&lt;br /&gt;
== Problems ==&lt;br /&gt;
* Too Simple Data structure,which leads to only limitation capabilities supported&lt;br /&gt;
* Document Model modified during switching “Show” and “Hide” and saving modifications, which leads to stability problems. Especially, there are flying objects within the deletion records.&lt;br /&gt;
&lt;br /&gt;
= Design Proposals =&lt;br /&gt;
== To Do Tasks and Effort Evaluation ==&lt;br /&gt;
This is just a prototype of conception evaluation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.Make the Data Model Change to Support Missed Changes Types:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Paragraph Attributes :&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record the Limited Types&amp;#039; Paragraph Attributes in Memory&lt;br /&gt;
* ODT Export/Import &lt;br /&gt;
* Display as Comments //Not Include the Flying Object within the Recorded Area&lt;br /&gt;
&lt;br /&gt;
B)Page Attributes : Total //The Effort Is Based on Situation after A) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Page Properties in Memory&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
C)Document Attributes //The Effort Is Based on Situation after A)&amp;amp;B) Delivered&lt;br /&gt;
&lt;br /&gt;
* Data Model Design&lt;br /&gt;
* Data Structure Implementation&lt;br /&gt;
* Create Redline to Record Limited Types&amp;#039; Document Attributes&lt;br /&gt;
* ODT Export/Import&lt;br /&gt;
* Display as Comments&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. Support Basic Operations on Change Revision Records (Show/Hide/Show as Comments/Chow Original/Show Final),the Switch Will Not Impact Date Model.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Switch Between Hide and Show as Comments : &lt;br /&gt;
&lt;br /&gt;
* Based on the Existing Design&lt;br /&gt;
* Based on the New Data Model&lt;br /&gt;
&lt;br /&gt;
B)Show Original&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
C)Show Final&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Compatibility with Previous Release&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Import Old Version&amp;#039;s Document and Map to New Data Model on Existing Capabilities&lt;br /&gt;
&lt;br /&gt;
B)Keep the Same Result to Export the Data Part Same with Previous Release in the New Data Model&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Make the Operations on Data Module to Fit The New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Accepting Changes&lt;br /&gt;
&lt;br /&gt;
B)Rejecting Changes&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Undo/Redo Support to Meet the New Data Model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
A)Clear Old Logic&lt;br /&gt;
&lt;br /&gt;
B)Enable New Implementation&lt;br /&gt;
&lt;br /&gt;
== Impact Areas and Risk ==&lt;br /&gt;
# Almost the whole Writer component will be impacted&lt;br /&gt;
# Rish is very high&lt;br /&gt;
# Limitation of the Mechanism to distinguish a paragraph and the whole contents of a paragraph&lt;br /&gt;
&lt;br /&gt;
== Plan ==&lt;br /&gt;
Firstly, provide the capability to record paragraph attribute changes,interoperability with MS Word 2003 and capability with previous releases of Symphony&lt;br /&gt;
&lt;br /&gt;
Then,according to the results of the first step, adjust the design as necessary to support flying objects and page attributes.&lt;br /&gt;
&lt;br /&gt;
==Appendix:==&lt;br /&gt;
&lt;br /&gt;
Some &amp;quot;meta&amp;quot; requirements for change tracking collected by ODF TC: [http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements http://wiki.oasis-open.org/office/Change%20Tracking%20Meta%20Requirements]&lt;br /&gt;
&lt;br /&gt;
[[Category:Writer/Effort/Planned]]&lt;/div&gt;</summary>
		<author><name>Chengjh</name></author>
	</entry>
</feed>