To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=78849


User bm changed the following:

                What    |Old value                 |New value
================================================================================
                      CC|''                        |'ama'
--------------------------------------------------------------------------------




------- Additional comments from [EMAIL PROTECTED] Fri Jul 13 09:41:38 +0000 
2007 -------
In CWS chart07 there is a new interface css::chart2::XUndoHelper. The chart's
XModel is a chart2::XUndoSupplier, that offers a method getUndoManager(). The
object returned is a chart2::XUndoManager which also implements XUndoHelper.

There are two methods at this interface:

1. XModel getModelCloneForUndo( [in] XModel xModelBeforeChange )

Call this method to get a clone of the model that you can store in an 
Undo-Action

2. void applyModelContent( [inout] XModel xModelToChange, [in] XModel
xModelToCopyFrom )

Call this in case you do an undo. the first parameter is the current XModel of
the chart, the second parameter is the XModel you remembered in the undo-action.

Note that the XModel you store still contains the XDataSequence objects the
writer's data provider created. So, when you delete a table and do an undo
afterward, I am not sure that the objects are still valid, because the data
sequence objects may have references to the table that was destroyed at one
point. The data sequences would have to be able to remember the ranges they use
and reconnect to the table that was created in undo. (Maybe this is not
necessary when the table itself was completely remembered in the undo action, I
don't know the details here).

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to