Hi Ariel,

Could you please provide a C++ example of how to access
getDocumentProperties() method after the document has been loaded? In
other words, we cannot understand how to bridge between xComponent,
which we get after document is loaded and getDocumentProperties().


Thank you, 
Alona

-----Original Message-----
From: Ariel Constenla-Haile [mailto:[email protected]] 
Sent: Tuesday, October 25, 2011 10:20 AM
To: [email protected]
Subject: [users] Re: API to retrieve document metadata

Hi Alona,

On Mon, Oct 24, 2011 at 04:41:50PM -0400, Alona Rossen wrote:
> Please suggest OOo API to retrieve document metadata. For example, 
> metadata listed under File->Properties->Statistics in OpenOffice 
> (number of pages, paragraph count, word count, etc).

every document implements
com.sun.star.document.XDocumentPropertiesSupplier

http://api.openoffice.org/docs/common/ref/com/sun/star/document/XDocumen
tPropertiesSupplier.html

getDocumentProperties() returns an css.document.XDocumentProperties

http://api.openoffice.org/docs/common/ref/com/sun/star/document/XDocumen
tProperties.html

In OOo Basic:

Sub Main
    Dim oDoc as Object
    oDoc = ThisComponent
            
    Dim oDocProps as Object
    oDocProps = oDoc.getDocumentProperties() End Sub

Inspect oDocProps in the OOo Basic IDE.

Regards
--
Ariel Constenla-Haile
La Plata, Argentina
-- 
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help

Reply via email to