Ejemplo n.º 1
0
 public PageBreak(RenderingContext renderingContext, IReportScope reportScope, PageBreakLocation pageBreaklocation)
 {
     this.m_renderingContext            = renderingContext;
     this.m_reportScope                 = reportScope;
     this.m_pageBreaklocation           = pageBreaklocation;
     this.m_isOldSnapshotOrStaticMember = true;
 }
Ejemplo n.º 2
0
        private bool IsTextboxInScope()
        {
            OnDemandProcessingContext odpContext      = m_reportRT.ReportObjectModel.OdpContext;
            IRIFReportScope           iRIFReportScope = null;

            if (odpContext.IsTablixProcessingMode)
            {
                iRIFReportScope = odpContext.LastTablixProcessingReportScope;
                if (iRIFReportScope == null)
                {
                    iRIFReportScope = odpContext.ReportDefinition;
                }
            }
            else if (odpContext.IsTopLevelSubReportProcessing)
            {
                Microsoft.ReportingServices.ReportIntermediateFormat.SubReport subReport = odpContext.LastRIFObject as Microsoft.ReportingServices.ReportIntermediateFormat.SubReport;
                Global.Tracer.Assert(subReport != null, "Missing reference to subreport object");
                iRIFReportScope = subReport.GetContainingSection(odpContext);
            }
            else
            {
                IReportScope currentReportScope = odpContext.CurrentReportScope;
                iRIFReportScope = ((currentReportScope == null) ? odpContext.ReportDefinition : currentReportScope.RIFReportScope);
            }
            if (iRIFReportScope == null || !iRIFReportScope.TextboxInScope(m_textBox.SequenceID))
            {
                return(false);
            }
            return(true);
        }
Ejemplo n.º 3
0
 internal PageBreak(RenderingContext renderingContext, IReportScope reportScope, PageBreakLocation pageBreaklocation)
 {
     m_renderingContext            = renderingContext;
     m_reportScope                 = reportScope;
     m_pageBreaklocation           = pageBreaklocation;
     m_isOldSnapshotOrStaticMember = true;
 }
 internal ActionDrillthroughInstance(IReportScope reportScope, ActionDrillthrough actionDef, int index)
     : base(reportScope)
 {
     m_isOldSnapshot = false;
     m_actionDef     = actionDef;
     m_index         = index;
 }
 public ActionDrillthroughInstance(IReportScope reportScope, ActionDrillthrough actionDef, int index)
     : base(reportScope)
 {
     this.m_isOldSnapshot = false;
     this.m_actionDef     = actionDef;
     this.m_index         = index;
 }
Ejemplo n.º 6
0
 public ReportElement(IReportScope reportScope, IDefinitionPath parentDefinitionPath, AspNetCore.ReportingServices.ReportIntermediateFormat.ReportItem reportItemDef, RenderingContext renderingContext)
 {
     this.m_reportScope          = reportScope;
     this.m_parentDefinitionPath = parentDefinitionPath;
     this.m_reportItemDef        = reportItemDef;
     this.m_renderingContext     = renderingContext;
     this.m_isOldSnapshot        = false;
 }
 internal CompiledRichTextInstance(IReportScope reportScope, TextRun textRunDef, Paragraph paragraphDef, bool multipleParagraphsAllowed)
     : base(reportScope)
 {
     m_paragraphDef = paragraphDef;
     m_textRunDef   = textRunDef;
     m_multipleParagraphsAllowed = multipleParagraphsAllowed;
     m_errorContext = m_textRunDef.RenderingContext.ErrorContext;
 }
 internal ReportItemCollection(IReportScope reportScope, IDefinitionPath parentDefinitionPath, Microsoft.ReportingServices.ReportIntermediateFormat.ReportItemCollection reportItemColDef, RenderingContext renderingContext)
 {
     m_reportScope          = reportScope;
     m_parentDefinitionPath = parentDefinitionPath;
     m_isOldSnapshot        = false;
     m_reportItemColDef     = reportItemColDef;
     m_renderingContext     = renderingContext;
 }
