internal void Filter(StyleOwnerType ownerType, bool hasNoRows)
        {
            int ownerType2 = MapStyleOwnerTypeToIndex(ownerType, hasNoRows);

            for (int num = m_attributes.Count - 1; num >= 0; num--)
            {
                if (!Allow(MapStyleNameToIndex(m_attributes[num].Name), ownerType2))
                {
                    m_attributes.RemoveAt(num);
                }
            }
        }
        public void Filter(StyleOwnerType ownerType, bool hasNoRows)
        {
            int ownerType2 = this.MapStyleOwnerTypeToIndex(ownerType, hasNoRows);

            for (int num = this.m_attributes.Count - 1; num >= 0; num--)
            {
                if (!this.Allow(this.MapStyleNameToIndex(this.m_attributes[num].Name), ownerType2))
                {
                    this.m_attributes.RemoveAt(num);
                }
            }
        }
        private int MapStyleOwnerTypeToIndex(StyleOwnerType ownerType, bool hasNoRows)
        {
            if (hasNoRows)
            {
                return(0);
            }
            switch (ownerType)
            {
            case StyleOwnerType.PageSection:
                return(2);

            case StyleOwnerType.SubReport:
            case StyleOwnerType.Subtotal:
                return(0);

            default:
                return((int)ownerType);
            }
        }