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(); }
public XMLHyperlinkModel(string area, string href, string text, PartManager manager, CT_Sheet entry) { this._link = new CT_Hyperlink(); this._link._ref_Attr = area; this._link.Location_Attr = href; this._link.Display_Attr = text; this._isInternal = !href.Contains("://"); this._manager = manager; this._worksheetEntry = entry; }
public XMLPictureShapesModel(PartManager manager, CT_Sheet sheetEntry, string drawingId) { this._manager = manager; this._parent = this._manager.GetWorksheetXmlPart(sheetEntry); this._pictures = new List <XMLPictureShapeModel>(); foreach (Relationship item in this._manager.GetRelationshipsForSheet(sheetEntry, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing")) { if (item.RelationshipId == drawingId) { this._drawingrel = item; this._drawing = (WsDrPart)this._manager.GetPartByLocation(item.RelatedPart).HydratedPart; AspNetCore.ReportingServices.Rendering.ExcelOpenXmlRenderer.Parser.drawingml.x2006.spreadsheetDrawing.CT_Drawing cT_Drawing = (AspNetCore.ReportingServices.Rendering.ExcelOpenXmlRenderer.Parser.drawingml.x2006.spreadsheetDrawing.CT_Drawing) this._drawing.Root; break; } } }
public XMLPictureShapeModel(PartManager manager, WsDrPart part, XmlPart parent, AnchorModel startAnchor, AnchorModel endAnchor, uint uniqueId) : base(manager, part, startAnchor, endAnchor) { this._parent = parent; base.TwoCellAnchor.Choice_0 = CT_TwoCellAnchor.ChoiceBucket_0.pic; base.TwoCellAnchor.ClientData = new CT_AnchorClientData(); this.Picture.NvPicPr = new CT_PictureNonVisual(); this.Picture.NvPicPr.CNvPicPr = new CT_NonVisualPictureProperties(); this.Picture.NvPicPr.CNvPr = new CT_NonVisualDrawingProps(); this.Picture.NvPicPr.CNvPr.Id_Attr = uniqueId; this.Picture.NvPicPr.CNvPr.Name_Attr = "Picture " + uniqueId; this.Picture.BlipFill = new CT_BlipFillProperties(); this.Picture.BlipFill.Blip = new CT_Blip(); this.Picture.BlipFill.Blip.Cstate_Attr = ST_BlipCompression.print; this.Picture.BlipFill.Choice_0 = CT_BlipFillProperties.ChoiceBucket_0.stretch; this.Picture.BlipFill.Stretch = new CT_StretchInfoProperties(); this.Picture.BlipFill.Stretch.FillRect = new CT_RelativeRect(); this.Picture.SpPr.Choice_0 = CT_ShapeProperties.ChoiceBucket_0.prstGeom; this.Picture.SpPr.PrstGeom = new CT_PresetGeometry2D(); this.Picture.SpPr.PrstGeom.Prst_Attr = ST_ShapeType.rect; this.Picture.SpPr.PrstGeom.AvLst = new CT_GeomGuideList(); }
public XMLCellModel(XMLWorksheetModel sheet, PartManager manager, CT_Cell cell) { this._cell = cell; this._controller = new XMLCellController(cell, sheet, manager); this.FixCellValue(); }
public XMLWorksheetsModel(XMLWorkbookModel workbook, PartManager manager) { this.Workbook = workbook; this.Manager = manager; this._interface = new Worksheets(this); }
public XMLStreamsheetModel(XMLWorkbookModel workbook, XMLWorksheetsModel sheets, PartManager manager, string name, ExcelGeneratorConstants.CreateTempStream createTempStream) { base._workbookModel = workbook; base._worksheetsModel = sheets; base._manager = manager; this._interface = new Streamsheet(this); Relationship relationship = base._manager.AddStreamingPartToTree("application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml", "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet", "xl/worksheets/sheet{0}.xml", (XmlPart)base._manager.GetPartByContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml")); List <CT_Sheet> sheet = ((CT_Workbook)base._manager.Workbook.Root).Sheets.Sheet; base._sheetentry = new CT_Sheet(); base._sheetentry.Id_Attr = relationship.RelationshipId; base._sheetentry.Name_Attr = name; base._sheetentry.SheetId_Attr = sheets.NextId; sheet.Add(base._sheetentry); this._partName = relationship.RelatedPart; this._headStream = createTempStream(string.Format(CultureInfo.InvariantCulture, "streamsheetHead{0}", base._sheetentry.SheetId_Attr)); this._tailStream = createTempStream(string.Format(CultureInfo.InvariantCulture, "streamsheetTail{0}", base._sheetentry.SheetId_Attr)); this._headWriter = new StreamsheetParser(new StreamWriter(this._headStream), true); this._tailWriter = new StreamsheetParser(new StreamWriter(this._tailStream), false); this._headWriter.WritePrelude(); }
public XMLStreamsheetsModel(XMLWorkbookModel workbook, PartManager manager) : base(workbook, manager) { }