Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
qq15725 committed Dec 16, 2024
1 parent e2855a7 commit 607f993
Show file tree
Hide file tree
Showing 8 changed files with 134 additions and 2 deletions.
12 changes: 12 additions & 0 deletions src/OpenXml/Presentation/BuildList.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineChild, defineElement, OOXML } from '../../core'

/**
* https://learn.microsoft.com/dotnet/api/documentformat.openxml.presentation.buildlist
*/
@defineElement('p:bldLst')
export class BuildList extends OOXML {
@defineChild('p:bldDgm') declare bldDgm?: OOXML
@defineChild('p:bldGraphic') declare bldGraphic?: OOXML
@defineChild('p:bldOleChart') declare bldOleChart?: OOXML
@defineChild('p:bldP') declare bldP?: OOXML
}
22 changes: 22 additions & 0 deletions src/OpenXml/Presentation/ChildTimeNodeList.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import type { SequenceTimeNode } from './SequenceTimeNode'
import { defineChild, defineElement, OOXML } from '../../core'

/**
* https://learn.microsoft.com/dotnet/api/documentformat.openxml.presentation.childtimenodelist
*/
@defineElement('p:childTnLst')
export class ChildTimeNodeList extends OOXML {
@defineChild('p:anim') declare anim?: OOXML
@defineChild('p:animClr') declare animClr?: OOXML
@defineChild('p:animEffect') declare animEffect?: OOXML
@defineChild('p:animMotion') declare animMotion?: OOXML
@defineChild('p:animRot') declare animRot?: OOXML
@defineChild('p:animScale') declare animScale?: OOXML
@defineChild('p:audio') declare audio?: OOXML
@defineChild('p:cmd') declare cmd?: OOXML
@defineChild('p:excl') declare excl?: OOXML
@defineChild('p:par') declare par?: OOXML
@defineChild('p:seq') declare seq?: SequenceTimeNode
@defineChild('p:set') declare set?: OOXML
@defineChild('p:video') declare video?: OOXML
}
39 changes: 39 additions & 0 deletions src/OpenXml/Presentation/CommonTimeNode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import type { ChildTimeNodeList } from './ChildTimeNodeList'
import { defineAttribute, defineChild, defineElement, OOXML } from '../../core'

/**
* https://learn.microsoft.com/dotnet/api/documentformat.openxml.presentation.commontimenode
*/
@defineElement('p:cTn')
export class CommonTimeNode extends OOXML {
@defineAttribute('accel') declare accel?: any
@defineAttribute('afterEffect') declare afterEffect?: any
@defineAttribute('autoRev') declare autoRev?: any
@defineAttribute('bldLvl') declare bldLvl?: any
@defineAttribute('decel') declare decel?: any
@defineAttribute('display') declare display?: any
@defineAttribute('dur') declare dur?: any
@defineAttribute('evtFilter') declare evtFilter?: any
@defineAttribute('fill') declare fill?: any
@defineAttribute('grpId') declare grpId?: any
@defineAttribute('id') declare id?: any
@defineAttribute('masterRel') declare masterRel?: any
@defineAttribute('nodePh') declare nodePh?: any
@defineAttribute('nodeType') declare nodeType?: string
@defineAttribute('presetClass') declare presetClass?: any
@defineAttribute('presetID') declare presetID?: any
@defineAttribute('presetSubtype') declare presetSubtype?: any
@defineAttribute('repeatCount') declare repeatCount?: any
@defineAttribute('repeatDur') declare repeatDur?: any
@defineAttribute('restart') declare restart?: any
@defineAttribute('spd') declare spd?: any
@defineAttribute('syncBehavior') declare syncBehavior?: any
@defineAttribute('tmFilter') declare tmFilter?: any

@defineChild('p:childTnLst') declare childTnLst?: ChildTimeNodeList
@defineChild('p:endCondLst') declare endCondLst?: OOXML
@defineChild('p:endSync') declare endSync?: OOXML
@defineChild('p:iterate') declare iterate?: OOXML
@defineChild('p:stCondLst') declare stCondLst?: OOXML
@defineChild('p:subTnLst') declare subTnLst?: OOXML
}
10 changes: 10 additions & 0 deletions src/OpenXml/Presentation/ParallelTimeNode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { CommonTimeNode } from './CommonTimeNode'
import { defineChild, defineElement, OOXML } from '../../core'

