Exemplo n.º 1
0
 internal void SetExprHost(GroupingExprHost exprHost, ObjectModelImpl reportObjectModel)
 {
     Global.Tracer.Assert(exprHost != null && reportObjectModel != null);
     m_exprHost = exprHost;
     m_exprHost.SetReportObjectModel(reportObjectModel);
     if (m_exprHost.FilterHostsRemotable != null)
     {
         Global.Tracer.Assert(m_filters != null);
         int count = m_filters.Count;
         for (int i = 0; i < count; i++)
         {
             m_filters[i].SetExprHost(m_exprHost.FilterHostsRemotable, reportObjectModel);
         }
     }
     if (m_exprHost.ParentExpressionsHost != null)
     {
         m_exprHost.ParentExpressionsHost.SetReportObjectModel(reportObjectModel);
     }
     if (m_exprHost.CustomPropertyHostsRemotable != null)
     {
         Global.Tracer.Assert(m_customProperties != null);
         m_customProperties.SetExprHost(m_exprHost.CustomPropertyHostsRemotable, reportObjectModel);
     }
     if (m_exprHost.UserSortExpressionsHost != null)
     {
         m_exprHost.UserSortExpressionsHost.SetReportObjectModel(reportObjectModel);
     }
 }
Exemplo 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)
     {
         if (m_exprHost.ActionInfoHost != null)
         {
             m_action.SetExprHost(m_exprHost.ActionInfoHost, reportObjectModel);
         }
         else if (m_exprHost.ActionHost != null)
         {
             m_action.SetExprHost(m_exprHost.ActionHost, reportObjectModel);
         }
     }
     if (m_styleClass != null && m_exprHost.StyleHost != null)
     {
         m_exprHost.StyleHost.SetReportObjectModel(reportObjectModel);
         m_styleClass.SetStyleExprHost(m_exprHost.StyleHost);
     }
     if (m_markerStyleClass != null && m_exprHost.MarkerStyleHost != null)
     {
         m_exprHost.MarkerStyleHost.SetReportObjectModel(reportObjectModel);
         m_markerStyleClass.SetStyleExprHost(m_exprHost.MarkerStyleHost);
     }
     if (m_dataLabel != null && m_dataLabel.StyleClass != null && m_exprHost.DataLabelStyleHost != null)
     {
         m_dataLabel.SetExprHost(m_exprHost.DataLabelStyleHost, reportObjectModel);
     }
     if (m_customProperties != null && m_exprHost.CustomPropertyHostsRemotable != null)
     {
         m_customProperties.SetExprHost(m_exprHost.CustomPropertyHostsRemotable, reportObjectModel);
     }
 }
Exemplo n.º 3
0
 internal void SetExprHost(AxisExprHost exprHost, ObjectModelImpl reportObjectModel)
 {
     Global.Tracer.Assert(exprHost != null && reportObjectModel != null);
     m_exprHost = exprHost;
     m_exprHost.SetReportObjectModel(reportObjectModel);
     if (m_title != null && m_exprHost.TitleHost != null)
     {
         m_title.SetExprHost(m_exprHost.TitleHost, reportObjectModel);
     }
     if (m_styleClass != null)
     {
         m_styleClass.SetStyleExprHost(m_exprHost);
     }
     if (m_majorGridLines != null && m_majorGridLines.StyleClass != null && m_exprHost.MajorGridLinesHost != null)
     {
         m_majorGridLines.SetExprHost(m_exprHost.MajorGridLinesHost, reportObjectModel);
     }
     if (m_minorGridLines != null && m_minorGridLines.StyleClass != null && m_exprHost.MinorGridLinesHost != null)
     {
         m_minorGridLines.SetExprHost(m_exprHost.MinorGridLinesHost, reportObjectModel);
     }
     if (m_exprHost.CustomPropertyHostsRemotable != null)
     {
         Global.Tracer.Assert(m_customProperties != null);
         m_customProperties.SetExprHost(m_exprHost.CustomPropertyHostsRemotable, reportObjectModel);
     }
 }
Exemplo n.º 4
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);
         m_customProperties.SetExprHost(m_exprHost.CustomPropertyHostsRemotable, reportObjectModel);
     }
 }
Exemplo n.º 5
0
 internal void SetExprHost(IList <DataGroupingExprHost> dataGroupingHosts, ObjectModelImpl reportObjectModel)
 {
     if (m_exprHostID >= 0)
     {
         Global.Tracer.Assert(dataGroupingHosts != null && dataGroupingHosts.Count > m_exprHostID && reportObjectModel != null);
         m_exprHost = dataGroupingHosts[m_exprHostID];
         m_exprHost.SetReportObjectModel(reportObjectModel);
         if (m_exprHost.GroupingHost != null)
         {
             Global.Tracer.Assert(m_grouping != null);
             m_grouping.SetExprHost(m_exprHost.GroupingHost, reportObjectModel);
         }
         if (m_exprHost.SortingHost != null)
         {
             Global.Tracer.Assert(m_sorting != null);
             m_sorting.SetExprHost(m_exprHost.SortingHost, reportObjectModel);
         }
         if (m_customProperties != null)
         {
             Global.Tracer.Assert(m_customProperties != null);
             m_customProperties.SetExprHost(m_exprHost.CustomPropertyHostsRemotable, reportObjectModel);
         }
     }
 }