Ejemplo n.º 1
0
 internal void SetExprHost(TextBoxExprHost textBoxExprHost, ObjectModelImpl reportObjectModel)
 {
     if (m_exprHostID >= 0)
     {
         m_exprHost = textBoxExprHost.ParagraphHostsRemotable[m_exprHostID];
         Global.Tracer.Assert(m_exprHost != null && reportObjectModel != null);
         m_exprHost.SetReportObjectModel(reportObjectModel);
         if (m_styleClass != null)
         {
             m_styleClass.SetStyleExprHost(m_exprHost);
         }
         if (m_textRuns == null)
         {
             return;
         }
         foreach (TextRun textRun in m_textRuns)
         {
             textRun.SetExprHost(m_exprHost, reportObjectModel);
         }
     }
     else if (m_ID == -1)
     {
         if (m_styleClass != null)
         {
             m_styleClass.SetStyleExprHost(textBoxExprHost);
             m_textRuns[0].StyleClass.SetStyleExprHost(textBoxExprHost);
         }
         m_textRuns[0].SetExprHost(new Microsoft.ReportingServices.RdlExpressions.ReportRuntime.TextRunExprHostWrapper(textBoxExprHost));
     }
 }
Ejemplo n.º 2
0
 internal void SetExprHost(ChartDataPointExprHost exprHost, ObjectModelImpl reportObjectModel)
 {
     Global.Tracer.Assert(exprHost != null && reportObjectModel != null);
     m_exprHost = exprHost;
     m_exprHost.SetReportObjectModel(reportObjectModel);
     if (m_action != null && m_exprHost.ActionInfoHost != null)
     {
         m_action.SetExprHost(m_exprHost.ActionInfoHost, reportObjectModel);
     }
     if (m_styleClass != null && m_exprHost.StyleHost != null)
     {
         m_exprHost.StyleHost.SetReportObjectModel(reportObjectModel);
         m_styleClass.SetStyleExprHost(m_exprHost.StyleHost);
     }
     if (m_marker != null && m_exprHost.ChartMarkerHost != null)
     {
         m_marker.SetExprHost(m_exprHost.ChartMarkerHost, reportObjectModel);
     }
     if (m_dataLabel != null && m_exprHost.DataLabelHost != null)
     {
         m_dataLabel.SetExprHost(m_exprHost.DataLabelHost, reportObjectModel);
     }
     if (m_itemInLegend != null && m_exprHost.DataPointInLegendHost != null)
     {
         m_itemInLegend.SetExprHost(m_exprHost.DataPointInLegendHost, reportObjectModel);
     }
     if (m_customProperties != null && m_exprHost.CustomPropertyHostsRemotable != null)
     {
         m_customProperties.SetExprHost(m_exprHost.CustomPropertyHostsRemotable, reportObjectModel);
     }
     BaseSetExprHost(exprHost, reportObjectModel);
 }
Ejemplo n.º 3
0
        internal void SetExprHost(ReportExprHost exprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
            if (m_styleClass == null || ExprHostID < 0)
            {
                return;
            }
            StyleExprHost styleExprHost = null;

            if (exprHost.PageHostsRemotable != null)
            {
                styleExprHost = exprHost.PageHostsRemotable[ExprHostID];
            }
            else if (ExprHostID == 0)
            {
                styleExprHost = exprHost.PageHost;
                if (styleExprHost == null)
                {
                    return;
                }
            }
            else
            {
                Global.Tracer.Assert(false, "Missing ReportExprHost.PageHostRemotable for Page ExprHostID: {0}", ExprHostID);
            }
            styleExprHost.SetReportObjectModel(reportObjectModel);
            m_styleClass.SetStyleExprHost(styleExprHost);
        }
 internal virtual void SetExprHost(StyleExprHost exprHost, ObjectModelImpl reportObjectModel)
 {
     Global.Tracer.Assert(exprHost != null && reportObjectModel != null);
     exprHost.SetReportObjectModel(reportObjectModel);
     if (m_styleClass != null)
     {
         m_styleClass.SetStyleExprHost(exprHost);
     }
 }
