Re: [api-dev] Creating a Singleton Service

2006-12-02 Thread Tabish F. Mufti
On 11/22/06, Tabish F. Mufti <[EMAIL PROTECTED]> wrote: On 11/22/06, Stephan Bergmann <[EMAIL PROTECTED]> wrote: > > Tabish F. Mufti wrote: > [...] > > # compile > > idlc -C -I. -I${SDK_DIR}/idl -O${WorkDir} theSentence.idl > > idlc -C -I. -I${

Re: [api-dev] Creating a Singleton Service

2006-11-22 Thread Tabish F. Mufti
On 11/22/06, Stephan Bergmann <[EMAIL PROTECTED]> wrote: Tabish F. Mufti wrote: [...] > # compile > idlc -C -I. -I${SDK_DIR}/idl -O${WorkDir} theSentence.idl > idlc -C -I. -I${SDK_DIR}/idl -O${WorkDir} XSentence.idl > > # create registory database (.rdb) > regmerge ${W

Re: [api-dev] Creating a Singleton Service

2006-11-17 Thread Tabish F. Mufti
On 11/17/06, Stephan Bergmann <[EMAIL PROTECTED]> wrote: Tabish F. Mufti wrote: > On 11/17/06, Stephan Bergmann <[EMAIL PROTECTED]> wrote: >> >> Tabish F. Mufti wrote: >> > >>

Re: [api-dev] Creating a Singleton Service

2006-11-17 Thread Tabish F. Mufti
On 11/17/06, Stephan Bergmann <[EMAIL PROTECTED]> wrote: Tabish F. Mufti wrote: > > > #ifndef __com_sun_star_ex_comp_Sentence_idl__ > #define __com_sun_star_ex_comp_Sentence_idl__ > > > // Av

Re: [api-dev] Creating a Singleton Service

