Re: [api-dev] two unanswered questions?

2007-01-10 Thread Madhan Ponnusamy
On 1/10/07, Juergen Schmidt <[EMAIL PROTECTED]> wrote: of course it is possible to pass arguments to a macros but not from everywhere. If you bind a macro to an event for example t is not possible. Thanx for your reply. is passing arguments to a macro from a shape is possible? if yes, can u

[api-dev] two unanswered questions?

2007-01-09 Thread Madhan Ponnusamy
Hi, i am having two unanswered questions...the questions are 1) is it possible to pass parameters or arguments to a macro? 2) can we identify which shape is clicked during the slideshow using macro or some other? please help me out to get the answers

Re: [api-dev] get the currently selected shaoe from impress

2007-01-09 Thread Madhan Ponnusamy
But my ned is different...first i will insert all the shapes and then i will click any one of the shape... so can u tell me is there any interfaces for getting clicked shapes in impressi.e) to get which shape is clicked On 1/8/07, Stephan Wunderlich <[EMAIL PROTECTED]> wrote: in presentati

[api-dev] argument passing to macros

2007-01-08 Thread Madhan Ponnusamy
Hi, I had seen in openoffice document that arguments can be passed to the macros... is this the way to declare a macro which can accept arguments. import com.sun.star.script.provider.XScriptContext; public class test { public void testarguments(XScriptContext xSc,Object[] args) { } } also

Re: [api-dev] get the currently selected shaoe from impress

