public override object PublishClone(AutomaticSubtotalContext context)
        {
            MapLegend mapLegend = (MapLegend)base.PublishClone(context);

            if (this.m_layout != null)
            {
                mapLegend.m_layout = (ExpressionInfo)this.m_layout.PublishClone(context);
            }
            if (this.m_mapLegendTitle != null)
            {
                mapLegend.m_mapLegendTitle = (MapLegendTitle)this.m_mapLegendTitle.PublishClone(context);
            }
            if (this.m_autoFitTextDisabled != null)
            {
                mapLegend.m_autoFitTextDisabled = (ExpressionInfo)this.m_autoFitTextDisabled.PublishClone(context);
            }
            if (this.m_minFontSize != null)
            {
                mapLegend.m_minFontSize = (ExpressionInfo)this.m_minFontSize.PublishClone(context);
            }
            if (this.m_interlacedRows != null)
            {
                mapLegend.m_interlacedRows = (ExpressionInfo)this.m_interlacedRows.PublishClone(context);
            }
            if (this.m_interlacedRowsColor != null)
            {
                mapLegend.m_interlacedRowsColor = (ExpressionInfo)this.m_interlacedRowsColor.PublishClone(context);
            }
            if (this.m_equallySpacedItems != null)
            {
                mapLegend.m_equallySpacedItems = (ExpressionInfo)this.m_equallySpacedItems.PublishClone(context);
            }
            if (this.m_textWrapThreshold != null)
            {
                mapLegend.m_textWrapThreshold = (ExpressionInfo)this.m_textWrapThreshold.PublishClone(context);
            }
            return(mapLegend);
        }
 public MapLegend(AspNetCore.ReportingServices.ReportIntermediateFormat.MapLegend defObject, Map map)
     : base(defObject, map)
 {
 }
Beispiel #3
0
 public override void SetExprHost(ReportExprHost reportExprHost, ObjectModelImpl reportObjectModel)
 {
     if (base.ExprHostID >= 0)
     {
         Global.Tracer.Assert(reportExprHost != null && reportObjectModel != null);
         this.m_exprHost = reportExprHost.MapHostsRemotable[base.ExprHostID];
         base.ReportItemSetExprHost(this.m_exprHost, reportObjectModel);
         if (this.m_mapViewport != null && this.m_exprHost.MapViewportHost != null)
         {
             this.m_mapViewport.SetExprHost(this.m_exprHost.MapViewportHost, reportObjectModel);
         }
         IList <MapPolygonLayerExprHost> mapPolygonLayersHostsRemotable = this.m_exprHost.MapPolygonLayersHostsRemotable;
         IList <MapPointLayerExprHost>   mapPointLayersHostsRemotable   = this.m_exprHost.MapPointLayersHostsRemotable;
         IList <MapLineLayerExprHost>    mapLineLayersHostsRemotable    = this.m_exprHost.MapLineLayersHostsRemotable;
         IList <MapTileLayerExprHost>    mapTileLayersHostsRemotable    = this.m_exprHost.MapTileLayersHostsRemotable;
         if (this.m_mapLayers != null)
         {
             for (int i = 0; i < this.m_mapLayers.Count; i++)
             {
                 MapLayer mapLayer = this.m_mapLayers[i];
                 if (mapLayer != null && mapLayer.ExpressionHostID > -1)
                 {
                     if (mapLayer is MapPolygonLayer)
                     {
                         if (mapPolygonLayersHostsRemotable != null)
                         {
                             mapLayer.SetExprHost(mapPolygonLayersHostsRemotable[mapLayer.ExpressionHostID], reportObjectModel);
                         }
                     }
                     else if (mapLayer is MapPointLayer)
                     {
                         if (mapPointLayersHostsRemotable != null)
                         {
                             mapLayer.SetExprHost(mapPointLayersHostsRemotable[mapLayer.ExpressionHostID], reportObjectModel);
                         }
                     }
                     else if (mapLayer is MapLineLayer)
                     {
                         if (mapLineLayersHostsRemotable != null)
                         {
                             mapLayer.SetExprHost(mapLineLayersHostsRemotable[mapLayer.ExpressionHostID], reportObjectModel);
                         }
                     }
                     else if (mapLayer is MapTileLayer && mapTileLayersHostsRemotable != null)
                     {
                         mapLayer.SetExprHost(mapTileLayersHostsRemotable[mapLayer.ExpressionHostID], reportObjectModel);
                     }
                 }
             }
         }
         IList <MapLegendExprHost> mapLegendsHostsRemotable = this.m_exprHost.MapLegendsHostsRemotable;
         if (this.m_mapLegends != null && mapLegendsHostsRemotable != null)
         {
             for (int j = 0; j < this.m_mapLegends.Count; j++)
             {
                 MapLegend mapLegend = this.m_mapLegends[j];
                 if (mapLegend != null && mapLegend.ExpressionHostID > -1)
                 {
                     mapLegend.SetExprHost(mapLegendsHostsRemotable[mapLegend.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         IList <MapTitleExprHost> mapTitlesHostsRemotable = this.m_exprHost.MapTitlesHostsRemotable;
         if (this.m_mapTitles != null && mapTitlesHostsRemotable != null)
         {
             for (int k = 0; k < this.m_mapTitles.Count; k++)
             {
                 MapTitle mapTitle = this.m_mapTitles[k];
                 if (mapTitle != null && mapTitle.ExpressionHostID > -1)
                 {
                     mapTitle.SetExprHost(mapTitlesHostsRemotable[mapTitle.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         if (this.m_mapDistanceScale != null && this.m_exprHost.MapDistanceScaleHost != null)
         {
             this.m_mapDistanceScale.SetExprHost(this.m_exprHost.MapDistanceScaleHost, reportObjectModel);
         }
         if (this.m_mapColorScale != null && this.m_exprHost.MapColorScaleHost != null)
         {
             this.m_mapColorScale.SetExprHost(this.m_exprHost.MapColorScaleHost, reportObjectModel);
         }
         if (this.m_mapBorderSkin != null && this.m_exprHost.MapBorderSkinHost != null)
         {
             this.m_mapBorderSkin.SetExprHost(this.m_exprHost.MapBorderSkinHost, reportObjectModel);
         }
         if (this.m_action != null && this.m_exprHost.ActionInfoHost != null)
         {
             this.m_action.SetExprHost(this.m_exprHost.ActionInfoHost, reportObjectModel);
         }
         if (this.m_pageBreak != null && this.m_exprHost.PageBreakExprHost != null)
         {
             this.m_pageBreak.SetExprHost(this.m_exprHost.PageBreakExprHost, reportObjectModel);
         }
     }
 }