[api-dev] Where can i find officebean.jar file

2009-03-07 Thread Vinoth kumar
Hi, my name is Vinoth and i am tring to create a application that opens
openoffice in its frame i went through the OOoBeanViewer.java example but it
imports a class called OOBean which i could not find in  the sdk package
provided...when i search through internet i found that it could be
in officebean.jar file which i could find eitherso please help me..
i am using openoffice 3 and its sdk


Re: [api-dev] Where can i find officebean.jar file

2009-03-07 Thread Karl Weber
Am Samstag, 7. März 2009 07:01 schrieb Vinoth kumar:
 Hi, my name is Vinoth and i am tring to create a application that opens
 openoffice in its frame i went through the OOoBeanViewer.java example but
 it imports a class called OOBean which i could not find in  the sdk package
 provided...when i search through internet i found that it could be
 in officebean.jar file which i could find eitherso please help me.. i
 am using openoffice 3 and its sdk

My ooo 3.0.1 is installed in /opt/openoffice.org  and is has a jar of this 
name in 

/opt/openoffice.org/basis3.0/program/classes/officebean.jar

It has a class OOoBean.

-Karl

-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



[api-dev] embedding an image to open office documents

2009-03-07 Thread allirpa

help. i need to embed an image to an open office document. how can this be
done?
it should be in java. i am using open office 2.4 and netbeans.

thanks for any help. :)
-- 
View this message in context: 
http://www.nabble.com/embedding-an-image-to-open-office-documents-tp22386730p22386730.html
Sent from the openoffice - api dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



Re: [api-dev] embedding an image to open office documents

2009-03-07 Thread Ariel Constenla-Haile
Hello allirpa,

On Saturday 07 March 2009, 09:34, allirpa wrote:
 help. i need to embed an image to an open office document. how can this be
 done?

do you just want to embed it, or also display it in a document.
If only the first, there is the embed API that lets you embed any kind of 
content 
http://api.openoffice.org/docs/common/ref/com/sun/star/embed/module-ix.html

If you want to insert an image without linking it, but instead emebdding it, 
then that's another story (already answered here and on the OOo forums - just 
google  it).

if you want more details, explain a little more what you want to achive (for a 
vague question there can only be a vague answer)

Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


Aus der Kriegsschule des Lebens
- Was mich nicht umbringt,
macht mich härter.
Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.

-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



Re: [api-dev] embedding an image to open office documents

2009-03-07 Thread allirpa



Ariel Constenla-Haile wrote:
 
 Hello allirpa,
 
 On Saturday 07 March 2009, 09:34, allirpa wrote:
 help. i need to embed an image to an open office document. how can this
 be
 done?
 
 do you just want to embed it, or also display it in a document.
 If only the first, there is the embed API that lets you embed any kind of 
 content 
 http://api.openoffice.org/docs/common/ref/com/sun/star/embed/module-ix.html
 
 If you want to insert an image without linking it, but instead emebdding
 it, 
 then that's another story (already answered here and on the OOo forums -
 just 
 google  it).
 
 if you want more details, explain a little more what you want to achive
 (for a 
 vague question there can only be a vague answer)
 
 Regards
 -- 
 Ariel Constenla-Haile
 La Plata, Argentina
 
 
 Aus der Kriegsschule des Lebens
   - Was mich nicht umbringt,
   macht mich härter.
   Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
 For additional commands, e-mail: dev-h...@api.openoffice.org
 
 
 

yeah. i want to insert and display it to the document.

btw, thanks for the reply. :)
-- 
View this message in context: 
http://www.nabble.com/embedding-an-image-to-open-office-documents-tp22386730p22386884.html
Sent from the openoffice - api dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



Re: [api-dev] embedding an image to open office documents

2009-03-07 Thread allirpa



