Class for reading the DocInfo stream (=metadata) and setting it on a PD_Document. More...
#include <docinfo.h>
Public Member Functions | |
SDWDocInfo () | |
~SDWDocInfo () | |
Static Public Member Functions | |
static void | load (GsfInfile *aDoc, PD_Document *aPDDoc) noexcept(false) |
Loads the document info from a document, setting the metadata for abiword. |
Class for reading the DocInfo stream (=metadata) and setting it on a PD_Document.
ABI_W_NO_CONST_QUAL ABI_W_POP SDWDocInfo::SDWDocInfo | ( | ) |
SDWDocInfo::~SDWDocInfo | ( | ) |
void SDWDocInfo::load | ( | GsfInfile * | aDoc, | |
PD_Document * | aPDDoc | |||
) | [static] |
Loads the document info from a document, setting the metadata for abiword.
The stream that will be opened is named "SfxDocumentInfo".
aDoc | The OLE Document which contains the stream | |
aPDDoc | The PD_Document on which the metadata will be set. Should be called as load(mDoc, getDoc()); |
References CUSTOM_META_PREFIX, do_SetMetadata(), findConverter(), TimeStamp::load(), TimeStamp::mString, PD_META_KEY_CONTRIBUTOR, PD_META_KEY_CREATOR, PD_META_KEY_DATE, PD_META_KEY_DATE_LAST_CHANGED, PD_META_KEY_DESCRIPTION, PD_META_KEY_GENERATOR, PD_META_KEY_KEYWORDS, PD_META_KEY_SUBJECT, PD_META_KEY_TITLE, readByteString(), readPaddedByteString(), streamRead(), TimeStamp::ToString(), UT_DEBUGMSG, UT_iconv_isValid(), and UT_UCS4String::utf8_str().
Referenced by IE_Imp_StarOffice::_loadFile().