public bool SubtotalInInnerHeading(ref PivotHeading innerHeading, ref PivotHeading staticHeading) { this.SkipStaticHeading(ref innerHeading, ref staticHeading); if (innerHeading != null && innerHeading.Subtotal != null) { return(true); } return(false); }
public void CopyHeadingAggregates(PivotHeading heading) { if (heading != null) { heading.CopySubHeadingAggregates(); Pivot.CopyAggregates(heading.Aggregates, base.m_aggregates); Pivot.CopyAggregates(heading.PostSortAggregates, base.m_postSortAggregates); Pivot.CopyAggregates(heading.RecursiveAggregates, base.m_aggregates); } }
public void SkipStaticHeading(ref PivotHeading pivotHeading, ref PivotHeading staticHeading) { if (pivotHeading != null && pivotHeading.Grouping == null) { staticHeading = pivotHeading; pivotHeading = (PivotHeading)pivotHeading.InnerHierarchy; } else { staticHeading = null; } }
public PivotHeading GetInnerStaticHeading() { PivotHeading pivotHeading = null; Pivot pivot = (Pivot)base.m_dataRegionDef; pivotHeading = ((!this.m_isColumn) ? pivot.PivotStaticRows : pivot.PivotStaticColumns); if (pivotHeading != null && pivotHeading.Level > this.m_level) { return(pivotHeading); } return(null); }
public PivotHeading GetOuterHeading(int level) { PivotHeading pivotHeading = this.GetPivotHeading(true); PivotHeading pivotHeading2 = null; for (int i = 0; i <= level; i++) { this.SkipStaticHeading(ref pivotHeading, ref pivotHeading2); if (pivotHeading != null && i < level) { pivotHeading = (PivotHeading)pivotHeading.InnerHierarchy; } } return(pivotHeading); }
public Hashtable GetOuterScopeNames(int dynamicLevel) { Hashtable hashtable = new Hashtable(); PivotHeading pivotHeading = this.GetPivotHeading(true); int num = 0; while (num <= dynamicLevel && pivotHeading != null) { if (pivotHeading.Grouping != null) { hashtable.Add(pivotHeading.Grouping.Name, pivotHeading.Grouping); num++; } pivotHeading = (PivotHeading)pivotHeading.InnerHierarchy; } return(hashtable); }
public void GetHeadingDefState(out PivotHeading outermostColumn, out bool outermostColumnSubtotal, out PivotHeading staticColumn, out PivotHeading outermostRow, out bool outermostRowSubtotal, out PivotHeading staticRow) { outermostRowSubtotal = false; outermostColumnSubtotal = false; staticRow = null; outermostRow = this.PivotRows; outermostRowSubtotal = this.SubtotalInInnerHeading(ref outermostRow, ref staticRow); if (outermostRow == null) { outermostRowSubtotal = true; } staticColumn = null; outermostColumn = this.PivotColumns; outermostColumnSubtotal = this.SubtotalInInnerHeading(ref outermostColumn, ref staticColumn); if (outermostColumn == null) { outermostColumnSubtotal = true; } }