[Solved] CreateInstance vs Bridge_GetStruct

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
lunter
Posts: 28
Joined: Fri May 29, 2009 9:16 am

[Solved] CreateInstance vs Bridge_GetStruct

Post by lunter »

I pose first steps with PHP + OO API and I have simple problem:
What difference is between:

Code: Select all

createInstance('com.sun.star.style.CharacterStyle')
and

Code: Select all

Bridge_GetStruct('com.sun.star.beans.PropertyValue')
... difference between methods: createInstance and Bridge_GetStruct
Last edited by lunter on Sat May 30, 2009 6:53 pm, edited 1 time in total.
OOo 3.3.X on MS Windows 7
User avatar
Villeroy
Volunteer
Posts: 31363
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: createInstance vs Bridge_GetStruct

Post by Villeroy »

createInstance returns a reference to an object with properties and interfaces to method calls.
The latter creates a struct, which is basically a more complex variable without any interfaces.

Service http://api.openoffice.org/docs/common/r ... Style.html
Struct http://api.openoffice.org/docs/common/r ... Value.html
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