internal override void UpdateRenderReportItem(Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem) { base.UpdateRenderReportItem(renderReportItem); if (renderReportItem != null) { m_categories = null; m_series = null; m_memberCellDefinitionIndex = 0; } else { if (m_categories != null) { m_categories.ResetContext(); } if (m_series != null) { m_series.ResetContext(); } } m_chartAreas = null; m_titles = null; m_customPaletteColors = null; m_legends = null; m_borderSkin = null; }
internal override void UpdateRenderReportItem(Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem) { if (m_style != null) { m_style.UpdateStyleCache(renderReportItem); } }
internal TablixCornerCell(Tablix owner, int rowIndex, int colIndex, Microsoft.ReportingServices.ReportRendering.ReportItem cornerReportItem) { m_owner = owner; m_rowIndex = rowIndex; m_columnIndex = colIndex; m_cornerReportItem = cornerReportItem; }
internal virtual void UpdateRenderReportItem(Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem) { if (m_textRunCollection != null && m_textRunCollection[0] != null) { m_textRunCollection[0].UpdateRenderReportItem(renderReportItem); } }
internal TablixCornerRow(Tablix owner, int rowIndex, Microsoft.ReportingServices.ReportRendering.ReportItem cornerDef) { m_owner = owner; m_rowIndex = rowIndex; m_cornerDef = cornerDef; m_cellROMDefs = new TablixCornerCell[m_owner.Rows]; }
internal ReportElement(IDefinitionPath parentDefinitionPath, Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem, RenderingContext renderingContext) { m_parentDefinitionPath = parentDefinitionPath; m_renderReportItem = renderReportItem; m_renderingContext = renderingContext; m_isOldSnapshot = true; }
internal void ResetCellContents() { m_renderReportItem = null; if (m_instance != null) { m_instance.SetNewContext(); } }
private void OnDemandUpdateCellContents() { if (m_cacheRenderReportItem == null && m_cellContents != null) { m_cacheRenderReportItem = ((ShimMatrixMember)m_tablixMember).CurrentRenderMatrixMember.ReportItem; m_cellContents.UpdateRenderReportItem(m_cacheRenderReportItem); } }
internal override void UpdateRenderReportItem(Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem) { base.UpdateRenderReportItem(renderReportItem); if (m_actionInfo != null) { m_actionInfo.Update(((Microsoft.ReportingServices.ReportRendering.Image)m_renderReportItem).ActionInfo); } }
internal override void UpdateRenderReportItem(Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem) { base.UpdateRenderReportItem(renderReportItem); m_renderRectangle = (Microsoft.ReportingServices.ReportRendering.Rectangle)renderReportItem; if (m_reportItems != null && renderReportItem is Microsoft.ReportingServices.ReportRendering.Rectangle) { m_reportItems.UpdateRenderReportItem(m_renderRectangle.ReportItemCollection); } }
internal CellContents(IDefinitionPath ownerPath, bool inSubtotal, Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem, int rowSpan, int colSpan, RenderingContext renderingContext) { m_rowSpan = rowSpan; m_colSpan = colSpan; m_ownerPath = ownerPath; m_isOldSnapshot = true; m_inSubtotal = inSubtotal; m_renderReportItem = renderReportItem; m_renderingContext = renderingContext; }
internal void UpdateRenderReportItem(Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem) { if (renderReportItem != null) { m_renderReportItem = renderReportItem; } if (m_reportItem != null) { m_reportItem.UpdateRenderReportItem(m_renderReportItem); } }
internal override void UpdateRenderReportItem(Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem) { base.UpdateRenderReportItem(renderReportItem); m_renderTextBox = (Microsoft.ReportingServices.ReportRendering.TextBox)m_renderReportItem; if (m_actionInfo != null) { m_actionInfo.Update(m_renderTextBox.ActionInfo); } if (m_paragraphCollection != null && m_paragraphCollection[0] != null) { m_paragraphCollection[0].UpdateRenderReportItem(renderReportItem); } }
internal override void UpdateRenderReportItem(Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem) { base.UpdateRenderReportItem(renderReportItem); if (renderReportItem != null) { m_altReportItem = null; m_data = null; return; } if (m_data != null && m_data.DataColumnHierarchy != null) { m_data.DataColumnHierarchy.ResetContext(); } if (m_data != null && m_data.DataRowHierarchy != null) { m_data.DataRowHierarchy.ResetContext(); } }
internal void SetCellContents(TableCell renderCellContents) { if (renderCellContents != null) { m_renderCellContents = renderCellContents; if (renderCellContents.ReportItem != null) { m_renderReportItem = renderCellContents.ReportItem; } } if (m_instance != null) { m_instance.SetNewContext(); } if (m_cellContents != null) { m_cellContents.UpdateRenderReportItem(renderCellContents?.ReportItem); } }
internal virtual void UpdateRenderReportItem(Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem) { if (!m_isOldSnapshot) { throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidOperation); } SetNewContext(); if (renderReportItem != null) { m_renderReportItem = renderReportItem; if (m_customProperties != null) { m_customProperties.UpdateCustomProperties(renderReportItem.CustomProperties); } if (m_style != null && !m_isListContentsRectangle) { m_style.UpdateStyleCache(renderReportItem); } } }
internal override void UpdateRenderReportItem(Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem) { base.UpdateRenderReportItem(renderReportItem); if (renderReportItem != null) { m_matrixRowDefinitionMapping = null; m_matrixColDefinitionMapping = null; if (Type.Matrix == m_snapshotDataRegionType && m_corner != null) { m_corner.ResetContext(); } if (m_rows != null) { m_rows.ResetContext(clearCache: true); } if (m_columns != null) { m_columns.ResetContext(clearCache: true); } } else { if (Type.Matrix == m_snapshotDataRegionType && m_corner != null) { m_corner.ResetContext(); } if (m_rows != null) { m_rows.ResetContext(clearCache: false); } if (m_columns != null) { m_columns.ResetContext(clearCache: false); } } }
internal DataRegion(IDefinitionPath parentDefinitionPath, int indexIntoParentCollectionDef, bool inSubtotal, Microsoft.ReportingServices.ReportRendering.ReportItem renderDataRegion, RenderingContext renderingContext) : base(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, renderDataRegion, renderingContext) { }
internal static ReportItem CreateItem(string uniqueName, Microsoft.ReportingServices.ReportProcessing.ReportItem reportItemDef, ReportItemInstance reportItemInstance, RenderingContext renderingContext, NonComputedUniqueNames nonComputedUniqueNames) { if (reportItemDef == null) { return(null); } Global.Tracer.Assert(renderingContext != null); ReportItem reportItem = null; int intUniqueName = 0; NonComputedUniqueNames[] childrenNonComputedUniqueNames = null; if (reportItemInstance != null) { intUniqueName = reportItemInstance.UniqueName; } else if (nonComputedUniqueNames != null) { intUniqueName = nonComputedUniqueNames.UniqueName; childrenNonComputedUniqueNames = nonComputedUniqueNames.ChildrenUniqueNames; } if (reportItemDef is Microsoft.ReportingServices.ReportProcessing.Line) { Microsoft.ReportingServices.ReportProcessing.Line reportItemDef2 = (Microsoft.ReportingServices.ReportProcessing.Line)reportItemDef; LineInstance reportItemInstance2 = (LineInstance)reportItemInstance; reportItem = new Line(uniqueName, intUniqueName, reportItemDef2, reportItemInstance2, renderingContext); } else if (reportItemDef is Microsoft.ReportingServices.ReportProcessing.CheckBox) { Microsoft.ReportingServices.ReportProcessing.CheckBox reportItemDef3 = (Microsoft.ReportingServices.ReportProcessing.CheckBox)reportItemDef; CheckBoxInstance reportItemInstance3 = (CheckBoxInstance)reportItemInstance; reportItem = new CheckBox(uniqueName, intUniqueName, reportItemDef3, reportItemInstance3, renderingContext); } else if (reportItemDef is Microsoft.ReportingServices.ReportProcessing.Image) { Microsoft.ReportingServices.ReportProcessing.Image reportItemDef4 = (Microsoft.ReportingServices.ReportProcessing.Image)reportItemDef; ImageInstance reportItemInstance4 = (ImageInstance)reportItemInstance; reportItem = new Image(uniqueName, intUniqueName, reportItemDef4, reportItemInstance4, renderingContext); } else if (reportItemDef is Microsoft.ReportingServices.ReportProcessing.TextBox) { Microsoft.ReportingServices.ReportProcessing.TextBox reportItemDef5 = (Microsoft.ReportingServices.ReportProcessing.TextBox)reportItemDef; TextBoxInstance reportItemInstance5 = (TextBoxInstance)reportItemInstance; reportItem = new TextBox(uniqueName, intUniqueName, reportItemDef5, reportItemInstance5, renderingContext); } else if (reportItemDef is Microsoft.ReportingServices.ReportProcessing.Rectangle) { Microsoft.ReportingServices.ReportProcessing.Rectangle reportItemDef6 = (Microsoft.ReportingServices.ReportProcessing.Rectangle)reportItemDef; RectangleInstance reportItemInstance6 = (RectangleInstance)reportItemInstance; reportItem = new Rectangle(uniqueName, intUniqueName, reportItemDef6, reportItemInstance6, renderingContext, childrenNonComputedUniqueNames); } else if (reportItemDef is Microsoft.ReportingServices.ReportProcessing.ActiveXControl) { Microsoft.ReportingServices.ReportProcessing.ActiveXControl reportItemDef7 = (Microsoft.ReportingServices.ReportProcessing.ActiveXControl)reportItemDef; ActiveXControlInstance reportItemInstance7 = (ActiveXControlInstance)reportItemInstance; reportItem = new ActiveXControl(uniqueName, intUniqueName, reportItemDef7, reportItemInstance7, renderingContext); } else if (reportItemDef is Microsoft.ReportingServices.ReportProcessing.SubReport) { Microsoft.ReportingServices.ReportProcessing.SubReport subReport = (Microsoft.ReportingServices.ReportProcessing.SubReport)reportItemDef; SubReportInstance subReportInstance = (SubReportInstance)reportItemInstance; bool processedWithError = false; Report innerReport; if (Microsoft.ReportingServices.ReportProcessing.SubReport.Status.Retrieved != subReport.RetrievalStatus) { innerReport = null; processedWithError = true; } else { if (subReport.ReportContext == null && renderingContext.CurrentReportContext != null) { subReport.ReportContext = renderingContext.CurrentReportContext.GetSubreportContext(subReport.ReportPath); } ICatalogItemContext reportContext = subReport.ReportContext; RenderingContext renderingContext2 = new RenderingContext(renderingContext, subReport.Uri, subReport.Report.EmbeddedImages, subReport.Report.ImageStreamNames, reportContext); if (subReportInstance == null) { innerReport = new Report(subReport.Report, null, renderingContext2, subReport.ReportName, subReport.Description, null); } else if (subReportInstance.ReportInstance == null) { processedWithError = true; innerReport = new Report(subReport.Report, null, renderingContext2, subReport.ReportName, subReport.Description, null); } else { innerReport = new Report(subReport.Report, subReportInstance.ReportInstance, renderingContext2, subReport.ReportName, subReport.Description, null); } } reportItem = new SubReport(intUniqueName, subReport, subReportInstance, renderingContext, innerReport, processedWithError); } else if (reportItemDef is Microsoft.ReportingServices.ReportProcessing.List) { Microsoft.ReportingServices.ReportProcessing.List reportItemDef8 = (Microsoft.ReportingServices.ReportProcessing.List)reportItemDef; ListInstance reportItemInstance8 = (ListInstance)reportItemInstance; reportItem = new List(intUniqueName, reportItemDef8, reportItemInstance8, renderingContext); } else if (reportItemDef is Microsoft.ReportingServices.ReportProcessing.Matrix) { Microsoft.ReportingServices.ReportProcessing.Matrix reportItemDef9 = (Microsoft.ReportingServices.ReportProcessing.Matrix)reportItemDef; MatrixInstance reportItemInstance9 = (MatrixInstance)reportItemInstance; reportItem = new Matrix(intUniqueName, reportItemDef9, reportItemInstance9, renderingContext); } else if (reportItemDef is Microsoft.ReportingServices.ReportProcessing.Table) { Microsoft.ReportingServices.ReportProcessing.Table reportItemDef10 = (Microsoft.ReportingServices.ReportProcessing.Table)reportItemDef; TableInstance reportItemInstance10 = (TableInstance)reportItemInstance; reportItem = new Table(intUniqueName, reportItemDef10, reportItemInstance10, renderingContext); } else if (reportItemDef is Microsoft.ReportingServices.ReportProcessing.OWCChart) { Microsoft.ReportingServices.ReportProcessing.OWCChart reportItemDef11 = (Microsoft.ReportingServices.ReportProcessing.OWCChart)reportItemDef; OWCChartInstance reportItemInstance11 = (OWCChartInstance)reportItemInstance; reportItem = new OWCChart(intUniqueName, reportItemDef11, reportItemInstance11, renderingContext); } else if (reportItemDef is Microsoft.ReportingServices.ReportProcessing.Chart) { Microsoft.ReportingServices.ReportProcessing.Chart reportItemDef12 = (Microsoft.ReportingServices.ReportProcessing.Chart)reportItemDef; ChartInstance reportItemInstance12 = (ChartInstance)reportItemInstance; reportItem = new Chart(intUniqueName, reportItemDef12, reportItemInstance12, renderingContext); } else if (reportItemDef is Microsoft.ReportingServices.ReportProcessing.CustomReportItem) { Microsoft.ReportingServices.ReportProcessing.CustomReportItem reportItemDef13 = (Microsoft.ReportingServices.ReportProcessing.CustomReportItem)reportItemDef; CustomReportItemInstance reportItemInstance13 = (CustomReportItemInstance)reportItemInstance; reportItem = new CustomReportItem(uniqueName, intUniqueName, reportItemDef13, reportItemInstance13, renderingContext, childrenNonComputedUniqueNames); if (!renderingContext.NativeAllCRITypes && (renderingContext.NativeCRITypes == null || !renderingContext.NativeCRITypes.ContainsKey(((CustomReportItem)reportItem).Type))) { reportItem = ((CustomReportItem)reportItem).AltReportItem; } } return(reportItem); }
internal virtual void UpdateRenderReportItem(Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem) { }
internal void ResetCellContents() { m_cacheRenderReportItem = null; }
internal void UpdateRenderReportItem(Microsoft.ReportingServices.ReportRendering.ReportItem cornerDef) { m_cornerDef = cornerDef; }
internal override void UpdateRenderReportItem(Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem) { base.UpdateRenderReportItem(renderReportItem); SetNewContext(); }
internal ReportItem(IDefinitionPath parentDefinitionPath, int indexIntoParentCollectionDef, bool inSubtotal, Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem, RenderingContext renderingContext) : base(parentDefinitionPath, renderReportItem, renderingContext) { m_definitionPath = DefinitionPathConstants.GetCollectionDefinitionPath(parentDefinitionPath, indexIntoParentCollectionDef); m_inSubtotal = inSubtotal; }
internal ShimMatrixMemberCollection(IDefinitionPath parentDefinitionPath, Tablix owner, bool isColumnGroup, ShimMatrixMember parent, MatrixMemberCollection renderMemberCollection, MatrixMemberInfoCache matrixMemberCellIndexes) : base(parentDefinitionPath, owner, isColumnGroup) { m_definitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex(); int count = renderMemberCollection.Count; if (renderMemberCollection[0].IsStatic) { m_children = new ShimMatrixMember[count]; for (int i = 0; i < count; i++) { m_children[i] = new ShimMatrixMember(this, owner, parent, i, isColumnGroup, i, renderMemberCollection[i], isAfterSubtotal: false, matrixMemberCellIndexes); } } else { m_dynamicSubgroupChildIndex = 0; bool flag = renderMemberCollection.MatrixHeadingDef.Subtotal != null; bool flag2 = flag && renderMemberCollection.MatrixHeadingDef.Subtotal.Position == Subtotal.PositionType.After; m_children = new ShimMatrixMember[(!flag) ? 1 : 2]; if (flag) { m_subtotalChildIndex = 0; if (flag2) { m_subtotalChildIndex++; } else { m_dynamicSubgroupChildIndex++; } } if (flag) { Microsoft.ReportingServices.ReportRendering.ReportItem reportItem = renderMemberCollection[m_subtotalChildIndex].ReportItem; if (reportItem != null) { if (isColumnGroup) { m_sizeDelta += reportItem.Width.ToMillimeters(); } else { m_sizeDelta += reportItem.Height.ToMillimeters(); } } } if (flag && !flag2) { m_children[m_subtotalChildIndex] = new ShimMatrixMember(this, owner, parent, m_subtotalChildIndex, isColumnGroup, 0, renderMemberCollection[0], flag2, matrixMemberCellIndexes); } ShimRenderGroups renderGroups = new ShimRenderGroups(renderMemberCollection, flag && !flag2, flag && flag2); ShimMatrixMember shimMatrixMember = (ShimMatrixMember)(m_children[m_dynamicSubgroupChildIndex] = new ShimMatrixMember(this, owner, parent, m_dynamicSubgroupChildIndex, isColumnGroup, m_dynamicSubgroupChildIndex, renderGroups, matrixMemberCellIndexes)); if (flag && flag2) { m_children[m_subtotalChildIndex] = new ShimMatrixMember(this, owner, parent, m_subtotalChildIndex, isColumnGroup, count - 1, renderMemberCollection[count - 1], flag2, matrixMemberCellIndexes); } m_sizeDelta += shimMatrixMember.SizeDelta; } m_definitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex(); }
internal ParagraphFilteredStyle(Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem, RenderingContext renderingContext, bool useRenderStyle) : base(renderReportItem, renderingContext, useRenderStyle) { }
internal static ReportItem CreateShim(IDefinitionPath parentDefinitionPath, int indexIntoParentCollectionDef, bool inSubtotal, Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem, RenderingContext renderingContext) { ReportItem result = null; if (renderReportItem is Microsoft.ReportingServices.ReportRendering.TextBox) { result = new TextBox(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (Microsoft.ReportingServices.ReportRendering.TextBox)renderReportItem, renderingContext); } else if (renderReportItem is Microsoft.ReportingServices.ReportRendering.Rectangle) { result = new Rectangle(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (Microsoft.ReportingServices.ReportRendering.Rectangle)renderReportItem, renderingContext); } else if (renderReportItem is Microsoft.ReportingServices.ReportRendering.Image) { result = new Image(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (Microsoft.ReportingServices.ReportRendering.Image)renderReportItem, renderingContext); } else if (renderReportItem is Microsoft.ReportingServices.ReportRendering.List) { result = new Tablix(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (Microsoft.ReportingServices.ReportRendering.List)renderReportItem, renderingContext); } else if (renderReportItem is Microsoft.ReportingServices.ReportRendering.Table) { result = new Tablix(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (Microsoft.ReportingServices.ReportRendering.Table)renderReportItem, renderingContext); } else if (renderReportItem is Microsoft.ReportingServices.ReportRendering.Matrix) { result = new Tablix(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (Microsoft.ReportingServices.ReportRendering.Matrix)renderReportItem, renderingContext); } else if (renderReportItem is Microsoft.ReportingServices.ReportRendering.Chart) { result = new Chart(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (Microsoft.ReportingServices.ReportRendering.Chart)renderReportItem, renderingContext); } else if (renderReportItem is Microsoft.ReportingServices.ReportRendering.CustomReportItem) { result = new CustomReportItem(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (Microsoft.ReportingServices.ReportRendering.CustomReportItem)renderReportItem, renderingContext); } else if (renderReportItem is Microsoft.ReportingServices.ReportRendering.SubReport) { result = new SubReport(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (Microsoft.ReportingServices.ReportRendering.SubReport)renderReportItem, renderingContext); } else if (renderReportItem is Microsoft.ReportingServices.ReportRendering.Line) { result = new Line(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (Microsoft.ReportingServices.ReportRendering.Line)renderReportItem, renderingContext); } return(result); }
internal ShimTableCell(Tablix owner, int rowIndex, int colIndex, int colSpan, Microsoft.ReportingServices.ReportRendering.ReportItem renderReportItem) : base(owner, rowIndex, colIndex, owner.InSubtotal) { m_colSpan = colSpan; m_renderReportItem = renderReportItem; }