Re: [api-dev] Insert a Draw document into a gallery

2007-07-20 Thread Andrew Douglas Pitonyak
It is possible to add a Draw document to a gallery? I tried oTheme.insertDrawingByIndex(oDoc, 0), which looks like it should work based on the API, but it does not work. http://www.pitonyak.org/OOoGalleryImport.odt I traced things to this code in svx/source/unogallery/unogaltheme.cxx

[api-dev] Insert a Draw document into a gallery

2007-07-17 Thread Andrew Douglas Pitonyak
OOo has very little clipart. I was asked to write a macro that will create OOo clipart galleries from existing folders of clipart. I figured out how to insert links from a URL oTheme.insertURLByIndex(sURL, 0) I figured out how to insert the object as a graphic Dim oProvider