для update c brunch/Docx2DoctConverter

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@61913 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
Elen.Subbotina
2015-04-07 13:36:53 +00:00
committed by Alexander Trofimov
parent b94effbd4f
commit 90cf06377c
10630 changed files with 0 additions and 3382152 deletions

View File

@ -1,53 +0,0 @@
#include "stdafx.h"
#include "ParagraphPropertyExceptions.h"
namespace DocFileFormat
{
ParagraphPropertyExceptions::ParagraphPropertyExceptions( byte* bytes, int size, IStream* dataStream ):
PropertyExceptions( ( bytes + 2 ), ( size - 2 ) )
{
if ( size != 0 )
{
this->istd = FormatUtils::BytesToUInt16( bytes, 0, size );
}
VirtualStreamReader *reader = NULL;
//There is a SPRM that points to an offset in the data stream,
//where a list of SPRM is saved.
for ( list<SinglePropertyModifier>::iterator iter = this->grpprl->begin(); iter != this->grpprl->end(); iter++ )
{
SinglePropertyModifier sprm( *iter );
if( ( sprm.OpCode == sprmPHugePapx ) || ( (int)sprm.OpCode == 0x6646 ) )
{
unsigned int fc = FormatUtils::BytesToUInt32( sprm.Arguments, 0, sprm.argumentsSize );
reader = new VirtualStreamReader( dataStream, (int)fc );
//parse the size of the external grpprl
byte* sizebytes = reader->ReadBytes( 2, true );
unsigned int grpprlsize = FormatUtils::BytesToUInt16( sizebytes, 0, 2 );
RELEASEARRAYOBJECTS( sizebytes );
//parse the external grpprl
byte* grpprlBytes = reader->ReadBytes( grpprlsize, true );
PropertyExceptions externalPx( grpprlBytes, grpprlsize );
//assign the external grpprl
RELEASEOBJECT( this->grpprl );
this->grpprl = new list<SinglePropertyModifier>( *(externalPx.grpprl) );
//remove the sprmPHugePapx
this->grpprl->remove( sprm );
RELEASEARRAYOBJECTS( grpprlBytes );
RELEASEOBJECT( reader )
break;
}
}
}
}