internal static ReportItem CreateItem(IReportScope reportScope, IDefinitionPath parentDefinitionPath, int indexIntoParentCollectionDef, Microsoft.ReportingServices.ReportIntermediateFormat.ReportItem reportItemDef, RenderingContext renderingContext)
        {
            ReportItem reportItem = null;

            switch (reportItemDef.ObjectType)
            {
            case ObjectType.Textbox:
                reportItem = new TextBox(reportScope, parentDefinitionPath, indexIntoParentCollectionDef, (Microsoft.ReportingServices.ReportIntermediateFormat.TextBox)reportItemDef, renderingContext);
                break;

            case ObjectType.Rectangle:
                reportItem = new Rectangle(reportScope, parentDefinitionPath, indexIntoParentCollectionDef, (Microsoft.ReportingServices.ReportIntermediateFormat.Rectangle)reportItemDef, renderingContext);
                break;

            case ObjectType.Image:
                reportItem = new Image(reportScope, parentDefinitionPath, indexIntoParentCollectionDef, (Microsoft.ReportingServices.ReportIntermediateFormat.Image)reportItemDef, renderingContext);
                break;

            case ObjectType.Line:
                reportItem = new Line(reportScope, parentDefinitionPath, indexIntoParentCollectionDef, (Microsoft.ReportingServices.ReportIntermediateFormat.Line)reportItemDef, renderingContext);
                break;

            case ObjectType.Subreport:
                reportItem = new SubReport(reportScope, parentDefinitionPath, indexIntoParentCollectionDef, (Microsoft.ReportingServices.ReportIntermediateFormat.SubReport)reportItemDef, renderingContext);
                break;

            case ObjectType.Tablix:
                reportItem = new Tablix(parentDefinitionPath, indexIntoParentCollectionDef, (Microsoft.ReportingServices.ReportIntermediateFormat.Tablix)reportItemDef, renderingContext);
                break;

            case ObjectType.Chart:
                reportItem = new Chart(parentDefinitionPath, indexIntoParentCollectionDef, (Microsoft.ReportingServices.ReportIntermediateFormat.Chart)reportItemDef, renderingContext);
                break;

            case ObjectType.GaugePanel:
                reportItem = new GaugePanel(parentDefinitionPath, indexIntoParentCollectionDef, (Microsoft.ReportingServices.ReportIntermediateFormat.GaugePanel)reportItemDef, renderingContext);
                break;

            case ObjectType.CustomReportItem:
            {
                Microsoft.ReportingServices.ReportIntermediateFormat.CustomReportItem customReportItem = (Microsoft.ReportingServices.ReportIntermediateFormat.CustomReportItem)reportItemDef;
                reportItem = new CustomReportItem(reportScope, parentDefinitionPath, indexIntoParentCollectionDef, customReportItem, renderingContext);
                if (!((CustomReportItem)reportItem).Initialize(renderingContext))
                {
                    reportItem = CreateItem(reportScope, parentDefinitionPath, customReportItem.AltReportItemIndexInParentCollectionDef, customReportItem.AltReportItem, renderingContext);
                    reportItem.ReportItemDef.RepeatedSibling = customReportItem.RepeatedSibling;
                    reportItem.ReportItemDef.RepeatWith      = customReportItem.RepeatWith;
                    ProcessAlternateCustomReportItem(customReportItem, reportItem, renderingContext);
                }
                break;
            }

            case ObjectType.Map:
                reportItem = new Map(reportScope, parentDefinitionPath, indexIntoParentCollectionDef, (Microsoft.ReportingServices.ReportIntermediateFormat.Map)reportItemDef, renderingContext);
                break;
            }
            return(reportItem);
        }
 internal GaugePanel(Microsoft.ReportingServices.OnDemandReportRendering.GaugePanel source, PageContext pageContext)
     : base(source)
 {
     Microsoft.ReportingServices.OnDemandReportRendering.GaugePanel gaugePanel = (Microsoft.ReportingServices.OnDemandReportRendering.GaugePanel)m_source;
     m_pageBreakProperties = PageBreakProperties.Create(gaugePanel.PageBreak, this, pageContext);
     if (!pageContext.IgnorePageBreaks)
     {
         m_pageName = gaugePanel.Instance.PageName;
     }
     else if (pageContext.Common.DiagnosticsEnabled && gaugePanel.PageBreak.BreakLocation != 0)
     {
         pageContext.Common.TracePageBreakIgnored(this, pageContext.IgnorePageBreaksReason);
     }
 }
Example #3
0
 internal CustomLabelCollection(GaugeScale gaugeScale, GaugePanel gaugePanel)
 {
     m_gaugeScale = gaugeScale;
     m_gaugePanel = gaugePanel;
 }
 internal PointerImage(Microsoft.ReportingServices.ReportIntermediateFormat.PointerImage defObject, GaugePanel gaugePanel)
     : base(defObject, gaugePanel)
 {
     m_defObject  = defObject;
     m_gaugePanel = gaugePanel;
 }
 internal ScaleLabels(Microsoft.ReportingServices.ReportIntermediateFormat.ScaleLabels defObject, GaugePanel gaugePanel)
 {
     m_defObject  = defObject;
     m_gaugePanel = gaugePanel;
 }
Example #6
0
 internal GaugeRow(GaugePanel gaugePanel)
 {
     m_gaugePanel = gaugePanel;
 }