Ejemplo n.º 5
0
        internal void SetExprHost(ChartSeriesExprHost exprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
            m_exprHost = exprHost;
            m_exprHost.SetReportObjectModel(reportObjectModel);
            if (m_customProperties != null && m_exprHost.CustomPropertyHostsRemotable != null)
            {
                m_customProperties.SetExprHost(m_exprHost.CustomPropertyHostsRemotable, reportObjectModel);
            }
            if (m_action != null && m_exprHost.ActionInfoHost != null)
            {
                m_action.SetExprHost(m_exprHost.ActionInfoHost, reportObjectModel);
            }
            if (m_styleClass != null)
            {
                m_styleClass.SetStyleExprHost(m_exprHost);
            }
            if (m_chartSmartLabel != null && m_exprHost.SmartLabelHost != null)
            {
                m_chartSmartLabel.SetExprHost(m_exprHost.SmartLabelHost, reportObjectModel);
            }
            if (m_emptyPoints != null && m_exprHost.EmptyPointsHost != null)
            {
                m_emptyPoints.SetExprHost(m_exprHost.EmptyPointsHost, reportObjectModel);
            }
            if (m_action != null && m_exprHost.ActionInfoHost != null)
            {
                m_action.SetExprHost(m_exprHost.ActionInfoHost, reportObjectModel);
            }
            if (m_dataLabel != null && m_exprHost.DataLabelHost != null)
            {
                m_dataLabel.SetExprHost(m_exprHost.DataLabelHost, reportObjectModel);
            }
            if (m_marker != null && m_exprHost.ChartMarkerHost != null)
            {
                m_marker.SetExprHost(m_exprHost.ChartMarkerHost, reportObjectModel);
            }
            List <ChartDerivedSeries>          childrenDerivedSeries = ChildrenDerivedSeries;
            IList <ChartDerivedSeriesExprHost> chartDerivedSeriesCollectionHostsRemotable = m_exprHost.ChartDerivedSeriesCollectionHostsRemotable;

            if (childrenDerivedSeries != null && chartDerivedSeriesCollectionHostsRemotable != null)
            {
                for (int i = 0; i < childrenDerivedSeries.Count; i++)
                {
                    ChartDerivedSeries chartDerivedSeries = childrenDerivedSeries[i];
                    if (chartDerivedSeries != null && chartDerivedSeries.ExpressionHostID > -1)
                    {
                        chartDerivedSeries.SetExprHost(chartDerivedSeriesCollectionHostsRemotable[chartDerivedSeries.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            if (m_chartItemInLegend != null && m_exprHost.DataPointInLegendHost != null)
            {
                m_chartItemInLegend.SetExprHost(m_exprHost.DataPointInLegendHost, reportObjectModel);
            }
        }
Ejemplo n.º 6
0
 protected void ReportItemSetExprHost(ReportItemExprHost exprHost, ObjectModelImpl reportObjectModel)
 {
     Global.Tracer.Assert(exprHost != null);
     m_exprHost = exprHost;
     m_exprHost.SetReportObjectModel(reportObjectModel);
     if (m_styleClass != null)
     {
         m_styleClass.SetStyleExprHost(m_exprHost);
     }
     if (m_exprHost.CustomPropertyHostsRemotable != null)
     {
         Global.Tracer.Assert(m_customProperties != null, "(null != m_customProperties)");
         m_customProperties.SetExprHost(m_exprHost.CustomPropertyHostsRemotable, reportObjectModel);
     }
 }
Ejemplo n.º 7
0
 internal void SetExprHost(ParagraphExprHost paragraphExprHost, ObjectModelImpl reportObjectModel)
 {
     if (m_exprHostID >= 0)
     {
         m_exprHost = paragraphExprHost.TextRunHostsRemotable[m_exprHostID];
         Global.Tracer.Assert(m_exprHost != null && reportObjectModel != null);
         m_exprHost.SetReportObjectModel(reportObjectModel);
         if (m_action != null && m_exprHost.ActionInfoHost != null)
         {
             m_action.SetExprHost(m_exprHost.ActionInfoHost, reportObjectModel);
         }
         if (m_styleClass != null)
         {
             m_styleClass.SetStyleExprHost(m_exprHost);
         }
     }
 }
Ejemplo n.º 8
0
 internal void SetExprHost(ActionInfoExprHost exprHost, ObjectModelImpl reportObjectModel)
 {
     Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(null != exprHost && null != reportObjectModel)");
     m_exprHost = exprHost;
     m_exprHost.SetReportObjectModel(reportObjectModel);
     if (exprHost.ActionItemHostsRemotable != null)
     {
         Global.Tracer.Assert(m_actionItemList != null, "(m_actionItemList != null)");
         for (int num = m_actionItemList.Count - 1; num >= 0; num--)
         {
             m_actionItemList[num].SetExprHost(exprHost.ActionItemHostsRemotable, reportObjectModel);
         }
     }
     if (m_styleClass != null)
     {
         m_styleClass.SetStyleExprHost(m_exprHost);
     }
 }