This method iterates over each item of the Gallery theme
and updates it accordingly. Main purpose is to automatically
regenerate the thumbnails and to remove invalid items, that is items
who have got an URL that has become invalid. This method also
optimizes underlying data structures.
The URL of a graphic or media object, that should
be added to the collection
Parameter Index
The zero based index of the position where to insert
the new object inside the collection. If the index is larger than
or equal to the number of already inserted items, the
item is inserted at the end of the collection. If the index
is smaller than 0, the item is inserted at the beginning of
the collection.
Returns
The zero based position at which the object was inserted.
If the object could not be inserted, -1 is returned.
The ::com::sun::star::graphic::XGraphic object
that should be added to the collection
Parameter Index
The zero based index of the position where to insert
the new object inside the collection. If the index is larger than
or equal to the number of already inserted items, the
item is inserted at the end of the collection. If the index
is smaller than 0, the item is inserted at the beginning of
the collection.
Returns
The zero based position at which the object was inserted.
If the object could not be inserted, -1 is returned.
A drawing model that should be added to the collection
Parameter Index
The zero based index of the position where to insert
the new object inside the collection. If the index is larger than
or equal to the number of already inserted items, the
item is inserted at the end of the collection. If the index
is smaller than 0, the item is inserted at the beginning of
the collection.
Returns
The zero based position at which the object was inserted.
If the object could not be inserted, -1 is returned.