Esempio n. 1
0
        protected void RenderLine(RPLLine reportItem, RPLElementProps rplProps, RPLLinePropsDef rplPropsDef, RPLItemMeasurement measurement, bool renderId, StyleContext styleContext)
        {
            if (html5Renderer.IsLineSlanted(measurement))
            {
                if (renderId)
                {
                    html5Renderer.RenderNavigationId(rplProps.UniqueName);
                }
                if (html5Renderer.m_deviceInfo.BrowserMode == BrowserMode.Quirks)
                {
                    RenderVMLLine(reportItem, measurement, styleContext);
                }
                return;
            }
            bool flag = measurement.Height == 0f;

            html5Renderer.WriteStream(HTMLElements.m_openSpan);
            if (renderId)
            {
                html5Renderer.RenderReportItemId(rplProps.UniqueName);
            }
            int    borderContext = 0;
            object obj           = rplProps.Style[10];

            if (obj != null)
            {
                html5Renderer.OpenStyle();
                if (flag)
                {
                    html5Renderer.WriteStream(HTMLElements.m_styleHeight);
                }
                else
                {
                    html5Renderer.WriteStream(HTMLElements.m_styleWidth);
                }
                html5Renderer.WriteStream(obj);
                html5Renderer.WriteStream(HTMLElements.m_semiColon);
            }
            obj = rplProps.Style[0];
            if (obj != null)
            {
                html5Renderer.OpenStyle();
                html5Renderer.WriteStream(HTMLElements.m_backgroundColor);
                html5Renderer.WriteStream(obj);
            }
            html5Renderer.RenderReportItemStyle(reportItem, measurement, ref borderContext);
            html5Renderer.CloseStyle(renderQuote: true);
            html5Renderer.WriteStream(HTMLElements.m_closeBracket);
            html5Renderer.WriteStream(HTMLElements.m_closeSpan);
        }