Beispiel #1
0
 public ActionElement(Container parent,
                      Rdl.Engine.ReportElement reportItem,
                      BoxStyle style
                      )
     : base(parent, reportItem, style)
 {
 }
Beispiel #2
0
        internal ImageElement AddImageElement(Rdl.Engine.ReportElement reportElement,
                                              Rdl.Engine.Style style, Rdl.Runtime.Context context)
        {
            ImageElement child = new ImageElement(this, reportElement, new BoxStyle(style, context));

            _childElements.Add(child);
            return(child);
        }
Beispiel #3
0
 internal Table.Container AddTableContainer(Rdl.Engine.ReportElement reportElement, Rdl.Engine.Style style, Rdl.Runtime.Context context)
 {
     Table.Container child = new Table.Container(this, reportElement, new BoxStyle(style, context));
     if (style != null && style.BackgroundImage != null)
     {
         _imageIndex = Render.AddImage(style.BackgroundImage, context);
     }
     _childElements.Add(child);
     return(child);
 }
Beispiel #4
0
        internal TextElement AddTextElement(Rdl.Engine.ReportElement reportElement, string name, string text, Rdl.Engine.Style style, Rdl.Runtime.Context context)
        {
            TextElement child = new TextElement(this, reportElement, name, text, new TextStyle(style, context), context);

            if (style != null && style.BackgroundImage != null)
            {
                _imageIndex = Render.AddImage(style.BackgroundImage, context);
            }
            _childElements.Add(child);
            return(child);
        }
Beispiel #5
0
        internal ChartElement AddChartElement(Rdl.Engine.ReportElement reportElement, Rdl.Engine.Style style, Rdl.Runtime.Context context)
        {
            ChartElement child = new ChartElement(this, reportElement, new BoxStyle(style, context), context);

            if (style != null && style.BackgroundImage != null)
            {
                _imageIndex = Render.AddImage(style.BackgroundImage, context);
            }
            _childElements.Add(child);
            return(child);
        }
Beispiel #6
0
        internal FlowContainer AddFlowContainer(Rdl.Engine.ReportElement reportElement, Rdl.Engine.Style style, Rdl.Runtime.Context context, Rdl.Render.FlowContainer.FlowDirectionEnum direction)
        {
            FlowContainer child = new FlowContainer(this, reportElement, new BoxStyle(style, context));

            child.FlowDirection = direction;
            if (style != null && style.BackgroundImage != null)
            {
                _imageIndex = Render.AddImage(style.BackgroundImage, context);
            }
            _childElements.Add(child);
            return(child);
        }
Beispiel #7
0
 internal TextElement(Container parent, Rdl.Engine.ReportElement reportElement, string name, string text, BoxStyle style, Rdl.Runtime.Context context)
     : base(parent, reportElement, style)
 {
     _name = name;
     _text = text;
     Rdl.Engine.TextBox tb = reportElement as Rdl.Engine.TextBox;
     if (tb != null)
     {
         if (((Rdl.Engine.TextBox)reportElement).ToggleImage != null)
         {
             _toggleState = (((Rdl.Engine.TextBox)reportElement).ToggleImage.InitialState(context)) ? ToggleStateEnum.open : ToggleStateEnum.closed;
         }
     }
 }
Beispiel #8
0
 internal Element(Container parent, Rdl.Engine.ReportElement reportElement, BoxStyle style)
 {
     _parentElement = parent;
     if (_parentElement != null)
     {
         _genericRender = _parentElement._genericRender;
     }
     _reportElement = reportElement;
     if (style != null && reportElement != null)
     {
         _styleIndex = Render.AddStyle(style);
     }
     _toggles = new Toggles(this);
 }
Beispiel #9
0
 private void RecurseFindReportElements(Rdl.Engine.ReportElement r, List <Container> boxList)
 {
     if (_reportElement == r)
     {
         boxList.Add(this);
         return;
     }
     foreach (Element e in _childElements)
     {
         if (e is Container)
         {
             ((Container)e).RecurseFindReportElements(r, boxList);
         }
     }
 }
Beispiel #10
0
        public Cell AddCell(int row, int column, Rdl.Engine.ReportElement reportElement, Rdl.Engine.Style style)
        {
            Cell cell = new Cell(this, reportElement, new BoxStyle(style));

            Rows[row].Cells.Add(cell);
            _childElements.Add(cell);
            Columns[column].Cells.Add(cell);
            cell.Row                = row;
            cell.Column             = column;
            cell.Width              = Columns[column].Width;
            cell.Height             = Rows[row].Height;
            cell.Name               = "Cell";
            cell.CanGrowHorizonally = false;

            return(cell);
        }
Beispiel #11
0
        // Find the Container that refers to the specified report element somewhere
        // in the tree below the current box.
        public List <Container> FindReportElements(Rdl.Engine.ReportElement r)
        {
            Container parent = this;

            List <Container> boxList = new List <Container>();

            while (parent != null)
            {
                if (parent.ContextBase)
                {
                    RecurseFindReportElements(r, boxList);
                    if (boxList.Count > 0)
                    {
                        return(boxList);
                    }
                }

                parent = parent.Parent;
            }
            return(null);
        }
Beispiel #12
0
 public Element(Element e)
 {
     _name = e._name;
     _canGrowHorizontally = e._canGrowHorizontally;
     _canGrowVertically   = e._canGrowVertically;
     _reportElement       = e._reportElement;
     _styleIndex          = e._styleIndex;
     _imageIndex          = e._imageIndex;
     _top             = e._top;
     _left            = e._left;
     _width           = e._width;
     _height          = e._height;
     _renderedTop     = e._renderedTop;
     _renderedLeft    = e._renderedLeft;
     _renderedWidth   = e._renderedWidth;
     _renderedHeight  = e._renderedHeight;
     _keepTogether    = e._keepTogether;
     _pageBreakAfter  = e._pageBreakAfter;
     _pageBreakBefore = e._pageBreakBefore;
     _fixed           = e._fixed;
     _toggles         = new Toggles(e._toggles);
     _genericRender   = e._genericRender;
 }
Beispiel #13
0
 public Cell(Container parent, Rdl.Engine.ReportElement reportElement, BoxStyle style)
     : base(parent, reportElement, style)
 {
 }
Beispiel #14
0
 internal ChartElement(Container parent, Rdl.Engine.ReportElement reportElement, BoxStyle style, Rdl.Runtime.Context context)
     : base(parent, reportElement, style)
 {
     _context = context;
 }
Beispiel #15
0
 internal Container(Container parent, Rdl.Engine.ReportElement reportElement, BoxStyle style)
     : base(parent, reportElement, style)
 {
 }
Beispiel #16
0
 public TableContainer(Container parent, Rdl.Engine.ReportElement reportElement, BoxStyle style)
     : base(parent, reportElement, style)
 {
     Rows    = new TableRows(this);
     Columns = new TableColumns(this);
 }
Beispiel #17
0
 public Container(Rdl.Render.Container parent, Rdl.Engine.ReportElement reportElement, BoxStyle style)
     : base(parent, reportElement, style)
 {
     Rows    = new Rows(this);
     Columns = new Columns(this);
 }