[Libreoffice-bugs] [Bug 129437] [PYUNO] "setPropertyValue" method does not accept particular Enum value

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Dec 17 09:23:57 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=129437

Julien Nabet <serval2412 at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sbergman at redhat.com,
                   |                            |serval2412 at yahoo.fr

--- Comment #1 from Julien Nabet <serval2412 at yahoo.fr> ---
There's PushButtonType.idl with "PushButtonType" enum
+ UnoControlButtonModel.idl with "PushButtonType" property

PushButtonType is defined as a short property but wonder if it shouldn't be
"PushButtonType". 2 problems here:
- in this case var type and var name would be the same
- we would change an interface

I tried to find similar examples and noticed:
wizards/com/sun/star/wizards/letter/LetterDocument.py:84:                      
 xPageNumberField.setPropertyValue("SubType", CURRENT)

PageNumber.idl indicates:
[property] PageNumberType SubType;

and indeed, the line after in LetterDocument.py, shows:
xPageNumberField.NumberingType = ARABIC

since we got the declaration:
[property] short NumberingType;

Stephan: as Uno expert, thought you might have some ideas here?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191217/43611af9/attachment.htm>


More information about the Libreoffice-bugs mailing list