Пример #1
0
        public FrtFontList(IStreamReader reader, RecordType id, ushort length)
            : base(reader, id, length)
        {
            // assert that the correct record type is instantiated
            Debug.Assert(this.Id == ID);

            // initialize class members from stream
            this.frtHeaderOld = new FrtHeaderOld(reader);
            this.verExcel     = reader.ReadByte();

            // skip reserved byte
            reader.ReadByte();

            this.cFont = reader.ReadUInt16();

            if (this.cFont > 0)
            {
                this.rgFontInfo = new FontInfo[this.cFont];

                for (int i = 0; i < this.cFont; i++)
                {
                    this.rgFontInfo[i] = new FontInfo(reader);
                }
            }

            // assert that the correct number of bytes has been read from the stream
            Debug.Assert(this.Offset + this.Length == this.Reader.BaseStream.Position);
        }
Пример #2
0
        public FrtWrapper(IStreamReader reader, RecordType id, UInt16 length)
            : base(reader, id, length)
        {
            this.frtHeaderOld = new FrtHeaderOld(reader);

            this.wrappedRecord = BiffRecord.ReadRecord(reader);

            // skip padding bytes
            this.Reader.BaseStream.Position = this.Offset + this.Length;
        }
Пример #3
0
        public EndBlock(IStreamReader reader, RecordType id, ushort length)
            : base(reader, id, length)
        {
            // assert that the correct record type is instantiated
            Debug.Assert(this.Id == ID);

            // initialize class members from stream
            this.frtHeaderOld = new FrtHeaderOld(reader);
            this.iObjectKind  = (ObjectKind)reader.ReadUInt16();

            reader.ReadBytes(6);

            // assert that the correct number of bytes has been read from the stream
            Debug.Assert(this.Offset + this.Length == this.Reader.BaseStream.Position);
        }
Пример #4
0
        public StartObject(IStreamReader reader, RecordType id, UInt16 length)
            : base(reader, id, length)
        {
            // assert that the correct record type is instantiated
            Debug.Assert(this.Id == ID);

            // initialize class members from stream
            this.frtHeaderOld     = new FrtHeaderOld(reader);
            this.iObjectKind      = reader.ReadUInt16();
            this.iObjectContext   = reader.ReadUInt16();
            this.iObjectInstance1 = reader.ReadUInt16();
            this.iObjectInstance2 = reader.ReadUInt16();

            // assert that the correct number of bytes has been read from the stream
            Debug.Assert(this.Offset + this.Length == this.Reader.BaseStream.Position);
        }
Пример #5
0
        public YMult(IStreamReader reader, RecordType id, ushort length)
            : base(reader, id, length)
        {
            // assert that the correct record type is instantiated
            Debug.Assert(this.Id == ID);

            // initialize class members from stream
            this.frtHeaderOld       = new FrtHeaderOld(reader);
            this.axmid              = (AxisMultiplier)reader.ReadInt16();
            this.numLabelMultiplier = reader.ReadDouble();

            ushort flags = reader.ReadUInt16();

            this.fAutoShowMultiplier = Utils.BitmaskToBool(flags, 0x0002);
            this.fBeingEdited        = Utils.BitmaskToBool(flags, 0x0004);

            // assert that the correct number of bytes has been read from the stream
            Debug.Assert(this.Offset + this.Length == this.Reader.BaseStream.Position);
        }
Пример #6
0
        public ChartFrtInfo(IStreamReader reader, RecordType id, ushort length)
            : base(reader, id, length)
        {
            // assert that the correct record type is instantiated
            Debug.Assert(this.Id == ID);

            // initialize class members from stream
            this.frtHeaderOld  = new FrtHeaderOld(reader);
            this.verOriginator = (OriginatorVersion)reader.ReadByte();
            this.verWriter     = (WriterVersion)reader.ReadByte();
            this.cCFRTID       = reader.ReadUInt16();
            this.rgCFRTID      = new CFrtId[this.cCFRTID];
            for (int i = 0; i < this.cCFRTID; i++)
            {
                this.rgCFRTID[i] = new CFrtId(reader);
            }

            // assert that the correct number of bytes has been read from the stream
            Debug.Assert(this.Offset + this.Length == this.Reader.BaseStream.Position);
        }