Esempio n. 1
0
        internal override object PublishClone(AutomaticSubtotalContext context)
        {
            MapLegend mapLegend = (MapLegend)base.PublishClone(context);

            if (m_layout != null)
            {
                mapLegend.m_layout = (ExpressionInfo)m_layout.PublishClone(context);
            }
            if (m_mapLegendTitle != null)
            {
                mapLegend.m_mapLegendTitle = (MapLegendTitle)m_mapLegendTitle.PublishClone(context);
            }
            if (m_autoFitTextDisabled != null)
            {
                mapLegend.m_autoFitTextDisabled = (ExpressionInfo)m_autoFitTextDisabled.PublishClone(context);
            }
            if (m_minFontSize != null)
            {
                mapLegend.m_minFontSize = (ExpressionInfo)m_minFontSize.PublishClone(context);
            }
            if (m_interlacedRows != null)
            {
                mapLegend.m_interlacedRows = (ExpressionInfo)m_interlacedRows.PublishClone(context);
            }
            if (m_interlacedRowsColor != null)
            {
                mapLegend.m_interlacedRowsColor = (ExpressionInfo)m_interlacedRowsColor.PublishClone(context);
            }
            if (m_equallySpacedItems != null)
            {
                mapLegend.m_equallySpacedItems = (ExpressionInfo)m_equallySpacedItems.PublishClone(context);
            }
            if (m_textWrapThreshold != null)
            {
                mapLegend.m_textWrapThreshold = (ExpressionInfo)m_textWrapThreshold.PublishClone(context);
            }
            return(mapLegend);
        }
Esempio n. 2
0
 internal MapLegend(Microsoft.ReportingServices.ReportIntermediateFormat.MapLegend defObject, Map map)
     : base(defObject, map)
 {
 }
Esempio n. 3
0
        internal override void SetExprHost(ReportExprHost reportExprHost, ObjectModelImpl reportObjectModel)
        {
            if (base.ExprHostID < 0)
            {
                return;
            }
            Global.Tracer.Assert(reportExprHost != null && reportObjectModel != null);
            m_exprHost = reportExprHost.MapHostsRemotable[base.ExprHostID];
            ReportItemSetExprHost(m_exprHost, reportObjectModel);
            if (m_mapViewport != null && m_exprHost.MapViewportHost != null)
            {
                m_mapViewport.SetExprHost(m_exprHost.MapViewportHost, reportObjectModel);
            }
            IList <MapPolygonLayerExprHost> mapPolygonLayersHostsRemotable = m_exprHost.MapPolygonLayersHostsRemotable;
            IList <MapPointLayerExprHost>   mapPointLayersHostsRemotable   = m_exprHost.MapPointLayersHostsRemotable;
            IList <MapLineLayerExprHost>    mapLineLayersHostsRemotable    = m_exprHost.MapLineLayersHostsRemotable;
            IList <MapTileLayerExprHost>    mapTileLayersHostsRemotable    = m_exprHost.MapTileLayersHostsRemotable;

            if (m_mapLayers != null)
            {
                for (int i = 0; i < m_mapLayers.Count; i++)
                {
                    MapLayer mapLayer = m_mapLayers[i];
                    if (mapLayer == null || mapLayer.ExpressionHostID <= -1)
                    {
                        continue;
                    }
                    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 = m_exprHost.MapLegendsHostsRemotable;

            if (m_mapLegends != null && mapLegendsHostsRemotable != null)
            {
                for (int j = 0; j < m_mapLegends.Count; j++)
                {
                    MapLegend mapLegend = m_mapLegends[j];
                    if (mapLegend != null && mapLegend.ExpressionHostID > -1)
                    {
                        mapLegend.SetExprHost(mapLegendsHostsRemotable[mapLegend.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            IList <MapTitleExprHost> mapTitlesHostsRemotable = m_exprHost.MapTitlesHostsRemotable;

            if (m_mapTitles != null && mapTitlesHostsRemotable != null)
            {
                for (int k = 0; k < m_mapTitles.Count; k++)
                {
                    MapTitle mapTitle = m_mapTitles[k];
                    if (mapTitle != null && mapTitle.ExpressionHostID > -1)
                    {
                        mapTitle.SetExprHost(mapTitlesHostsRemotable[mapTitle.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            if (m_mapDistanceScale != null && m_exprHost.MapDistanceScaleHost != null)
            {
                m_mapDistanceScale.SetExprHost(m_exprHost.MapDistanceScaleHost, reportObjectModel);
            }
            if (m_mapColorScale != null && m_exprHost.MapColorScaleHost != null)
            {
                m_mapColorScale.SetExprHost(m_exprHost.MapColorScaleHost, reportObjectModel);
            }
            if (m_mapBorderSkin != null && m_exprHost.MapBorderSkinHost != null)
            {
                m_mapBorderSkin.SetExprHost(m_exprHost.MapBorderSkinHost, reportObjectModel);
            }
            if (m_action != null && m_exprHost.ActionInfoHost != null)
            {
                m_action.SetExprHost(m_exprHost.ActionInfoHost, reportObjectModel);
            }
            if (m_pageBreak != null && m_exprHost.PageBreakExprHost != null)
            {
                m_pageBreak.SetExprHost(m_exprHost.PageBreakExprHost, reportObjectModel);
            }
        }