AppletShape properties not working

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
fred_er
Posts: 3
Joined: Fri Dec 02, 2022 2:58 pm

AppletShape properties not working

Post by fred_er »

Hello,

I'm trying to understand how the 'com.sun.star.drawing.AppletShape' Service is working.
I have no problem to create and add this shape (here as an example in calc in python):

Code: Select all

def appletShape():
	doc = XSCRIPTCONTEXT.getDocument()
	sheet = doc.Sheets[0]
	drawPage = sheet.DrawPage
	
	appletShape = doc.createInstance('com.sun.star.drawing.AppletShape')
	drawPage.add(appletShape)
The properties as per description https://www.openoffice.org/api/docs/com ... Shape.html are visible (I see them in the MRI-tool, I can also see them if I create the AppletShape in the APSO-console).

The problem is, I cannot change them. For example, if I try to change the AppletName after the creation, it crashes the application (calc, draw, impress on both OS).

I'm trying to understand if I do something wrong (or if this a bug) and in case mistake is on my side how to do it the right way.

Many thanks for your consideration in advance!
LibreOffice 7.3.4 on Windows 10
LibreOffice 7.4.2 on Ubuntu 22.04
fred_er
Posts: 3
Joined: Fri Dec 02, 2022 2:58 pm

Re: AppletShape properties not working

Post by fred_er »

Hello again,

I guess, this service has not been maintained and does not exist anymore, even if in this post (https://forum.openoffice.org/en/forum/v ... lit=applet) it was not for sure that support have been dropped.

The image on this wiki site https://wiki.openoffice.org/wiki/Docume ... er_objects still shows the applet insertion (OpenOffice 2.x guide), but on this wiki site https://wiki.openoffice.org/wiki/Docume ... er_objects, it already disappeared (OpenOffice 3.x Guide).

Unless someone has other infos and if okay with one of the admins, I will mark the topic as solved.
LibreOffice 7.3.4 on Windows 10
LibreOffice 7.4.2 on Ubuntu 22.04
JeJe
Volunteer
Posts: 2906
Joined: Wed Mar 09, 2016 2:40 pm

Re: AppletShape properties not working

Post by JeJe »

This forum there seem to me to be a number of people who post replies very regularly - and have likely all seen your post and don't have a solution or would have answered by now. There are also less frequent repliers who pop up occassionally with an answer for posts that no-one else had and who might not have seen it yet.

Your signature says LibreOffice but the links are all openoffice.
If it makes any difference, the LibreOffice documentation is here:

https://api.libreoffice.org/docs/idl/re ... ml#details

https://ask.libreoffice.org/

has other people who know things that people here might not, if you haven't thought to post there.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
fred_er
Posts: 3
Joined: Fri Dec 02, 2022 2:58 pm

Re: AppletShape properties not working

Post by fred_er »

Thanks for your reply, JeJe.

For the links you are right, but as the LibreOffice API page references the Apache OpenOffice wiki for the developer's guide, I thought it might be worth to look into the the Apache OpenOffice user's guide.

I'll do as you suggest and will also raise the question in this forum. If I catch anything worth knowing, I'll post it here.
LibreOffice 7.3.4 on Windows 10
LibreOffice 7.4.2 on Ubuntu 22.04
User avatar
RoryOF
Moderator
Posts: 34751
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: AppletShape properties not working

Post by RoryOF »

Also asked at
https://ask.libreoffice.org/t/appletsha ... king/85216

If you post on any other location, please indicate so in the threads, as this prevents unnecessary duplication of effort.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Post Reply