private static Field smethod_7(string A_0, Document A_1) { int num = 12; Field field = null; string str = A_0.Trim(); FieldType type = Class819.smethod_2(str); FieldType type2 = type; if (type2 <= FieldType.FieldMergeField) { if (type2 != FieldType.FieldIf) { if (type2 != FieldType.FieldMergeField) { goto Label_005C; } field = new MergeField(A_1); } else { field = new IfField(A_1); } goto Label_0113; } switch (type2) { case FieldType.FieldFormTextInput: case FieldType.FieldFormCheckBox: case FieldType.FieldFormDropDown: { string str2 = str.ToUpper(); if (str2 != null) { if ((str2 == BookmarkStart.b("昱焳渵氷猹爻渽ᔿᙁ", num)) || (str2 == BookmarkStart.b("琱笳搵男渹礻昽ᐿ", num))) { field = new TextFormField(A_1); } else if ((str2 == BookmarkStart.b("瘱瀳稵焷椹栻", num)) || (str2 == BookmarkStart.b("琱笳搵男縹渻焽ဿفୃᅅه", num))) { field = new DropDownFormField(A_1); } else if ((str2 == BookmarkStart.b("焱簳猵笷焹縻焽ᠿ", num)) || (str2 == BookmarkStart.b("琱笳搵男礹琻笽̿ुكॅ၇", num))) { field = new CheckBoxFormField(A_1); } } (field as FormField).HasFFData = false; goto Label_0113; } } Label_005C: field = new Field(A_1); Label_0113: field.Code = field.Code + A_0; if (!(field is FormField)) { field.Type = type; } return(field); }
private static Field smethod_1(string A_0, Document A_1) { int num = 9; Field field = null; string str = A_0.Trim(); FieldType type = Class819.smethod_2(str); FieldType type2 = type; if (type2 <= FieldType.FieldMergeField) { if (type2 != FieldType.FieldIf) { if (type2 != FieldType.FieldMergeField) { goto Label_005C; } field = new MergeField(A_1); } else { field = new IfField(A_1); } goto Label_0113; } switch (type2) { case FieldType.FieldFormTextInput: case FieldType.FieldFormCheckBox: case FieldType.FieldFormDropDown: { string str2 = str.ToUpper(); if (str2 != null) { if ((str2 == BookmarkStart.b("笮琰欲愴縶眸欺格款", num)) || (str2 == BookmarkStart.b("椮縰愲破挶簸挺椼", num))) { field = new TextFormField(A_1); } else if ((str2 == BookmarkStart.b("欮田缲簴搶洸", num)) || (str2 == BookmarkStart.b("椮縰愲破猶欸琺洼笾เᑂୄ", num))) { field = new DropDownFormField(A_1); } else if ((str2 == BookmarkStart.b("氮礰瘲瘴簶笸琺攼", num)) || (str2 == BookmarkStart.b("椮縰愲破琶焸縺縼琾̀ూᵄ", num))) { field = new CheckBoxFormField(A_1); } } (field as FormField).HasFFData = false; goto Label_0113; } } Label_005C: field = new Field(A_1); Label_0113: field.Code = field.Code + A_0; if (!(field is FormField)) { field.Type = type; } return(field); }
public FieldType method_6() { if ((this.list_0.Count > 0) && (this.list_0[0].ToString().Length > 0)) { this.fieldType_0 = Class819.smethod_2(this.list_0[0].ToString()); } return(this.fieldType_0); }
private static Field smethod_3(string A_0, Document A_1) { Field field = null; FieldType type = Class819.smethod_2(A_0.Trim()); FieldType type2 = type; if (type2 <= FieldType.FieldMergeField) { if (type2 != FieldType.FieldIf) { if (type2 != FieldType.FieldMergeField) { goto Label_004A; } field = new MergeField(A_1); } else { field = new IfField(A_1); } goto Label_0051; } switch (type2) { case FieldType.FieldFormTextInput: case FieldType.FieldFormCheckBox: case FieldType.FieldFormDropDown: goto Label_0051; } Label_004A: field = new Field(A_1); Label_0051: field.Code = field.Code + A_0; if (!(field is FormField)) { field.Type = type; } return(field); }
private void imethod_17(CharacterFormat A_0, bool A_1, bool A_2) { Field field = this.stack_0.Peek() as Field; if (field.IsRuby) { Class2 class2 = new Class2(this.documentObject_0.Document); class2.method_60(field.Code); if ((this.documentObject_0.LastChild is Field) && (this.documentObject_0.LastChild as Field).IsRuby) { this.documentObject_0.method_20(this.documentObject_0.LastChild); } this.documentObject_0.method_13(class2); class2.ApplyCharacterFormat(A_0); this.stack_0.Pop(); } else { field.IsLocked = A_1; field.IsDirty = A_2; FieldType type = Class819.smethod_2(field.Code); if (type != FieldType.FieldUnknown) { field.Type = type; } if (((field.Type == FieldType.FieldNumPages) || (field.Type == FieldType.FieldPage)) && ((this.documentObject_0.ChildObjects.Count > 0) && (this.documentObject_0.LastChild == field))) { this.class764_0.method_43().imethod_16(A_0, null); TextRange range = new TextRange(this.documentObject_0.Document) { Text = string.Empty }; range.ApplyCharacterFormat(field.CharacterFormat); this.documentObject_0.method_13(range); } if (field.Type != FieldType.FieldMergeField) { FieldMark mark = new FieldMark(this.document_0, A_0, FieldMarkType.FieldEnd); this.documentObject_0.method_13(mark); field.End = mark; } field.UpdateFieldCode(field.Code); if ((field.Type == FieldType.FieldDate) || (field.Type == FieldType.FieldTime)) { field.method_49(); } this.stack_0.Pop(); this.fieldCharType_0 = FieldCharType.End; Class454 class3 = null; if (((field.Type == FieldType.FieldEmbed) || (field.Type == FieldType.FieldLink)) && (this.stack_2.Count > 0)) { if (this.stack_1.Count > 0) { class3 = this.stack_1.Pop(); } this.method_6(field, class3); } if (field.Type == FieldType.FieldShape) { this.method_5(field); } } }