public XMLCellController(CT_Cell cell, XMLWorksheetModel sheet, PartManager manager)
 {
     this._cell     = cell;
     this._workbook = (XMLWorkbookModel)sheet.Workbook;
     this._sheet    = sheet;
     this._manager  = manager;
 }
 public XMLRowModel(XMLStreamsheetModel sheet, PartManager manager, int rowNumber)
 {
     this._worksheetModel = sheet;
     this._manager        = manager;
     this._row            = new CT_Row();
     this._row.C          = new List <CT_Cell>();
     this.RowNumber       = rowNumber;
     this.Init();
 }
示例#3
0
 public XMLPageSetupModel(CT_Worksheet sheet, XMLWorksheetModel sheetModel)
 {
     if (sheet != null && sheetModel != null)
     {
         this._sheet      = sheet;
         this._sheetModel = sheetModel;
         this._interface  = new PageSetup(this);
         if (this._sheet.PageMargins == null)
         {
             this.SetDefaultMargins();
         }
         if (this._sheet.PageSetup == null)
         {
             this.SetDefaultPageSetup();
         }
         this.SetupUseZoom();
         return;
     }
     throw new FatalException();
 }
 public XMLCellModel(XMLWorksheetModel sheet, PartManager manager, CT_Cell cell)
 {
     this._cell       = cell;
     this._controller = new XMLCellController(cell, sheet, manager);
     this.FixCellValue();
 }