Exemplo n.º 1
0
        /// <inheritdoc/>
        public override void GetChildObjects(ObjectCollection list)
        {
            base.GetChildObjects(list);
            if (IsRunning)
            {
                return;
            }

            list.Add(FHeader);
            foreach (BandBase band in FBands)
            {
                list.Add(band);
            }
            list.Add(FFooter);
        }
Exemplo n.º 2
0
        internal ReportComponentBase HitTest(PointF mouse)
        {
            mouse.X -= LeftMargin * Units.Millimeters;
            mouse.Y -= TopMargin * Units.Millimeters;

            ObjectCollection allObjects = AllObjects;

            for (int i = allObjects.Count - 1; i >= 0; i--)
            {
                ReportComponentBase c = allObjects[i] as ReportComponentBase;
                if (c != null)
                {
                    if (c.PointInObject(mouse))
                    {
                        return(c);
                    }
                }
            }
            return(null);
        }
Exemplo n.º 3
0
 /// <inheritdoc/>
 public virtual void GetChildObjects(ObjectCollection list)
 {
     if (TitleBeforeHeader)
     {
         list.Add(reportTitle);
         list.Add(pageHeader);
     }
     else
     {
         list.Add(pageHeader);
         list.Add(reportTitle);
     }
     list.Add(columnHeader);
     foreach (BandBase band in bands)
     {
         list.Add(band);
     }
     list.Add(reportSummary);
     list.Add(columnFooter);
     list.Add(pageFooter);
     list.Add(overlay);
 }
Exemplo n.º 4
0
 private void EnumAllConvectedObjects(object sender, Base c, ObjectCollection list, int convertValue)
 {
     if (c != this)
     {
         if (c.IsHaveToConvert(sender))
         {
             if (convertValue < 10)
             {
                 foreach (Base b in c.GetConvertedObjects())
                 {
                     EnumAllConvectedObjects(sender, b, list, convertValue + 1);
                 }
                 return;
             }
         }
         list.Add(c);
     }
     foreach (Base obj in c.ChildObjects)
     {
         EnumAllConvectedObjects(sender, obj, list, convertValue);
     }
 }
Exemplo n.º 5
0
        /// <summary>
        /// Gets a root datasource for the object currently edited.
        /// </summary>
        /// <returns>The <b>DataSourceBase</b> object if found; <b>null</b> otherwise.</returns>
        protected virtual DataSourceBase FindRootDataSource()
        {
            DataSourceBase data = null;
            DataBand       band = (Obj as ReportComponentBase).DataBand;

            if (band != null)
            {
                data = band.DataSource;
            }
            if (data == null)
            {
                ObjectCollection allData = Obj.Report.Dictionary.AllObjects;
                foreach (Base c in allData)
                {
                    if (c is DataSourceBase && (c as DataSourceBase).Enabled)
                    {
                        data = c as DataSourceBase;
                        break;
                    }
                }
            }
            return(data);
        }