[Solved] Persistent Identification of a Component

Creating a macro - Writing a Script - Using the API

[Solved] Persistent Identification of a Component

Postby Lupp » Fri Mar 15, 2019 3:34 pm

The Stardesktop gives access to all the current frames and components.
However, I don't know a way to get an identifyer (handle, ID) for each component reliably persistent as long as the component not was closed.
.Title and .URL may change.
Is there remedy?
Last edited by Lupp on Fri Mar 15, 2019 5:06 pm, edited 1 time in total.
On Windows 10: LibreOffice 6.2 and older versions, PortableOpenOffice 4.1.5 and older, StarOffice 5.2
---
Lupp from München
User avatar
Lupp
Volunteer
 
Posts: 2528
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: Persistent Identification of a Component

Postby hubert lambert » Fri Mar 15, 2019 4:35 pm

Hi,

Have you try the RuntimeUID property of the document model?
Regards.
AOOo 4.1.2 on Win7 | LibreOffice on various Linux systems
hubert lambert
 
Posts: 129
Joined: Mon Jun 13, 2016 10:50 am

Re: Persistent Identification of a Component

Postby Lupp » Fri Mar 15, 2019 5:06 pm

Thanks! That's exactly what I looked for.
On Windows 10: LibreOffice 6.2 and older versions, PortableOpenOffice 4.1.5 and older, StarOffice 5.2
---
Lupp from München
User avatar
Lupp
Volunteer
 
Posts: 2528
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: Persistent Identification of a Component

Postby karolus » Fri Mar 15, 2019 5:08 pm

AOO4, Libreoffice - 5.1 … 5.3.2.2 on Linux Mint17
User avatar
karolus
Volunteer
 
Posts: 852
Joined: Sat Jul 02, 2011 9:47 am


Return to Macros and UNO API

Who is online

Users browsing this forum: Google [Bot] and 1 guest