Skip to content

Commit

Permalink
Added extra relationships required for 2020 and legacy template
Browse files Browse the repository at this point in the history
  • Loading branch information
luisgallego-fonto authored and wvbe committed Oct 25, 2023
1 parent 435bd7c commit ec0c797
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,9 @@ export enum RelationshipType {
webSettings = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings',
hyperlink = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink',
attachedTemplate = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/attachedTemplate',
// For dotx created with office 2020
classificationlabels = 'http://schemas.microsoft.com/office/2020/02/relationships/classificationlabels',
// Legacy template (.dot)
downRev = "http://schemas.microsoft.com/office/2006/relationships/downRev",
graphicFrameDoc = "http://schemas.microsoft.com/office/2006/relationships/graphicFrameDoc",
}
3 changes: 3 additions & 0 deletions src/files/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ export function castRelationshipToClass(
case RelationshipType.people:
case RelationshipType.commentIds:
case RelationshipType.commentsExtended:
case RelationshipType.classificationlabels:
case RelationshipType.downRev:
case RelationshipType.graphicFrameDoc:
return UnhandledXmlFile.fromArchive(archive, meta.target);

case RelationshipType.attachedTemplate:
Expand Down

0 comments on commit ec0c797

Please sign in to comment.