mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 06:22:44 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62097 954022d7-b5bf-4e40-9824-e11837661b57
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "../RtfDocument.h"
|
|
#include "OOXReader.h"
|
|
|
|
class OOXAppReader
|
|
{
|
|
private:
|
|
OOX::CApp *m_ooxApp;
|
|
public:
|
|
OOXAppReader(OOX::CApp *ooxApp)
|
|
{
|
|
m_ooxApp = ooxApp;
|
|
}
|
|
bool Parse( ReaderParameter oParam )
|
|
{
|
|
if (m_ooxApp == NULL) return false;
|
|
|
|
if(m_ooxApp->m_nTotalTime.IsInit())
|
|
{
|
|
oParam.oRtf->m_oInformation.m_nEndingTime = m_ooxApp->m_nTotalTime.get2();
|
|
}
|
|
if(m_ooxApp->m_nPages.IsInit())
|
|
{
|
|
oParam.oRtf->m_oInformation.m_nNumberOfPages = m_ooxApp->m_nPages.get2();
|
|
}
|
|
if(m_ooxApp->m_nWords.IsInit())
|
|
{
|
|
oParam.oRtf->m_oInformation.m_nNumberOfWords = m_ooxApp->m_nWords.get2();
|
|
}
|
|
if(m_ooxApp->m_nCharacters.IsInit())
|
|
{
|
|
oParam.oRtf->m_oInformation.m_nNumberOfCharactersWithoutSpace = m_ooxApp->m_nCharacters.get2();
|
|
}
|
|
if(m_ooxApp->m_nCharactersWithSpaces.IsInit())
|
|
{
|
|
oParam.oRtf->m_oInformation.m_nNumberOfCharactersWithSpace = m_ooxApp->m_nCharactersWithSpaces.get2();
|
|
}
|
|
if(m_ooxApp->m_sAppVersion.IsInit())
|
|
{
|
|
oParam.oRtf->m_oInformation.m_nVersion= Strings::ToInteger( m_ooxApp->m_sAppVersion.get2() );
|
|
}
|
|
|
|
return true;
|
|
}
|
|
};
|