XlsxWorkbookSerializerCommon

XlsxWorkbookSerializerCommon

Vue de l’ensemble

‘XlsxWorkbookSerializerCommon’ est une classe dans Aspose.Cells FOSS pour C++.

Les constants et les assistants sont partagés à travers le sérialisateur de livres XLSX.

Cette classe fournit 24 méthodes pour travailler avec XlsxWorkbookSerializerCommon objets dans des programmes C++. Les méthodologies disponibles comprennent: BuildCell, BuildColumnElement , buildContentTypes ; buildMinimalStylesheet; BUildRootRelationships : ‘BuiltRowElements.BuySharedStrings. BUildWorksbook., buyWORKBookRELATIONS.. BoildDimensionReference et 12 méthode supplémentaires. Tous les membres publics sont accessibles à toute application C ++ après l'installation de la mise en place des Asp.Cells FOSS pour le package C. *BuilderRootsRelationss.

Méthodes accessorielles

NameTypeAccessDescription
WorksheetRelationshipTypestd::stringRead/WriteGets or sets the worksheet relationship type.
SharedStringsRelationshipTypestd::stringRead/WriteGets or sets the shared strings relationship type.
StylesRelationshipTypestd::stringRead/WriteGets or sets the styles relationship type.
CorePropertiesRelationshipTypestd::stringRead/WriteGets or sets the core properties relationship type.
ExtendedPropertiesRelationshipTypestd::stringRead/WriteGets or sets the extended properties relationship type.
MainNsXNamespaceRead/WriteGets or sets the main ns.
RelationshipNsXNamespaceRead/WriteGets or sets the relationship ns.
PackageRelationshipNsXNamespaceRead/WriteGets or sets the package relationship ns.
ContentTypeNsXNamespaceRead/WriteGets or sets the content type ns.
XmlNsXNamespaceRead/WriteGets or sets the xml ns.
BuiltInDateFormatsstd::unordered_set<int>Read/WriteGets or sets the built in date formats.

méthodes

SignatureDescription
XlsxWorkbookSerializerCommon()Calls XlsxWorkbookSerializerCommon on this XlsxWorkbookSerializerCommon instance.
ShouldPersistCell(workbookDefaultStyle: Core::StyleValue, record: Core::CellRecord)boolReturns true if the cell record should be persisted to the worksheet XML.
WriteXmlEntry(archive: ZipArchive, path: std::string_view, document: XmlDocument)Serializes an XmlDocument to UTF-8 and writes it as a ZIP entry.
BuildContentTypes(model: Core::WorkbookModel, hasSharedStrings: bool, hasDateStyles: bool, hasCoreProperties: bool, hasExtendedProperties: bool)XmlDocumentBuilds the [Content_Types].xml document.
BuildRootRelationships(hasCoreProperties: bool, hasExtendedProperties: bool)XmlDocumentBuilds the root _rels/.rels document.
BuildWorkbook(model: Core::WorkbookModel)XmlDocumentBuilds the xl/workbook.xml document.
BuildWorkbookRelationships(model: Core::WorkbookModel, hasSharedStrings: bool, hasDateStyles: bool)XmlDocumentBuilds the xl/_rels/workbook.xml.rels document.
BuildWorksheet(worksheet: Core::WorksheetModel, workbookDefaultStyle: Core::StyleValue, dateSystem: Core::DateSystem, sharedStrings: Core::SharedStringRepository, options: SaveOptions, stylesheet: StylesheetSaveContext)XmlDocumentBuilds an xl/worksheets/sheetN.xml document.
BuildSharedStrings(sharedStrings: Core::SharedStringRepository)XmlDocumentBuilds the xl/sharedStrings.xml document.
BuildMinimalStylesheet()XmlDocumentBuilds a minimal xl/styles.xml document.
BuildRowElement(rowIndex: int, rowModel: Core::RowModel, rowCells: std::vector<std::pair<Core::CellAddress, Core::CellRecord>>, dateSystem: Core::DateSystem, sharedStrings: Core::SharedStringRepository, options: SaveOptions, stylesheet: StylesheetSaveContext)XmlElementBuilds a row element with its child cells.
BuildColumnElement(column: Core::ColumnRangeModel)XmlElementBuilds a col element for a column range.
BuildCell(address: Core::CellAddress, record: Core::CellRecord, dateSystem: Core::DateSystem, sharedStrings: Core::SharedStringRepository, options: SaveOptions, stylesheet: StylesheetSaveContext)XmlElementBuilds a cell element (c element).
CreateTextElement(value: std::string_view)XmlElementCreates a text element (t element) with optional xml:space=“preserve”.
HasRowMetadata(rowModel: Core::RowModel)boolReturns true if the row model has any non-default metadata.
HasColumnMetadata(column: Core::ColumnRangeModel)boolReturns true if the column range has any non-default metadata.
NeedsPreserveWhitespace(value: std::string_view)boolChecks whether a string value needs xml:space=“preserve”.
GetWorksheetRowIndexes(persistedCells: std::vector<std::pair<Core::CellAddress, Core::CellRecord>>, rows: std::unordered_map<int, Core::RowModel>)std::vector<int>Collects and sorts the union of row indexes from persisted cells and row metadata.
NormalizeColumnRanges(columns: std::vector<Core::ColumnRangeModel>)std::vector<Core::ColumnRangeModel>Filters, sorts, and merges adjacent column ranges that share the same metadata.
ColumnMetadataEqual(left: Core::ColumnRangeModel, right: Core::ColumnRangeModel)boolReturns true if two column ranges have identical metadata.
CalculateDimensionReference(persistedCells: std::vector<std::pair<Core::CellAddress, Core::CellRecord>>, mergeRegions: std::vector<Core::MergeRegion>)std::stringCalculates the dimension reference string for the sheetData dimension element.
ToRangeReference(region: Core::MergeRegion)std::stringConverts a merge region to a range reference string (e.g. “A1:B2”).
TryParseMergeReference(mergeReference: std::string_view, region: Core::MergeRegion)boolParses a range reference string into a merge region. Returns true on success.
TryParseCellReference(cellReference: std::string_view, address: Core::CellAddress)boolParses a cell reference string into a CellAddress. Returns true on success.

Voir aussi

  • Aspose.Cells — référence API d’entreprise
 Français