示例#1
0
    private void method_24()
    {
        StringCollection strings = new StringCollection();

        Class343.smethod_1(this.binaryReader_0, this.class703_0.class597_0.class1111_90, strings);
        Math.Min(strings.Count, this.listStyleCollection_0.Count);
    }
示例#2
0
 internal void method_0(BinaryWriter A_0)
 {
     Class813.smethod_2(this.method_3(), this.method_3().Length, A_0, true, false);
     Class813.smethod_2(this.method_4(), this.method_4().Length, A_0, true, false);
     Class343.smethod_5(A_0, this.method_5(), true);
     Class343.smethod_5(A_0, this.method_6(), true);
 }
示例#3
0
 internal Class538(BinaryReader A_0)
 {
     this.stringCollection_0 = new StringCollection();
     this.stringCollection_1 = new StringCollection();
     this.string_0           = Class813.smethod_1(A_0, true, false);
     this.string_1           = Class813.smethod_1(A_0, true, false);
     Class343.smethod_3(A_0, this.method_5());
     Class343.smethod_3(A_0, this.method_6());
 }
示例#4
0
 private void method_34()
 {
     if (base.method_5().class597_0.class1111_91.int_1 != 0)
     {
         StringCollection strings = new StringCollection();
         Class343.smethod_1(base.method_3(), base.method_5().class597_0.class1111_91, strings);
         this.document_0.Settings.int_29 = strings.Count;
     }
 }
示例#5
0
 internal void method_1(Class703 A_0, BinaryWriter A_1, int A_2)
 {
     A_0.class597_0.class1111_21.int_0 = (int)A_1.BaseStream.Position;
     A_0.class597_0.class1111_21.int_1 = Class343.smethod_4(A_1, this.stringCollection_0);
     A_0.class597_0.class1111_22.int_0 = (int)A_1.BaseStream.Position;
     A_0.class597_0.class1111_22.int_1 = this.method_10(A_1, A_2);
     A_0.class597_0.class1111_23.int_0 = (int)A_1.BaseStream.Position;
     A_0.class597_0.class1111_23.int_1 = this.method_11(A_1, A_2);
 }
示例#6
0
    private int method_25()
    {
        StringCollection strings = new StringCollection();

        for (int i = 0; i < this.listStyleCollection_0.Count; i++)
        {
            strings.Add(this.listStyleCollection_0[i].Name);
        }
        return(Class343.smethod_4(this.binaryWriter_0, strings));
    }
示例#7
0
 private void method_32()
 {
     if (base.method_5().class597_0.class1111_32.int_1 != 0)
     {
         StringCollection strings = new StringCollection();
         Class343.smethod_1(base.method_3(), base.method_5().class597_0.class1111_32, strings);
         this.document_0.Settings.string_0 = this.method_33(strings, TableAssociatedString.AssocDot);
         if (base.method_5().bool_7)
         {
             string password = this.method_33(strings, TableAssociatedString.WriteProtectionPassword);
             this.document_0.Protect(ProtectionType.NoProtection, password);
         }
     }
 }
示例#8
0
 internal Class996(Class703 A_0, BinaryReader A_1)
 {
     this.stringCollection_0 = new StringCollection();
     this.class147_0         = new Class147(0);
     this.class147_1         = new Class147(0);
     this.idictionary_0      = Class83.smethod_0();
     Class343.smethod_1(A_1, A_0.class597_0.class1111_21, this.stringCollection_0);
     A_1.BaseStream.Seek((long)A_0.class597_0.class1111_23.int_0, SeekOrigin.Begin);
     Class144.smethod_0(A_1, A_0.class597_0.class1111_23.int_1, 0, new Class997(this), BookmarkStart.b("眦䔨䠪䬬䴮娰弲", 1));
     A_1.BaseStream.Seek((long)A_0.class597_0.class1111_22.int_0, SeekOrigin.Begin);
     Class144.smethod_0(A_1, A_0.class597_0.class1111_22.int_1, 4, new Class998(this), BookmarkStart.b("眦䔨䠪䬬䴮娰唲", 1));
     this.class147_0.method_8(0x7fffffff);
     this.class147_1.method_8(0x7fffffff);
     this.method_0(A_0);
 }