Example #7
0
 internal GaugeMemberCollection(IDefinitionPath parentDefinitionPath, GaugePanel owner)
     : base(parentDefinitionPath, (ReportItem)owner)
 {
 }
 internal BaseGaugeImage(Microsoft.ReportingServices.ReportIntermediateFormat.BaseGaugeImage defObject, GaugePanel gaugePanel)
 {
     m_defObject  = defObject;
     m_gaugePanel = gaugePanel;
 }
 internal GaugeCell(GaugePanel owner, Microsoft.ReportingServices.ReportIntermediateFormat.GaugeCell gaugeCellDef)
 {
     m_owner        = owner;
     m_gaugeCellDef = gaugeCellDef;
 }
Example #10
0
 internal IndicatorStateCollection(StateIndicator stateIndicator, GaugePanel gaugePanel)
 {
     m_stateIndicator = stateIndicator;
     m_gaugePanel     = gaugePanel;
 }
Example #11
0
 internal NumericIndicatorCollection(GaugePanel gaugePanel)
 {
     m_gaugePanel = gaugePanel;
 }
Example #12
0
 internal ScaleRangeCollection(GaugeScale gaugeScale, GaugePanel gaugePanel)
 {
     m_gaugeScale = gaugeScale;
     m_gaugePanel = gaugePanel;
 }
Example #13
0
 internal FrameBackground(Microsoft.ReportingServices.ReportIntermediateFormat.FrameBackground defObject, GaugePanel gaugePanel)
 {
     m_defObject  = defObject;
     m_gaugePanel = gaugePanel;
 }
Example #14
0
 internal IndicatorState(Microsoft.ReportingServices.ReportIntermediateFormat.IndicatorState defObject, GaugePanel gaugePanel)
 {
     m_defObject  = defObject;
     m_gaugePanel = gaugePanel;
 }
Example #15
0
 internal NumericIndicator(Microsoft.ReportingServices.ReportIntermediateFormat.NumericIndicator defObject, GaugePanel gaugePanel)
     : base(defObject, gaugePanel)
 {
 }
Example #16
0
 internal GaugeTickMarks(Microsoft.ReportingServices.ReportIntermediateFormat.GaugeTickMarks defObject, GaugePanel gaugePanel)
     : base(defObject, gaugePanel)
 {
     m_defObject  = defObject;
     m_gaugePanel = gaugePanel;
 }
Example #17
0
 internal LinearPointer(Microsoft.ReportingServices.ReportIntermediateFormat.LinearPointer defObject, GaugePanel gaugePanel)
     : base(defObject, gaugePanel)
 {
     m_defObject  = defObject;
     m_gaugePanel = gaugePanel;
 }
Example #18
0
 internal GaugePanelInstance(GaugePanel reportItemDef)
     : base(reportItemDef)
 {
 }
Example #19
0
 internal RadialScaleCollection(RadialGauge radialGauge, GaugePanel gaugePanel)
 {
     m_radialGauge = radialGauge;
     m_gaugePanel  = gaugePanel;
 }
Example #20
0
 internal GaugeImageCollection(GaugePanel gaugePanel)
 {
     m_gaugePanel = gaugePanel;
 }
Example #21
0
 internal GaugeLabelCollection(GaugePanel gaugePanel)
 {
     m_gaugePanel = gaugePanel;
 }
 internal CustomLabel(Microsoft.ReportingServices.ReportIntermediateFormat.CustomLabel defObject, GaugePanel gaugePanel)
 {
     m_defObject  = defObject;
     m_gaugePanel = gaugePanel;
 }
Example #23
0
 internal GaugeMemberCollection(IDefinitionPath parentDefinitionPath, GaugePanel owner, GaugeMember parent, GaugeMemberList memberDefs)
     : base(parentDefinitionPath, (ReportItem)owner)
 {
     m_parent     = parent;
     m_memberDefs = memberDefs;
 }
 internal GaugeRowCollection(GaugePanel owner, GaugeRowList gaugeRowCollectionDefs)
 {
     m_owner = owner;
     m_gaugeRowCollectionDefs = gaugeRowCollectionDefs;
 }
Example #25
0
 internal GaugeRow(GaugePanel gaugePanel, Microsoft.ReportingServices.ReportIntermediateFormat.GaugeRow rowDef)
 {
     m_gaugePanel = gaugePanel;
     m_rowDef     = rowDef;
 }
 internal GaugeRowCollection(GaugePanel owner)
 {
     m_owner = owner;
 }
Example #27
0
 internal RadialPointerCollection(RadialScale radialScale, GaugePanel gaugePanel)
 {
     m_radialScale = radialScale;
     m_gaugePanel  = gaugePanel;
 }
 internal GaugeDynamicMemberInstance(GaugePanel owner, GaugeMember memberDef, InternalDynamicMemberLogic memberLogic)
     : base(owner, memberDef)
 {
     m_memberLogic = memberLogic;
     ResetContext();
 }
Example #29
0
 internal GaugePointer(Microsoft.ReportingServices.ReportIntermediateFormat.GaugePointer defObject, GaugePanel gaugePanel)
 {
     m_defObject  = defObject;
     m_gaugePanel = gaugePanel;
 }
Example #30
0
 internal StateIndicatorCollection(GaugePanel gaugePanel)
 {
     m_gaugePanel = gaugePanel;
 }