internal override object PublishClone(AutomaticSubtotalContext context) { ScaleRange scaleRange = (ScaleRange)base.PublishClone(context); if (m_action != null) { scaleRange.m_action = (Action)m_action.PublishClone(context); } if (m_distanceFromScale != null) { scaleRange.m_distanceFromScale = (ExpressionInfo)m_distanceFromScale.PublishClone(context); } if (m_startValue != null) { scaleRange.m_startValue = (GaugeInputValue)m_startValue.PublishClone(context); } if (m_endValue != null) { scaleRange.m_endValue = (GaugeInputValue)m_endValue.PublishClone(context); } if (m_startWidth != null) { scaleRange.m_startWidth = (ExpressionInfo)m_startWidth.PublishClone(context); } if (m_endWidth != null) { scaleRange.m_endWidth = (ExpressionInfo)m_endWidth.PublishClone(context); } if (m_inRangeBarPointerColor != null) { scaleRange.m_inRangeBarPointerColor = (ExpressionInfo)m_inRangeBarPointerColor.PublishClone(context); } if (m_inRangeLabelColor != null) { scaleRange.m_inRangeLabelColor = (ExpressionInfo)m_inRangeLabelColor.PublishClone(context); } if (m_inRangeTickMarksColor != null) { scaleRange.m_inRangeTickMarksColor = (ExpressionInfo)m_inRangeTickMarksColor.PublishClone(context); } if (m_backgroundGradientType != null) { scaleRange.m_backgroundGradientType = (ExpressionInfo)m_backgroundGradientType.PublishClone(context); } if (m_placement != null) { scaleRange.m_placement = (ExpressionInfo)m_placement.PublishClone(context); } if (m_toolTip != null) { scaleRange.m_toolTip = (ExpressionInfo)m_toolTip.PublishClone(context); } if (m_hidden != null) { scaleRange.m_hidden = (ExpressionInfo)m_hidden.PublishClone(context); } return(scaleRange); }
internal void SetExprHost(GaugeScaleExprHost exprHost, ObjectModelImpl reportObjectModel) { Global.Tracer.Assert(exprHost != null && reportObjectModel != null); base.SetExprHost(exprHost, reportObjectModel); m_exprHost = exprHost; IList <ScaleRangeExprHost> scaleRangesHostsRemotable = m_exprHost.ScaleRangesHostsRemotable; if (m_scaleRanges != null && scaleRangesHostsRemotable != null) { for (int i = 0; i < m_scaleRanges.Count; i++) { ScaleRange scaleRange = m_scaleRanges[i]; if (scaleRange != null && scaleRange.ExpressionHostID > -1) { scaleRange.SetExprHost(scaleRangesHostsRemotable[scaleRange.ExpressionHostID], reportObjectModel); } } } IList <CustomLabelExprHost> customLabelsHostsRemotable = m_exprHost.CustomLabelsHostsRemotable; if (m_customLabels != null && customLabelsHostsRemotable != null) { for (int j = 0; j < m_customLabels.Count; j++) { CustomLabel customLabel = m_customLabels[j]; if (customLabel != null && customLabel.ExpressionHostID > -1) { customLabel.SetExprHost(customLabelsHostsRemotable[customLabel.ExpressionHostID], reportObjectModel); } } } if (m_gaugeMajorTickMarks != null && m_exprHost.GaugeMajorTickMarksHost != null) { m_gaugeMajorTickMarks.SetExprHost(m_exprHost.GaugeMajorTickMarksHost, reportObjectModel); } if (m_gaugeMinorTickMarks != null && m_exprHost.GaugeMinorTickMarksHost != null) { m_gaugeMinorTickMarks.SetExprHost(m_exprHost.GaugeMinorTickMarksHost, reportObjectModel); } if (m_maximumPin != null && m_exprHost.MaximumPinHost != null) { m_maximumPin.SetExprHost(m_exprHost.MaximumPinHost, reportObjectModel); } if (m_minimumPin != null && m_exprHost.MinimumPinHost != null) { m_minimumPin.SetExprHost(m_exprHost.MinimumPinHost, reportObjectModel); } if (m_scaleLabels != null && m_exprHost.ScaleLabelsHost != null) { m_scaleLabels.SetExprHost(m_exprHost.ScaleLabelsHost, reportObjectModel); } if (m_action != null && exprHost.ActionInfoHost != null) { m_action.SetExprHost(exprHost.ActionInfoHost, reportObjectModel); } }
public ScaleRange this[string name] { get { for (int i = 0; i < Count; i++) { Microsoft.ReportingServices.ReportIntermediateFormat.ScaleRange scaleRange = m_gaugeScale.GaugeScaleDef.ScaleRanges[i]; if (string.CompareOrdinal(name, scaleRange.Name) == 0) { return(base[i]); } } throw new RenderingObjectModelException(ProcessingErrorCode.rsNotInCollection, name); } }
internal ScaleRange(Microsoft.ReportingServices.ReportIntermediateFormat.ScaleRange defObject, GaugePanel gaugePanel) { m_defObject = defObject; m_gaugePanel = gaugePanel; }