internal void RegisterPageBreakProperties(PageBreakProperties pageBreakProperties, bool overwrite)
 {
     if (DiagnosticsEnabled && pageBreakProperties != null && !m_registeredPageBreakProperties.Contains(pageBreakProperties))
     {
         m_registeredPageBreakProperties.Add(pageBreakProperties);
     }
     if (m_pageBreakProperties == null || overwrite)
     {
         m_pageBreakProperties = pageBreakProperties;
     }
 }
 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);
     }
 }
 internal void ResetPageBreakProcessing()
 {
     m_pageBreakProperties = null;
     if (DiagnosticsEnabled)
     {
         if (m_registeredPageBreakProperties == null)
         {
             m_registeredPageBreakProperties = new List <PageBreakProperties>();
         }
         else
         {
             m_registeredPageBreakProperties.Clear();
         }
     }
 }
Beispiel #4
0
        internal Chart(Microsoft.ReportingServices.OnDemandReportRendering.Chart source, PageContext pageContext)
            : base(source)
        {
            Microsoft.ReportingServices.OnDemandReportRendering.Chart chart = (Microsoft.ReportingServices.OnDemandReportRendering.Chart)m_source;
            ChartInstance chartInstance = (ChartInstance)m_source.Instance;

            m_pageBreakProperties = PageBreakProperties.Create(chart.PageBreak, this, pageContext);
            if (!pageContext.IgnorePageBreaks)
            {
                m_pageName = chartInstance.PageName;
            }
            else if (pageContext.Common.DiagnosticsEnabled && chart.PageBreak.BreakLocation != 0)
            {
                pageContext.Common.TracePageBreakIgnored(this, pageContext.IgnorePageBreaksReason);
            }
            m_dynamicWidth  = chartInstance.DynamicWidth.ToMillimeters();
            m_dynamicHeight = chartInstance.DynamicHeight.ToMillimeters();
        }
Beispiel #5
0
        internal Rectangle(Microsoft.ReportingServices.OnDemandReportRendering.Rectangle source, PageContext pageContext)
            : base(source)
        {
            Microsoft.ReportingServices.OnDemandReportRendering.Rectangle rectangle = (Microsoft.ReportingServices.OnDemandReportRendering.Rectangle)m_source;
            RectangleInstance rectangleInstance = (RectangleInstance)m_source.Instance;

            m_itemPageSizes       = new ItemSizes(source);
            m_pageBreakProperties = PageBreakProperties.Create(rectangle.PageBreak, this, pageContext);
            if (!pageContext.IgnorePageBreaks)
            {
                m_pageName = rectangleInstance.PageName;
            }
            else if (pageContext.Common.DiagnosticsEnabled && rectangle.PageBreak.BreakLocation != 0)
            {
                pageContext.Common.TracePageBreakIgnored(this, pageContext.IgnorePageBreaksReason);
            }
            base.KeepTogetherHorizontal = source.KeepTogether;
            base.KeepTogetherVertical   = source.KeepTogether;
            base.UnresolvedKTV          = (base.UnresolvedKTH = source.KeepTogether);
            base.UnresolvedPBE          = (base.UnresolvedPBS = true);
        }
Beispiel #6
0
 private static List <Declaration> BuildDeclarations()
 {
     return(new List <Declaration>(30)
     {
         PageItem.GetDeclaration(),
         PageItemContainer.GetDeclaration(),
         ItemSizes.GetDeclaration(),
         HiddenPageItem.GetDeclaration(),
         NoRowsItem.GetDeclaration(),
         SubReport.GetDeclaration(),
         ReportBody.GetDeclaration(),
         Rectangle.GetDeclaration(),
         TextBox.GetDeclaration(),
         TextBox.TextBoxOffset.GetDeclaration(),
         Paragraph.GetDeclaration(),
         TextRun.GetDeclaration(),
         Line.GetDeclaration(),
         DynamicImage.GetDeclaration(),
         Chart.GetDeclaration(),
         GaugePanel.GetDeclaration(),
         Image.GetDeclaration(),
         Tablix.GetDeclaration(),
         Tablix.RowInfo.GetDeclaration(),
         Tablix.SizeInfo.GetDeclaration(),
         Tablix.ColumnInfo.GetDeclaration(),
         Tablix.PageTalixCell.GetDeclaration(),
         Tablix.PageDetailCell.GetDeclaration(),
         Tablix.PageCornerCell.GetDeclaration(),
         Tablix.PageMemberCell.GetDeclaration(),
         Tablix.PageStructMemberCell.GetDeclaration(),
         Tablix.PageStructStaticMemberCell.GetDeclaration(),
         Tablix.PageStructDynamicMemberCell.GetDeclaration(),
         Map.GetDeclaration(),
         PageBreakProperties.GetDeclaration()
     });
 }
Beispiel #7
0
        public bool TryCreateObject(ObjectType objectType, out IPersistable persistObj)
        {
            switch (objectType)
            {
            case ObjectType.ItemSizes:
                persistObj = new ItemSizes();
                break;

            case ObjectType.PageBreakProperties:
                persistObj = new PageBreakProperties();
                break;

            case ObjectType.HiddenPageItem:
                persistObj = new HiddenPageItem();
                break;

            case ObjectType.NoRowsItem:
                persistObj = new NoRowsItem();
                break;

            case ObjectType.SubReport:
                persistObj = new SubReport();
                break;

            case ObjectType.ReportBody:
                persistObj = new ReportBody();
                break;

            case ObjectType.Rectangle:
                persistObj = new Rectangle();
                break;

            case ObjectType.TextBox:
                persistObj = new TextBox();
                break;

            case ObjectType.Paragraph:
                persistObj = new Paragraph();
                break;

            case ObjectType.TextRun:
                persistObj = new TextRun();
                break;

            case ObjectType.TextBoxOffset:
                persistObj = new TextBox.TextBoxOffset();
                break;

            case ObjectType.Line:
                persistObj = new Line();
                break;

            case ObjectType.Chart:
                persistObj = new Chart();
                break;

            case ObjectType.GaugePanel:
                persistObj = new GaugePanel();
                break;

            case ObjectType.Map:
                persistObj = new Map();
                break;

            case ObjectType.Image:
                persistObj = new Image();
                break;

            case ObjectType.Tablix:
                persistObj = new Tablix();
                break;

            case ObjectType.RowInfo:
                persistObj = new Tablix.RowInfo();
                break;

            case ObjectType.SizeInfo:
                persistObj = new Tablix.SizeInfo();
                break;

            case ObjectType.ColumnInfo:
                persistObj = new Tablix.ColumnInfo();
                break;

            case ObjectType.PageDetailCell:
                persistObj = new Tablix.PageDetailCell();
                break;

            case ObjectType.PageCornerCell:
                persistObj = new Tablix.PageCornerCell();
                break;

            case ObjectType.PageMemberCell:
                persistObj = new Tablix.PageMemberCell();
                break;

            case ObjectType.PageStructStaticMemberCell:
                persistObj = new Tablix.PageStructStaticMemberCell();
                break;

            case ObjectType.PageStructDynamicMemberCell:
                persistObj = new Tablix.PageStructDynamicMemberCell();
                break;

            default:
                persistObj = null;
                return(false);
            }
            return(true);
        }