2007-01-08 Thread Madhan Ponnusamy
Hi Stephan, whether the getselection works when the shape is clicked during slide show..i.e) when the shape is linked to macro and working fine in normal impress document..when the slideshow is started is that possible to get current documents and shape selected. On 1/8/07, Stephan Wunderlich <[

Re: [api-dev] get the currently selected shaoe from impress

2007-01-08 Thread Madhan Ponnusamy
Hi Stephan, getSelection is working correctly...that is not the problem..i am clearly descriping the scenario here i had inserted a shape inside impress document and made interaction(Onclick) of the shape to call a macro. this macro contains the code to get the currently selected shape. So if i c

Re: [api-dev] get the currently selected shaoe from impress

2007-01-08 Thread Madhan Ponnusamy
yes, I queryed with xshapes and used getbyindex method its working fine...now the problem is on click of the shape iam calling macro which should find which shape is clicked..for this getting the selected shape is not working correctly...so is there any other(interfaces) way to find which shape is

Re: [api-dev] get the currently selected shaoe from impress

2007-01-07 Thread Madhan Ponnusamy
the shape On 1/4/07, Christian Lippka <[EMAIL PROTECTED]> wrote: Yes, get the current XController from the XModel and use the XSelectionSupplier interface on it. This either returns a single XShape reference or a sequence of XShape for multi selections. Regards, Christian Madhan Ponnusamy wro

[api-dev] get the currently selected shaoe from impress

2007-01-04 Thread Madhan Ponnusamy
Hi, i had inserted many shapes inside impress document using XShapes and xShape interfacesbut now i need to get the currently selected shape from the document..is that possible?

[api-dev] inserting text along with shape

2006-10-15 Thread Madhan Ponnusamy
I had created a shape with image using the property of the shape inside the impress document is that possible to have text along with that shape or is there any property of shape which adds text to that?

Re: [api-dev] How to create Java-GUI

2006-10-06 Thread Madhan Ponnusamy
Hi i had done the same thing using macro i.e) created my own window using javax.swing and called the class using the code import com.sun.star.script.provider.XScriptContext; public class Organiser { public void callOrganiser(XScriptContext xSc) throws com.sun.star.uno.Exception { Organis

Re: [api-dev] API for adding the classpath

2006-09-07 Thread Madhan Ponnusamy
stephen said Either, you are looking for an OOo UNO API to programatically (in whatever langugage, not necessarily Java) modify those data that you can manually modify via "Tools - Options... - Java." I do not know whether such an OOo UNO API exists, but I doubt it. yes u are correct... i

[api-dev] API for adding the classpath

2006-09-07 Thread Madhan Ponnusamy
Hi, I had added the java classpath in tools -> options -> java.can i do the same thing using a java code i.e) using any API?if yes can any one tell me what is the API to be used Thanks & Regards, Madhan

[api-dev] embed a browser inside openoffice dialog

2006-09-06 Thread Madhan Ponnusamy
Hi, Is it possible to have a web browser inside the openoffice dialog if it is possible what is API used for that purpose Regards, Madhan

[api-dev] image adding in impress

2006-09-04 Thread Madhan Ponnusamy
Hi, The follwing code adds a text and image in the writer and te image will have a hyper link import com.sun.star.beans.*; import com.sun.star.lang.*; import com.sun.star.text.*; import com.sun.star.uno.UnoRuntime; import com.sun.star.frame.XComponentLoader; public class link extends java.lang.O

Re: [api-dev] setting url for the string

2006-09-04 Thread Madhan Ponnusamy
Thanx Rony, Thanx for the reply...yes there is no need to create a sevice for the HyperLinkURL we can directly set this property to the textbut in api referance i saw that the service CharacterProperites contain the property HyperLinkURL(see here http://api.openoffice.org/docs/common/ref/com/s

Re: [api-dev] setting url for the string

2006-09-03 Thread Madhan Ponnusamy
Hi , In the sevice CharacterProperties inside CharacterStyle the properties starting with Char is workinng but all other properties are throwing the UNKNOWN PROPERTY EXECEPTION i.e) in the line xStyleProps.setPropertyValue ("HyperLinkURL", new String("www.gmail.com ")); instead of HyperLinkUrl i

Re: [api-dev] setting url for the string

2006-09-03 Thread Madhan Ponnusamy
Hi stephan, As u set i had set the property HyperLinkURL using the following code // get the document container XText xText = xTextDocument.getText(); // create text cursor for selecting and formatting XTextCursor curText = xText.createTextCursor(); // get the XWordCursor interface

Re: [api-dev] setting url for the string

2006-09-01 Thread Madhan Ponnusamy
Hi stephan, Thanx for the reply. i think the code u sent is a basic code. is there any examples in java since i saw that there is no method named HypeLinkUrl in XTextCursor and XTextRange interfaces...

[api-dev] setting url for the string

2006-09-01 Thread Madhan Ponnusamy
Hi, I need to assign a url to a string and then the string should be shown in the text document..for example if i set a string in the way given below String test xTextRanget.setString(test); the String test should be linked to url say www.gmail.com...this is what i need can any one help me..

Re: [api-dev] Protocol handlers

2006-08-17 Thread Madhan Ponnusamy
Hi, I had installed openofficesdk and in the example folder there is jobsaddon folder with a make file, my doubt is what to do with that make file. how will the make file create the necessary package.

Re: [api-dev] Protocol handlers

2006-08-16 Thread Madhan Ponnusamy
Hi Carsten, Can you tell me how to pack the files addon,protocolhandler,protocolhandler implememtation and create the package which can be installed through UNOPKG. And another doubt can we have a main function inside protocolhandler.javafile

[api-dev] Protocol handlers

2006-08-09 Thread Madhan Ponnusamy
Hi Carsten, As u told i am now trying to develop the menus using addons and protocol handlers. can u tell me this flow is corret or not Addons(creating the menu and specifing the URL for the menuitem) (links) -->protocol handler(create the url and specify the java file for the URL) (links)--> prot

Re: [api-dev] adding action event to sub menus

2006-08-07 Thread Madhan Ponnusamy
Hi, I had read the protocol handler part in developersguide but i cannot get a clear idea how to use it . can u give me a example code snippet for that. Now i clearly explain what is my need. i had created a JFrame when the user click the menuitem the JFrame must be shown to him. As u told it can

Re: [api-dev] adding action event to sub menus

2006-08-04 Thread Madhan Ponnusamy
Hi Driesner, first i want thank u for replying me between your busy shedules. ok i will read about protocol handler and i will mail u after i implement it. Have a happy week end. On 8/4/06, Carsten Driesner <[EMAIL PROTECTED]> wrote: Madhan Ponnusamy wrote: > Hi Carsten, > Tha

Re: [api-dev] adding action event to sub menus

2006-08-03 Thread Madhan Ponnusamy
Hi Carsten, Thank u...i had already searched in the code snippetbase but i cannot find the solution. any way now i got a doubt in macros. I had created menus programtically and i tried to link the menus to macros by the code PropertyValue[] oMenuItem = CreateMenuItem( "macro:///WebW

[api-dev] adding action event to sub menus

2006-08-02 Thread Madhan Ponnusamy
hai, I had added menus and submenus in openoffice impress now i want to add action event to those submenus i.e) if the user click the submenu a java class file should be called. How to do this?