Hello Jurgen, Yes I have debugged the calls. FIrst, the ucb tries to queryContent for the object name specified through the save dialog. Then, if it fails. It obtains the parent content. Then Issues a "transfer" command. But, the only information it provides is a TransferInfo object. WHich just contains the SourceURL. I'm creating a ucb instance to obtain the content stream from that url.
On Tue, Sep 10, 2013 at 8:47 PM, Jürgen Schmidt <jogischm...@gmail.com>wrote: > On 9/10/13 5:08 PM, Rajath Shashidhara wrote: > > Hello, > > > > When I create a new Document and save it from dialog on a cmis > repository, > > I need the media type of the file. > > > > In the back end what happens is, when a new document is created in > > OpenOffice, it is stored in a temp file on the harddisk. > > So, when I save it from the save dialog on a cmis repository through my > > ucp, I receive a "transfer" ucb call. So, When I have to create a new > file > > of CMIS server, I need the mime type of the file. So, the the > > "getPropertyValues" to file ucp with the property as "MediaType" returns > me > > null. > > > > So, any idea how I have to go about this? > > Because, the file can be saved in different formats from saveas dialog, I > > assusme the stream encoding for different formats will be different. So, > > this would cause errors later, if I don't supply the correct mimetype. > > > > I believe the property should be provided with the transfer call or in > this context. Have you debug all calls to the UCB in the context of the > save command, it's more than one call ... > > Juergen > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org > For additional commands, e-mail: dev-h...@openoffice.apache.org > > -- Rajath S, M.Sc(Hons.) Physics, B.E.(Hons.) Computer Science Birla Institute of Technology and Science - Pilani, Pilani