Skip to main content

Crate pptx_edit

Crate pptx_edit 

Source
Expand description

Collaborative yrs-backed PPTX deck model.

Modules§

paragraph
Font-independent paragraph semantics shared by rendering and export: the layout and master a slide inherits from, the paragraph-property cascade, and list markers.
structured
Read-only structured export of PPTX content: slides in deck order, each with its shape tree, text stories, tables and placeholders for content the export cannot represent, every record carrying the location it was read from, plus diagnostics for everything omitted. render_pptx_markdown renders the same content as Markdown.

Structs§

BackgroundGuard
Refuses a step unless the slide’s effective background is exactly background; null is no background of its own.
CaretAnchor
ColorValue
CommentReceipt
CommentSnapshot
DeckSession
DeckSnapshot
DeckUndoManager
DocumentVersion
An opaque, session-scoped optimistic-concurrency token. Compare for equality only.
EditApplication
EditCtx
EditFailure
EditPreview
What one step would do at its resolved pre-batch target. It reserves nothing.
EditReceipt
What one step did. Text targets describe the final state; a deletion reports its collapsed boundary.
EditRefusal
A policy refusal; the deck is untouched at version.
EditRequest
EditValidation
FillGuard
Refuses a step unless the shape’s authored fill is exactly fill; None is no fill of its own.
FindMatch
One search hit; range is reusable as a TextTarget::Range.
FindRequest
FindResponse
FindScope
Where a search looks: a slide, one shape and its descendants, or one story.
GradientFill
GradientStop
InheritedGeometry
The transform a placeholder takes from its layout or master.
OutlineGuard
Refuses a step unless the shape’s authored outline is exactly outline.
ParagraphSnapshot
ParagraphSource
ParagraphText
One paragraph’s place in its story’s projected text.
PendingMedia
Image data shared by editing peers.
PictureDraft
PresetShapeDraft
Proposal
ProposalAcceptance
ProposalChange
ProposalDiffPreview
ProposalPreview
ProposalRequest
ProposalSlideDiff
Slide-scoped diff preview: scope is the render input, snapshot carries that slide.
ProposalTextChange
ReadRequest
ReadResponse
RectGuard
Refuses a step unless the shape’s rectangle is exactly rect.
ShapeAdjustReceipt
ShapeDraft
ShapeFill
ShapeFillReceipt
ShapeReceipt
ShapeRect
ShapeSnapshot
ShapeStroke
ShapeStrokeReceipt
ShapeTarget
A shape addressed through the slide that owns it.
ShapeZOrderReceipt
SlideBackgroundReceipt
SlideReceipt
SlideScope
One slide’s snapshot plus deck geometry — the slide-scoped render input.
SlideSnapshot
SlideTarget
StorySnapshot
StoryTarget
A text story addressed through its slide and owning shape.
StoryText
One story’s projected text.
TableReceipt
TextField
The story offsets of one field result.
TextGuard
Refuses a step unless its target currently reads exactly text.
TextParagraphDraft
TextRange
A half-open range of story-local UTF-16 offsets.
TextReceipt
TextRunDraft
TextRunSnapshot
TextSearchMatch
Story-local UTF-16 offsets.
TextStyle
TextStylePatch
TransformReceipt
UpdateEvent

Enums§

CommentFlavor
EditError
EditFailureCode
EditHistory
How an applied batch enters local undo history.
EditOrigin
EditSource
Who asked for a batch. Provenance only: it selects neither permissions nor history.
EditStep
One batch step. Text steps stay inside one paragraph, except formatText and setParagraphAlignment, which may span paragraphs of one story.
EditTarget
What a failure, preview or receipt refers to.
ProposalEdit
ProposalError
ProposalTextChangeKind
ShapeKind
TableEdit
TableInsertPosition
TargetEdge
Which end of a target an insertion goes to.
TextCaps
a:rPr/@cap: how a run is cased when drawn. Display only — the stored text keeps the author’s casing.
TextTarget
The text a step addresses.
UndoCaptureMode
Policy for grouping tracked local transactions.
UpdateOrigin

Constants§

MAX_REQUEST_BYTES
Largest request a read, search or batch accepts, measured as JSON.
MAX_SAFE_CLIENT_ID
MAX_UPDATE_BYTES

Functions§

outcome_json
JSON of a policy outcome: the success body or the refusal, tagged with ok.
oversized_request
The refusal for a JSON request longer than MAX_REQUEST_BYTES, before decoding it.

Type Aliases§

EditOutcome
EditResult
FindOutcome
ProposalResult
ReadOutcome
UpdateSubscription
ValidationOutcome