public ActionElement(Container parent, Rdl.Engine.ReportElement reportItem, BoxStyle style ) : base(parent, reportItem, style) { }
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); }
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); }
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); }
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); }
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); }
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; } } }
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); }
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); } } }
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); }
// 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); }
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; }
public Cell(Container parent, Rdl.Engine.ReportElement reportElement, BoxStyle style) : base(parent, reportElement, style) { }
internal ChartElement(Container parent, Rdl.Engine.ReportElement reportElement, BoxStyle style, Rdl.Runtime.Context context) : base(parent, reportElement, style) { _context = context; }
internal Container(Container parent, Rdl.Engine.ReportElement reportElement, BoxStyle style) : base(parent, reportElement, style) { }
public TableContainer(Container parent, Rdl.Engine.ReportElement reportElement, BoxStyle style) : base(parent, reportElement, style) { Rows = new TableRows(this); Columns = new TableColumns(this); }
public Container(Rdl.Render.Container parent, Rdl.Engine.ReportElement reportElement, BoxStyle style) : base(parent, reportElement, style) { Rows = new Rows(this); Columns = new Columns(this); }