XlsxWorkbookArchiveHelpers
XlsxWorkbookArchiveHelpers
Übersicht
XlsxWorkbookArchiveHelpers ist eine Klasse in Aspose.Cells FOSS für C++.
Interne Hilfsmethoden zum Lesen von XLSX-Mappe-Teilen aus einem ZIP-Archiv.
Diese Klasse stellt 21 Methoden zur Arbeit mit XlsxWorkbookArchiveHelpers-Objekten in C++-Programmen bereit. Verfügbare Methoden umfassen: AddIssue, EnsureSeekable, FindRelationshipTarget, FindRelationshipTargetByType, GetEntry, GetRelationshipTargetKind, LoadDateStyleIndexes, LoadDocument, LoadRelationships, LoadSharedStrings, LooksLikeDateFormat, NormalizeFormula und 9 weitere Methoden. Alle öffentlichen Mitglieder sind für jede C++-Anwendung nach der Installation des Aspose.Cells FOSS for C++-Pakets zugänglich.
Methoden
| Signatur | Beschreibung |
|---|---|
XlsxWorkbookArchiveHelpers() | Ruft XlsxWorkbookArchiveHelpers auf dieser XlsxWorkbookArchiveHelpers-Instanz auf. |
EnsureSeekable(stream: std::vector<uint8_t>) → std::vector<uint8_t> | Stellt sicher, dass der Byte-Puffer suchbar ist (identisch für Daten im Speicher). |
GetEntry(archive: ZipArchive, uri: std::string_view) → ZipArchiveEntry | Erhält einen ZIP-Eintrag anhand der URI, normalisiert führende Schrägstriche und Backslashes. |
LoadDocument(entry: ZipArchiveEntry) → XmlDocument | Lädt ein XML-Dokument aus einem ZIP-Eintrag. |
LoadRelationships(archive: ZipArchive, relationshipsUri: std::string_view, sourceUri: std::string_view) → std::unordered_map<std::string, std::string> | Lädt Beziehungen aus einer .rels-Datei im Archiv. |
FindRelationshipTarget(workbookRelationships: std::unordered_map<std::string, std::string>, expectedPath: std::string_view) → std::string | Findet das erste Beziehungsziel, dessen aufgelöster Pfad mit expectedPath übereinstimmt. |
FindRelationshipTargetByType(workbookRelationships: std::unordered_map<std::string, std::string>, relationshipType: std::string_view) → std::string | Findet das erste Beziehungsziel, dessen abgeleiteter Typ mit relationshipType übereinstimmt. |
LoadSharedStrings(archive: ZipArchive, workbookRelationships: std::unordered_map<std::string, std::string>, options: LoadOptions, diagnostics: LoadDiagnostics) → std::vector<std::string> | Lädt die Shared Strings Table aus dem Archiv. |
LoadDateStyleIndexes(archive: ZipArchive, workbookRelationships: std::unordered_map<std::string, std::string>, options: LoadOptions, diagnostics: LoadDiagnostics) → std::unordered_set<int> | Lädt die Menge der Zellformat-Indizes, die ein Datumszahlformat verwenden. |
ParseBoolAttribute(attribute: XmlAttribute) → bool | Parst ein boolesches Attribut („1“ oder „true“ ergibt true). |
ParseIntAttribute(attribute: XmlAttribute) → std::optional<int> | Parst ein Integer-Attribut und gibt bei Fehlschlag oder Null-Attribut einen leeren Wert zurück. |
ParseDoubleAttribute(attribute: XmlAttribute) → std::optional<double> | Parst ein Double-Attribut und gibt bei Fehlschlag oder Null-Attribut einen leeren Wert zurück. |
NormalizeFormula(value: std::string_view) → std::string | Normalisiert einen Formelfstring, indem er getrimmt und ein führendes ‘=’ entfernt wird. |
ReadInlineString(inlineStringElement: XmlElement) → std::string | Liest den zusammengefügten Text aus einem Inline-String-Element. |
TryParseNumber(rawValue: std::string_view, numberValue: CellValue) → bool | Versucht, einen Rohstring als Zahl (int oder double) zu parsen. |
AddIssue(diagnostics: LoadDiagnostics, options: LoadOptions, issue: LoadIssue) | Protokolliert ein Ladeproblem und benachrichtigt den Warn-Callback, falls vorhanden. |
ResolveWorksheetUri(sheetIndex: int, relationshipId: std::string_view, workbookRelationships: std::unordered_map<std::string, std::string>, archive: ZipArchive, diagnostics: LoadDiagnostics, sheetName: std::string_view, options: LoadOptions) → std::string | Löst die URI des Arbeitsblatt-Teils aus einer Beziehungs-ID auf und greift bei Bedarf auf die Konvention zurück. |
ResolvePartUri(sourceUri: std::string_view, target: std::string_view) → std::string | Löst ein relatives oder absolutes Ziel anhand einer Quell-URI auf. |
RelationshipPointsTo(candidate: std::string_view, expectedUri: std::string_view) → bool | Überprüft, ob ein Kandidatenpfad mit einer erwarteten URI übereinstimmt (ohne Berücksichtigung der Groß-/Kleinschreibung). |
GetRelationshipTargetKind(candidate: std::string_view) → std::string | Ermittelt den Beziehungstyp aus einem aufgelösten Zielpfad. |
LooksLikeDateFormat(formatCode: std::string_view) → bool | Testet, ob ein Zahlenformatcode wie ein Datums-/Uhrzeitformat aussieht. |