예제 #1
0
        internal TextElement AddTextElement(RdlEngine.ReportElement reportElement, string name, string text, RdlEngine.Style style)
        {
            TextElement child = new TextElement(this, reportElement, name, text, new TextStyle(style));

            _childElements.Add(child);
            return(child);
        }
예제 #2
0
        internal BoxElement AddBoxElement(RdlEngine.ReportElement reportElement, RdlEngine.Style style)
        {
            BoxElement child = new BoxElement(this, reportElement, new BoxStyle(style));

            _childElements.Add(child);
            return(child);
        }
예제 #3
0
        // Find the BoxElement that refers to the specified report element somewhere
        // in the tree below the current box.
        public List <BoxElement> FindReportElements(RdlEngine.ReportElement r)
        {
            List <BoxElement> boxList = new List <BoxElement>();

            RecurseFindReportElements(r, ref boxList);
            return(boxList);
        }
예제 #4
0
        internal FlowContainer AddFlowContainer(RdlEngine.ReportElement reportElement, RdlEngine.Style style)
        {
            FlowContainer child = new FlowContainer(this, reportElement, new BoxStyle(style));

            _childElements.Add(child);
            return(child);
        }
예제 #5
0
 internal Element(Container parent, RdlEngine.ReportElement reportElement, BoxStyle style)
 {
     _parentElement = parent;
     _reportElement = reportElement;
     if (style != null)
     {
         _styleIndex = AddStyle(style);
     }
 }
예제 #6
0
 internal TextElement(Container parent, RdlEngine.ReportElement reportElement, string name, string text, BoxStyle style)
     : base(parent, reportElement, style)
 {
     _name = name;
     _text = text;
     if (reportElement is RdlEngine.TextBox)
     {
         if (((RdlEngine.TextBox)reportElement).ToggleImage != null)
         {
             _toggleState = (((RdlEngine.TextBox)reportElement).ToggleImage.InitialState) ? ToggleStateEnum.open : ToggleStateEnum.closed;
         }
     }
 }
예제 #7
0
 public Element(Element e)
 {
     _name = e._name;
     _canGrowHorizontally = e._canGrowHorizontally;
     _canGrowVertically   = e._canGrowVertically;
     _matchParentHeight   = e._matchParentHeight;
     _styleIndex          = e._styleIndex;
     _reportElement       = e._reportElement;
     _baseStyleList       = e._baseStyleList;
     _top    = e._top;
     _left   = e._left;
     _width  = e._width;
     _height = e._height;
 }
예제 #8
0
 private void RecurseFindReportElements(RdlEngine.ReportElement r, ref List <BoxElement> boxList)
 {
     if (_reportElement == r)
     {
         boxList.Add(this);
         return;
     }
     foreach (Element e in _childElements)
     {
         if (e is BoxElement)
         {
             ((BoxElement)e).RecurseFindReportElements(r, ref boxList);
         }
     }
 }
예제 #9
0
 internal BoxElement(BoxElement parent, RdlEngine.ReportElement reportElement, BoxStyle style)
     : base(parent, reportElement, style)
 {
 }
예제 #10
0
 internal BoxElement AddListBoxElement(RdlEngine.ReportElement, RdlEngine.Style style)
예제 #11
0
 internal Container(Container parent, RdlEngine.ReportElement reportElement, BoxStyle style)
     : base(parent, reportElement, style)
 {
 }