示例#1
0
        protected override object GetDefValue(int key)
        {
            int        num    = 1;
            ListFormat format = ((this.OwnerParagraph == null) || (this.OwnerParagraph.ParaStyle == null)) ? null : this.OwnerParagraph.ParaStyle.ListFormat;

            if ((((format != null) && (format != this)) && ((format.CurrentListStyle != null) && (format.CurrentListLevel != null))) && (this.OwnerParagraph.ParaStyle.StyleId == format.CurrentListLevel.ParaStyleName))
            {
                return(format[key]);
            }
            switch (key)
            {
            case 0:
                return(0);

            case 1:
                return(Spire.Doc.Documents.ListType.NoList);

            case 2:
            case 6:
                return(string.Empty);

            case 3:
                return(false);

            case 4:
            case 7:
                return(null);

            case 5:
                return(-1);
            }
            throw new ArgumentException(BookmarkStart.b("䰦䰨刪ബ䜮倰䀲ᔴ帶圸䴺尼匾⡀❂敄ㅆ⡈❊㡌⩎", num));
        }
 internal override void Close()
 {
     base.Close();
     if (base.m_ParaPr != null)
     {
         base.m_ParaPr.Close();
         base.m_ParaPr = null;
     }
     if (this.m_listFormat != null)
     {
         this.m_listFormat.Close();
         this.m_listFormat = null;
     }
 }
示例#3
0
        private object method_29(int A_0)
        {
            object obj2 = this.BaseFormat[A_0];

            if ((((this is CharacterFormat) && ((this as CharacterFormat).TableStyleCharacterFormat != null)) && !(obj2 is bool)) || ((this is ParagraphFormat) && ((this as ParagraphFormat).TableStyleParagraphFormat != null)))
            {
                FormatBase baseFormat = this.BaseFormat;
                int        fullKey    = this.GetFullKey(A_0);
                while (!baseFormat.PropertiesHash.ContainsKey(fullKey))
                {
                    if (baseFormat.BaseFormat == null)
                    {
                        if (this is CharacterFormat)
                        {
                            return((this as CharacterFormat).TableStyleCharacterFormat[A_0]);
                        }
                        return((this as ParagraphFormat).TableStyleParagraphFormat[A_0]);
                    }
                    baseFormat = baseFormat.BaseFormat;
                }
            }
            if ((this is ParagraphFormat) && (((A_0 == 0x488) || (A_0 == 0x492)) || ((A_0 == 0x44) || (A_0 == 70))))
            {
                ListFormat listFormat = null;
                if ((this as ParagraphFormat).OwnerBase is Paragraph)
                {
                    listFormat = ((this as ParagraphFormat).OwnerBase as Paragraph).ListFormat;
                }
                else if ((this as ParagraphFormat).OwnerBase is ParagraphStyle)
                {
                    listFormat = ((this as ParagraphFormat).OwnerBase as ParagraphStyle).ListFormat;
                }
                if ((listFormat != null) && listFormat.IsEmptyList)
                {
                    return(null);
                }
            }
            return(obj2);
        }