Re: [api-dev] Synchronous XDocumentIndex update, XRefereshable refresh, XStorable storeToUrl

2009-02-24 Thread Mikhail Voitenko
Hi Daniel, On 02/23/09 20:31, Daniel Brosseau wrote: Hi, I insert a Table of Contents into an Xmodel, ContentIndex service represented by XDocumentIndex interface. Then I call XDocumentIndex.update(). Is the update absolutely synchronous? Is there a listener I can use to make sure the update

Re: [api-dev] How to attach new Model to old Controller

2009-02-24 Thread Mikhail Voitenko
Hi Daniel, It is possible that a model has more than one view. That makes the controller implementation that let the model be closed relative complex. So in case of hidden document the controller does not do behave itself as expected, that it a bug. I would not accept this bug as a feature,

Re: [api-dev] Xstorable.storeToUrl locks soffice.bin

2009-02-24 Thread Mikhail Voitenko
Hi Daniel, Sorry, but this is not exactly what I mean. First of all the main idea of the callback is to call the office API method from it. Thus the OOoWaitCallback should call XComponentLoader.loadComponentFromURL() and etc from notify() call. To reach this, the information about kind of

Re: [api-dev] Xstorable.storeToUrl locks soffice.bin

2009-02-24 Thread Mikhail Voitenko
Hi Daniel, Sorry I was not clear with my request. I am of course interested in the stack of the hanging soffice.bin process. To get the stack you would probably need to build the office without stripping of the symbols. Otherwise the stack would be unreadable I assume. Best regards,

Re: [api-dev] How to attach new Model to old Controller

2009-02-20 Thread Mikhail Voitenko
Hi Daniel, On 02/20/09 02:49, Daniel Brosseau wrote: Hi Mikhail, Frank, Thank you again. since it would allow returning more information (and thus would have saved you the question, since you would have got a message saying not allowed for this implementation). As an extreemly minor

Re: [api-dev] How to attach new Model to old Controller

2009-02-19 Thread Mikhail Voitenko
Hi Frank, Daniel, On 02/19/09 16:18, Frank Schönheit - Sun Microsystems Germany wrote: This returned: Did not sucessfully attach xModel_B to desktop controller Meaning the xModel_B was not attached. Any reason why?

Re: [api-dev] How to attach new Model to old Controller

2009-02-19 Thread Mikhail Voitenko
Hi Frank, Daniel, It looks like the newsgroup has eaten my answer, so I am resending it. On 02/19/09 16:18, Frank Schönheit - Sun Microsystems Germany wrote: This returned: Did not sucessfully attach xModel_B to desktop controller Meaning the xModel_B was not attached. Any reason why?

Re: [api-dev] How to attach new Model to old Controller

2009-02-19 Thread Mikhail Voitenko
Hi Frank, Daniel, On 02/19/09 18:15, Frank Schönheit - Sun Microsystems Germany wrote: Is there a quick way to exchange or replace the contents of a Model with that of another model? As I understand the framework design, the intention was one document - one model. Thus there is no quick way

Re: [api-dev] Xprintable getPrinter returns a zero length sequence