Ejemplo n.º 9
0
        public static ReportItem CreateItem(IReportScope reportScope, IDefinitionPath parentDefinitionPath, int indexIntoParentCollectionDef, AspNetCore.ReportingServices.ReportIntermediateFormat.ReportItem reportItemDef, RenderingContext renderingContext)
        {
            ReportItem reportItem = null;

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

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

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

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

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

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

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

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

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

            case ObjectType.Map:
                reportItem = new Map(reportScope, parentDefinitionPath, indexIntoParentCollectionDef, (AspNetCore.ReportingServices.ReportIntermediateFormat.Map)reportItemDef, renderingContext);
                break;
            }
            return(reportItem);
        }
 internal DataValueCollection(Cell cell, IReportScope reportScope, RenderingContext renderingContext, IList <Microsoft.ReportingServices.ReportIntermediateFormat.DataValue> dataValues, string objectName, bool isChart)
 {
     m_isChartValues    = isChart;
     m_cell             = cell;
     m_reportScope      = reportScope;
     m_dataValues       = dataValues;
     m_renderingContext = renderingContext;
     m_objectName       = objectName;
 }
 public DataValueCollection(Cell cell, IReportScope reportScope, RenderingContext renderingContext, IList <AspNetCore.ReportingServices.ReportIntermediateFormat.DataValue> dataValues, string objectName, bool isChart)
 {
     this.m_isChartValues    = isChart;
     this.m_cell             = cell;
     this.m_reportScope      = reportScope;
     this.m_dataValues       = dataValues;
     this.m_renderingContext = renderingContext;
     this.m_objectName       = objectName;
 }
Ejemplo n.º 12
0
 internal CellContents(IReportScope reportScope, IDefinitionPath ownerPath, Microsoft.ReportingServices.ReportIntermediateFormat.ReportItem cellReportItem, int rowSpan, int colSpan, RenderingContext renderingContext)
 {
     m_reportScope      = reportScope;
     m_rowSpan          = rowSpan;
     m_colSpan          = colSpan;
     m_ownerPath        = ownerPath;
     m_isOldSnapshot    = false;
     m_cellReportItem   = cellReportItem;
     m_renderingContext = renderingContext;
 }
Ejemplo n.º 13
0
 public CellContents(IReportScope reportScope, IDefinitionPath ownerPath, AspNetCore.ReportingServices.ReportIntermediateFormat.ReportItem cellReportItem, int rowSpan, int colSpan, RenderingContext renderingContext)
 {
     this.m_reportScope      = reportScope;
     this.m_rowSpan          = rowSpan;
     this.m_colSpan          = colSpan;
     this.m_ownerPath        = ownerPath;
     this.m_isOldSnapshot    = false;
     this.m_cellReportItem   = cellReportItem;
     this.m_renderingContext = renderingContext;
 }
Ejemplo n.º 14
0
 public GaugeMember(IReportScope reportScope, IDefinitionPath parentDefinitionPath, GaugePanel owner, GaugeMember parent, AspNetCore.ReportingServices.ReportIntermediateFormat.GaugeMember memberDef)
     : base(parentDefinitionPath, owner, parent, 0)
 {
     this.m_memberDef = memberDef;
     if (this.m_memberDef.IsStatic)
     {
         this.m_reportScope = reportScope;
     }
     base.m_group = new Group(owner, this.m_memberDef, this);
 }
Ejemplo n.º 15
0
 internal GaugeMember(IReportScope reportScope, IDefinitionPath parentDefinitionPath, GaugePanel owner, GaugeMember parent, Microsoft.ReportingServices.ReportIntermediateFormat.GaugeMember memberDef)
     : base(parentDefinitionPath, owner, parent, 0)
 {
     m_memberDef = memberDef;
     if (m_memberDef.IsStatic)
     {
         m_reportScope = reportScope;
     }
     m_group = new Group(owner, m_memberDef, this);
 }
 public InternalChartMember(IReportScope reportScope, IDefinitionPath parentDefinitionPath, Chart owner, ChartMember parent, AspNetCore.ReportingServices.ReportIntermediateFormat.ChartMember memberDef, int parentCollectionIndex)
     : base(parentDefinitionPath, owner, parent, parentCollectionIndex)
 {
     this.m_memberDef = memberDef;
     if (this.m_memberDef.IsStatic)
     {
         this.m_reportScope = reportScope;
     }
     base.m_group = new Group(owner, this.m_memberDef, this);
 }
Ejemplo n.º 17
0
 internal InternalDataMember(IReportScope reportScope, IDefinitionPath parentDefinitionPath, CustomReportItem owner, DataMember parent, Microsoft.ReportingServices.ReportIntermediateFormat.DataMember memberDef, int parentCollectionIndex)
     : base(parentDefinitionPath, owner, parent, parentCollectionIndex)
 {
     m_memberDef = memberDef;
     if (m_memberDef.IsStatic)
     {
         m_reportScope = reportScope;
     }
     m_group = new Group(owner, m_memberDef, this);
 }