/**
* https://learn.microsoft.com/dotnet/api/documentformat.openxml.presentation.paralleltimenode
*/
@defineElement('p:par')
export class ParallelTimeNode extends OOXML {
@defineChild('p:cTn') declare cTn?: CommonTimeNode
}
16 changes: 16 additions & 0 deletions src/OpenXml/Presentation/SequenceTimeNode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import type { CommonTimeNode } from './CommonTimeNode'
import { defineAttribute, defineChild, defineElement, OOXML } from '../../core'

/**
* https://learn.microsoft.com/dotnet/api/documentformat.openxml.presentation.sequencetimenode
*/
@defineElement('p:seq')
export class SequenceTimeNode extends OOXML {
@defineAttribute('concurrent') declare concurrent?: any
@defineAttribute('nextAc') declare nextAc?: any
@defineAttribute('prevAc') declare prevAc?: any

@defineChild('p:cTn') declare cTn?: CommonTimeNode
@defineChild('p:nextCondLst') declare nextCondLst?: OOXML
@defineChild('p:prevCondLst') declare prevCondLst?: OOXML
}
22 changes: 22 additions & 0 deletions src/OpenXml/Presentation/TimeNodeList.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import type { ParallelTimeNode } from './ParallelTimeNode'
import { defineChild, defineElement, OOXML } from '../../core'

/**
* https://learn.microsoft.com/dotnet/api/documentformat.openxml.presentation.timenodelist
*/
@defineElement('p:tnLst')
export class TimeNodeList extends OOXML {
@defineChild('p:anim') declare anim?: OOXML
@defineChild('p:animClr') declare animClr?: OOXML
@defineChild('p:animEffect') declare animEffect?: OOXML
@defineChild('p:animMotion') declare animMotion?: OOXML
@defineChild('p:animRot') declare animRot?: OOXML
@defineChild('p:animScale') declare animScale?: OOXML
@defineChild('p:audio') declare audio?: OOXML
@defineChild('p:cmd') declare cmd?: OOXML
@defineChild('p:excl') declare excl?: OOXML
@defineChild('p:par') declare par?: ParallelTimeNode
@defineChild('p:seq') declare seq?: OOXML
@defineChild('p:set') declare set?: OOXML
@defineChild('p:video') declare video?: OOXML
}
9 changes: 7 additions & 2 deletions src/OpenXml/Presentation/Timing.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import { defineElement, OOXML } from '../../core'
import type { BuildList } from './BuildList'
import type { ExtensionList } from './ExtensionList'
import type { TimeNodeList } from './TimeNodeList'
import { defineChild, defineElement, OOXML } from '../../core'

/**
* https://learn.microsoft.com/dotnet/api/documentformat.openxml.presentation.timing
*/
@defineElement('p:timing')
export class Timing extends OOXML {
// TODO
@defineChild('p:bldLst') declare bldLst?: BuildList
@defineChild('p:extLst') declare extLst?: ExtensionList
@defineChild('p:tnLst') declare tnLst?: TimeNodeList
}
6 changes: 6 additions & 0 deletions src/OpenXml/Presentation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ export * from './BlipFill'
export * from './BodyStyle'
export * from './BoldFont'
export * from './BoldItalicFont'
export * from './BuildList'
export * from './ChildTimeNodeList'
export * from './ColorMap'
export * from './ColorMapOverride'
export * from './ColorMostRecentlyUsed'
export * from './CommonSlideData'
export * from './CommonTimeNode'
export * from './ConnectionShape'
export * from './DefaultTextStyle'
export * from './EmbeddedFont'
Expand All @@ -37,12 +40,14 @@ export * from './NotesMasterId'
export * from './NotesMasterIdList'
export * from './NotesSize'
export * from './OtherStyle'
export * from './ParallelTimeNode'
export * from './Picture'
export * from './PlaceholderShape'
export * from './Presentation'
export * from './PresentationProperties'
export * from './PrintingProperties'
export * from './RegularFont'
export * from './SequenceTimeNode'
export * from './Shape'
export * from './ShapeProperties'
export * from './ShapeTree'
Expand All @@ -59,6 +64,7 @@ export * from './SlideMasterIdList'
export * from './SlideSize'
export * from './TextBody'
export * from './TextStyles'
export * from './TimeNodeList'
export * from './Timing'
export * from './TitleStyle'
export * from './ViewProperties'

0 comments on commit 607f993

Please sign in to comment.