[GSOC] how to fetch document/templates properties

Miklos Vajna vmiklos at suse.cz
Wed Jun 20 00:58:34 PDT 2012


Hi Rafael,

On Wed, Jun 20, 2012 at 12:24:51AM -0430, Rafael Dominguez <venccsralph at gmail.com> wrote:
> Im trying to fetch document properties like author, creation date,
> application that created it, etc, from a document or template stored in the
> filesystem that arent loaded, to get the templates from the filesystem im
> using this class
> http://opengrok.libreoffice.org/xref/core/sfx2/inc/sfx2/doctempl.hxx, is it
> posible to extend it to get what i need???
> 
> I also found that theres a uno component to do that for loaded documents
> call XDocumentProperties
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/document/XDocumentProperties.html,
> is it possible to use that one??? or theres another alternative???

Yes, XDocumentProperties sounds good. If you need usage examples,
RtfExport::WriteInfo() (sw/source/filter/ww8/rtfexport.cxx:400) and
RTFDocumentImpl::popState()
(writerfilter/source/rtftok/rtfdocumentimpl.cxx:3240) comes to my mind.

Miklos


More information about the LibreOffice mailing list