Ejemplo n.º 18
0
 public DataValue(IReportScope reportScope, RenderingContext renderingContext, AspNetCore.ReportingServices.ReportIntermediateFormat.DataValue dataValue, bool isChart, IInstancePath instancePath, string objectName)
 {
     this.m_isChartValue     = isChart;
     this.m_instancePath     = instancePath;
     this.m_dataValue        = dataValue;
     this.m_name             = new ReportStringProperty(dataValue.Name);
     this.m_value            = new ReportVariantProperty(dataValue.Value);
     this.m_instance         = new InternalDataValueInstance(reportScope, this);
     this.m_renderingContext = renderingContext;
     this.m_objectName       = objectName;
 }
Ejemplo n.º 19
0
 internal PageBreak(RenderingContext renderingContext, IReportScope reportScope, IPageBreakOwner pageBreakOwner)
 {
     m_renderingContext = renderingContext;
     m_reportScope      = reportScope;
     m_pageBreakOwner   = pageBreakOwner;
     m_pageBreakDef     = m_pageBreakOwner.PageBreak;
     if (m_pageBreakDef == null)
     {
         m_pageBreakDef = new Microsoft.ReportingServices.ReportIntermediateFormat.PageBreak();
     }
     m_isOldSnapshotOrStaticMember = false;
 }
Ejemplo n.º 20
0
 public PageBreak(RenderingContext renderingContext, IReportScope reportScope, IPageBreakOwner pageBreakOwner)
 {
     this.m_renderingContext = renderingContext;
     this.m_reportScope      = reportScope;
     this.m_pageBreakOwner   = pageBreakOwner;
     this.m_pageBreakDef     = this.m_pageBreakOwner.PageBreak;
     if (this.m_pageBreakDef == null)
     {
         this.m_pageBreakDef = new AspNetCore.ReportingServices.ReportIntermediateFormat.PageBreak();
     }
     this.m_isOldSnapshotOrStaticMember = false;
 }
Ejemplo n.º 21
0
 public ActionInfo(RenderingContext renderingContext, IReportScope reportScope, AspNetCore.ReportingServices.ReportIntermediateFormat.Action actionDef, IInstancePath instancePath, ReportElement reportElementOwner, ObjectType objectType, string objectName, IROMActionOwner romActionOwner)
 {
     this.m_renderingContext   = renderingContext;
     this.m_reportScope        = reportScope;
     this.m_actionDef          = actionDef;
     this.m_isOldSnapshot      = false;
     this.m_instancePath       = instancePath;
     this.m_reportElementOwner = reportElementOwner;
     this.m_objectType         = objectType;
     this.m_objectName         = objectName;
     this.m_romActionOwner     = romActionOwner;
 }
Ejemplo n.º 22
0
 internal ActionInfo(RenderingContext renderingContext, IReportScope reportScope, Microsoft.ReportingServices.ReportIntermediateFormat.Action actionDef, IInstancePath instancePath, ReportElement reportElementOwner, ObjectType objectType, string objectName, IROMActionOwner romActionOwner)
 {
     m_renderingContext   = renderingContext;
     m_reportScope        = reportScope;
     m_actionDef          = actionDef;
     m_isOldSnapshot      = false;
     m_instancePath       = instancePath;
     m_reportElementOwner = reportElementOwner;
     m_objectType         = objectType;
     m_objectName         = objectName;
     m_romActionOwner     = romActionOwner;
 }
Ejemplo n.º 23
0
 public MapMember(IReportScope reportScope, IDefinitionPath parentDefinitionPath, MapDataRegion owner, MapMember parent, AspNetCore.ReportingServices.ReportIntermediateFormat.MapMember memberDef)
     : base(parentDefinitionPath, owner, parent, 0)
 {
     this.m_memberDef = memberDef;
     if (this.m_memberDef.IsStatic)
     {
         this.m_reportScope = reportScope;
     }
     if (this.m_memberDef.Grouping != null)
     {
         base.m_group = new Group(owner, this.m_memberDef, this);
     }
 }
