protected AreaPtgBase(RecordInputStream in1) { field_1_first_row = in1.ReadUShort(); field_2_last_row = in1.ReadUShort(); field_3_first_column = in1.ReadUShort(); field_4_last_column = in1.ReadUShort(); }
public ExtendedPivotTableViewFieldsRecord(RecordInputStream in1) { grbit1 = in1.ReadInt(); grbit2 = in1.ReadUByte(); citmShow = in1.ReadUByte(); isxdiSort = in1.ReadUShort(); isxdiShow = in1.ReadUShort(); // This record seems to have different valid encodings switch (in1.Remaining) { case 0: // as per "Microsoft Excel Developer's Kit" book // older version of SXVDEX - doesn't seem to have a sub-total name reserved1 = 0; reserved2 = 0; subName = null; return; case 10: // as per "MICROSOFT OFFICE EXCEL 97-2007 BINARY FILE FORMAT SPECIFICATION" pdf break; default: throw new RecordFormatException("Unexpected remaining size (" + in1.Remaining + ")"); } int cchSubName = in1.ReadUShort(); reserved1 = in1.ReadInt(); reserved2 = in1.ReadInt(); if (cchSubName != STRING_NOT_PRESENT_LEN) { subName = in1.ReadUnicodeLEString(cchSubName); } }
/** * Constructs a LinkedData record and Sets its fields appropriately. * * @param in the RecordInputstream to Read the record from */ public LinkedDataRecord(RecordInputStream in1) { field_1_linkType = (byte)in1.ReadByte(); field_2_referenceType = (byte)in1.ReadByte(); field_3_options = in1.ReadShort(); field_4_indexNumberFmtRecord = in1.ReadShort(); int encodedTokenLen = in1.ReadUShort(); field_5_formulaOfLink = Formula.Read(encodedTokenLen, in1); }
private static int ReadUShortAndCheck(RecordInputStream in1) { if (in1.Remaining < ENCODED_SIZE) { // Ran out of data throw new Exception("Ran out of data reading CellRangeAddress"); } return in1.ReadUShort(); }
/** * Constructs a LinkedData record and Sets its fields appropriately. * * @param in the RecordInputstream to Read the record from */ public BRAIRecord(RecordInputStream in1) { field_1_linkType = (byte)in1.ReadByte(); field_2_referenceType = (byte)in1.ReadByte(); field_3_options = in1.ReadShort(); field_4_indexNumberFmtRecord = in1.ReadShort(); int encodedTokenLen = in1.ReadUShort(); field_5_formulaOfLink = Formula.Read(encodedTokenLen, in1); }
/** * Constructs a SeriesList record and Sets its fields appropriately. * * @param in the RecordInputstream to Read the record from */ public SeriesListRecord(RecordInputStream in1) { int nItems = in1.ReadUShort(); short[] ss = new short[nItems]; for (int i = 0; i < nItems; i++) { ss[i] = in1.ReadShort(); } field_1_seriesNumbers = ss; }
public OfficeArtFOPTE(RecordInputStream ris) { Opid = new OfficeArtFOPTEOPID((ushort)ris.ReadUShort()); Op = ris.ReadInt(); if (Opid.IsComplex) { complexData = new byte[Op]; for (int i = 0; i < complexData.Length; i++) complexData[i] = (byte)ris.ReadByte(); } }
/** * @param in the RecordInputstream to read the record from */ public CellRangeAddressList(RecordInputStream in1) { int nItems = in1.ReadUShort(); _list = new ArrayList(nItems); for (int k = 0; k < nItems; k++) { _list.Add(new CellRangeAddress(in1)); } }
public CrtLayout12ARecord(RecordInputStream ris) { frtHeader.rt = (ushort)ris.ReadUShort(); frtHeader.grbitFrt = (ushort)ris.ReadUShort(); ris.ReadLong(); field_1_dwCheckSum = ris.ReadInt(); field_2_option = ris.ReadShort(); field_3_xTL = ris.ReadShort(); field_4_yTL = ris.ReadShort(); field_5_xBR = ris.ReadShort(); field_6_yBR = ris.ReadShort(); field_7_wXMode = ris.ReadShort(); field_8_wYMode = ris.ReadShort(); field_9_wWidthMode = ris.ReadShort(); field_10_wHeightMode = ris.ReadShort(); field_11_x = ris.ReadDouble(); field_12_y = ris.ReadDouble(); field_13_dx = ris.ReadDouble(); field_14_dy = ris.ReadDouble(); reserved2 = ris.ReadShort(); }
public OfficeArtFOPTE(RecordInputStream ris) { Opid = new OfficeArtFOPTEOPID((ushort)ris.ReadUShort()); Op = ris.ReadInt(); if (Opid.IsComplex) { complexData = new byte[Op]; for (int i = 0; i < complexData.Length; i++) { complexData[i] = (byte)ris.ReadByte(); } } }
public ChartTitleFormatRecord(RecordInputStream in1) { m_recs = in1.ReadUShort(); int idx; CTFormat ctf; if (m_formats == null) { m_formats = new ArrayList(m_recs); } for (idx = 0; idx < m_recs; idx++) { ctf = new CTFormat(in1.ReadShort(), in1.ReadShort()); m_formats.Add(ctf); } }
public AlRunsRecord(RecordInputStream in1) { m_recs = in1.ReadUShort(); int idx; CTFormat ctf; if (m_formats == null) { m_formats = new List <object>(m_recs); } for (idx = 0; idx < m_recs; idx++) { ctf = new CTFormat(in1.ReadShort(), in1.ReadShort()); m_formats.Add(ctf); } }
public DataItemRecord(RecordInputStream in1) { isxvdData = in1.ReadUShort(); iiftab = in1.ReadUShort(); df = in1.ReadUShort(); isxvd = in1.ReadUShort(); isxvi = in1.ReadUShort(); ifmt = in1.ReadUShort(); name = in1.ReadString(); }
public ColumnWidthRecord(RecordInputStream in1) { //this.sid = in1.Sid; //this.isBiff2 = isBiff2; FirstColumnIndex = in1.ReadUByte(); LastColumnIndex = in1.ReadUByte(); ColumnWidth = in1.ReadUShort(); if (in1.Remaining > 0) { logger.Log(POILogger.INFO, "ColumnWidthRecord data remains: " + in1.Remaining + " : " + HexDump.ToHex(in1.ReadRemainder()) ); } }
public ViewFieldsRecord(RecordInputStream in1) { sxaxis = in1.ReadShort(); cSub = in1.ReadShort(); grbitSub = in1.ReadShort(); cItm = in1.ReadShort(); int cchName = in1.ReadUShort(); if (cchName != STRING_NOT_PRESENT_LEN) { int flag = in1.ReadByte(); if ((flag & 0x01) != 0) { _name = in1.ReadUnicodeLEString(cchName); } else { _name = in1.ReadCompressedUnicode(cchName); } } }
public CellRangeAddress8Bit(RecordInputStream in1) : base(ReadUShortAndCheck(in1), in1.ReadUShort(), in1.ReadUByte(), in1.ReadUByte()) { }
public ViewDefinitionRecord(RecordInputStream in1) { rwFirst = in1.ReadUShort(); rwLast = in1.ReadUShort(); colFirst = in1.ReadUShort(); colLast = in1.ReadUShort(); rwFirstHead = in1.ReadUShort(); rwFirstData = in1.ReadUShort(); colFirstData = in1.ReadUShort(); iCache = in1.ReadUShort(); reserved = in1.ReadUShort(); sxaxis4Data = in1.ReadUShort(); ipos4Data = in1.ReadUShort(); cDim = in1.ReadUShort(); cDimRw = in1.ReadUShort(); cDimCol = in1.ReadUShort(); cDimPg = in1.ReadUShort(); cDimData = in1.ReadUShort(); cRw = in1.ReadUShort(); cCol = in1.ReadUShort(); grbit = in1.ReadUShort(); itblAutoFmt = in1.ReadUShort(); int cchName = in1.ReadUShort(); int cchData = in1.ReadUShort(); name = StringUtil.ReadUnicodeString(in1, cchName); dataField = StringUtil.ReadUnicodeString(in1, cchData); }
public OfficeArtRecordHeader(RecordInputStream ris) { field_1_recVer_Instance = ris.ReadShort(); field_2_recType = (ushort)ris.ReadUShort(); field_3_recLen = ris.ReadInt(); }