Hello!

How can one use enums through COM/Automation interface?
Is there 1) any constructor for enum members(just like
Bridge_GetStruct for structs, that I've been recently advised to use)
or 2) is there a way to evaluate member values?
I've looked through docs and find nothing for way 1).
Regarding 2nd way: I've managed myself to create a following code to
accomplish task via api:
    Dim objReflection As Object
    Set objReflection =
obj.createInstance("com.sun.star.reflection.TypeDescriptionProvider")
    Dim objType As Object
    Set objType =
objReflection.getByHierarchicalName("com.sun.star.table.CellVertJustify")
    Dim listValues() As Variant
    listValues = objType.getEnumValues()

It fails concerning specified type name doesn't exists. Am I missing something?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to