예제 #1
0
        internal override object PublishClone(AutomaticSubtotalContext context, DataRegion newContainingRegion)
        {
            GaugeMember gaugeMember = (GaugeMember)base.PublishClone(context, newContainingRegion);

            if (ChildGaugeMember != null)
            {
                gaugeMember.ChildGaugeMember = (GaugeMember)ChildGaugeMember.PublishClone(context, newContainingRegion);
            }
            return(gaugeMember);
        }
예제 #2
0
 internal GaugeMember(IReportScope reportScope, IDefinitionPath parentDefinitionPath, GaugePanel owner, GaugeMember parent, Microsoft.ReportingServices.ReportIntermediateFormat.GaugeMember memberDef)
     : base(parentDefinitionPath, owner, parent, 0)
 {
     m_memberDef = memberDef;
     if (m_memberDef.IsStatic)
     {
         m_reportScope = reportScope;
     }
     m_group = new Group(owner, m_memberDef, this);
 }
예제 #3
0
        public override void CreateDomainScopeMember(ReportHierarchyNode parentNode, Grouping grouping, AutomaticSubtotalContext context)
        {
            GaugeMember gaugeMember = new GaugeMember(context.GenerateID(), this);

            gaugeMember.Grouping = grouping.CloneForDomainScope(context, gaugeMember);
            HierarchyNodeList hierarchyNodeList = (parentNode != null) ? parentNode.InnerHierarchy : ColumnMembers;

            if (hierarchyNodeList != null)
            {
                hierarchyNodeList.Add(gaugeMember);
                gaugeMember.IsColumn = true;
                GaugeRow.Cells.Insert(ColumnMembers.GetMemberIndex(gaugeMember), new GaugeCell(context.GenerateID(), this));
                base.ColumnCount++;
            }
        }
예제 #4
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.GaugeMember:
                    ChildGaugeMember = (GaugeMember)reader.ReadRIFObject();
                    break;

                case MemberName.ColumnMembers:
                    m_innerMembers = reader.ReadListOfRIFObjects <GaugeMemberList>();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
예제 #5
0
        internal override object PublishClone(AutomaticSubtotalContext context)
        {
            GaugePanel gaugePanel = (GaugePanel)(context.CurrentDataRegionClone = (GaugePanel)base.PublishClone(context));

            gaugePanel.m_rows          = new GaugeRowList();
            gaugePanel.m_rowMembers    = new GaugeMemberList();
            gaugePanel.m_columnMembers = new GaugeMemberList();
            if (GaugeMember != null)
            {
                gaugePanel.GaugeMember = (GaugeMember)GaugeMember.PublishClone(context, gaugePanel);
            }
            if (GaugeRowMember != null)
            {
                gaugePanel.GaugeRowMember = (GaugeMember)GaugeRowMember.PublishClone(context);
            }
            if (GaugeRow != null)
            {
                gaugePanel.GaugeRow = (GaugeRow)GaugeRow.PublishClone(context);
            }
            if (m_linearGauges != null)
            {
                gaugePanel.m_linearGauges = new List <LinearGauge>(m_linearGauges.Count);
                foreach (LinearGauge linearGauge in m_linearGauges)
                {
                    gaugePanel.m_linearGauges.Add((LinearGauge)linearGauge.PublishClone(context));
                }
            }
            if (m_radialGauges != null)
            {
                gaugePanel.m_radialGauges = new List <RadialGauge>(m_radialGauges.Count);
                foreach (RadialGauge radialGauge in m_radialGauges)
                {
                    gaugePanel.m_radialGauges.Add((RadialGauge)radialGauge.PublishClone(context));
                }
            }
            if (m_numericIndicators != null)
            {
                gaugePanel.m_numericIndicators = new List <NumericIndicator>(m_numericIndicators.Count);
                foreach (NumericIndicator numericIndicator in m_numericIndicators)
                {
                    gaugePanel.m_numericIndicators.Add((NumericIndicator)numericIndicator.PublishClone(context));
                }
            }
            if (m_stateIndicators != null)
            {
                gaugePanel.m_stateIndicators = new List <StateIndicator>(m_stateIndicators.Count);
                foreach (StateIndicator stateIndicator in m_stateIndicators)
                {
                    gaugePanel.m_stateIndicators.Add((StateIndicator)stateIndicator.PublishClone(context));
                }
            }
            if (m_gaugeImages != null)
            {
                gaugePanel.m_gaugeImages = new List <GaugeImage>(m_gaugeImages.Count);
                foreach (GaugeImage gaugeImage in m_gaugeImages)
                {
                    gaugePanel.m_gaugeImages.Add((GaugeImage)gaugeImage.PublishClone(context));
                }
            }
            if (m_gaugeLabels != null)
            {
                gaugePanel.m_gaugeLabels = new List <GaugeLabel>(m_gaugeLabels.Count);
                foreach (GaugeLabel gaugeLabel in m_gaugeLabels)
                {
                    gaugePanel.m_gaugeLabels.Add((GaugeLabel)gaugeLabel.PublishClone(context));
                }
            }
            if (m_antiAliasing != null)
            {
                gaugePanel.m_antiAliasing = (ExpressionInfo)m_antiAliasing.PublishClone(context);
            }
            if (m_autoLayout != null)
            {
                gaugePanel.m_autoLayout = (ExpressionInfo)m_autoLayout.PublishClone(context);
            }
            if (m_backFrame != null)
            {
                gaugePanel.m_backFrame = (BackFrame)m_backFrame.PublishClone(context);
            }
            if (m_shadowIntensity != null)
            {
                gaugePanel.m_shadowIntensity = (ExpressionInfo)m_shadowIntensity.PublishClone(context);
            }
            if (m_textAntiAliasingQuality != null)
            {
                gaugePanel.m_textAntiAliasingQuality = (ExpressionInfo)m_textAntiAliasingQuality.PublishClone(context);
            }
            if (m_topImage != null)
            {
                gaugePanel.m_topImage = (TopImage)m_topImage.PublishClone(context);
            }
            return(gaugePanel);
        }