Thanks for your answers.

The API is indeed correct. My OpenOffice document was actually correct too.
The problems lies in the test library I use that doesn't properly checks
collections.


On Tue, Aug 25, 2009 at 3:19 AM, Bernard Marcelly <[email protected]
> wrote:

> Hi Oscar,
>
> Message de Oscar Picasso  date 2009-08-25 00:01 :
>
>> Hi,
>>
>> I did install OpenOffice 3.1.0 and now some tests that used to pass with
>> 3.0.1 don't pass anymore.
>> The tests try to retrieve the bookmarks in a document. It uses the Java
>> API:
>>
>>        // accessing the Bookmarks collection of the document
>>
>>>        final XBookmarksSupplier supplier = (XBookmarksSupplier)
>>> UnoRuntime
>>>                .queryInterface(XBookmarksSupplier.class, getComponent());
>>>        final XNameAccess bookmarks = supplier.getBookmarks();
>>>        final String[] names = bookmarks.getElementNames();
>>>       ...
>>>
>>
>>
>> The names array is now emply which was not the case before.
>>
>>
> I can't see any problem with Bookmarks on 3.1.0, in Basic. So the API is
> still correct. Check that your document has bookmarks !
>
> Regards
>  Bernard
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to