Re: MIME type of current document

2013-02-08 Thread Kai Labusch
Hi, we think that we found a solution for this problem. So far, it works with the documents we tested. Let textDocument be the current document that has been obtained from the model. String getFileFormat(XTextDocument textDocument) { try { final Object objTypeDetection =

Re: MIME type of current document

2013-01-09 Thread Alexandro Colorado
On Wed, Dec 19, 2012 at 8:04 AM, Robert Barbey wrote: > Hi everyone, > > is it possible to get the kind of document currently opened in Writer via > the API? Ideally, this would be a MIME type kind of thing. > > Thank you very much! > > Best, > Robert Do you mean to say what kind of document is

Re: MIME type of current document

2013-01-09 Thread Ariel Constenla-Haile
On Wed, Jan 09, 2013 at 05:10:25PM +0100, Jürgen Schmidt wrote: > thanks Ariel, I was looking for DociumentProperties and the deprecated > DocumentInfo. I've thought about the MediaDescriptor as well but of > course did not looked in the code in detail but only the API. > > getArgs() a self explai

Re: MIME type of current document

2013-01-09 Thread Ariel Constenla-Haile
On Wed, Jan 09, 2013 at 11:59:09AM -0300, Ariel Constenla-Haile wrote: > Hi * > > On Wed, Jan 9, 2013 at 11:40 AM, Jürgen Schmidt wrote: > > On 12/19/12 3:04 PM, Robert Barbey wrote: > >> Hi everyone, > >> > >> is it possible to get the kind of document currently opened in Writer via > >> the AP

Re: MIME type of current document

2013-01-09 Thread Jürgen Schmidt
On 1/9/13 3:59 PM, Ariel Constenla-Haile wrote: > Hi * > > On Wed, Jan 9, 2013 at 11:40 AM, Jürgen Schmidt wrote: >> On 12/19/12 3:04 PM, Robert Barbey wrote: >>> Hi everyone, >>> >>> is it possible to get the kind of document currently opened in Writer via >>> the API? Ideally, this would be a

Re: MIME type of current document

2013-01-09 Thread Ariel Constenla-Haile
Hi * On Wed, Jan 9, 2013 at 11:40 AM, Jürgen Schmidt wrote: > On 12/19/12 3:04 PM, Robert Barbey wrote: >> Hi everyone, >> >> is it possible to get the kind of document currently opened in Writer via >> the API? Ideally, this would be a MIME type kind of thing. >> > > sorry for answering so late

Re: MIME type of current document

2013-01-09 Thread Jürgen Schmidt
On 12/19/12 3:04 PM, Robert Barbey wrote: > Hi everyone, > > is it possible to get the kind of document currently opened in Writer via the > API? Ideally, this would be a MIME type kind of thing. > sorry for answering so late but I forget it and stumbled over this now again. But the bad news i

MIME type of current document

2012-12-19 Thread Robert Barbey
Hi everyone, is it possible to get the kind of document currently opened in Writer via the API? Ideally, this would be a MIME type kind of thing. Thank you very much! Best, Robert