示例#9
0
    internal static int smethod_5(BinaryWriter A_0, StringCollection A_1, bool A_2)
    {
        Class343 class2 = new Class343(A_1);

        return(class2.method_4(A_0, A_2));
    }
示例#10
0
 internal int method_0(BinaryWriter A_0)
 {
     return(Class343.smethod_4(A_0, this.stringCollection_0));
 }
示例#11
0
 internal Class812(Class703 A_0, BinaryReader A_1)
 {
     this.stringCollection_0 = new StringCollection();
     Class343.smethod_1(A_1, A_0.class597_0.class1111_51, this.stringCollection_0);
 }
示例#12
0
    private void method_1(Class1111 A_0)
    {
        int num  = A_0.int_0;
        int num2 = A_0.int_1;

        if (num2 != 0)
        {
            this.binaryReader_0.BaseStream.Position = num;
            int  num3  = num + num2;
            int  num4  = this.binaryReader_0.ReadInt16();
            bool flag  = (num4 & 2) != 0;
            bool flag2 = (num4 & 4) != 0;
            this.class460_0.method_28((MailMergeMainDocumentType)((num4 & 120) >> 3));
            this.class460_0.method_18((num4 & 0x400) == 0);
            this.class460_0.method_16((MailMergeDestination)((num4 & 0xe000) >> 13));
            int index = this.binaryReader_0.ReadByte();
            int num6  = this.binaryReader_0.ReadByte();
            this.class460_0.method_4(this.binaryReader_0.ReadInt32());
            Class1058[] classArray = new Class1058[] { new Class1058(this.binaryReader_0), new Class1058(this.binaryReader_0) };
            if (flag)
            {
                Class1058 class2 = classArray[num6];
                this.class460_0.method_14(class2.mailMergeDataType_0);
                this.class460_0.method_12(this.class342_0.method_5(class2.int_0));
                this.class460_0.method_22(class2.bool_0);
                if (this.class460_0.method_13() == MailMergeDataType.TextFile)
                {
                    this.class460_0.method_36(class2.mailMergeLegacySeparator_0);
                    this.class460_0.method_38(class2.mailMergeLegacySeparator_1);
                }
            }
            if (flag2)
            {
                Class1058 class3 = classArray[index];
                this.class460_0.method_20(this.class342_0.method_5(class3.int_0));
                if (this.class460_0.method_13() == MailMergeDataType.TextFile)
                {
                    this.class460_0.method_40(class3.mailMergeLegacySeparator_0);
                    this.class460_0.method_42(class3.mailMergeLegacySeparator_1);
                }
            }
            int num7 = this.binaryReader_0.ReadInt16();
            this.class460_0.method_34((num7 & 1) != 0);
            this.class460_0.method_8((MailMergeCheckErrors)(((num7 & 6) >> 1) + 1));
            bool flag3 = (num7 & 0x10) != 0;
            bool flag4 = (num7 & 0x80) != 0;
            this.class460_0.method_24(!flag3 && !flag4);
            int num8 = this.binaryReader_0.ReadInt16();
            int num9 = this.binaryReader_0.ReadInt16();
            this.class460_0.method_32(Class813.smethod_5(this.binaryReader_0, num9));
            if (num8 != 0)
            {
                StringCollection strings = new StringCollection();
                int num10 = num3 - ((int)this.binaryReader_0.BaseStream.Position);
                Class343.smethod_2(this.binaryReader_0, (int)this.binaryReader_0.BaseStream.Position, num10, strings);
                this.class460_0.method_10(strings[0]);
                string text1 = strings[1];
                this.class460_0.method_26(strings[2]);
                this.class460_0.method_6(strings[3]);
            }
            if (this.binaryReader_0.BaseStream.Position < num3)
            {
                int num11 = this.binaryReader_0.ReadInt32();
                this.class460_0.method_28((MailMergeMainDocumentType)num11);
            }
        }
    }
 public abstract void Visit(Class343 c);
 public override void Visit(Class343 c) { }
