示例#1
0
        private static void GetRelativeRowAndCol(int Rw1, int grBit1, out bool RowAbs, out bool ColAbs, out int Row, out int Col)
        {
            RowAbs = (grBit1 & 0x8000) == 0;
            ColAbs = (grBit1 & 0x4000) == 0;

            unchecked
            {
                Row = RowAbs ? Biff8Utils.ExpandBiff8Row(Rw1) : (Int16)Rw1;
                Col = ColAbs ? Biff8Utils.ExpandBiff8Col(grBit1 & ColMask) : (sbyte)(grBit1 & ColMask);
            }
        }
示例#2
0
 internal TVPageBreak(int aCol, int aRow1, int aRow2, bool Expand, bool aGoesAfter) : base(aGoesAfter)
 {
     Col  = aCol;
     Row1 = aRow1;
     if (Expand)
     {
         Row2 = Biff8Utils.ExpandBiff8Row(aRow2);
     }
     else
     {
         Row2 = aRow2;
     }
 }
示例#3
0
 private void AddParsed3dRef(TParsedTokenListBuilder TokenBuilder, ptg RealToken, int ExternSheet, int Rw1, int grBit1)
 {
     if (Relative3dRanges)
     {
         bool RowAbs1; bool ColAbs1; int Row1; int Col1;
         GetRelativeRowAndCol(Rw1, grBit1, out RowAbs1, out ColAbs1, out Row1, out Col1);
         Push(TokenBuilder, new TRef3dNToken(RealToken, ExternSheet, Row1, Col1, RowAbs1, ColAbs1, true));
     }
     else
     {
         Push(TokenBuilder, new TRef3dToken(RealToken, ExternSheet, Biff8Utils.ExpandBiff8Row(Rw1),
                                            Biff8Utils.ExpandBiff8Col(grBit1 & ColMask), (grBit1 & 0x8000) == 0, (grBit1 & 0x4000) == 0));
     }
 }
示例#4
0
 protected static void AddParsedArea(TParsedTokenListBuilder TokenBuilder, ptg aId, int Rw1, int Rw2, int grBit1, int grBit2)
 {
     Push(TokenBuilder, new TAreaToken(aId, Biff8Utils.ExpandBiff8Row(Rw1), Biff8Utils.ExpandBiff8Col(grBit1 & ColMask), (grBit1 & 0x8000) == 0, (grBit1 & 0x4000) == 0,
                                       Biff8Utils.ExpandBiff8Row(Rw2), Biff8Utils.ExpandBiff8Col(grBit2 & ColMask), (grBit2 & 0x8000) == 0, (grBit2 & 0x4000) == 0));
 }