internal override object PublishClone(AutomaticSubtotalContext context) { Map map2 = context.CurrentMapClone = (Map)base.PublishClone(context); if (m_mapDataRegions != null) { map2.m_mapDataRegions = new List <MapDataRegion>(m_mapDataRegions.Count); foreach (MapDataRegion mapDataRegion in m_mapDataRegions) { map2.m_mapDataRegions.Add((MapDataRegion)mapDataRegion.PublishClone(context)); } } if (m_mapLayers != null) { map2.m_mapLayers = new List <MapLayer>(m_mapLayers.Count); foreach (MapLayer mapLayer in m_mapLayers) { map2.m_mapLayers.Add((MapLayer)mapLayer.PublishClone(context)); } } if (m_mapViewport != null) { map2.m_mapViewport = (MapViewport)m_mapViewport.PublishClone(context); } if (m_mapLegends != null) { map2.m_mapLegends = new List <MapLegend>(m_mapLegends.Count); foreach (MapLegend mapLegend in m_mapLegends) { map2.m_mapLegends.Add((MapLegend)mapLegend.PublishClone(context)); } } if (m_mapTitles != null) { map2.m_mapTitles = new List <MapTitle>(m_mapTitles.Count); foreach (MapTitle mapTitle in m_mapTitles) { map2.m_mapTitles.Add((MapTitle)mapTitle.PublishClone(context)); } } if (m_mapDistanceScale != null) { map2.m_mapDistanceScale = (MapDistanceScale)m_mapDistanceScale.PublishClone(context); } if (m_mapColorScale != null) { map2.m_mapColorScale = (MapColorScale)m_mapColorScale.PublishClone(context); } if (m_mapBorderSkin != null) { map2.m_mapBorderSkin = (MapBorderSkin)m_mapBorderSkin.PublishClone(context); } if (m_antiAliasing != null) { map2.m_antiAliasing = (ExpressionInfo)m_antiAliasing.PublishClone(context); } if (m_textAntiAliasingQuality != null) { map2.m_textAntiAliasingQuality = (ExpressionInfo)m_textAntiAliasingQuality.PublishClone(context); } if (m_shadowIntensity != null) { map2.m_shadowIntensity = (ExpressionInfo)m_shadowIntensity.PublishClone(context); } if (m_tileLanguage != null) { map2.m_tileLanguage = (ExpressionInfo)m_tileLanguage.PublishClone(context); } if (m_action != null) { map2.m_action = (Action)m_action.PublishClone(context); } if (m_pageBreak != null) { map2.m_pageBreak = (PageBreak)m_pageBreak.PublishClone(context); } if (m_pageName != null) { map2.m_pageName = (ExpressionInfo)m_pageName.PublishClone(context); } return(map2); }