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-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 Frank Schönheit - Sun Microsystems Germany
Hi Daniel, > Q1: Why can't I retieve the XFrame starting from the top (XDesktop) > while I can get it starting from the bottom (XModel)? Hard to answer without knowing how exactly you tried to retrieve the frame. I'd say that iterating over the frames at the desktop, and checking for a frame

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

2009-02-18 Thread Mikhail Voitenko
Hi Daniel, A model can not live in a frame without controller, although it is not necessary to create the controller explicitly, it is created by loadComponentFromURL call. The symptoms you are describing look pretty like threading issue. Am I right with my assumption that you have a java ap

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

2009-02-18 Thread Daniel Brosseau
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", "_blank", 0, openProperties ) with the only openPropert

Re: [api-dev] DevGuide Wiki / discussion of SDK examples / source code links into a repository

2009-02-18 Thread Karl Weber
Am Mittwoch, 18. Februar 2009 13:33 schrieb Juergen Schmidt: > Karl Weber wrote: [...] > > > > (1) I would add a main page, listing all examples and linking each > > example to its page, where the example is discussed (see above). The main > > page should be referenced from the main page of the D

[api-dev] Solved: [api-dev] App crashes when user closes OpenOffice

2009-02-18 Thread Alain Rist
The solution is the OOo::TerminationMonitor class in the updated http://www.codeproject.com/KB/wtl/Wtl_OOo.aspx. Thanks for community support ;) cheers, AR - Original Message - From: "Alain Rist" To: Sent: Friday, January 30, 2009 12:04 AM Subject: [api-dev] App crashes when user c

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

2009-02-18 Thread Daniel Brosseau
Hi Tobias, We have tried exactly what you laid out and it does not work for us, OpenOffice hangs regularly. This is why I want to take the most out possible. What are the minimum objects I need to enable printing and how to I interface with them? Daniel > -Original Message- > From: Tobi

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

2009-02-18 Thread Tobias Krais
Hi Daniel, > The reason I am trying to do it this way is that we need to print or convert > thousands of documents each month and when I create a Model Frame and > Controller, OpenOffice inevitablly hangs after a short while, probably > something to do with threading in OpenOffice and maybe finali

Re: [api-dev] DevGuide Wiki / discussion of SDK examples / source code links into a repository

2009-02-18 Thread Clayton
> mmh, i think that is partly done with dynamic page lists. We can add a > new category for DevGuide examples if necessary. And of course we can > link it from the DevGuide but that should be done from every single code > snippet The Dynamic Page lists are great.. reduces maintenance in a big way.

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

2009-02-18 Thread Daniel Brosseau
Thank you Mikhail, The reason I am trying to do it this way is that we need to print or convert thousands of documents each month and when I create a Model Frame and Controller, OpenOffice inevitablly hangs after a short while, probably something to do with threading in OpenOffice and maybe finali

Re: [api-dev] DevGuide Wiki / discussion of SDK examples / source code links into a repository

2009-02-18 Thread Juergen Schmidt
Karl Weber wrote: Sorry, but I have to resend this mail since my subscription wasn't complete before Hi, since it was suggested to move this thread to d...@api I crosspost _this_ mail to d...@api and as a copy to d...@openoffice.org. Follow-ups to this thread should be directed to d...@api

[api-dev] tooltip for ReferenceMark

2009-02-18 Thread ashok _
Is it possible to override the tooltip text for reference-marks in a OOo writer document via the API ? I would like to display an alternative text than the default "Reference : reference_name" ... thanks ashok - To unsubscribe,