示例#1
0
        internal override void LoadFromStream(TBaseRecordLoader RecordLoader, TBOFRecord First)
        {
            TWorkbookLoader WorkbookLoader = new TWorkbookLoader(RecordLoader);

            int RecordId;

            do
            {
                RecordId = RecordLoader.RecordHeader.Id;
                TBaseRecord R = RecordLoader.LoadRecord(true);

                if (R != null)
                {
                    R.LoadIntoWorkbook(this, WorkbookLoader);
                }
            } while (RecordId != (int)xlr.EOF);

            ThemeRecord.LoadFromBiff8(); //done after continues are loaded.

            if (WorkbookLoader.XFCount == RecordLoader.XFCount && WorkbookLoader.XFCRC == RecordLoader.XFCRC && WorkbookLoader.XFExtList.Count > 0 &&
                RecordLoader.XlsBiffVersion != TXlsBiffVersion.Excel2003)    //We won't check First.BiffVersion to see if this was saved with Excel 2007. CRC should be enough.
            {
                Biff8XF.AddExt(WorkbookLoader.XFExtList, this);
            }

            EnsureRequiredRecords();
            FStyles.AddBiff8Outlines();
            if (First != null)
            {
                sBOF = First;              //Last statement
            }
        }
示例#2
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.RecalcId = this;
 }
示例#3
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.OleObjectSize = this;
 }
示例#4
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     //Do nothing, should be ignored
 }
示例#5
0
文件: USST.cs 项目: mwilian/demos
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     WorkbookLoader.RecordLoader.SST.Load(this);
 }
示例#6
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.Palette = this;
 }
示例#7
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.BookExt = this;
 }
示例#8
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.BoundSheets.AddTabIdFromFile(this);
 }
示例#9
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.IsXltTemplate = true;
 }
示例#10
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     XlsMessages.ThrowException(XlsErr.ErrExcelInvalid);
 }
示例#11
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.FileEncryption.WriteProt = this;
 }
示例#12
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.WorkbookProtection.Prot4RevPass = this;
 }
示例#13
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.WorkbookProtection.WindowProtect = this;
 }
示例#14
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.FileEncryption.FileSharing = this;
 }
示例#15
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.UserBView.Add(this);
 }
示例#16
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     base.LoadIntoWorkbook(Globals, WorkbookLoader);
     Globals.LoadingInterfaceHdr = false;
 }
示例#17
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.RealTimeData.Add(this);
 }
示例#18
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.CodeNameRecord = this;
 }
示例#19
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.DConn.Add(this);
 }
示例#20
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.ObNoMacros = this;
 }
示例#21
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.HeaderImages.LoadFromStream(WorkbookLoader.RecordLoader, this, false);
 }
示例#22
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.Excel9File = this;
 }
示例#23
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.ClrtClient = this;
 }
示例#24
0
 internal override void LoadIntoWorkbook(TWorkbookGlobals Globals, TWorkbookLoader WorkbookLoader)
 {
     Globals.PivotCache.Add(this);
 }