Ejemplo n.º 24
0
 internal MapMember(IReportScope reportScope, IDefinitionPath parentDefinitionPath, MapDataRegion owner, MapMember parent, Microsoft.ReportingServices.ReportIntermediateFormat.MapMember memberDef)
     : base(parentDefinitionPath, owner, parent, 0)
 {
     m_memberDef = memberDef;
     if (m_memberDef.IsStatic)
     {
         m_reportScope = reportScope;
     }
     if (m_memberDef.Grouping != null)
     {
         m_group = new Group(owner, m_memberDef, this);
     }
 }
Ejemplo n.º 25
0
 internal InternalTablixMember(IReportScope reportScope, IDefinitionPath parentDefinitionPath, Tablix owner, TablixMember parent, Microsoft.ReportingServices.ReportIntermediateFormat.TablixMember memberDef, int index)
     : base(parentDefinitionPath, owner, parent, index)
 {
     if (memberDef.IsStatic)
     {
         m_reportScope = reportScope;
     }
     m_owner     = owner;
     m_memberDef = memberDef;
     if (m_memberDef.Grouping != null)
     {
         m_group = new Group(base.OwnerTablix, m_memberDef, this);
     }
     m_memberDef.ROMScopeInstance = ReportScope.ReportScopeInstance;
     m_memberDef.ResetVisibilityComputationCache();
 }
Ejemplo n.º 26
0
 public override GaugeMember this[int index]
 {
     get
     {
         if (index >= 0 && index < this.Count)
         {
             if (base.m_children == null)
             {
                 base.m_children = new DataRegionMember[this.Count];
             }
             GaugeMember gaugeMember = (GaugeMember)base.m_children[index];
             if (gaugeMember == null)
             {
                 IReportScope reportScope = (this.m_parent != null) ? this.m_parent.ReportScope : base.m_owner.ReportScope;
                 gaugeMember = (GaugeMember)(base.m_children[index] = new GaugeMember(reportScope, this, this.OwnerGaugePanel, this.m_parent, this.m_memberDefs[index]));
             }
             return(gaugeMember);
         }
         throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidParameterRange, index, 0, this.Count);
     }
 }
Ejemplo n.º 27
0
 public override GaugeMember this[int index]
 {
     get
     {
         if (index < 0 || index >= Count)
         {
             throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidParameterRange, index, 0, Count);
         }
         if (m_children == null)
         {
             m_children = new DataRegionMember[Count];
         }
         GaugeMember gaugeMember = (GaugeMember)m_children[index];
         if (gaugeMember == null)
         {
             IReportScope reportScope = (m_parent != null) ? m_parent.ReportScope : m_owner.ReportScope;
             gaugeMember = (GaugeMember)(m_children[index] = new GaugeMember(reportScope, this, OwnerGaugePanel, m_parent, m_memberDefs[index]));
         }
         return(gaugeMember);
     }
 }
 public override DataMember this[int index]
 {
     get
     {
         if (index < 0 || index >= Count)
         {
             throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidParameterRange, index, 0, Count);
         }
         if (m_children == null)
         {
             m_children = new DataRegionMember[Count];
         }
         DataMember dataMember = (DataMember)m_children[index];
         if (dataMember == null)
         {
             IReportScope reportScope = (m_parent != null) ? m_parent.ReportScope : m_owner.ReportScope;
             dataMember = (DataMember)(m_children[index] = new InternalDataMember(reportScope, this, base.OwnerCri, m_parent, m_memberDefs[index], index));
         }
         return(dataMember);
     }
 }
 public override ChartMember this[int index]
 {
     get
     {
         if (index >= 0 && index < this.Count)
         {
             if (base.m_children == null)
             {
                 base.m_children = new DataRegionMember[this.Count];
             }
             ChartMember chartMember = (ChartMember)base.m_children[index];
             if (chartMember == null)
             {
                 IReportScope reportScope = (this.m_parent != null) ? this.m_parent.ReportScope : base.m_owner.ReportScope;
                 chartMember = (ChartMember)(base.m_children[index] = new InternalChartMember(reportScope, this, base.OwnerChart, this.m_parent, this.m_memberDefs[index], index));
             }
             return(chartMember);
         }
         throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidParameterRange, index, 0, this.Count);
     }
 }
Ejemplo n.º 30
0
 public BorderInstance(Border owner, IReportScope reportScope, BorderStyles defaultStyleValueIfExpressionNull)
     : base(reportScope)
 {
     this.m_owner = owner;
     this.m_defaultStyleValueIfExpressionNull = defaultStyleValueIfExpressionNull;
 }