Ariel Constenla-Haile wrote:
 
 Hello allirpa,
 
 On Saturday 07 March 2009, 09:34, allirpa wrote:
 help. i need to embed an image to an open office document. how can this
 be
 done?
 
 do you just want to embed it, or also display it in a document.
 If only the first, there is the embed API that lets you embed any kind of 
 content 
 http://api.openoffice.org/docs/common/ref/com/sun/star/embed/module-ix.html
 
 If you want to insert an image without linking it, but instead emebdding
 it, 
 then that's another story (already answered here and on the OOo forums -
 just 
 google  it).
 
 if you want more details, explain a little more what you want to achive
 (for a 
 vague question there can only be a vague answer)
 
 Regards
 -- 
 Ariel Constenla-Haile
 La Plata, Argentina
 
 
 Aus der Kriegsschule des Lebens
   - Was mich nicht umbringt,
   macht mich härter.
   Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
 For additional commands, e-mail: dev-h...@api.openoffice.org
 
 
 

by the way, what's the difference if the image is embedded or displayed?
-- 
View this message in context: 
http://www.nabble.com/embedding-an-image-to-open-office-documents-tp22386730p22386970.html
Sent from the openoffice - api dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



Re: [api-dev] How to make a Python macro visible to OOo?

2009-03-07 Thread normgarran

This may have been solved, but I tried the method in the following link and
found it worked in OO3 after making sure the file permissions were set
(chmod 755)
norman bakker

http://www.linuxjournal.com/content/python-pyuno-hello-world-addon-openoffice


pitonyak wrote:
 
 
 It is possible to write a macro in Python.
 
 Use Tools - Macros - Organize Macros - Python to view the Python 
 macros included with OOo.
 
 I am told that this worked fine in OOo 2.4, but when I tried this in OOo 
 3.0, I could not figure out how to make this work apart from directly 
 placing the macros with the samples distributed with OOo.
 
 -- 
 Andrew Pitonyak
 My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
 My Book: http://www.hentzenwerke.com/catalog/oome.htm
 Info:  http://www.pitonyak.org/oo.php
 See Also: http://documentation.openoffice.org/HOW_TO/index.html
 
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
 For additional commands, e-mail: dev-h...@api.openoffice.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-make-a-Python-macro-visible-to-OOo--tp21881521p22392449.html
Sent from the openoffice - api dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



[api-dev] Adding menu entry within ContextMenuInterceptor

2009-03-07 Thread cguerber

Hi,

I'm trying to add a menu entry within my ContextMenuInterceptor but it seems to 
halt without any reason nor exception. Here is the peace of code:
XMultiServiceFactory xMenuElementFactory =
(com.sun.star.lang.XMultiServiceFactory)UnoRuntime.queryInterface(
com.sun.star.lang.XMultiServiceFactory.class, 
aEvent.ActionTriggerContainer );
getLogger().println(addContextMenuEntry IN);
XPropertySet xRootMenuEntry = null;
try {
getLogger().println(null==xMenuElementFactory?xMenuElementFactory 
null:xMenuElementFactory not null);

getLogger().println(create menu entry);
   // create menu entry
   Object obj = xMenuElementFactory.createInstance ( 
com.sun.star.ui.ActionTrigger  );
getLogger().println(null==obj?obj null:obj not null);
xRootMenuEntry = 
(XPropertySet)UnoRuntime.queryInterface(com.sun.star.beans.XPropertySet.class,obj);

getLogger().println(intialize menu entry);
xRootMenuEntry.setPropertyValue( Text, text);
xRootMenuEntry.setPropertyValue( CommandURL, command);


xContextMenu.insertByIndex ( index, (Object)xRootMenuEntry );
} catch (Exception e) {
e.printStackTrace(RegistrationHandler.getLogger());
}
getLogger().println(addContextMenuEntry OUT);

And I get the following in my logger:
addContextMenuEntry IN
xMenuElementFactory not null
create menu entry
END-OF-FILE

I do not get the last message (initialize menu entry), and of course I do not 
get the desired entry in my context menu. I can create a separator, at least it 
does not stop when creating it although it does not show up in the context menu.

Is there any reason why the createInstance never returns or crashes? Am I 
wrong somewhere in my code?

Thx
Christophe





-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org