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

            if (m_value != null)
            {
                textRun.m_value = (ExpressionInfo)m_value.PublishClone(context);
            }
            if (m_toolTip != null)
            {
                textRun.m_toolTip = (ExpressionInfo)m_toolTip.PublishClone(context);
            }
            if (m_styleClass != null)
            {
                textRun.m_styleClass = (Style)m_styleClass.PublishClone(context);
            }
            if (m_markupType != null)
            {
                textRun.m_markupType = (ExpressionInfo)m_markupType.PublishClone(context);
            }
            if (m_action != null)
            {
                textRun.m_action = (Action)m_action.PublishClone(context);
            }
            return(textRun);
        }
Example #2
0
        internal override object PublishClone(AutomaticSubtotalContext context)
        {
            ReportItem reportItem = (ReportItem)base.PublishClone(context);

            reportItem.m_name = context.CreateUniqueReportItemName(m_name, m_isClone);
            if (m_styleClass != null)
            {
                reportItem.m_styleClass = (Style)m_styleClass.PublishClone(context);
            }
            if (m_top != null)
            {
                reportItem.m_top = (string)m_top.Clone();
            }
            if (m_left != null)
            {
                reportItem.m_left = (string)m_left.Clone();
            }
            if (m_height != null)
            {
                reportItem.m_height = (string)m_height.Clone();
            }
            if (m_width != null)
            {
                reportItem.m_width = (string)m_width.Clone();
            }
            if (m_toolTip != null)
            {
                reportItem.m_toolTip = (ExpressionInfo)m_toolTip.PublishClone(context);
            }
            if (m_visibility != null)
            {
                reportItem.m_visibility = (Visibility)m_visibility.PublishClone(context, isSubtotalMember: false);
            }
            reportItem.m_documentMapLabel = null;
            reportItem.m_bookmark         = null;
            if (m_dataElementName != null)
            {
                reportItem.m_dataElementName = (string)m_dataElementName.Clone();
            }
            if (m_repeatWith != null)
            {
                context.AddReportItemWithRepeatWithToUpdate(reportItem);
                reportItem.m_repeatWith = (string)m_repeatWith.Clone();
            }
            if (m_customProperties != null)
            {
                reportItem.m_customProperties = new DataValueList(m_customProperties.Count);
                {
                    foreach (DataValue customProperty in m_customProperties)
                    {
                        reportItem.m_customProperties.Add((DataValue)customProperty.PublishClone(context));
                    }
                    return(reportItem);
                }
            }
            return(reportItem);
        }
        internal virtual object PublishClone(AutomaticSubtotalContext context)
        {
            MapStyleContainer mapStyleContainer = (MapStyleContainer)MemberwiseClone();

            mapStyleContainer.m_map = context.CurrentMapClone;
            if (m_styleClass != null)
            {
                mapStyleContainer.m_styleClass = (Style)m_styleClass.PublishClone(context);
            }
            return(mapStyleContainer);
        }
Example #4
0
        internal virtual object PublishClone(AutomaticSubtotalContext context)
        {
            ChartStyleContainer chartStyleContainer = (ChartStyleContainer)MemberwiseClone();

            chartStyleContainer.m_chart = (Chart)context.CurrentDataRegionClone;
            if (m_styleClass != null)
            {
                chartStyleContainer.m_styleClass = (Style)m_styleClass.PublishClone(context);
            }
            return(chartStyleContainer);
        }
Example #5
0
        internal virtual object PublishClone(AutomaticSubtotalContext context)
        {
            GaugePanelStyleContainer gaugePanelStyleContainer = (GaugePanelStyleContainer)MemberwiseClone();

            gaugePanelStyleContainer.m_gaugePanel = (GaugePanel)context.CurrentDataRegionClone;
            if (m_styleClass != null)
            {
                gaugePanelStyleContainer.m_styleClass = (Style)m_styleClass.PublishClone(context);
            }
            return(gaugePanelStyleContainer);
        }
