com.sun.star.drawing.TextShape Not Available

The Application Programming Interface and the OASIS Open Document Format

com.sun.star.drawing.TextShape Not Available

Postby bd_atl » Thu Feb 10, 2011 4:35 am

Forum,

I am using NetBeans 6.9.1, with the OpenOffice 3.3 Libraries. I created the project using the NetBeans add-in for open office.

I am trying to insert a slide into an Impress presentation. I need to add a text shape and print Korean characters on it.

In reading the API and Javadoc that came with the SDK, I see the TextShape service and the various properties that would let me print Korean text on a slide. However, when I type com.sun.star.drawing. , I get no prompt for the TextShape service. :(

Can anyone please explain why I am not seeing this class /service? I believe I am running the latest release of Open Office and I have included all related / necessary jars.

Thank you for your help,

Ben
Open Office 3.3 ; Windows 7 Home Premium
bd_atl
 
Posts: 3
Joined: Thu Feb 10, 2011 4:27 am

Re: com.sun.star.drawing.TextShape Not Available

Postby hanya » Thu Feb 10, 2011 8:10 am

Because the service definition of IDLs can not be converted in Java type definition.
Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04
hanya
Volunteer
 
Posts: 885
Joined: Fri Nov 23, 2007 9:27 am
Location: Japan

Re: com.sun.star.drawing.TextShape Not Available

Postby bd_atl » Thu Feb 10, 2011 7:31 pm

Hanya,

Thank you for your reply.

Are you saying that I have to do this in C++? Is there an example of accessing the TextShape service in Java.

Cheers,

Ben
Open Office 3.3 ; Windows 7 Home Premium
bd_atl
 
Posts: 3
Joined: Thu Feb 10, 2011 4:27 am

Re: com.sun.star.drawing.TextShape Not Available

Postby hanya » Fri Feb 11, 2011 11:49 am

Are you saying that I have to do this in C++?
No. You can not find any include file for C++ of services.

You can find example to make new shape in the sdk examples, com.sun.star.drawing.RectangleShape service is used in the following document:
http://wiki.services.openoffice.org/wik ... onal_Chart
Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04
hanya
Volunteer
 
Posts: 885
Joined: Fri Nov 23, 2007 9:27 am
Location: Japan

Re: com.sun.star.drawing.TextShape Not Available

Postby eckart » Thu Mar 03, 2011 11:42 pm

Hello bd_atl,

I saw in your post "com.sun.star.drawing.TextShape Not Available", that you installed the OpenOffice API plugin in Netbeans 6.9.
Where did you get it from? I found the link api.openoffice.org/files/documents/22/4772/org-openoffice-extensions-2.0.7.alpha.nbm
for an alpha version, but this link appears to be wrong.

Thanks for your answer.
Eckart
OpenOffice 3.2 on Ubuntu 10.10
eckart
 
Posts: 1
Joined: Thu Mar 03, 2011 11:23 pm


Return to UNO API and ODF

Who is online

Users browsing this forum: No registered users and 1 guest