예제 #1
0
파일: CommentShape.cs 프로젝트: ikvm/test
        protected void SaveIsVisibleOption(MsofbtOptRecord options)
        {
            FopteStructure property = new FopteStructure
            {
                Id        = (MsoOptions)959,
                UintValue = 131074,
                IsValid   = false,
                IsComplex = false
            };

            options.Add(property);
        }
예제 #2
0
        public override void Save(MsoContainerRecord spgrContainer, uint shapeId)
        {
            MsoContainerRecord item    = ImageRecordsFactory.CreateContainer(MsoType.SpContainer);
            MsofbtSpRecord     record2 = new MsofbtSpRecord {
                Parent   = spgrContainer,
                Instance = 1750
            };
            MsofbtOptRecord record3 = new MsofbtOptRecord();

            record2.ShapeId = shapeId;
            FopteStructure property = new FopteStructure();

            property = new FopteStructure {
                Id        = MsoOptions.LockAgainstSelect,
                UintValue = Convert.ToUInt32(true),
                IsValid   = true,
                IsComplex = false
            };
            record3.Add(property);
            property = new FopteStructure {
                Id        = MsoOptions.LockAdjustHandles,
                UintValue = Convert.ToUInt32(true),
                IsValid   = true,
                IsComplex = false
            };
            record3.Add(property);
            property = new FopteStructure {
                Id        = MsoOptions.LockAgainstGrouping,
                UintValue = Convert.ToUInt32(true),
                IsValid   = true,
                IsComplex = false
            };
            record3.Add(property);
            property = new FopteStructure {
                Id        = MsoOptions.BlipId,
                UintValue = (uint)base.Id,
                IsValid   = true,
                IsComplex = false
            };
            record3.Add(property);
            record3.Version  = 3;
            record3.Instance = 2;
            item.Add(record2);
            item.Add(record3);
            item.Add(base.GenerateClientAnchorRecord());
            spgrContainer.Add(item);
        }
예제 #3
0
파일: CommentShape.cs 프로젝트: ikvm/test
        public override void Save(MsoContainerRecord spgrContainer, uint shapeId)
        {
            MsoContainerRecord parent = ImageRecordsFactory.CreateContainer(MsoType.SpContainer);
            MsofbtSpRecord     item   = new MsofbtSpRecord
            {
                Parent = spgrContainer
            };
            MsofbtClientDataRecord record3 = new MsofbtClientDataRecord
            {
                Parent = parent
            };
            CmoObjSubRecord subRecord = null;
            ObjRecord       record5   = new ObjRecord();

            subRecord = new CmoObjSubRecord();
            record5.Add(subRecord);
            record3.Add(record5);
            subRecord.ID  = (ushort)shapeId;
            item.Version  = 2;
            item.Instance = 202;
            parent.Add(item);
            MsofbtOptRecord options = new MsofbtOptRecord
            {
                Parent = parent
            };

            this.SaveIsVisibleOption(options);
            parent.Add(options);
            base.Left   = (this.column + 1) * 64;
            base.Top    = this.row * 17;
            base.Right  = base.Left + 100;
            base.Bottom = base.Top + 100;
            parent.Add(base.GenerateClientAnchorRecord());
            parent.Add(record3);
            parent.Add(this.GenerateClientTextBox(parent));
            spgrContainer.Add(parent);
            this.SaveNote(subRecord.ID);
        }