internal ShimDataMember(IDefinitionPath parentDefinitionPath, CustomReportItem owner, ShimDataMember parent, int parentCollectionIndex, bool isColumn, bool isStatic, Microsoft.ReportingServices.ReportRendering.DataMemberCollection renderMembers, int staticIndex)
            : base(parentDefinitionPath, owner, parent, parentCollectionIndex)
        {
            m_definitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex();
            m_isColumn             = isColumn;
            m_isStatic             = isStatic;
            m_renderMembers        = renderMembers;
            m_staticIndex          = staticIndex;
            DataGroupingCollection children;

            if (isStatic)
            {
                children = renderMembers[staticIndex].Children;
            }
            else
            {
                m_group  = new Group(owner, new ShimRenderGroups(renderMembers));
                children = renderMembers[0].Children;
            }
            if (children != null)
            {
                m_children = new ShimDataMemberCollection(this, owner, isColumn, this, children);
            }
            else
            {
                owner.GetAndIncrementMemberCellDefinitionIndex();
            }
            m_definitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex();
        }
Example #2
0
 internal DataCell(CustomReportItem owner, int rowIndex, int colIndex)
 {
     m_owner       = owner;
     m_rowIndex    = rowIndex;
     m_columnIndex = colIndex;
     m_dataValues  = null;
 }
Example #3
0
 internal Group(CustomReportItem owner, Microsoft.ReportingServices.ReportIntermediateFormat.ReportHierarchyNode memberDef, DataRegionMember dataMember)
 {
     m_isOldSnapshot = false;
     m_criOwner      = owner;
     m_memberDef     = memberDef;
     m_dataMember    = dataMember;
 }
        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 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);
        }
Example #6
0
        internal ShimDataMemberCollection(IDefinitionPath parentDefinitionPath, CustomReportItem owner, bool isColumnMember, ShimDataMember parent, DataGroupingCollection definitionGroups)
            : base(parentDefinitionPath, owner)
        {
            m_isColumnMember       = isColumnMember;
            m_definitionGroups     = definitionGroups;
            m_definitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex();
            if (definitionGroups[0] != null && definitionGroups[0][0] != null)
            {
                m_isStatic = definitionGroups[0][0].IsStatic;
            }
            int count = definitionGroups.Count;

            m_children = new ShimDataMember[count];
            for (int i = 0; i < count; i++)
            {
                m_children[i] = new ShimDataMember(this, owner, parent, i, m_isColumnMember, m_isStatic, definitionGroups[i], i);
            }
            m_definitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex();
        }
 internal DataHierarchy(CustomReportItem owner, bool isColumn)
     : base((ReportItem)owner, isColumn)
 {
 }
Example #8
0
 internal InternalDataRow(CustomReportItem owner, int rowIndex, CustomDataRow rowDef)
     : base(owner, rowIndex)
 {
     m_rowDef = rowDef;
 }
Example #9
0
 internal InternalDataRowCollection(CustomReportItem owner, CustomDataRowList dataRowDefs)
     : base(owner)
 {
     m_dataRowDefs = dataRowDefs;
 }
 internal ShimDataRow(CustomReportItem owner, int rowIndex, ShimDataMember parentDataMember)
     : base(owner, rowIndex)
 {
     m_cells = new List <ShimDataCell>();
     GenerateDataCells(parentDataMember, null, owner.CustomData.DataColumnHierarchy.MemberCollection as ShimDataMemberCollection);
 }
Example #11
0
 internal ShimDataCell(CustomReportItem owner, int rowIndex, int colIndex, ShimDataMember rowParentMember, ShimDataMember columnParentMember)
     : base(owner, rowIndex, colIndex)
 {
     m_rowParentMember    = rowParentMember;
     m_columnParentMember = columnParentMember;
 }
 internal CustomData(CustomReportItem owner)
 {
     m_owner = owner;
 }
 internal ShimDataRowCollection(CustomReportItem owner)
     : base(owner)
 {
     m_dataRows = new List <ShimDataRow>();
     AppendDataRows(null, owner.CustomData.DataRowHierarchy.MemberCollection as ShimDataMemberCollection);
 }
Example #14
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);
 }
Example #15
0
 internal Group(CustomReportItem owner, ShimRenderGroups renderGroups)
 {
     m_isOldSnapshot = true;
     m_renderGroups  = renderGroups;
     m_criOwner      = owner;
 }
 internal InternalDataMemberCollection(IDefinitionPath parentDefinitionPath, CustomReportItem owner, DataMember parent, DataMemberList memberDefs)
     : base(parentDefinitionPath, owner)
 {
     m_parent     = parent;
     m_memberDefs = memberDefs;
 }
Example #17
0
 internal CustomReportItemInstance(CustomReportItem reportItemDef)
     : base(reportItemDef)
 {
 }
Example #18
0
 internal DataDynamicMemberInstance(CustomReportItem owner, DataMember memberDef, InternalDynamicMemberLogic memberLogic)
     : base(owner, memberDef)
 {
     m_memberLogic = memberLogic;
     ResetContext();
 }
 internal InternalDataCell(CustomReportItem owner, int rowIndex, int colIndex, Microsoft.ReportingServices.ReportIntermediateFormat.DataCell dataCellDef)
     : base(owner, rowIndex, colIndex)
 {
     m_dataCellDef = dataCellDef;
 }
Example #20
0
 internal DataMember(IDefinitionPath parentDefinitionPath, CustomReportItem owner, DataMember parent, int parentCollectionIndex)
     : base(parentDefinitionPath, owner, parent, parentCollectionIndex)
 {
 }