Example #6
0
        internal override object PublishClone(AutomaticSubtotalContext context)
        {
            Paragraph paragraph = (Paragraph)base.PublishClone(context);

            if (m_textRuns != null)
            {
                paragraph.m_textRuns = new List <TextRun>(m_textRuns.Count);
                foreach (TextRun textRun2 in m_textRuns)
                {
                    TextRun textRun = (TextRun)textRun2.PublishClone(context);
                    textRun.Paragraph = paragraph;
                    paragraph.m_textRuns.Add(textRun);
                }
            }
            if (m_styleClass != null)
            {
                paragraph.m_styleClass = (Style)m_styleClass.PublishClone(context);
            }
            if (m_leftIndent != null)
            {
                paragraph.m_leftIndent = (ExpressionInfo)m_leftIndent.PublishClone(context);
            }
            if (m_rightIndent != null)
            {
                paragraph.m_rightIndent = (ExpressionInfo)m_rightIndent.PublishClone(context);
            }
            if (m_hangingIndent != null)
            {
                paragraph.m_hangingIndent = (ExpressionInfo)m_hangingIndent.PublishClone(context);
            }
            if (m_spaceBefore != null)
            {
                paragraph.m_spaceBefore = (ExpressionInfo)m_spaceBefore.PublishClone(context);
            }
            if (m_spaceAfter != null)
            {
                paragraph.m_spaceAfter = (ExpressionInfo)m_spaceAfter.PublishClone(context);
            }
            if (m_listStyle != null)
            {
                paragraph.m_listStyle = (ExpressionInfo)m_listStyle.PublishClone(context);
            }
            if (m_listLevel != null)
            {
                paragraph.m_listLevel = (ExpressionInfo)m_listLevel.PublishClone(context);
            }
            return(paragraph);
        }
Example #7
0
        internal override object PublishClone(AutomaticSubtotalContext context)
        {
            ChartDataPoint chartDataPoint = (ChartDataPoint)base.PublishClone(context);

            if (m_action != null)
            {
                chartDataPoint.m_action = (Action)m_action.PublishClone(context);
            }
            if (m_styleClass != null)
            {
                chartDataPoint.m_styleClass = (Style)m_styleClass.PublishClone(context);
            }
            if (m_customProperties != null)
            {
                chartDataPoint.m_customProperties = new DataValueList(m_customProperties.Count);
                foreach (DataValue customProperty in m_customProperties)
                {
                    chartDataPoint.m_customProperties.Add((DataValue)customProperty.PublishClone(context));
                }
            }
            if (m_marker != null)
            {
                chartDataPoint.m_marker = (ChartMarker)m_marker.PublishClone(context);
            }
            if (m_dataPointValues != null)
            {
                chartDataPoint.m_dataPointValues           = (ChartDataPointValues)m_dataPointValues.PublishClone(context);
                chartDataPoint.m_dataPointValues.DataPoint = chartDataPoint;
            }
            if (m_dataLabel != null)
            {
                chartDataPoint.m_dataLabel = (ChartDataLabel)m_dataLabel.PublishClone(context);
            }
            if (m_axisLabel != null)
            {
                chartDataPoint.m_axisLabel = (ExpressionInfo)m_axisLabel.PublishClone(context);
            }
            if (m_itemInLegend != null)
            {
                chartDataPoint.m_itemInLegend = (ChartItemInLegend)m_itemInLegend.PublishClone(context);
            }
            if (m_toolTip != null)
            {
                chartDataPoint.m_toolTip = (ExpressionInfo)m_toolTip.PublishClone(context);
            }
            return(chartDataPoint);
        }
