Hello, I'm having a problem with the docs. E.g. there's a method
"gotoRange" that takes "XTextRange" type. So, I need to find a method
in the class of opened document that returns that type. Well, easy:
>>> type(file)
<class 'pyuno'>
And… there isn't documentation for the class "pyuno". That's just the
name of the API itself! The problem is even deeper, just look at the
example:
>>> type(file)
<class 'pyuno'>
>>> file.getBookmarks()
pyuno object
(com.sun.star.container.XNameAccess)0x1141318{implementationName=SwXBookmarks,
supportedServices={com.sun.star.text.Bookmarks},
supportedInterfaces={com.sun.star.container.XNameAccess,com.sun.star.container.XIndexAccess,com.sun.star.lang.XServiceInfo,com.sun.star.lang.XTypeProvider,com.sun.star.uno.XWeak}}
>>> type(cursor)
<class 'pyuno'>
>>> cursor.getBookmarks()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: getBookmarks
Huh, what? I couldn't call the same method of two objects of the single class?!
So, how am I supposed to work with documentation? I am totally
confused, the only solution I see is seeking for a working examples —
but how then these peoples found docs?
--
To unsubscribe e-mail to: [email protected]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted