Files
core/ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXPictureReader.h
Elen.Subbotina c026e2b9a4 codepage utf8
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62097 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-20 23:57:32 +03:00

39 lines
986 B
C++

#pragma once
#include "../RtfPicture.h"
#include "OOXPictureAnchorReader.h"
#include "OOXPictureInlineReader.h"
#include "../../../../Common/DocxFormat/Source/DocxFormat/Drawing/Drawing.h"
class OOXPictureReader
{
private:
OOX::Logic::CDrawing* m_ooxDrawing;
public:
OOXPictureReader(OOX::Logic::CDrawing* ooxDrawing)
{
m_ooxDrawing = ooxDrawing;
}
bool Parse( ReaderParameter oParam , RtfShape& oOutput)
{
if (m_ooxDrawing == NULL) return false;
//if( oParam.oReader->m_nCurItap != 0 )
// oOutput.m_bLayoutInCell = 1;
if (m_ooxDrawing->m_oInline.IsInit())
{
OOXPictureInlineReader oPictureInlineReader(m_ooxDrawing->m_oInline.GetPointer());
return oPictureInlineReader.Parse( oParam, oOutput );
}
if (m_ooxDrawing->m_oAnchor.IsInit())
{
OOXPictureAnchorReader oPictureAnchorReader(m_ooxDrawing->m_oAnchor.GetPointer());
return oPictureAnchorReader.Parse( oParam, oOutput );
}
return false;
}
};