Beispiel #1
0
        protected override int GetSize()
        {
            int size  = MsoHeader.Size();
            int count = Items.Count;

            for (int i = 0; i < count; i++)
            {
                size += ((MsoData)items[i]).Size;
            }
            return(size);
        }
Beispiel #2
0
        protected override int GetSize()
        {
            int size = MsoHeader.Size();

            for (int i = 0; i < values.Count; i++)
            {
                size += OptValue.Size();
                OptData item = (OptData)values[i];
            }
            return(size);
        }
Beispiel #3
0
        public override void Write(XlsStream stream)
        {
            uint size = Convert.ToUInt32(Size - MsoHeader.Size() + extSize);

            WriteMsoHeader(id, size, stream);
            int count = Items.Count;

            for (int i = 0; i < count; i++)
            {
                ((MsoData)items[i]).Write(stream);
            }
        }
Beispiel #4
0
 protected override int GetSize()
 {
     return(MsoSplitMenuColors.Size() + MsoHeader.Size());
 }
Beispiel #5
0
        public override void Write(XlsStream stream)
        {
            MsoBseRec rec = new MsoBseRec();

            rec.tag = 0x00FF;
            if (!isDummy)
            {
                rec.winType  = Picture.PictureType;
                rec.macType  = rec.winType;
                rec.size     = Convert.ToUInt32(Picture.Size + 25);
                rec.refCount = Convert.ToUInt32(Picture.RefCount);
                rec.Dummy    = 0x02E2;
                fInstance    = Convert.ToUInt16(rec.winType);
            }
            WriteMsoHeader(XlsConsts.MsoBse, Convert.ToUInt32(Picture.Size + XlsConsts.BLIP_Extra + DataSize + MsoHeader.Size()), stream);
            stream.Write(new Byte[1] {
                Convert.ToByte(rec.winType)
            }, 0, 1);
            stream.Write(new Byte[1] {
                Convert.ToByte(rec.macType)
            }, 0, 1);
            stream.Write(rec.checksum, 0, 16);
            stream.Write(rec.tag);
            stream.Write(rec.size);
            stream.Write(rec.refCount);
            stream.Write(rec.delOffset);
            stream.Write(rec.isTexture);
            stream.Write(rec.nameLen);
            stream.Write(rec.Dummy);
        }
Beispiel #6
0
 protected override int GetSize()
 {
     return(MsoBseRec.Size() + MsoHeader.Size());
 }
Beispiel #7
0
 protected override int GetSize()
 {
     return(picture.Size + XlsConsts.BLIP_Extra + MsoHeader.Size());
 }
Beispiel #8
0
 protected override int GetSize()
 {
     return(DataLength + MsoHeader.Size());
 }