public StyleTextProp9Atom(BinaryReader _reader, uint size, uint typeCode, uint version, uint instance)
            : base(_reader, size, typeCode, version, instance)
        {
            while (this.Reader.BaseStream.Position < this.Reader.BaseStream.Length)
            {
                try
                {
                    var pr    = new ParagraphRun9();
                    var pmask = (ParagraphMask)this.Reader.ReadUInt32();
                    pr.mask = pmask;
                    if ((pmask & ParagraphMask.BulletBlip) != 0)
                    {
                        int bulletblipref = this.Reader.ReadInt16();
                        pr.bulletblipref = bulletblipref;
                    }
                    if ((pmask & ParagraphMask.BulletHasScheme) != 0)
                    {
                        pr.fBulletHasAutoNumber = this.Reader.ReadInt16();
                    }
                    if ((pmask & ParagraphMask.BulletScheme) != 0)
                    {
                        pr.bulletAutoNumberScheme = this.Reader.ReadInt16();
                        pr.startAt = this.Reader.ReadInt16(); //start value
                    }
                    this.P9Runs.Add(pr);

                    var cmask = (CharacterMask)this.Reader.ReadUInt32();
                    if ((cmask & CharacterMask.pp11ext) != 0)
                    {
                        var rest = this.Reader.ReadBytes(4);
                    }

                    this.si = new TextSIException(this.Reader);
                }
                catch (Exception)
                {
                    //ignore
                }
            }
        }
Exemplo n.º 2
0
 public TextSIRun(BinaryReader reader)
 {
     this.count = reader.ReadUInt32();
     this.si    = new TextSIException(reader);
 }
Exemplo n.º 3
0
 public TextSIExceptionAtom(BinaryReader _reader, uint size, uint typeCode, uint version, uint instance)
     : base(_reader, size, typeCode, version, instance)
 {
     this.si = new TextSIException(this.Reader);
 }