Exemple #1
0
        public BoxStyle(Rdl.Engine.Style style, Rdl.Runtime.Context context)
        {
            if (style == null)
            {
                style = Rdl.Engine.Style.DefaultStyle;
            }
            BorderColor                = new BorderColor(style.BorderColor, context);
            BorderStyle                = new BorderStyle(style.BorderStyle, context);
            BorderWidth                = new BorderWidth(style.BorderWidth, context);
            BackgroundColor            = style.BackgroundColor(context);
            BackgroundGradientType     = style.BackgroundGradientType(context);
            BackgroundGradientEndColor = style.BackgroundGradientEndColor(context);
            Color         = style.Color(context);
            PaddingLeft   = style.PaddingLeft(context);
            PaddingRight  = style.PaddingRight(context);
            PaddingTop    = style.PaddingTop(context);
            PaddingBottom = style.PaddingBottom(context);

            Rdl.Engine.BackgroundImage bi = style.BackgroundImage;
            if (bi != null)
            {
                BackgroundImage             = new ImageData();
                BackgroundImage.imageData   = bi.GetImage(context);
                BackgroundImage.Sizing      = bi.Sizing;
                BackgroundImage.ImageRepeat = bi.ImageRepeat(context);
            }
        }
Exemple #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);
        }
Exemple #3
0
 public TextStyle(Rdl.Engine.Style style, Rdl.Runtime.Context context)
     : base(style, context)
 {
     if (style == null)
     {
         style = Rdl.Engine.Style.DefaultStyle;
     }
     FontStyle       = style.FontStyle(context);
     FontFamily      = style.FontFamily(context);
     FontSize        = style.FontSize(context);
     FontWeight      = style.FontWeight(context);
     Format          = style.Format(context);
     TextDecoration  = style.TextDecoration(context);
     TextAlign       = style.TextAlign(context);
     VerticalAlign   = style.VerticalAlign(context);
     LineHeight      = style.LineHeight(context);
     Direction       = style.Direction(context);
     WritingMode     = style.WritingMode(context);
     Language        = style.Language(context);
     UnicodeBiDi     = style.UnicodeBiDi(context);
     Calendar        = style.Calendar(context);
     NumeralLanguage = style.NumeralLanguage(context);
     NumeralVariant  = style.NumeralVariant(context);
 }
Exemple #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);
        }
Exemple #5
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);
 }
Exemple #6
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);
        }
Exemple #7
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);
        }
Exemple #8
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);
        }