Пример #1
0
        internal static DxfDictionary smethod_3(out string dictionaryName)
        {
            DxfDictionary dxfDictionary = new DxfDictionary();

            dictionaryName = "ACAD_COLOR";
            return(dxfDictionary);
        }
Пример #2
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfDictionary dxfDictionary = (DxfDictionary)from;

            this.bool_0 = dxfDictionary.bool_0;
            this.duplicateRecordCloning_0 = dxfDictionary.duplicateRecordCloning_0;
            foreach (DxfDictionaryEntry dxfDictionaryEntry1 in (ActiveList <IDictionaryEntry>)dxfDictionary.dxfDictionaryEntryCollection_0)
            {
                DxfDictionaryEntry dxfDictionaryEntry2 = (DxfDictionaryEntry)dxfDictionaryEntry1.Clone(cloneContext);
                if (dxfDictionaryEntry2.Value != null)
                {
                    dxfDictionaryEntry2.Dictionary = this;
                    dxfDictionaryEntry2.Value.vmethod_2((IDxfHandledObject)this);
                }
                cloneContext.ClonedDictionaryEntries.Add(dxfDictionaryEntry2);
                this.dxfDictionaryEntryCollection_0.Add((IDictionaryEntry)dxfDictionaryEntry2);
            }
            switch (dxfDictionary.Handle)
            {
            case 12:
            case 13:
            case 14:
            case 23:
            case 25:
            case 26:
                this.SetHandle(dxfDictionary.Handle);
                break;
            }
        }
Пример #3
0
        internal override void vmethod_3(DxfModel modelContext)
        {
            base.vmethod_3(modelContext);
            if (this.OwnerBlock == null)
            {
                this.OwnerBlock = DxfBlock.smethod_3(modelContext);
            }
            DxfDictionary dictionaryAcadLayout = modelContext.DictionaryAcadLayout;

            if (dictionaryAcadLayout == null)
            {
                return;
            }
            bool flag = false;

            foreach (IDictionaryEntry entry in (ActiveList <IDictionaryEntry>)dictionaryAcadLayout.Entries)
            {
                if (object.ReferenceEquals((object)this, (object)entry.Value))
                {
                    flag = true;
                    break;
                }
            }
            if (!flag)
            {
                dictionaryAcadLayout.Entries.Add((IDictionaryEntry) new DxfDictionaryEntry((DxfObject)this));
            }
            if (this.OwnerObjectSoftReference == dictionaryAcadLayout)
            {
                return;
            }
            this.vmethod_2((IDxfHandledObject)dictionaryAcadLayout);
        }
Пример #4
0
        internal static DxfDictionary smethod_13(
            bool useFixedHandles,
            out string dictionaryName)
        {
            DxfDictionary dxfDictionary = new DxfDictionary();

            dictionaryName = "ACAD_VISUALSTYLE";
            return(dxfDictionary);
        }
Пример #5
0
        internal static DxfDictionary smethod_12(
            bool useFixedHandles,
            out string dictionaryName)
        {
            DxfDictionary dxfDictionary = new DxfDictionary();

            dictionaryName = "AcDbVariableDictionary";
            return(dxfDictionary);
        }
Пример #6
0
        internal static DxfDictionary smethod_7(
            bool useFixedHandles,
            out string dictionaryName)
        {
            DxfDictionary dxfDictionary = new DxfDictionary();

            dictionaryName = "ACAD_MATERIAL";
            return(dxfDictionary);
        }
Пример #7
0
        internal static DxfDictionary smethod_5(
            bool useFixedHandles,
            out string dictionaryName)
        {
            DxfDictionary dxfDictionary = new DxfDictionary();

            dictionaryName = "ACAD_IMAGE_DICT";
            return(dxfDictionary);
        }
Пример #8
0
        internal static DxfDictionary smethod_2(bool useFixedHandles)
        {
            DxfDictionary dxfDictionary = new DxfDictionary();

            if (useFixedHandles)
            {
                dxfDictionary.SetHandle(12UL);
            }
            return(dxfDictionary);
        }
Пример #9
0
        internal static DxfDictionary smethod_11(
            bool useFixedHandles,
            out string dictionaryName)
        {
            DxfDictionary dxfDictionary = new DxfDictionary();

            if (useFixedHandles)
            {
                dxfDictionary.SetHandle(25UL);
            }
            dictionaryName = "ACAD_PLOTSETTINGS";
            return(dxfDictionary);
        }