Example #8
0
        public object PublishClone(AutomaticSubtotalContext context)
        {
            Action action = (Action)MemberwiseClone();

            if (m_actionItemList != null)
            {
                action.m_actionItemList = new List <ActionItem>(m_actionItemList.Count);
                foreach (ActionItem actionItem in m_actionItemList)
                {
                    action.m_actionItemList.Add((ActionItem)actionItem.PublishClone(context));
                }
            }
            if (m_styleClass != null)
            {
                action.m_styleClass = (Style)m_styleClass.PublishClone(context);
            }
            if (m_sharedStyleProperties != null)
            {
                action.m_sharedStyleProperties = (StyleProperties)m_sharedStyleProperties.PublishClone(context);
            }
            return(action);
        }
Example #9
0
        internal override object PublishClone(AutomaticSubtotalContext context)
        {
            ChartSeries chartSeries = (ChartSeries)base.PublishClone(context);

            chartSeries.m_chart = (Chart)context.CurrentDataRegionClone;
            if (m_dataPoints != null)
            {
                chartSeries.m_dataPoints = new ChartDataPointList(m_dataPoints.Count);
                foreach (ChartDataPoint dataPoint in m_dataPoints)
                {
                    chartSeries.m_dataPoints.Add((ChartDataPoint)dataPoint.PublishClone(context));
                }
            }
            if (m_customProperties != null)
            {
                chartSeries.m_customProperties = new DataValueList(m_customProperties.Count);
                foreach (DataValue customProperty in m_customProperties)
                {
                    chartSeries.m_customProperties.Add((DataValue)customProperty.PublishClone(context));
                }
            }
            if (m_styleClass != null)
            {
                chartSeries.m_styleClass = (Style)m_styleClass.PublishClone(context);
            }
            if (m_action != null)
            {
                chartSeries.m_action = (Action)m_action.PublishClone(context);
            }
            if (m_type != null)
            {
                chartSeries.m_type = (ExpressionInfo)m_type.PublishClone(context);
            }
            if (m_subtype != null)
            {
                chartSeries.m_subtype = (ExpressionInfo)m_subtype.PublishClone(context);
            }
            if (m_emptyPoints != null)
            {
                chartSeries.m_emptyPoints = (ChartEmptyPoints)m_emptyPoints.PublishClone(context);
            }
            if (m_legendName != null)
            {
                chartSeries.m_legendName = (ExpressionInfo)m_legendName.PublishClone(context);
            }
            if (m_legendText != null)
            {
                chartSeries.m_legendText = (ExpressionInfo)m_legendText.PublishClone(context);
            }
            if (m_chartAreaName != null)
            {
                chartSeries.m_chartAreaName = (ExpressionInfo)m_chartAreaName.PublishClone(context);
            }
            if (m_valueAxisName != null)
            {
                chartSeries.m_valueAxisName = (ExpressionInfo)m_valueAxisName.PublishClone(context);
            }
            if (m_categoryAxisName != null)
            {
                chartSeries.m_categoryAxisName = (ExpressionInfo)m_categoryAxisName.PublishClone(context);
            }
            if (m_hidden != null)
            {
                chartSeries.m_hidden = (ExpressionInfo)m_hidden.PublishClone(context);
            }
            if (m_hideInLegend != null)
            {
                chartSeries.m_hideInLegend = (ExpressionInfo)m_hideInLegend.PublishClone(context);
            }
            if (m_chartSmartLabel != null)
            {
                chartSeries.m_chartSmartLabel = (ChartSmartLabel)m_chartSmartLabel.PublishClone(context);
            }
            if (m_dataLabel != null)
            {
                chartSeries.m_dataLabel = (ChartDataLabel)m_dataLabel.PublishClone(context);
            }
            if (m_marker != null)
            {
                chartSeries.m_marker = (ChartMarker)m_marker.PublishClone(context);
            }
            if (m_toolTip != null)
            {
                chartSeries.m_toolTip = (ExpressionInfo)m_toolTip.PublishClone(context);
            }
            if (m_chartItemInLegend != null)
            {
                chartSeries.m_chartItemInLegend = (ChartItemInLegend)m_chartItemInLegend.PublishClone(context);
            }
            return(chartSeries);
        }