internal void method_11() { if (this.dxfTableCellStyle_3 == null) { this.dxfTableCellStyle_3 = new DxfTableCellStyle(); this.dxfTableCellStyle_3.Id = 3; this.dxfTableCellStyle_3.Name = "_DATA"; this.dxfTableCellStyleCollection_0.Insert(0, this.dxfTableCellStyle_3); } if (this.dxfTableCellStyle_1 == null) { this.dxfTableCellStyle_1 = new DxfTableCellStyle(); this.dxfTableCellStyle_1.Id = 1; this.dxfTableCellStyle_1.Name = "_TITLE"; this.dxfTableCellStyle_1.MergeFlags = TableCellStylePropertyFlags.MergeCellsOnCreation; this.dxfTableCellStyleCollection_0.Insert(1, this.dxfTableCellStyle_1); } if (this.dxfTableCellStyle_2 != null) { return; } this.dxfTableCellStyle_2 = new DxfTableCellStyle(); this.dxfTableCellStyle_2.Id = 2; this.dxfTableCellStyle_2.Name = "_HEADER"; this.dxfTableCellStyleCollection_0.Insert(2, this.dxfTableCellStyle_2); }
public void CopyFrom(DxfTableCellStyle from, CloneContext cloneContext) { this.CopyFrom((DxfContentFormat)from, cloneContext); this.string_0 = from.string_0; this.color_1 = from.color_1; this.int_0 = from.int_0; this.cellType_0 = from.cellType_0; this.tableCellStylePropertyFlags_2 = from.tableCellStylePropertyFlags_2; this.bool_0 = from.bool_0; this.double_3 = from.double_3; this.double_4 = from.double_4; this.dxfTableBorder_0.CopyFrom(from.dxfTableBorder_0, cloneContext); this.dxfTableBorder_1.CopyFrom(from.dxfTableBorder_1, cloneContext); this.dxfTableBorder_2.CopyFrom(from.dxfTableBorder_2, cloneContext); this.dxfTableBorder_3.CopyFrom(from.dxfTableBorder_3, cloneContext); this.dxfTableBorder_4.CopyFrom(from.dxfTableBorder_4, cloneContext); this.dxfTableBorder_5.CopyFrom(from.dxfTableBorder_5, cloneContext); this.enum22_0 = from.enum22_0; this.tableCellStylePropertyFlags_3 = from.tableCellStylePropertyFlags_3; this.tableCellContentLayoutFlags_0 = from.tableCellContentLayoutFlags_0; this.short_1 = from.short_1; this.double_5 = from.double_5; this.double_6 = from.double_6; this.double_7 = from.double_7; this.double_8 = from.double_8; }
private void method_13(object sender, int index, DxfTableCellStyle item) { if (item == null) { return; } item.vmethod_1(this); this.method_15(item); }
public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfFormattedTableData formattedTableData = (DxfFormattedTableData)from; this.dxfTableCellStyle_0 = (DxfTableCellStyle)cloneContext.Clone((IGraphCloneable)formattedTableData.dxfTableCellStyle_0); foreach (DxfTableCellRange dxfTableCellRange in (List <DxfTableCellRange>)formattedTableData.dxfTableCellRangeCollection_0) { this.dxfTableCellRangeCollection_0.Add(dxfTableCellRange.Clone()); } }
public override IGraphCloneable Clone(CloneContext cloneContext) { DxfTableCellStyle dxfTableCellStyle = (DxfTableCellStyle)cloneContext.GetExistingClone((IGraphCloneable)this); if (dxfTableCellStyle == null) { dxfTableCellStyle = new DxfTableCellStyle(); cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfTableCellStyle); dxfTableCellStyle.CopyFrom(this, cloneContext); } return((IGraphCloneable)dxfTableCellStyle); }
private void method_14(object sender, int index, DxfTableCellStyle item) { if (item == null) { return; } DxfModel model = this.Model; if (model != null) { item.vmethod_0(model, this); } this.method_16(item); }
public void ScaleMe(DxfTableCellStyle cellStyle, double scaleFactor, CommandGroup undoGroup) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfContentFormat.Class548 class548 = new DxfContentFormat.Class548(); // ISSUE: reference to a compiler-generated field class548.dxfContentFormat_0 = this; if (scaleFactor == 1.0) { return; } // ISSUE: reference to a compiler-generated field class548.double_0 = this.double_0; // ISSUE: reference to a compiler-generated field class548.bool_0 = this.OverrideTextHeight; // ISSUE: reference to a compiler-generated field class548.double_1 = this.double_2; // ISSUE: reference to a compiler-generated field class548.bool_1 = this.OverrideBlockScale; if (!this.OverrideTextHeight && cellStyle != null) { this.double_0 = cellStyle.TextHeight * scaleFactor; // ISSUE: reference to a compiler-generated field this.OverrideTextHeight = this.double_0 != class548.double_0; this.double_2 = cellStyle.BlockScale * scaleFactor; // ISSUE: reference to a compiler-generated field this.OverrideBlockScale = this.double_2 != class548.double_1; } else { this.double_0 *= scaleFactor; this.double_2 *= scaleFactor; } if (undoGroup == null) { return; } // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method // ISSUE: reference to a compiler-generated method undoGroup.UndoStack.Push((ICommand) new Command((object)this, new System.Action(new DxfContentFormat.Class549() { class548_0 = class548, double_0 = this.double_0, bool_0 = this.OverrideTextHeight, double_1 = this.double_2, bool_1 = this.OverrideBlockScale }.method_0), new System.Action(class548.method_0))); }
public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); this.method_17()?.CellStyles.Clear(); DxfTableStyle dxfTableStyle = (DxfTableStyle)from; this.string_1 = dxfTableStyle.string_1; this.tableFlowDirection_0 = dxfTableStyle.tableFlowDirection_0; this.ushort_0 = dxfTableStyle.ushort_0; this.bool_0 = dxfTableStyle.bool_0; this.bool_1 = dxfTableStyle.bool_1; this.dxfTableCellStyle_0 = (DxfTableCellStyle)dxfTableStyle.dxfTableCellStyle_0.Clone(cloneContext); foreach (DxfContentFormat dxfContentFormat in (Collection <DxfTableCellStyle>)dxfTableStyle.dxfTableCellStyleCollection_0) { this.dxfTableCellStyleCollection_0.Add((DxfTableCellStyle)dxfContentFormat.Clone(cloneContext)); } }
private void method_16(DxfTableCellStyle cellStyle) { if (cellStyle.Name == "_DATA") { this.dxfTableCellStyle_3 = cellStyle; } else if (cellStyle.Name == "_HEADER") { this.dxfTableCellStyle_2 = cellStyle; } else { if (!(cellStyle.Name == "_TITLE")) { return; } this.dxfTableCellStyle_1 = cellStyle; } }
private void method_15(DxfTableCellStyle cellStyle) { if (this.dxfTableCellStyle_3 == cellStyle) { this.dxfTableCellStyle_3 = (DxfTableCellStyle)null; } else if (this.dxfTableCellStyle_2 == cellStyle) { this.dxfTableCellStyle_2 = (DxfTableCellStyle)null; } else { if (this.dxfTableCellStyle_1 != cellStyle) { return; } this.dxfTableCellStyle_1 = (DxfTableCellStyle)null; } }
private void method_12( object sender, int index, DxfTableCellStyle oldItem, DxfTableCellStyle newItem) { if (oldItem != null) { oldItem.vmethod_1(this); this.method_15(oldItem); } if (newItem == null) { return; } DxfModel model = this.Model; if (model != null) { newItem.vmethod_0(model, this); } this.method_16(newItem); }
internal void method_10(DxfTableCellStyle cellStyle) { this.dxfTableCellStyle_1 = cellStyle; }
internal void method_9(DxfTableCellStyle cellStyle) { this.dxfTableCellStyle_2 = cellStyle; }