Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


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: users+unsubscribe@global.libreoffice.org
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

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.