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); } }
internal THPageBreak(int aRow, int aCol1, int aCol2, bool Expand, bool aGoesAfter) : base(aGoesAfter) { Row = aRow; Col1 = aCol1; if (Expand) { Col2 = Biff8Utils.ExpandBiff8Col(aCol2); } else { Col2 = aCol2; } }
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)); } }
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)); }