Re: [api-dev] Attempt for an UNO Undo API

2010-10-25 Thread Mathias Bauer
On 10/22/2010 09:01 PM, Frank Schönheit wrote: As a sketch for the later evolution, we think that the XUndoManagerSupplier comes handy here: The chart model would be such a supplier, and for the moment, it would return an own, model-local instance of the XUndoManager. The later extension would

Re: [api-dev] Attempt for an UNO Undo API

2010-10-25 Thread Mathias Bauer
On 10/22/2010 09:07 PM, Frank Schönheit wrote: Hi Mathias, I think the Chart does qualify for all those Usage scenarios. Changes in Calc can lead to changes within the Chart that should be offered as one UNDO action together. Further the changes made within the Chart should be visible in the

Re: [api-dev] Attempt for an UNO Undo API

2010-10-25 Thread Frank Schönheit
Hi Mathias, Let me put it that way: undo actions should only record direct actions. If changes in a component cause indirect changes elsewhere (e.g. by a listener connection), these changes should not be recorded in an undo action. Or the other way around: if actions in a sub component are

Re: [api-dev] Attempt for an UNO Undo API

2010-10-25 Thread Frank Schönheit
XUndoAction, XUndoManager, XUndoManagerSupplier - find the generated IDL for the proposed API at http://udk.openoffice.org/files/documents/23/4795/undo.zip Updated this, just in case somebody wants to have a look at the current evolution. Now with more bells and whistles, like locking the Undo

Re: [api-dev] Attempt for an UNO Undo API

2010-10-25 Thread Frank Schönheit
XUndoAction, XUndoManager, XUndoManagerSupplier - find the generated IDL for the proposed API at http://udk.openoffice.org/files/documents/23/4795/undo.zip Updated this, just in case somebody wants to have a look at the current evolution. Anybody having an opinion on 1. whether

Re: [api-dev] Attempt for an UNO Undo API

2010-10-25 Thread Daniel Rentz
Am 25.10.2010 14:37, schrieb Frank Schönheit: XUndoAction, XUndoManager, XUndoManagerSupplier - find the generated IDL for the proposed API at http://udk.openoffice.org/files/documents/23/4795/undo.zip Updated this, just in case somebody wants to have a look at the current evolution. Anybody

Re: [api-dev] Attempt for an UNO Undo API

2010-10-25 Thread Stephan Bergmann
On 10/25/10 14:37, Frank Schönheit wrote: Anybody having an opinion on 1. whether XUndoManager.undo/redo, when invoked while an Undo context is open, should a. throw b. silently and implicitly close all open contexts c. ignore the call d. other? 2. whether

Re: [api-dev] Attempt for an UNO Undo API

2010-10-25 Thread Frank Schönheit
Hi Daniel, 1. whether XUndoManager.undo/redo, when invoked while an Undo context is open, should a. throw ... Agreeing to all, 1a to educate the user of the API to correctly close open contexts... :) :) Education is a good Thing (TM), I agree. There's one point in favor of

Re: [api-dev] Attempt for an UNO Undo API

2010-10-25 Thread Stephan Bergmann
On 10/25/10 16:02, Frank Schönheit wrote: 1. whether XUndoManager.undo/redo, when invoked while an Undo context is open, should a. throw b. silently and implicitly close all open contexts c. ignore the call d. other? 2. whether XUndoAction.undo/redo should be allowed to

[api-dev] DocumentLoader memory leaking on cleanup

2010-10-25 Thread Chris Rider
We are using DocumentLoader to manage the opening of PowerPoint files, and have recently discovered what appears to be a memory leak. As a quick background, these are self-advancing presentations, created using Microsoft by the end-user, who then uses our product (CentOS based) to display

[api-dev] Dialog control like JPanel in UNO awt

2010-10-25 Thread Pivithuru Wijegunawardana
Hi, I am searching for a JPanel in java like performing dialog control in Openoffice to contain some other controls inside. And this control model should be able to make visible and invisible such that the controls inside it also does the same action. I looked into UnoControlGroupBoxModel, but