Пример #10
0
        internal static DxfDictionary smethod_9(
            bool useFixedHandles,
            out string dictionaryName)
        {
            DxfDictionary dxfDictionary = new DxfDictionary();

            if (useFixedHandles)
            {
                dxfDictionary.SetHandle(23UL);
            }
            dictionaryName = "ACAD_MLINESTYLE";
            return(dxfDictionary);
        }
Пример #11
0
        internal static DxfDictionary smethod_6(
            bool useFixedHandles,
            out string dictionaryName)
        {
            DxfDictionary dxfDictionary = new DxfDictionary();

            if (useFixedHandles)
            {
                dxfDictionary.SetHandle(26UL);
            }
            dictionaryName = "ACAD_LAYOUT";
            return(dxfDictionary);
        }
Пример #12
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfDictionary dictionary = (DxfDictionary)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dictionary == null)
            {
                dictionary = new DxfDictionary(false);
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dictionary);
                dictionary.CopyFrom((DxfHandledObject)this, cloneContext);
                cloneContext.CloneBuilders.Add((ICloneBuilder) new DxfDictionary.Class753(dictionary));
            }
            return((IGraphCloneable)dictionary);
        }
Пример #13
0
        internal override void vmethod_1(Class1070 context)
        {
            base.vmethod_1(context);
            int num = 101;

            for (int index = 3; index < this.dxfTableCellStyleCollection_0.Count; ++index)
            {
                this.dxfTableCellStyleCollection_0[index].Id = num++;
            }
            if (this.Model.Header.AcadVersion >= DxfVersion.Dxf21 && context.FileFormat != FileFormat.Dxf)
            {
                DxfDictionary extensionDictionary = this.ExtensionDictionary;
                if (extensionDictionary == null)
                {
                    return;
                }
                for (int index = extensionDictionary.Entries.Count - 1; index >= 0; --index)
                {
                    if (extensionDictionary.Entries[index].Value is DxfCellStyleMap)
                    {
                        extensionDictionary.Entries.RemoveAt(index);
                    }
                }
            }
            else
            {
                this.Model.method_31((DxfObject)this);
                DxfCellStyleMap dxfCellStyleMap = this.method_17();
                if (dxfCellStyleMap == null)
                {
                    if (this.ExtensionDictionary == null)
                    {
                        this.ExtensionDictionary = new DxfDictionary();
                    }
                    dxfCellStyleMap = new DxfCellStyleMap();
                    this.ExtensionDictionary.Entries.Add((IDictionaryEntry) new DxfDictionaryEntry((DxfObject)dxfCellStyleMap)
                    {
                        ValueReferenceIsHard = true
                    });
                }
                dxfCellStyleMap.CellStyles.Clear();
                foreach (DxfTableCellStyle dxfTableCellStyle in (Collection <DxfTableCellStyle>) this.dxfTableCellStyleCollection_0)
                {
                    dxfCellStyleMap.CellStyles.Add(dxfTableCellStyle);
                }
            }
        }
Пример #14
0
        internal DxfCellStyleMap method_17()
        {
            DxfCellStyleMap dxfCellStyleMap     = (DxfCellStyleMap)null;
            DxfDictionary   extensionDictionary = this.ExtensionDictionary;

            if (extensionDictionary != null)
            {
                foreach (IDictionaryEntry entry in (ActiveList <IDictionaryEntry>)extensionDictionary.Entries)
                {
                    dxfCellStyleMap = entry.Value as DxfCellStyleMap;
                    if (dxfCellStyleMap != null)
                    {
                        break;
                    }
                }
            }
            return(dxfCellStyleMap);
        }
Пример #15
0
        internal override void vmethod_4(DxfModel modelContext)
        {
            base.vmethod_4(modelContext);
            DxfDictionary dictionaryAcadLayout = modelContext.DictionaryAcadLayout;

            if (dictionaryAcadLayout != null)
            {
                dictionaryAcadLayout.Entries.RemoveAll(this.Name);
                this.vmethod_2((IDxfHandledObject)null);
            }
            if (this.OwnerBlock != null)
            {
                this.OwnerBlock.Layout = (DxfLayout)null;
                modelContext.AnonymousBlocks.Remove(this.OwnerBlock);
            }
            if (modelContext.ActiveLayout != this)
            {
                return;
            }
            modelContext.ActiveLayout = (DxfLayout)null;
        }
Пример #16
0
 public Class753(DxfDictionary dictionary)
 {
     this.dxfDictionary_0 = dictionary;
 }