2006-11-16 Thread Tabish F. Mufti
tence: XSentence; }; ---8<--- Java: ---8<--- foo.XSentence sentence = foo.theSentence.get(xContext); ---8<--- -Stephan Tabish F. Mufti wrote: > I have Sentence.idl: > > module com { module sun { module star { module ex { module comp { > service Sentence > { >interface com::sun::

[api-dev] Creating a Singleton Service

2006-11-14 Thread Tabish F. Mufti
I have Sentence.idl: module com { module sun { module star { module ex { module comp { service Sentence { interface com::sun::star::ex::comp::XSentence; }; singleton theSentence { service com::sun::star::ex::comp::Sentence; }; }; }; }; }; }; and XSentence.idl: module com { module sun {

Re: [api-dev] Server inside a Protocol Handler

2006-11-14 Thread Tabish F. Mufti
s from ComponentBase and implements XServiceInfo and my own Interface XServer. My server class also has the 2 static functions getServiceFactory & writeRegistryServiceInfo inside it. I just need to know how to convert this class to a Singleton ? Thanks again. On 11/14/06, Andreas Schlüns <[

Re: [api-dev] UNO Component & Bootstrap

2006-11-12 Thread Tabish F. Mufti
Create a JAR package and make a desktop icon with a commandline like this: java -jar myjar.jar The ant script file will be inside the JAR ? Right now I type "ant run" to run my java code. You are saying that by making a jar which will have the ant file inside it the ant script will be automatica

[api-dev] UNO Component & Bootstrap

2006-11-11 Thread Tabish F. Mufti
I have a javacode through which I bootstrap ooimpress. I also have installed a UNO Component (Addon with ProtocolHandler). I have 2 questions: 1. I need to package my java code (which bootstraps openoffice) as professional application in a sense that I have an icon on the Desktop/StartMenu throu

Re: [api-dev] Dispatching Macro URL from Java Addon?

2006-11-09 Thread Tabish F. Mufti
The following link might help: Its a great beginner resource for UNO Component. http://kingyo.tutms.tut.ac.jp/~toshi/StarSuite/Chap4/ On 11/9/06, Jimmy <[EMAIL PROTECTED]> wrote: How can I dispatch a macro Url from my Java Add-on? I'd li

Re: [api-dev] Server inside a Protocol Handler

2006-11-09 Thread Tabish F. Mufti
You can avoid these problems, if you write your protocol handler as a multi-instance service." So how can I write a multi-instance service ? I you wish to access your "server" everytimes a menu / toolbar item is clicked ... you have to implement your ProtocolHandler / Job as singleton. I nee

Re: [api-dev] Server inside a Protocol Handler

2006-11-09 Thread Tabish F. Mufti
on it from within openoffice ? On 11/9/06, Andreas Schlüns <[EMAIL PROTECTED]> wrote: Tabish F. Mufti schrieb: > I have an Addon in Java and using the ProtocolHandler scheme I start a > Socket Server. Once the protocol handler is executed the server is created > inside a Thread

[api-dev] Server inside a Protocol Handler

2006-11-08 Thread Tabish F. Mufti
I have an Addon in Java and using the ProtocolHandler scheme I start a Socket Server. Once the protocol handler is executed the server is created inside a Thread and left on the jvm to be executed but I think I lose a reference to this server as the ProtocolHandler will just execute a function and

[api-dev] Jobs

2006-11-08 Thread Tabish F. Mufti
I read in the developer guide Chapter 4 under Jobs: "A central problem of external components in OpenOffice.org is their lifetime control. Every external component must deal with the possibility that the environment will terminate. It is not efficient to implement lifetime strategies in every job

Re: [api-dev] Suggestion: Google Group for OpenOffice.org

2006-11-06 Thread Tabish F. Mufti
I drop my suggestion :) On 11/6/06, G. Roderick Singleton <[EMAIL PROTECTED]> wrote: On Mon, 2006-11-06 at 10:27 +0100, Cedric Bosdonnat wrote: > Hi Juergen, all, > > Juergen Schmidt a écrit : > > what do think are the benefits? > > > > But in general the communication is done over mailing list

Re: [api-dev] Toolbar with dropdown box

2006-11-06 Thread Tabish F. Mufti
Knut! Thanx alot. I'll see if I understand how to use it. I tryed to install the DemoAddOn, but it did not work. I got the following error: The following will atleast give you clean packages which install without error: http://kingyo.tutms.tut.ac.jp/~toshi/StarSuite/Chap4/ After you are able

[api-dev] Suggestion: Google Group for OpenOffice.org

2006-11-03 Thread Tabish F. Mufti
Hi, I was just thinking why not start a Google Group for this mailing list ? After the introduction of Google Groups beta they have really improved and provide a lot of nice features. Having a google group for this mailing list will benefit everyone and give more exposure to openoffice.org.

Re: [api-dev] Enable toolbar items if dynamic protocol handler

2006-11-03 Thread Tabish F. Mufti
hat I would make the toolbar unvisible whenever ooimpress is started through my app and before closing my app I would make it visible so that its not viewable when you open ooimpress normally. Seems like a do able strategy ? On 11/3/06, Tabish F. Mufti <[EMAIL PROTECTED]> wrote: My

Re: [api-dev] Enable toolbar items if dynamic protocol handler

2006-11-03 Thread Tabish F. Mufti
nov. 06, à 13:58, Tabish F. Mufti a écrit : > Would you please like to share with me your solution after you are > done. I > would like to have your files and and how you are running them etc. > only if > you are working in java. > > I actually tried searching about doing such

Re: [api-dev] Enable toolbar items if dynamic protocol handler

2006-11-03 Thread Tabish F. Mufti
resort to just installing my component into openoffice.org using the unopkg. On 11/3/06, Julien Galand <[EMAIL PROTECTED]> wrote: Le 2 nov. 06, à 18:50, Tabish F. Mufti a écrit : > So what you are trying to do is that you have your own wrapper app > which > creates a toolbar at r

Re: [api-dev] Enable toolbar items if dynamic protocol handler

2006-11-02 Thread Tabish F. Mufti
But there is no component registration in the package; in particular no registration of the implementation of the service of the protocol handler. Instead, the service of the protocol handler is registered dynamically by the executable component of my add-on, therefore necessarily LATER than OO's

Re: [api-dev] Re: installing ooSetupConnectionURL through UNO package

2006-11-02 Thread Tabish F. Mufti
Hi Knut, I'm getting interested in what kind of application are you making ? I feel the concept might be similar to what I'm trying to do. I'm a newbie to openoffice so don't have a grasp of a lot of the concepts. What will you acheive by modifying /share/registry/data/org/openoffice/Setup.xcu ?

Re: [api-dev] Re: Button on ooimpress slide

2006-11-01 Thread Tabish F. Mufti
> wrote: Am Mittwoch, den 01.11.2006, 19:48 +0500 schrieb Tabish F. Mufti: > Can anyone mention to me the Object/Class name which I should look into for > placing a button on ooimpress slide ? > > On 10/29/06, Tabish F. Mufti <[EMAIL PROTECTED]> wrote: > > > &g

[api-dev] Re: Button on ooimpress slide

2006-11-01 Thread Tabish F. Mufti
Can anyone mention to me the Object/Class name which I should look into for placing a button on ooimpress slide ? On 10/29/06, Tabish F. Mufti <[EMAIL PROTECTED]> wrote: Hi, I've a code which create my own customized slide in ooimpress. What I want is that a button be placed on

Re: [api-dev] Re: installing ooSetupConnectionURL through UNO package

2006-11-01 Thread Tabish F. Mufti
Just few days back Tobias on the mailing list referred me to the following link for package installation. You might wanna look at it as well. It helped me like anything. http://kingyo.tutms.tut.ac.jp/~toshi/StarSuite/Chap4/ By the way what

[api-dev] Button on ooimpress slide

2006-10-29 Thread Tabish F. Mufti
Hi, I've a code which create my own customized slide in ooimpress. What I want is that a button be placed on every slide and I need to handle the click event of the button. On every click of the button I need to call my own function. Also I read in the developer guide about Protocol Handler and

Re: [api-dev] Re: Packaging a UNO Component ?

2006-10-27 Thread Tabish F. Mufti
Thank you all, the link given to me by Tobias was great. On 10/28/06, Andreas Saeger <[EMAIL PROTECTED]> wrote: Hi Tabish F. Mufti, This is the best living example of a component I've seen until now: http://www.thessalo

Re: [api-dev] Packaging a UNO Component ?

2006-10-27 Thread Tabish F. Mufti
Hi Tobias, Here are some examples für Chapter 4 of the Developer Guide: http://kingyo.tutms.tut.ac.jp/~toshi/StarSuite/Chap4/ This helped me a lot to understand what to do. Seems like this is also gonna help me a lot and probably would clear out all my confusions. Just tell me one thing if yo

Re: [api-dev] Packaging a UNO Component ?

2006-10-27 Thread Tabish F. Mufti
the compiled type definition of your own IDL types What tool is used to create an rdb file or how do you create it ? On 10/27/06, Juergen Schmidt <[EMAIL PROTECTED]> wrote: Tabish F. Mufti wrote: > Hi, > > In Developers guide chapter4 it mentions for UNO Component installation: &

[api-dev] Packaging a UNO Component ?

2006-10-26 Thread Tabish F. Mufti
Hi, In Developers guide chapter4 it mentions for UNO Component installation: 4.9.1 UNO Package Installation Using unopkg: For a user package, run unopkg: [/program] $ unopkg add myPackage.uno.pkg What I fail to understand is what is gonna be inside myPackage.uno.pkg and I've read substantial p

Re: [api-dev] How to make a ToolBar with Icons?

2006-10-24 Thread Tabish F. Mufti
Oh! I thought you were making a UNO Component. You are doing a Macro. On 10/24/06, Knut Olav Bøhmer <[EMAIL PROTECTED]> wrote: On 10/24/06, Tabish F. Mufti <[EMAIL PROTECTED]> wrote: > > Hi Knut > > If you have made a toolbar please send me the code snippet and the

Re: [api-dev] How to make a ToolBar with Icons?

2006-10-24 Thread Tabish F. Mufti
Hi Knut If you have made a toolbar please send me the code snippet and the procedures towards its integration. I'll be highly Thankful. On 10/24/06, Knut Olav Bøhmer <[EMAIL PROTECTED]> wrote: Hi, How can I include Icons in the Icons that I add to the toolbar from starbasic? -- Knut Olav Bøh

Re: [api-dev] UNO Component Communicating with Boostrapped Code

2006-10-23 Thread Tabish F. Mufti
So basically what you are saying is that I should run 2 servers in my code: 1. bluetooth server 2. socket server And make ooimpress plugin the client to the socket server ? On 10/23/06, Tobias Krais <[EMAIL PROTECTED]> wrote: Hi Tabish, your information is very useful to me. But my answer re

Re: [api-dev] UNO Component Communicating with Boostrapped Code

2006-10-23 Thread Tabish F. Mufti
OK, I'll try to give you some more detailed information. You told me that you are running a java server you want to connect to. In what way does this server offer his service? E.g. it offers its Service on a special port. So write a OO plugin that connects to this server and interacts with it (e.g

Re: [api-dev] UNO Component Communicating with Boostrapped Code

2006-10-23 Thread Tabish F. Mufti
Please see http://marketing.openoffice.org/ooocon2006/presentations/wednesday_d10.pdf esp. pages 7 and following. Well you can say its a generic name for all kind of ways available to extend open office and they have made a new standard for it. Thats fine. But my initial problem remains :)

Re: [api-dev] UNO Component Communicating with Boostrapped Code

2006-10-22 Thread Tabish F. Mufti
I searched alot but there isn't any support available on the internet regarding this issue. What do you mean by an OpenOffice plugin ? I understand what is a UNO Component. Also I read on the ProtocolHandler & Jobs approach but I couldn't figure out much how do they fit in with my problem. On

Re: [api-dev] UNO Component Communicating with Boostrapped Code

2006-10-22 Thread Tabish F. Mufti
I'm familiar with the code snippets already. This is not a java issue. Let me explain it again: There is a piece of code which boot strapped openoffice: class Test { // I bootstrapped openoffice here after this code execution, ooimpress has been opened void foo() {} } Now while running o

[api-dev] UNO Component Communicating with Boostrapped Code

2006-10-22 Thread Tabish F. Mufti
Hi, I need to do the following: 1. run a server in java 2. bootstrap ooimpress from the same class which started the above server 3. from within ooimpress either a UNO Component or Macro (which will both be in java ) call function on this server. I've reviewed chapter 4 of the deverlopers guide