Re: [api-dev] Embedding OOo into a VB application

2005-01-24 Thread Mikhail Voitenko
Hi Davide, Davide Dozza wrote: > 1) ActiveX > > By using OOo ActiveX component (so_activex.dll) it seems possible to > embed OOo. The problem is that very few methods and properties are > exposed and there is a lack of documentation about API on how interact > with the component. The OOo Acti

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 special

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

2008-10-17 Thread Mikhail Voitenko
Hi Ivan, Cor, unfortunately, the suggested solution has a disadvantage that a bunch of SaveAs UI action related features are lost, as for example the document type dependent filter selection, error handling and etc. It could of course be implemented as well, but then it would be just a duplica

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

2008-10-20 Thread Mikhail Voitenko
question is actually 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] Sug

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

2008-10-20 Thread Mikhail Voitenko
Ups, sorry for typo. On 10/20/08 19:52, Mikhail Voitenko wrote: The call XModel::attachResources() changes the result of the XModel::getURL(), but this API is really document location. ^ should be: "The call XModel::attachReso

Re: [api-dev] Best way to know if is loadable ?

2008-10-21 Thread Mikhail Voitenko
Hi Alain, The problem here, as Steffen has mentioned, is that TypeDetection does not always detect a corruption in files. Actually the main intention of TypeDetection is not to detect whether a document can be loaded, but to suggest a filter that looks to be most suitable. In case of currupt

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 Save

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

2008-10-21 Thread Mikhail Voitenko
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] Bug? - Closing OOo will close multiple documents

2008-12-04 Thread Mikhail Voitenko
Hi Tobias, Which target do you use while opening the second document? If it is "_blank" then the behavior during second document opening is correct. The target means that a new window should be opened for the document. The termination of the document window after closing of the backing compo

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 printin

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

2009-02-18 Thread Mikhail Voitenko
rection 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

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] 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? http://svn.services.openoffice.org/opengrok/xref/Current%20(trunk)/sfx2/source/

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? http://

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

2009-02-19 Thread Mikhail Voitenko
Sorry for this spam, that looks to be the email that was lost deep in our newsgroup server and sent two hours later. I will submit myself to the list directly to prevent such problems in future. Best regards, Mikhail. On 02/19/09 18:21, Mikhail Voitenko wrote: Hi Frank, Daniel, On 02/19/09

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" w

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 poin

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 is

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, First of all what do you name the main thread? As I understood you use own java application that connects the office using UNO API. The main thread of the java application does not correspond to the main thread of the office process it connects ( at least it was so before ). As I

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 cal

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, Mikhail

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]>

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 follow

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

2006-11-28 Thread Mikhail Voitenko
content of the zip file "vnd.sun.star.zip://file>/". This command triggers the storing of all the changes made to the zip file. Hope that helps. Best regards, Mikhail. Paolo Mantovani wrote: Hi, I solved using the technique explained from Mikhail Voitenko in this old post: ht

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 exa

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

2006-12-01 Thread Mikhail Voitenko
Hi Ian, Ian Shields wrote: > I'm still working on my filter and trying to understand how to extract > graphics from a Writer document in Java. So far, I cannot find the Java > equivalents to certain parts of the snippet at > http://codesnippets.services.openoffice.org/Writer/Writer.ExtractGfx.snip

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

2006-12-01 Thread Mikhail Voitenko
Hi Fernand, Fernand Vanrie wrote: > Ian, > > In Basic I used the "DocumentStorage" and then out of an > "InputStream" the MimeType > > oPictures = oDocument.getDocumentStorage.getbyname("Pictures") > mFiles() = oPictures.getElementNames > oOriginalGraphic = > getGraphDescritorFromStream(oP

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] 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] 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 wa

Re: [api-dev] instantiating InstanceLocker from BASIC

2007-10-09 Thread Mikhail Voitenko
Regards, 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.open

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. Dmit

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] 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] 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 warnin