You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.7 KiB
C#

namespace com.azkoss.excellite
{
using System;
using System.IO;
///<summary>
///Externsheet record for holding information REF' structures
///</summary>
internal class ExternsheetRecord : XLSRecord
{
// Methods
static ExternsheetRecord()
{
ExternsheetRecord.staticDescriptor = XLSDescriptors.GetByName("EXTERNSHEET");
}
///<summary>
///Initializes a new instance of the <see cref="com.azkoss.excellite.ExternsheetRecord" /> class.
///</summary>
public ExternsheetRecord() : base(ExternsheetRecord.staticDescriptor)
{
base.InitializeBody((byte[]) null);
}
///<summary>
///Initializes a new instance of the <see cref="com.azkoss.excellite.ExternsheetRecord" /> class.
///</summary>
///<param name="bodyLength">Length of the body.</param>
///<param name="br">The binary reader to read from.</param>
///<param name="previousRecord">The previous record.</param>
public ExternsheetRecord(int bodyLength, BinaryReader br, AbsXLSRec previousRecord) : base(ExternsheetRecord.staticDescriptor, bodyLength, br)
{
}
protected override int GetVariableArraySize(object[] loadedArgs, object[] varArr, int bodySize)
{
return ((bodySize - 6) / 6);
}
protected override void InitializeDelayed()
{
com.azkoss.excellite.SheetIndexes[] indexesArray1 = new com.azkoss.excellite.SheetIndexes[this.sheetIndexes.Length];
for (int num1 = 0; num1 < this.sheetIndexes.Length; num1++)
{
indexesArray1[num1] = new com.azkoss.excellite.SheetIndexes(this.sheetIndexes[num1]);
}
object[] objArray1 = new object[] { (ushort) this.sheetIndexes.Length, indexesArray1 } ;
base.InitializeDelayed(objArray1);
}
// Properties
protected override int BodySize
{
get
{
if (this.Body != null)
{
return this.Body.Length;
}
return ((this.sheetIndexes.Length * 6) + 2);
}
}
///<summary>
///Gets the sheet indexes.
///</summary>
///<value>The sheet indexes.</value>
internal ushort[] SheetIndexes
{
get
{
return this.sheetIndexes;
}
set
{
this.sheetIndexes = value;
}
}
// Fields
private ushort[] sheetIndexes;
private static XLSDescriptor staticDescriptor;
}
}