Hi Diego,

You of course also have the gengal.exe program, as located in the OpenOffice.org installation directory.

Best

Per

Per Eriksson skrev 2010-01-08 22:08:
Hi Diego,

This is a stream created in C++, as told by Kai Ahrens.

I think it is here somewhere in the source code:

svx\source\gallery2\codec.cxx

Some parts of the code:


void GalleryCodec::Write( SvStream& rStmToWrite )
{
    UINT32 nPos, nCompSize;

    rStmToWrite.Seek( STREAM_SEEK_TO_END );
    const UINT32 nSize = rStmToWrite.Tell();
    rStmToWrite.Seek( 0UL );

    rStm << 'S' << 'V' << 'R' << 'L' << 'E' << '2';
    rStm << nSize;

    nPos = rStm.Tell();
    rStm.SeekRel( 4UL );

    ZCodec aCodec;
    aCodec.BeginCompression();
    aCodec.Compress( rStmToWrite, rStm );
    aCodec.EndCompression();

    nCompSize = rStm.Tell() - nPos - 4UL;
    rStm.Seek( nPos );
    rStm << nCompSize;
    rStm.Seek( STREAM_SEEK_TO_END );
}

Download the code and see the details in there.

Best Regards

Per Eriksson


Diego wrote:
> Could you help me?
>
> I am creating myself extension gallery with my images, but I don“t know as
> creating the archives '.sdg', '.sdv', '.thm' . It's stays into folder
> 'gallery'.
> What software do you use to create these archives? How generate these
> archives?
>
> See example:
> - http://extensions.services.openoffice.org/project/GalleryDangerSigns



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to