示例#15
0
    private int method_1(bool A_0)
    {
        int  position = (int)this.binaryWriter_0.BaseStream.Position;
        bool flag     = Class567.smethod_16(this.class460_0.method_11());
        bool flag2    = Class567.smethod_16(this.class460_0.method_19());
        int  num2     = 0;

        num2  = 1;
        num2  = 1 | (flag ? 2 : 0);
        num2 |= flag2 ? 4 : 0;
        num2 |= ((int)(this.class460_0.method_27() & 15)) << 3;
        num2 |= !this.class460_0.method_17() ? 0x400 : 0;
        num2 |= ((int)this.class460_0.method_15()) << 13;
        this.binaryWriter_0.Write((short)num2);
        this.binaryWriter_0.Write(flag2 ? ((byte)1) : ((byte)0));
        this.binaryWriter_0.Write((byte)0);
        this.binaryWriter_0.Write(this.class460_0.method_3());
        Class1058 class2 = new Class1058 {
            mailMergeDataType_0 = MailMergeDataType.None,
            int_0 = 0xfff3
        };

        if (flag)
        {
            class2.mailMergeDataType_0 = this.class460_0.method_13();
            class2.int_0  = this.class342_0.method_6(3, this.class460_0.method_11());
            class2.bool_0 = this.class460_0.method_21();
            if (class2.mailMergeDataType_0 == MailMergeDataType.TextFile)
            {
                class2.mailMergeLegacySeparator_0 = this.class460_0.method_35();
                class2.mailMergeLegacySeparator_1 = this.class460_0.method_37();
            }
        }
        class2.method_0(this.binaryWriter_0);
        Class1058 class3 = new Class1058 {
            mailMergeDataType_0 = MailMergeDataType.TextFile,
            int_0 = 0xfff3
        };

        if (flag2)
        {
            class3.mailMergeDataType_0 = this.class460_0.method_13();
            class3.int_0  = this.class342_0.method_6(3, this.class460_0.method_19());
            class3.bool_0 = this.class460_0.method_21();
            if (class3.mailMergeDataType_0 == MailMergeDataType.TextFile)
            {
                class3.mailMergeLegacySeparator_0 = this.class460_0.method_39();
                class3.mailMergeLegacySeparator_1 = this.class460_0.method_41();
            }
        }
        class3.method_0(this.binaryWriter_0);
        int num3 = 0;

        num3  = 0 | (this.class460_0.method_33() ? 1 : 0);
        num3 |= ((int)(this.class460_0.method_7() - 1)) << 1;
        num3 |= !this.class460_0.method_23() ? 0x80 : 0;
        this.binaryWriter_0.Write((short)num3);
        this.binaryWriter_0.Write((short)0x46a0);
        if (Class567.smethod_16(this.class460_0.method_31()))
        {
            string str = smethod_0(this.class460_0.method_31());
            this.binaryWriter_0.Write((short)Class813.smethod_11(str));
            Class813.smethod_8(str, this.binaryWriter_0);
        }
        else
        {
            this.binaryWriter_0.Write((short)0);
        }
        StringCollection strings = new StringCollection();

        strings.Add(this.class460_0.method_9());
        strings.Add("");
        strings.Add(this.class460_0.method_25());
        strings.Add(this.class460_0.method_5());
        if (A_0)
        {
            strings.Add("");
        }
        Class343.smethod_4(this.binaryWriter_0, strings);
        if (A_0)
        {
            this.binaryWriter_0.Write((int)this.class460_0.method_27());
        }
        return(((int)this.binaryWriter_0.BaseStream.Position) - position);
    }