> Instead of adding explicit get/set methods to PD_Document for each new one, 
> why not do a slightly more abstract API as follows:
> 
>   pDoc->setMetadata(key, val)
>   val = pDoc->getMetadata(key)

You mean like the existing functions:

        void setMetaDataProp ( const UT_String & key,
                               const UT_String & value ) ;

        bool getMetaDataProp ( const UT_String & key,
                               UT_String & outProp ) const ;

        UT_StringPtrMap & getMetaData () { return m_metaDataMap ; }

I'll implement your #define idea in 5 minutes.

Dom

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to