예제 #1
0
        /**
         * Constructor used when copying from an external workbook
         */
        public SupbookRecord(CSharpJExcel.Jxl.Read.Biff.SupbookRecord sr, WorkbookSettings ws)
            : base(Type.SUPBOOK)
        {
            workbookSettings = ws;
            if (sr.getType() == SupbookRecord.INTERNAL)
            {
                type      = INTERNAL;
                numSheets = sr.getNumberOfSheets();
            }
            else if (sr.getType() == SupbookRecord.EXTERNAL)
            {
                type       = EXTERNAL;
                numSheets  = sr.getNumberOfSheets();
                fileName   = sr.getFileName();
                sheetNames = new string[numSheets];

                for (int i = 0; i < numSheets; i++)
                {
                    sheetNames[i] = sr.getSheetName(i);
                }
            }

            if (sr.getType() == SupbookRecord.ADDIN)
            {
                //logger.warn("Supbook type is addin");
            }
        }
예제 #2
0
 /**
  * Initializes an internal supbook record
  *
  * @param sr the read supbook record to copy from
  */
 private void initInternal(CSharpJExcel.Jxl.Read.Biff.SupbookRecord sr)
 {
     numSheets = sr.getNumberOfSheets();
     initInternal();
 }