Ejemplo n.º 1
0
        internal void method_26(Spire.Doc.Documents.ListType A_0)
        {
            int num = 3;

            this.Levels.method_7();
            base.Document.CreateListLevelImpl(this);
            if (A_0 == Spire.Doc.Documents.ListType.Bulleted)
            {
                for (float i = 0.5f; i < 4.5f; i += 1.5f)
                {
                    this.Levels.method_5(ListLevel.smethod_3((float)((int)(72f * i)), BookmarkStart.b("默", num), this));
                    this.Levels.method_5(ListLevel.smethod_3((float)((int)(72.0 * (i + 0.5))), BookmarkStart.b("䘨", num), this));
                    this.Levels.method_5(ListLevel.smethod_3((float)((int)(72f * (i + 1f))), BookmarkStart.b("軘", num), this));
                }
            }
            else
            {
                int num3 = 0;
                for (float j = 0.5f; j < 4.5f; j += 1.5f)
                {
                    this.Levels.method_5(ListLevel.smethod_4((int)(72f * j), num3++, ListPatternType.Arabic, ListNumberAlignment.Left, this));
                    this.Levels.method_5(ListLevel.smethod_4((int)(72.0 * (j + 0.5)), num3++, ListPatternType.LowLetter, ListNumberAlignment.Right, this));
                    this.Levels.method_5(ListLevel.smethod_4((int)(72f * (j + 1f)), num3++, ListPatternType.LowRoman, ListNumberAlignment.Left, this));
                }
            }
        }
Ejemplo n.º 2
0
        internal static ListLevel smethod_4(int A_0, int A_1, ListPatternType A_2, ListNumberAlignment A_3, ListStyle A_4)
        {
            ListLevel level = A_4.Document.CreateListLevelImpl(A_4);

            level.int_6                             = 1;
            level.listPatternType_0                 = A_2;
            level.listNumberAlignment_0             = A_3;
            level.NumberPrefix                      = string.Empty;
            level.NumberSufix                       = BookmarkStart.b("ᠵ", 0x10);
            level.paragraphFormat_0.LeftIndent      = A_0 + 18f;
            level.paragraphFormat_0.FirstLineIndent = -18f;
            level.characterFormat_0.FontName        = BookmarkStart.b("戵儷圹夻䴽怿ు⅃ㅅ桇ᡉ⍋⍍ㅏ㱑", 0x10);
            return(level);
        }
Ejemplo n.º 3
0
        protected override object CloneImpl()
        {
            ListLevel level = (ListLevel)base.CloneImpl();

            level.characterFormat_0 = new Spire.Doc.Formatting.CharacterFormat(base.Document);
            level.paragraphFormat_0 = new Spire.Doc.Formatting.ParagraphFormat(base.Document);
            level.paragraphFormat_0.ImportContainer(this.ParagraphFormat);
            level.characterFormat_0.ImportContainer(this.CharacterFormat);
            if (this.PicBullet != null)
            {
                level.PicBullet = this.docPicture_0.Clone() as DocPicture;
            }
            level.byte_1 = new byte[this.byte_1.Length];
            this.byte_1.CopyTo(level.byte_1, 0);
            return(level);
        }
Ejemplo n.º 4
0
 internal override void Close()
 {
     base.Close();
     if ((this.listLevelCollection_0 != null) && (this.listLevelCollection_0.Count != 0))
     {
         int       count = this.listLevelCollection_0.Count;
         ListLevel level = null;
         for (int i = 0; i < count; i++)
         {
             level = this.listLevelCollection_0[i];
             level.method_16();
             level = null;
         }
     }
     else
     {
         this.listLevelCollection_0 = null;
     }
 }
Ejemplo n.º 5
0
        internal static ListLevel smethod_3(float A_0, string A_1, ListStyle A_2)
        {
            int       num   = 10;
            ListLevel level = A_2.Document.CreateListLevelImpl(A_2);

            level.int_6             = 1;
            level.listPatternType_0 = ListPatternType.Bullet;
            string str  = BookmarkStart.b("搯嬱夳匵䬷ᨹ爻嬽㜿扁ᙃ⥅╇⭉≋", 10);
            string str2 = A_1;

            if (str2 != null)
            {
                if (str2 != BookmarkStart.b("蟟", num))
                {
                    if (!(str2 == BookmarkStart.b("弯", num)))
                    {
                        if (str2 == BookmarkStart.b("韟", num))
                        {
                            str = BookmarkStart.b("术嬱娳儵尷匹刻夽㌿", num);
                        }
                    }
                    else
                    {
                        str = BookmarkStart.b("猯崱䄳䐵儷弹主ḽ฿❁㍃", num);
                    }
                }
                else
                {
                    str = BookmarkStart.b("振䬱夳吵圷嘹", num);
                }
            }
            level.characterFormat_0.FontName        = str;
            level.paragraphFormat_0.LeftIndent      = A_0 + 18f;
            level.paragraphFormat_0.FirstLineIndent = -18f;
            level.string_24 = A_1;
            return(level);
        }