using DocumentFormat.OpenXml; using A = DocumentFormat.OpenXml.Drawing; namespace AIStudio.Tools.DocumentSegments.PowerPoint; /// /// A paragraph of a slide or of its notes as a segment, with all the writer needs to put it together again. /// /// The paragraph. /// Its words with tags. /// The formatting of the words within each pair, e.g., bold or a link. /// The element each tag of its own stands for, e.g., a line break or the field of the slide number. /// The most common formatting of the words, which new words outside of any pair get. /// Whether the words differ in their formatting more often than pairs of formatting allow, so that the new words keep only the most common one. internal sealed record SlideTextParagraph( A.Paragraph Paragraph, DocumentSegment Segment, IReadOnlyDictionary FormatPairs, IReadOnlyDictionary Placeholders, A.RunProperties? BaseFormat, bool HasMixedFormatting);