Exemple #1
0
        internal void WriteTableCellEnd(int cellIndex, BorderContext borderContext)
        {
            int offset = GetTcLocation(m_numColumns, cellIndex) + 4;

            UpdateBorderColor(Positions.Top, offset, cellIndex, borderContext.Top);
            UpdateBorderColor(Positions.Left, offset, cellIndex, borderContext.Left);
            UpdateBorderColor(Positions.Bottom, offset, cellIndex, borderContext.Bottom);
            UpdateBorderColor(Positions.Right, offset, cellIndex, borderContext.Right);
        }
        public void WriteTableCellEnd(int cellIndex, BorderContext borderContext, bool emptyLayoutCell)
        {
            m_currentRow.WriteTableCellEnd(cellIndex, borderContext);
            string parEnd = "\a";

            if (m_nestingLevel > 1)
            {
                m_parFormat.AddSprm(9291, 1, null);
                parEnd = "\r";
            }
            if (emptyLayoutCell)
            {
                m_parFormat.StyleIndex = 16;
            }
            WriteCurrentListData();
            WriteParagraphEnd(parEnd, useTapx: false);
        }
Exemple #3
0
 internal void SetTableContext(BorderContext borderContext)
 {
     if (borderContext.Top)
     {
         m_tableBorders[0] = new BorderCode();
     }
     if (borderContext.Left)
     {
         m_tableBorders[1] = new BorderCode();
     }
     if (borderContext.Bottom)
     {
         m_tableBorders[2] = new BorderCode();
     }
     if (borderContext.Right)
     {
         m_tableBorders[3] = new BorderCode();
     }
 }
 public void ApplyCellBorderContext(BorderContext borderContext)
 {
 }
 public void SetTableContext(BorderContext borderContext)
 {
     m_currentRow.SetTableContext(borderContext);
 }
 protected override void RenderRPLContainer(RPLElement element, bool inTablix, RPLItemMeasurement measurement, int cellIndex, BorderContext borderContext, bool hasBorder)
 {
     RenderRPLContainerContents(element, measurement, borderContext, inTablix, hasBorder);
     RenderRPLContainerProperties(element, inTablix, cellIndex);
 }
        protected override void RenderTablixCell(RPLTablix tablix, float left, float[] widths, TablixGhostCell[] ghostCells, BorderContext borderContext, int nextCell, RPLTablixCell cell, List <RPLTablixMemberCell> .Enumerator omittedCells, bool lastCell)
        {
            RPLItemMeasurement tablixCellMeasurement = GetTablixCellMeasurement(cell, nextCell, widths, ghostCells, omittedCells, lastCell, tablix);

            RenderTablixCellItem(cell, widths, tablixCellMeasurement, left, borderContext);
            ClearTablixCellBorders(cell);
            FinishRenderingTablixCell(cell, widths, ghostCells, borderContext);
        }
        protected override void RenderTextBox(RPLTextBox textBox, RPLItemMeasurement measurement, int cellIndex, float left, BorderContext borderContext, bool inTablix, bool hasBorder)
        {
            RPLTextBoxPropsDef textBoxPropsDef;
            bool            isSimple;
            string          textBoxValue;
            bool            notCanGrow;
            bool            needsTable;
            RPLElementStyle style;
            int             oldCellIndex;
            RPLTextBoxProps textBoxProperties = GetTextBoxProperties(textBox, out textBoxPropsDef, out isSimple, out textBoxValue, inTablix, out notCanGrow, hasBorder, cellIndex, out needsTable, out style, out oldCellIndex);

            RenderTextBox(textBox, inTablix, cellIndex, needsTable, style, measurement, notCanGrow, textBoxPropsDef, textBoxProperties, isSimple, textBoxValue, borderContext, oldCellIndex);
            RenderTextBoxProperties(inTablix, cellIndex, needsTable, style);
        }
 protected override bool RenderRectangleItemAndLines(RPLContainer rectangle, BorderContext borderContext, int y, PageTableCell cell, string linkToChildId, float runningLeft, bool rowUsed)
 {
     rowUsed = RenderRectangleItem(y, cell, borderContext, linkToChildId, rectangle, runningLeft, rowUsed);
     RenderLines(y, cell, borderContext);
     return(rowUsed);
 }