2009-02-18 Thread Mikhail Voitenko
as to how to create the frame or the view an attach it to the model without a Controller (if that's possible) in a way that would enable printing. Daniel -Original Message- From: Mikhail Voitenko [mailto:mikhail.voite...@sun.com] Sent: February 18, 2009 2:27 AM To: dev@api.openoffice.org

Re: [api-dev] How to attach new Model to old Controller

2009-02-18 Thread Mikhail Voitenko
Hi Daniel, On 02/19/09 03:41, Daniel Brosseau wrote: Hi, I have a Frame-Controller-Model structure built through a XDesktop created through xServiceManager.createInstanceWithContext ( com.sun.star.frame.Desktop, xComponentContext ) and loadComponentFromUrl ( private:factory/swriter,

Re: [api-dev] How to attach new Model to old Controller

2009-02-18 Thread Mikhail Voitenko
Hi Frank, ah, I have seen your email only after I have sent my already. All the patent fees are yours :) Best regards, Mikhail. On 02/19/09 08:15, Frank Schönheit - Sun Microsystems Germany wrote: Hi Daniel, Q1: Why can't I retieve the XFrame starting from the top (XDesktop) while I can

Re: [api-dev] Xprintable getPrinter returns a zero length sequence

2009-02-17 Thread Mikhail Voitenko
Hi Daniel, Currently the model needs view to be able to print. To prevent showing of the document after loading please try to load it using loadComponentFromURL method and provide Hidden parameter in MediaDescriptor. That should create an invisible frame for the document, and the printing

Re: [api-dev] How to now the running OO-version

2008-10-21 Thread Mikhail Voitenko
Hi Fernand, Am I right with my understanding that you use SaveAsURL/SaveToURL from basic script and it does not work as expected in OOo2.4? If yes, could you please explain what exactly does not work any more. Best regards, Mikhail. On 10/21/08 14:00, Fernand Vanrie wrote: SaveAsURl and

Re: [api-dev] How to now the running OO-version

2008-10-21 Thread Mikhail Voitenko
the product and the version. Best regards, Mikhail. On 10/21/08 15:33, Fernand Vanrie wrote: Mikhail Voitenko wrote: Hi Mikhail, Sorry I was mis informed, the problems seem to come from the use of a external filter who has a different behaviour from one OO-version to a other. BTW any idea how

Re: [api-dev] Suggest filename before saving document

2008-10-20 Thread Mikhail Voitenko
quite simple. From where reads the current implemented SaveAs dialog the value of document location? Ivan -Original Message- From: Mikhail Voitenko [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2008 11:21 AM To: dev@api.openoffice.org Subject: Re: [api-dev] Suggest filename before

Re: [api-dev] Embedded Writer ?

2008-05-22 Thread Mikhail Voitenko
Hi Boris, Please take a look to the Automation Bridge description in Developers Guide http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Bridge/Automation_Bridge Best regards, Mikhail. Boris Ratak wrote: Hi, Is there a way to embed a Writer window (or any OOo module) in a

Re: [api-dev] Supress warning dialog for saving sxw files

2008-05-22 Thread Mikhail Voitenko
Hi Tobias, Sorry, there seems to be no reliable way to avoid the warning regarding possible information loss while saving. The problem is that the warning is shown directly by the standard dispatch interceptor for the saving action. You could probably send a new issue to me to let the

Re: [api-dev] How to access the binary stream application/vnd.sun.star.pkg-stream inside an ODT package?

2008-03-27 Thread Mikhail Voitenko
Hi Giuseppe, Yes, the services should be published ASAP. I have just submitted an issue to do this http://www.openoffice.org/issues/show_bug.cgi?id=87496 Thanks, Mikhail. Giuseppe Castagno wrote: Hi Mikhail, Mikhail Voitenko wrote: Hi Giuseppe, the UCB and Package API are probably too low

Re: [api-dev] How to access the binary stream application/vnd.sun.star.pkg-stream inside an ODT package?

2008-03-26 Thread Mikhail Voitenko
Hi Giuseppe, the UCB and Package API are probably too low level to access the ODF package comfortably. Please try to use com.sun.star.embed.Storage service that can be created using com.sun.star.embed.StorageFactory service. The API documentation of the services explains how can it be used.

Re: [api-dev] can't set bool value for com.sun.star.beans.PropertyValue [pt.3]

2008-02-29 Thread Mikhail Voitenko
Hi Dmitry, The PropertyValue::Value member is of type Any. So on the COM side of the bridge it should be represented by a Variant. There is an example of Atomation-bridge usage in extensions/source/activex/main/SOActiveX.cpp, although it uses pure Automation bridge. Regards, Mikhail.

Re: [api-dev] instantiating InstanceLocker from BASIC

2007-10-09 Thread Mikhail Voitenko
, Mikhail. Marc Santhoff wrote: Hello Mikhail, Am Montag, den 08.10.2007, 14:53 +0200 schrieb Mikhail Voitenko: Hi Marc, This is a bug, I have just submitted an issue to myself. It is going to be fixed in OOo2.4 currently. Please use the following link to find the issue. http://www.openoffice.org

Re: [api-dev] instantiating InstanceLocker from BASIC

2007-10-08 Thread Mikhail Voitenko
Hi Marc, This is a bug, I have just submitted an issue to myself. It is going to be fixed in OOo2.4 currently. Please use the following link to find the issue. http://www.openoffice.org/issues/show_bug.cgi?id=82393 Thanks, Mikhail. Marc Santhoff wrote: Hi again, this time a crash report

Re: [api-dev] Writer: canceling dispose event

2007-05-11 Thread Mikhail Voitenko
Hi Michael, Unfortunately there seems to be no way to detect from dispose listener when the file is closed, because the disposing notification notifies that the disposing is in progress. And the file will be closed after that. By the way, the scenario you have described does not need to know

Re: [api-dev] Determining graphic mime types with Java

2006-12-05 Thread Mikhail Voitenko
Hi, S OS wrote: -Original message- From: Mikhail Voitenko [EMAIL PROTECTED] Date: Fri, 01 Dec 2006 12:37:30 +0100 To: dev@api.openoffice.org Subject: Re: [api-dev] Determining graphic mime types with Java [...skipped...] Yes, this solution works well when a document is already

Re: [api-dev] [SOLVED] zip write access throug UCB

2006-11-28 Thread Mikhail Voitenko
Ups, sorry. A small typo, of course it is flush command. Best regards, Mikhail. Mikhail Voitenko wrote: Hi Paolo, The provided by you link points to a solution using Package component. But the writing to a zip file works well using the UCB too. The provided by you UCB-based example looks

Re: [api-dev] change default template

2006-11-16 Thread Mikhail Voitenko
Hi Sevastian, Sevastian `seva` Foglia wrote: In Writer, I want to set the default template. For this, you have to do : File - Templates - Organize, choose a template and right click on it and select Set As Default Template. I would like to do that in a macro. Is it possible ? The following

Re: [api-dev] Unpacked - MediaDescriptor - Not Working?!

2006-04-12 Thread Mikhail Voitenko
Hi Kent, OOo2.0.x does not support Unpacked property of MediaDescriptor currently. So please submit an issue to me. Thanks, Mikhail. Kent Gibson wrote: will do, I have tested with 2.0.1., I will try with 2.0.2 and then I will file it. thanks --- Marc Santhoff [EMAIL PROTECTED] wrote:

Re: [api-dev] META-INF and mimetype files in zip archive

2005-08-15 Thread Mikhail Voitenko
Hi Michele, That happens because the initial purpose of the Package service is to access OOo packages formats, and META-INF/manifest.xml is part of this format. If a pure zip-file access is requested then either the special UCP should be used or the Package service must be initialized in a