From: Dom Lachowicz (doml@appligent.com)
Date: Tue May 14 2002 - 11:57:04 EDT
> 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
This archive was generated by hypermail 2.1.4 : Tue May 14 2002 - 12:01:17 EDT