Dbg_ properties and Python

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
chris-barry
Posts: 9
Joined: Sun Sep 20, 2015 4:29 pm

Dbg_ properties and Python

Post by chris-barry »

In Openoffice Basic every object has a Dbg_Properties and a Dbg_Methods property. Both these properties are of the type SbxSTRING and contain lists of the properties and methods implemented by the Object. In the list of properties, of course, are the Dbg_Properties and Dbg_Methods properties themselves.

So far, every property that I have tried has been accessible to Python, except for the Dbg_ properties. These result in an AttributeError exception. So:

1. Why are these properties not accessible to Python?
2. Given that in the Properties list there are no obvious features to distinguish them from other properties, are there other properties and methods that appear in the list but are not available to Python.
3. Is there a way that I can access the Dbg_Properties and Dbg_Methods properties from Python?
OpenOffice 4.1.1, Linux (Gentoo)
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Dbg_ properties and Python

Post by Villeroy »

This was something written when StarBasic was the only macro language and before object inspectors had been developed. Install MRI or Xray and you will not miss dbg_Properties any longer.
[Tutorial] Introduction into object inspection with MRI
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply