Example #1
0
        internal override object PublishClone(AutomaticSubtotalContext context)
        {
            MapTitle mapTitle = (MapTitle)base.PublishClone(context);

            if (m_text != null)
            {
                mapTitle.m_text = (ExpressionInfo)m_text.PublishClone(context);
            }
            if (m_angle != null)
            {
                mapTitle.m_angle = (ExpressionInfo)m_angle.PublishClone(context);
            }
            if (m_textShadowOffset != null)
            {
                mapTitle.m_textShadowOffset = (ExpressionInfo)m_textShadowOffset.PublishClone(context);
            }
            return(mapTitle);
        }
Example #2
0
 internal MapTitle(Microsoft.ReportingServices.ReportIntermediateFormat.MapTitle defObject, Map map)
     : base(defObject, map)
 {
 }
Example #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);
            }
        }