main/shell/source/all/ooofilereader/metainforeader.cxx
//------------------------------
// save the received content into structure.
//------------------------------
save the received content into structure.
save the received content into structure .
void CMetaInfoReader::saveTagContent( const std::wstring& tag_name )
{
	ITag* pTagBuilder;
	if ( tag_name == META_INFO_KEYWORDS )
        pTagBuilder = m_pKeywords_Builder;
	else if ( tag_name == META_INFO_KEYWORD )
	{
		m_AllMetaInfo[META_INFO_KEYWORDS].first =m_pKeywords_Builder->getTagContent( );
		return;
	}
	else if (( tag_name == META_INFO_TITLE )||( tag_name == META_INFO_AUTHOR )||( tag_name == META_INFO_SUBJECT )||( tag_name == META_INFO_DESCRIPTION )||
		( tag_name == META_INFO_DOCUMENT_STATISTIC )||( tag_name == META_INFO_GENERATOR )||( tag_name == META_INFO_CREATION )||( tag_name == META_INFO_CREATOR )||
		( tag_name == META_INFO_MODIFIED )||( tag_name == META_INFO_LANGUAGE )||( tag_name == META_INFO_DOCUMENT_NUMBER )||( tag_name == META_INFO_EDITING_TIME ) )
        pTagBuilder = m_pSimple_Builder;
	else
        pTagBuilder = m_pDummy_Builder;
	m_AllMetaInfo[tag_name].first =pTagBuilder->getTagContent( );
}
void CMetaInfoReader :: saveTagContent ( const std :: wstring & tag_name ) { ITag * pTagBuilder ; if ( tag_name == META_INFO_KEYWORDS ) pTagBuilder = m_pKeywords_Builder ; else if ( tag_name == META_INFO_KEYWORD ) { m_AllMetaInfo [ META_INFO_KEYWORDS ] . first = m_pKeywords_Builder -> getTagContent ( ) ; return ; } else if ( ( tag_name == META_INFO_TITLE ) || ( tag_name == META_INFO_AUTHOR ) || ( tag_name == META_INFO_SUBJECT ) || ( tag_name == META_INFO_DESCRIPTION ) || ( tag_name == META_INFO_DOCUMENT_STATISTIC ) || ( tag_name == META_INFO_GENERATOR ) || ( tag_name == META_INFO_CREATION ) || ( tag_name == META_INFO_CREATOR ) || ( tag_name == META_INFO_MODIFIED ) || ( tag_name == META_INFO_LANGUAGE ) || ( tag_name == META_INFO_DOCUMENT_NUMBER ) || ( tag_name == META_INFO_EDITING_TIME ) ) pTagBuilder = m_pSimple_Builder ; else pTagBuilder = m_pDummy_Builder ; m_AllMetaInfo [ tag_name ] . first = pTagBuilder -> getTagContent ( ) ; }
save the received content into structure.
save the received content into structure .
// added for support for OASIS xml file format.