private static string ExtractTextFromParagraph(MDShapeText mdShape, Drawing.Paragraph paragraph) { StringBuilder paragraphText = new StringBuilder(); foreach (var run in paragraph.Descendants <Drawing.Run>()) { var schemeColor = run.Descendants <Drawing.SchemeColor>().FirstOrDefault(); var color = run.Descendants <Drawing.RgbColorModelHex>().FirstOrDefault(); mdShape.IsMultiCode = color != null && color.Val != null && color.Val == "8CF4F2"; mdShape.IsCode = schemeColor != null && schemeColor.Val == Drawing.SchemeColorValues.Accent5; var paragraphProperties = paragraph.Descendants <Drawing.ParagraphProperties>().FirstOrDefault(); mdShape.IndentCount = paragraphProperties != null && paragraphProperties.Level != null ? paragraphProperties.Level.Value : 0; var text = run.Descendants <Drawing.Text>().FirstOrDefault(); if (text != null) { if (mdShape.IsCode) { paragraphText.AppendFormat("`{0}`", text.Text); } else { paragraphText.Append(text.Text); } } } return(paragraphText.ToString()); }
public static void FormatTitle(SlidePart slidePart) { if (slidePart == null) { throw new ArgumentNullException("presentationDocument"); } if (slidePart.Slide != null) { Shape titleShape = slidePart.Slide.Descendants <Shape>().Where(d => IsTitleShape(d) && d.InnerText.Contains(Constants._INPUTSLIDE_)).FirstOrDefault(); if (titleShape != default(Shape)) { D.Paragraph paragraph = titleShape.TextBody.Descendants <D.Paragraph>().FirstOrDefault(); if (paragraph != default(D.Paragraph)) { D.Run run = paragraph.Descendants <D.Run>().FirstOrDefault(); run.Text = new D.Text(Constants._OUTPUTSLIDE_); paragraph.InsertAt(new D.ParagraphProperties() { Alignment = D.TextAlignmentTypeValues.Center }, 0); run.RunProperties.InsertAt(new D.ComplexScriptFont() { CharacterSet = -78, PitchFamily = 2, Typeface = "Beirut" }, 0); run.RunProperties.InsertAt(new D.LatinFont() { CharacterSet = -78, PitchFamily = 2, Typeface = "Beirut" }, 0); } } } }
private void InsertPageDetasils(SlidePart tempSlidepart, GanttChartAutomation.GanttReportObject objganttReport) { Xdr.Paragraph pageDetails = _shpPageDetails.TextBody.Descendants <Xdr.Paragraph>().FirstOrDefault(); Xdr.Run pagedetails = pageDetails.Descendants <Xdr.Run>().FirstOrDefault(); Xdr.Paragraph ContactDetails = _shpContactDetails.TextBody.Descendants <Xdr.Paragraph>().FirstOrDefault(); Xdr.Run contactdetails = ContactDetails.Descendants <Xdr.Run>().FirstOrDefault(); //Xdr.Paragraph StatDetails = _shpStatsDetail.TextBody.Descendants<Xdr.Paragraph>().FirstOrDefault(); //Xdr.Run statDetails = StatDetails.Descendants<Xdr.Run>().FirstOrDefault(); Xdr.Paragraph HeadingIntegrated = _shpHeadingIntegrated.TextBody.Descendants <Xdr.Paragraph>().FirstOrDefault(); Xdr.Run headingIntegrated = HeadingIntegrated.Descendants <Xdr.Run>().FirstOrDefault(); Xdr.Paragraph TitleDetails = _shpTitle.TextBody.Descendants <Xdr.Paragraph>().FirstOrDefault(); Xdr.Run titleDetails = TitleDetails.Descendants <Xdr.Run>().FirstOrDefault(); Xdr.Paragraph HeadingDetails = _shpHeading.TextBody.Descendants <Xdr.Paragraph>().FirstOrDefault(); Xdr.Run headingDetails = HeadingDetails.Descendants <Xdr.Run>().FirstOrDefault(); Xdr.Paragraph FooterDetails = _shpFooterDetails.TextBody.Descendants <Xdr.Paragraph>().FirstOrDefault(); Xdr.Run footerDetails = FooterDetails.Descendants <Xdr.Run>().FirstOrDefault(); pagedetails.Text.Text = objganttReport.PageDetails; contactdetails.Text.Text = objganttReport.RIdetails; headingIntegrated.Text.Text = objganttReport.Title2; titleDetails.Text.Text = objganttReport.Title1; headingDetails.Text.Text = objganttReport.Title3; //statDetails.Text.Text = objganttReport.StatusDate.ToString(); footerDetails.Text.Text = objganttReport.FooterText; }
/// <summary> /// Creates ChartText which can be used to set a title on a chart. /// </summary> /// <param name="title">The text for the title</param> /// <returns>A <see cref="DrawingCharts.ChartText"/></returns> private static DrawingCharts.ChartText CreateChartText(string title) { var chartText = new DrawingCharts.ChartText(); var richText = new DrawingCharts.RichText(); var bodyProperties = new Drawing.BodyProperties(); var listStyle = new Drawing.ListStyle(); var paragraph = new Drawing.Paragraph(); var paragraphProperties = new Drawing.ParagraphProperties(); var defaultRunProperties = new Drawing.DefaultRunProperties(); paragraphProperties.Append(defaultRunProperties); var run = new Drawing.Run(); var runProperties = new Drawing.RunProperties() { Language = "en-US" }; var text = new Drawing.Text(title); run.Append(runProperties); run.Append(text); paragraph.Append(paragraphProperties); paragraph.Append(run); richText.Append(bodyProperties); richText.Append(listStyle); richText.Append(paragraph); chartText.Append(richText); return(chartText); }
public static a.Paragraph AddText(this a.Paragraph paragraph, string text, Font font = null, Color?fontColor = null) { var run = new a.Run().Init(text, font, fontColor); paragraph.Append(run); return(paragraph); }
private List <Portion> GetPortions(A.Paragraph aParagraph, SCParagraph paragraph) { IEnumerable <A.Run> aRuns = aParagraph.Elements <A.Run>(); if (aRuns.Any()) { var runPortions = new List <Portion>(aRuns.Count()); foreach (A.Run aRun in aRuns) { runPortions.Add(new Portion(aRun.Text, paragraph)); } return(runPortions); } A.Field aField = aParagraph.GetFirstChild <A.Field>(); if (aField != null) { A.Text aText = aParagraph.GetFirstChild <A.Field>().GetFirstChild <A.Text>(); var aFieldPortions = new List <Portion>(new[] { new Portion(aText, paragraph) }); return(aFieldPortions); } return(new List <Portion>()); }
public void PPT2007SearchAndReplace(string srcPPTName, string searchStr, string replaceStr) { using (PresentationDocument prstDoc = PresentationDocument.Open(srcPPTName, true)) { Slide firstSlide = prstDoc.PresentationPart.SlideParts.ElementAt(0).Slide; Shape firstShape = firstSlide.CommonSlideData.ShapeTree.ChildElements.OfType <Shape>().ElementAt(0); OD.Paragraph para = firstShape.TextBody.ChildElements.OfType <OD.Paragraph>().ElementAt(0); int cnt = para.ChildElements.OfType <OD.Run>().Count(); OD.Text t; Regex regexText = new Regex(searchStr); for (int i = 0; i < cnt; i++) { t = para.ChildElements.OfType <OD.Run>().ElementAt(i).Text; t.Text = regexText.Replace(t.Text, replaceStr); } //t.Text = DateTime.Now.ToString("mm/dd/yyyy"); // if you want to change the format you can change here. prstDoc.PresentationPart.Presentation.Save(); } }
internal SCParagraph(A.Paragraph aParagraph, SCTextBox textBox) { this.AParagraph = aParagraph; this.Level = GetInnerLevel(aParagraph); this.bullet = new Lazy <Bullet>(this.GetBullet); this.ParentTextBox = textBox; this.portions = new ResettableLazy <PortionCollection>(() => new PortionCollection(this.AParagraph, this)); }
private static int GetInnerLevel(A.Paragraph xmlParagraph) { // XML-paragraph enumeration started from zero. Null is also zero var outerLvl = xmlParagraph.ParagraphProperties?.Level ?? 0; var interLvl = outerLvl + 1; return(interLvl); }
public static a.Paragraph SetText(this a.Paragraph paragraph, string text, Font font = null, Color?fontColor = null) { paragraph.RemoveAllChildren <a.Run>(); var run = new a.Run().Init(text, font, fontColor); paragraph.Append(run); return(paragraph); }
public static xdr.TextBody SetText(this xdr.TextBody textBody, string text, Font font = null, Color?fontColor = null) { textBody.RemoveAllChildren <a.Paragraph>(); var p = new a.Paragraph(); textBody.Append(p); p.AddText(text, font, fontColor); return(textBody); }
/// <summary> /// Initializes an instance of the <see cref="Paragraph"/> class. /// </summary> /// <param name="spContext"></param> /// <param name="xmlParagraph">A XML paragraph which contains a text.</param> public Paragraph(IShapeContext spContext, A.Paragraph xmlParagraph) { _xmlParagraph = xmlParagraph ?? throw new ArgumentNullException(nameof(xmlParagraph)); _spContext = spContext ?? throw new ArgumentNullException(nameof(spContext)); _innerPrLvl = new Lazy <int>(GetInnerLevel(_xmlParagraph)); _text = new Lazy <string>(GetText); _portions = new Lazy <List <Portion> >(GetPortions); }
public void AddTextRun_NegativeFontSize_Throws() { Shape rectangle = PowerpointHelper.CreateRectangleShape(50, 50, 50, 50); D.Paragraph paragraph = PowerpointHelper.AddParagraph(rectangle, "text"); int oldNbTextRun = paragraph.Descendants <D.Run>().Count(); PowerpointHelper.AddTextRun(paragraph, "text", -100); }
/// <summary> /// Returns all the texts found inside a given paragraph. /// </summary> /// <remarks> /// If all A.Text in the given paragraph are empty, returns an empty string. /// </remarks> internal static string GetTexts(A.Paragraph p) { StringBuilder concat = new StringBuilder(); foreach (A.Text t in p.Descendants <A.Text>()) { concat.Append(t.Text); } return(concat.ToString()); }
public void AddTextRun_InvalidColor_Throws() { Shape rectangle = PowerpointHelper.CreateRectangleShape(50, 50, 50, 50); D.Paragraph paragraph = PowerpointHelper.AddParagraph(rectangle, "text"); int oldNbTextRun = paragraph.Descendants <D.Run>().Count(); PowerpointHelper.AddTextRun(paragraph, "text", 100, "invalid"); }
public static Document GenerateDocument() { Document document1 = new Document() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 wp14" } }; document1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas"); document1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); document1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office"); document1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); document1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math"); document1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml"); document1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"); document1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"); document1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word"); document1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main"); document1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml"); document1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"); document1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk"); document1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml"); document1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape"); DocumentBackground documentBackground1 = new DocumentBackground() { Color = "FF0000" }; V.Background background1 = new V.Background() { Id = "_x0000_s1025", BlackWhiteMode = Ovml.BlackAndWhiteModeValues.GrayScale, TargetScreenSize = Ovml.ScreenSizeValues.Sz1024x768 }; V.Fill fill1 = new V.Fill() { Type = V.FillTypeValues.Frame, Title = "Wedding_EnclosureCards", Recolor = true, Color = "FF0000" }; background1.Append(fill1); documentBackground1.Append(background1); Body body1 = new Body(); Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "005F6C39", RsidRunAdditionDefault = "005F6C39" }; BookmarkStart bookmarkStart1 = new BookmarkStart() { Name = "_GoBack", Id = "0" }; BookmarkEnd bookmarkEnd1 = new BookmarkEnd() { Id = "0" }; paragraph1.Append(bookmarkStart1); paragraph1.Append(bookmarkEnd1); SectionProperties sectionProperties1 = new SectionProperties() { RsidR = "005F6C39" }; PageSize pageSize1 = new PageSize() { Width = (UInt32Value)12240U, Height = (UInt32Value)15840U }; PageMargin pageMargin1 = new PageMargin() { Top = 1440, Right = (UInt32Value)1440U, Bottom = 1440, Left = (UInt32Value)1440U, Header = (UInt32Value)720U, Footer = (UInt32Value)720U, Gutter = (UInt32Value)0U }; Columns columns1 = new Columns() { Space = "720" }; DocGrid docGrid1 = new DocGrid() { LinePitch = 360 }; sectionProperties1.Append(pageSize1); sectionProperties1.Append(pageMargin1); sectionProperties1.Append(columns1); sectionProperties1.Append(docGrid1); body1.Append(paragraph1); body1.Append(sectionProperties1); document1.Append(documentBackground1); document1.Append(body1); return document1; }
private static int GetIndent(Drawing.Paragraph paragraph) { int indent = 0; if (paragraph.ParagraphProperties != null && paragraph.ParagraphProperties.Level != null) { indent = paragraph.ParagraphProperties.Level.Value; } return(indent); }
// ReSharper disable once UnusedParameter.Local private static void UpdatePowerPointBlock(OpenXmlPartContainer container, OpenXmlElement block, string content) { OXP.Shape shape = (OXP.Shape)block.CloneNode(true); OXD.Run run = (OXD.Run)shape.TextBody.Descendants <OXD.Run>().First().CloneNode(true); run.Text = new OXD.Text(content); OXD.Paragraph paragraph = shape.TextBody.GetFirstChild <OXD.Paragraph>(); paragraph.RemoveAllChildren <OXD.Run>(); OXD.EndParagraphRunProperties endP = paragraph.GetFirstChild <OXD.EndParagraphRunProperties>(); paragraph.InsertBefore(run, endP); block.Parent.ReplaceChild(shape, block); }
public static a.Paragraph SetTextAlignment(this a.Paragraph paragraph, a.TextAlignmentTypeValues textAlignment) { var paragraphProperties = paragraph.GetFirstChild <a.ParagraphProperties>(); if (paragraphProperties == null) { paragraphProperties = new a.ParagraphProperties(); paragraph.PrependChild(paragraphProperties); } paragraphProperties.Alignment = textAlignment; return(paragraph); }
public static xdr.TextBody AddText(this xdr.TextBody textBody, string text, Font font = null, Color?fontColor = null) { var p = textBody.Elements <a.Paragraph>().LastOrDefault(); if (p == null) { p = new a.Paragraph(); textBody.Append(p); } p.AddText(text, font, fontColor); return(textBody); }
/// <summary> /// Replaces text tag with hyperlink id. Hyperlink identified by Id hes to be a part of the slide. /// </summary> /// <param name="p">The paragraph (a:p).</param> /// <param name="tag">The tag to replace by newText, if null or empty do nothing; tag is a regex string.</param> /// <param name="newText">The new text to replace the tag with, if null replaced by empty string and not visible.</param> /// <param name="relationshipId">Hyperlink relationship Id. Relationship has to be existing on slide level.</param> /// <param name="fontName">Font name</param> /// <param name="fontSize">Font size. E.g. 800 is 8pt (small) font. If value is less than 100 it will be multiplied by 100 to keep up with PPT notation.</param> /// <returns></returns> internal static bool ReplaceTagWithHyperlink(A.Paragraph p, string tag, string newText, string relationshipId, string fontName = "Calibri", int fontSize = 800) { bool replaced = false; if (string.IsNullOrEmpty(tag)) { return(replaced); } if (newText == null) { newText = string.Empty; } newText = RemoveInvalidXMLChars(newText); while (true) { // Search for the tag Match match = Regex.Match(GetTexts(p), tag); if (!match.Success) { break; } p.RemoveAllChildren(); // remove exisitng children then add new A.HyperlinkOnClick link = new A.HyperlinkOnClick() { Id = relationshipId }; A.Run r = new A.Run(); r.RunProperties = new A.RunProperties(); A.Text at = new A.Text(newText); r.RunProperties.AppendChild(link); r.AppendChild(at); p.Append(r); var run = p.Descendants <A.Run>(); foreach (var item in run) { item.RunProperties.RemoveAllChildren <A.LatinFont>(); var latinFont = new A.LatinFont(); latinFont.Typeface = fontName; item.RunProperties.AppendChild(latinFont); item.RunProperties.FontSize = (fontSize > 99) ? fontSize : fontSize * 100; // e.g. translate value 8 (Power Point UI font size) to 800 for API } replaced = true; } return(replaced); }
private static void ReplaceWordRun(OXD.Paragraph paragraph, OXD.Run initRun, OXD.Run finalRun) { if (null != paragraph.Descendants <OXD.Run>()) { List <OXD.Run> runs = paragraph.Descendants <OXD.Run>().ToList(); foreach (var run in runs) { if (initRun != run) { paragraph.RemoveChild <OXD.Run>(run); } } paragraph.ReplaceChild <OXD.Run>(finalRun, initRun); } }
public void AddTextRun_CustomAttributes_Valid() { Shape rectangle = PowerpointHelper.CreateRectangleShape(50, 50, 50, 50); D.Paragraph paragraph = PowerpointHelper.AddParagraph(rectangle, "text"); int oldNbTextRun = paragraph.Descendants <D.Run>().Count(); PowerpointHelper.AddTextRun(paragraph, "text", 400, "487315", true); var errors = validator.Validate(paragraph); Assert.IsTrue(errors.Count() == 0); Assert.IsTrue(paragraph.Descendants <D.Run>().Count() - oldNbTextRun == 1); }
/// <summary> /// Gets all the TextIndex for a given paragraph. /// </summary> private static List <TextIndex> GetTextIndexList(A.Paragraph p) { List <TextIndex> texts = new List <TextIndex>(); StringBuilder concat = new StringBuilder(); foreach (A.Text t in p.Descendants <A.Text>()) { int startIndex = concat.Length; texts.Add(new TextIndex(t, startIndex)); concat.Append(t.Text); } return(texts); }
public static a.Paragraph SetLineSpace(this a.Paragraph paragraph, float heightMultiplier) { var paragraphProperties = paragraph.GetFirstChild <a.ParagraphProperties>(); if (paragraphProperties == null) { paragraphProperties = new a.ParagraphProperties(); paragraph.PrependChild(paragraphProperties); } paragraphProperties.LineSpacing = new a.LineSpacing(new a.SpacingPercent() { Val = (int)(heightMultiplier * 100000) }); return(paragraph); }
/// <summary> /// Adds a new paragraph in collection. /// </summary> /// <returns>Added <see cref="SCParagraph" /> instance.</returns> public IParagraph Add() { // Create a new paragraph from the last paragraph and insert at the end A.Paragraph lastAParagraph = this.paragraphs.Value.Last().AParagraph; A.Paragraph newAParagraph = (A.Paragraph)lastAParagraph.CloneNode(true); lastAParagraph.InsertAfterSelf(newAParagraph); var newParagraph = new SCParagraph(newAParagraph, this.textBox) { Text = string.Empty }; this.paragraphs.Reset(); return(newParagraph); }
public static a.Paragraph SetFont(this a.Paragraph paragraph, Font font, Color?fontColor) { var runs = paragraph.Descendants <a.Run>(); var runsCount = 0; foreach (var run in runs) { run.SetFont(font, fontColor); runsCount++; } if (runsCount == 0) { var r = new a.Run().Init("", font, fontColor); paragraph.Append(r); } return(paragraph); }
private void AddImageToBody(string relationshipId, string name, ImageSize imageSize, HorizontalAlignmentType alignment) { Body body = this._package.MainDocumentPart.Document.Body; var element = CreateDrawingElement(relationshipId, name, imageSize); var pictureParagraph = new Paragraph(new Run(element)); // If the paragraph has no ParagraphProperties object, create one. WordHelper.CreateParagraphPropertiesIfNonExists(pictureParagraph); // Set paragraph alignment WordHelper.SetParagraphAlignment(pictureParagraph, alignment); // Append the reference to body, the element should be in a Run. body.AppendChild(pictureParagraph); }
private static void ModifyPowerPointCellTextContent(OpenXmlElement cell, string txt) { OXD.TextBody textbody = cell?.Descendants <OXD.TextBody>().FirstOrDefault(); if (textbody == null) { return; } OXD.TextBody final_textbody = textbody.CloneNode(true) as OXD.TextBody; OXD.Paragraph paragraph = final_textbody?.Descendants <OXD.Paragraph>().FirstOrDefault(); if (null != paragraph) { OXD.Paragraph final_paragraph = paragraph.CloneNode(true) as OXD.Paragraph; ModifyPowerPointParagraphTextContent(final_paragraph, txt); final_textbody.ReplaceChild(final_paragraph, paragraph); } cell.ReplaceChild(final_textbody, textbody); }
/// <summary> /// Create table cell with the below order: /// a:tc(TableCell)->a:txbody(TextBody)->a:p(Paragraph)->a:r(Run)->a:t(Text) /// </summary> /// <param name="text">Inserted Text in Cell</param> /// <returns>Return TableCell object</returns> private static A.TableCell CreateTextCell(string text) { if (string.IsNullOrEmpty(text)) { text = string.Empty; } // Declare and instantiate the table cell // Create table cell with the below order: // a:tc(TableCell)->a:txbody(TextBody)->a:p(Paragraph)->a:r(Run)->a:t(Text) A.TableCell tableCell = new A.TableCell(); // Declare and instantiate the text body A.TextBody textBody = new A.TextBody(); A.BodyProperties bodyProperties = new A.BodyProperties(); A.ListStyle listStyle = new A.ListStyle(); A.Paragraph paragraph = new A.Paragraph(); A.Run run = new A.Run(); A.RunProperties runProperties = new A.RunProperties() { Language = "en-US", Dirty = false, SmartTagClean = false }; A.Text text2 = new A.Text(); text2.Text = text; run.Append(runProperties); run.Append(text2); A.EndParagraphRunProperties endParagraphRunProperties = new A.EndParagraphRunProperties() { Language = "en-US", Dirty = false }; paragraph.Append(run); paragraph.Append(endParagraphRunProperties); textBody.Append(bodyProperties); textBody.Append(listStyle); textBody.Append(paragraph); A.TableCellProperties tableCellProperties = new A.TableCellProperties(); tableCell.Append(textBody); tableCell.Append(tableCellProperties); return(tableCell); }
private static void ModifyPowerPointCellTextContent(OXD.TableCell cell, string txt) { if (null != cell) { OXD.TextBody textbody = cell.Descendants <OXD.TextBody>().FirstOrDefault(); if (null != textbody) { OXD.TextBody final_textbody = textbody.CloneNode(true) as OXD.TextBody; OXD.Paragraph paragraph = final_textbody.Descendants <OXD.Paragraph>().FirstOrDefault(); if (null != paragraph) { OXD.Paragraph final_paragraph = paragraph.CloneNode(true) as OXD.Paragraph; ModifyPowerPointParagraphTextContent(final_paragraph, txt); final_textbody.ReplaceChild <OXD.Paragraph>(final_paragraph, paragraph); } cell.ReplaceChild <OXD.TextBody>(final_textbody, textbody); } } }
// Moves a paragraph range in a TextBody shape in the source document // to another TextBody shape in the target document. public static void MoveParagraphToPresentation(string sourceFile, string targetFile) { // Open the source file as read/write. using (PresentationDocument sourceDoc = PresentationDocument.Open(sourceFile, true)) { // Open the target file as read/write. using (PresentationDocument targetDoc = PresentationDocument.Open(targetFile, true)) { // Get the first slide in the source presentation. SlidePart slide1 = GetFirstSlide(sourceDoc); // Get the first TextBody shape in it. TextBody textBody1 = slide1.Slide.Descendants <TextBody>().First(); // Get the first paragraph in the TextBody shape. // Note: "Drawing" is the alias of namespace DocumentFormat.OpenXml.Drawing Drawing.Paragraph p1 = textBody1.Elements <Drawing.Paragraph>().First(); // Get the first slide in the target presentation. SlidePart slide2 = GetFirstSlide(targetDoc); // Get the first TextBody shape in it. TextBody textBody2 = slide2.Slide.Descendants <TextBody>().First(); // Clone the source paragraph and insert the cloned. paragraph into the target TextBody shape. // Passing "true" creates a deep clone, which creates a copy of the // Paragraph object and everything directly or indirectly referenced by that object. textBody2.Append(p1.CloneNode(true)); // Remove the source paragraph from the source file. textBody1.RemoveChild <Drawing.Paragraph>(p1); // Replace the removed paragraph with a placeholder. textBody1.AppendChild <Drawing.Paragraph>(new Drawing.Paragraph()); // Save the slide in the source file. slide1.Slide.Save(); // Save the slide in the target file. slide2.Slide.Save(); } } }
private void ProcessHeading(HtmlEnumerator en) { char level = en.Current[2]; string clsName = "heading " + level; // ensure style exists or the heading will be displayed as a normal text if (!htmlStyles.DoesStyleExists(clsName)) { String normalStyleName = htmlStyles.GetStyle("Normal", StyleValues.Paragraph); htmlStyles.AddStyle(clsName, new Style( new StyleName() { Val = clsName }, new BasedOn() { Val = normalStyleName }, new NextParagraphStyle() { Val = normalStyleName }, new UnhideWhenUsed(), new PrimaryStyle(), new StyleParagraphProperties() { KeepNext = new KeepNext(), KeepLines = new KeepLines(), SpacingBetweenLines = new SpacingBetweenLines() { Before = "200", After = "0" }, OutlineLevel = new OutlineLevel() { Val = (int)Char.GetNumericValue(level) - 1 /* outline starts at 0 */ } }, new StyleRunProperties(PredefinedStyles.ResourceManager.GetString(clsName)) ) { Type = StyleValues.Paragraph, StyleId = clsName }); } // support also style attributes for heading (in case of theme override) List<OpenXmlElement> styleAttributes = new List<OpenXmlElement>(); htmlStyles.Paragraph.ProcessCommonAttributes(en, styleAttributes); AlternateProcessHtmlChunks(en, "</h" + level + ">"); Paragraph p = new Paragraph(elements); p.InsertInProperties(prop => prop.ParagraphStyleId = new ParagraphStyleId() { Val = htmlStyles.GetStyle(clsName, StyleValues.Paragraph) }); htmlStyles.Paragraph.ApplyTags(p); htmlStyles.Paragraph.EndTag("<h" + level + ">"); this.elements.Clear(); AddParagraph(p); AddParagraph(currentParagraph = htmlStyles.Paragraph.NewParagraph()); }
// Generates content of slideLayoutPart2. private void GenerateSlideLayoutPart2Content(SlideLayoutPart slideLayoutPart2) { SlideLayout slideLayout2 = new SlideLayout(){ Type = SlideLayoutValues.ObjectText, Preserve = true }; slideLayout2.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); slideLayout2.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); slideLayout2.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData5 = new CommonSlideData(){ Name = "Content with Caption" }; ShapeTree shapeTree5 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties5 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties21 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties5 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties21 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties5.Append(nonVisualDrawingProperties21); nonVisualGroupShapeProperties5.Append(nonVisualGroupShapeDrawingProperties5); nonVisualGroupShapeProperties5.Append(applicationNonVisualDrawingProperties21); GroupShapeProperties groupShapeProperties5 = new GroupShapeProperties(); A.TransformGroup transformGroup5 = new A.TransformGroup(); A.Offset offset18 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents18 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset5 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents5 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup5.Append(offset18); transformGroup5.Append(extents18); transformGroup5.Append(childOffset5); transformGroup5.Append(childExtents5); groupShapeProperties5.Append(transformGroup5); Shape shape17 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties17 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties22 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Title 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties17 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks16 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties17.Append(shapeLocks16); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties22 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape16 = new PlaceholderShape(){ Type = PlaceholderValues.Title }; applicationNonVisualDrawingProperties22.Append(placeholderShape16); nonVisualShapeProperties17.Append(nonVisualDrawingProperties22); nonVisualShapeProperties17.Append(nonVisualShapeDrawingProperties17); nonVisualShapeProperties17.Append(applicationNonVisualDrawingProperties22); ShapeProperties shapeProperties17 = new ShapeProperties(); A.Transform2D transform2D14 = new A.Transform2D(); A.Offset offset19 = new A.Offset(){ X = 457201L, Y = 273050L }; A.Extents extents19 = new A.Extents(){ Cx = 3008313L, Cy = 1162050L }; transform2D14.Append(offset19); transform2D14.Append(extents19); shapeProperties17.Append(transform2D14); TextBody textBody17 = new TextBody(); A.BodyProperties bodyProperties17 = new A.BodyProperties(){ Anchor = A.TextAnchoringTypeValues.Bottom }; A.ListStyle listStyle17 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties13 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Left }; A.DefaultRunProperties defaultRunProperties55 = new A.DefaultRunProperties(){ FontSize = 2000, Bold = true }; level1ParagraphProperties13.Append(defaultRunProperties55); listStyle17.Append(level1ParagraphProperties13); A.Paragraph paragraph34 = new A.Paragraph(); A.Run run25 = new A.Run(); A.RunProperties runProperties30 = new A.RunProperties(){ Language = "en-US" }; runProperties30.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text30 = new A.Text(); text30.Text = "Click to edit Master title style"; run25.Append(runProperties30); run25.Append(text30); A.EndParagraphRunProperties endParagraphRunProperties18 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph34.Append(run25); paragraph34.Append(endParagraphRunProperties18); textBody17.Append(bodyProperties17); textBody17.Append(listStyle17); textBody17.Append(paragraph34); shape17.Append(nonVisualShapeProperties17); shape17.Append(shapeProperties17); shape17.Append(textBody17); Shape shape18 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties18 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties23 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Content Placeholder 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties18 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks17 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties18.Append(shapeLocks17); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties23 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape17 = new PlaceholderShape(){ Index = (UInt32Value)1U }; applicationNonVisualDrawingProperties23.Append(placeholderShape17); nonVisualShapeProperties18.Append(nonVisualDrawingProperties23); nonVisualShapeProperties18.Append(nonVisualShapeDrawingProperties18); nonVisualShapeProperties18.Append(applicationNonVisualDrawingProperties23); ShapeProperties shapeProperties18 = new ShapeProperties(); A.Transform2D transform2D15 = new A.Transform2D(); A.Offset offset20 = new A.Offset(){ X = 3575050L, Y = 273051L }; A.Extents extents20 = new A.Extents(){ Cx = 5111751L, Cy = 5853113L }; transform2D15.Append(offset20); transform2D15.Append(extents20); shapeProperties18.Append(transform2D15); TextBody textBody18 = new TextBody(); A.BodyProperties bodyProperties18 = new A.BodyProperties(); A.ListStyle listStyle18 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties14 = new A.Level1ParagraphProperties(); A.DefaultRunProperties defaultRunProperties56 = new A.DefaultRunProperties(){ FontSize = 3200 }; level1ParagraphProperties14.Append(defaultRunProperties56); A.Level2ParagraphProperties level2ParagraphProperties6 = new A.Level2ParagraphProperties(); A.DefaultRunProperties defaultRunProperties57 = new A.DefaultRunProperties(){ FontSize = 2800 }; level2ParagraphProperties6.Append(defaultRunProperties57); A.Level3ParagraphProperties level3ParagraphProperties6 = new A.Level3ParagraphProperties(); A.DefaultRunProperties defaultRunProperties58 = new A.DefaultRunProperties(){ FontSize = 2400 }; level3ParagraphProperties6.Append(defaultRunProperties58); A.Level4ParagraphProperties level4ParagraphProperties6 = new A.Level4ParagraphProperties(); A.DefaultRunProperties defaultRunProperties59 = new A.DefaultRunProperties(){ FontSize = 2000 }; level4ParagraphProperties6.Append(defaultRunProperties59); A.Level5ParagraphProperties level5ParagraphProperties6 = new A.Level5ParagraphProperties(); A.DefaultRunProperties defaultRunProperties60 = new A.DefaultRunProperties(){ FontSize = 2000 }; level5ParagraphProperties6.Append(defaultRunProperties60); A.Level6ParagraphProperties level6ParagraphProperties6 = new A.Level6ParagraphProperties(); A.DefaultRunProperties defaultRunProperties61 = new A.DefaultRunProperties(){ FontSize = 2000 }; level6ParagraphProperties6.Append(defaultRunProperties61); A.Level7ParagraphProperties level7ParagraphProperties6 = new A.Level7ParagraphProperties(); A.DefaultRunProperties defaultRunProperties62 = new A.DefaultRunProperties(){ FontSize = 2000 }; level7ParagraphProperties6.Append(defaultRunProperties62); A.Level8ParagraphProperties level8ParagraphProperties6 = new A.Level8ParagraphProperties(); A.DefaultRunProperties defaultRunProperties63 = new A.DefaultRunProperties(){ FontSize = 2000 }; level8ParagraphProperties6.Append(defaultRunProperties63); A.Level9ParagraphProperties level9ParagraphProperties6 = new A.Level9ParagraphProperties(); A.DefaultRunProperties defaultRunProperties64 = new A.DefaultRunProperties(){ FontSize = 2000 }; level9ParagraphProperties6.Append(defaultRunProperties64); listStyle18.Append(level1ParagraphProperties14); listStyle18.Append(level2ParagraphProperties6); listStyle18.Append(level3ParagraphProperties6); listStyle18.Append(level4ParagraphProperties6); listStyle18.Append(level5ParagraphProperties6); listStyle18.Append(level6ParagraphProperties6); listStyle18.Append(level7ParagraphProperties6); listStyle18.Append(level8ParagraphProperties6); listStyle18.Append(level9ParagraphProperties6); A.Paragraph paragraph35 = new A.Paragraph(); A.ParagraphProperties paragraphProperties19 = new A.ParagraphProperties(){ Level = 0 }; A.Run run26 = new A.Run(); A.RunProperties runProperties31 = new A.RunProperties(){ Language = "en-US" }; runProperties31.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text31 = new A.Text(); text31.Text = "Click to edit Master text styles"; run26.Append(runProperties31); run26.Append(text31); paragraph35.Append(paragraphProperties19); paragraph35.Append(run26); A.Paragraph paragraph36 = new A.Paragraph(); A.ParagraphProperties paragraphProperties20 = new A.ParagraphProperties(){ Level = 1 }; A.Run run27 = new A.Run(); A.RunProperties runProperties32 = new A.RunProperties(){ Language = "en-US" }; runProperties32.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text32 = new A.Text(); text32.Text = "Second level"; run27.Append(runProperties32); run27.Append(text32); paragraph36.Append(paragraphProperties20); paragraph36.Append(run27); A.Paragraph paragraph37 = new A.Paragraph(); A.ParagraphProperties paragraphProperties21 = new A.ParagraphProperties(){ Level = 2 }; A.Run run28 = new A.Run(); A.RunProperties runProperties33 = new A.RunProperties(){ Language = "en-US" }; runProperties33.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text33 = new A.Text(); text33.Text = "Third level"; run28.Append(runProperties33); run28.Append(text33); paragraph37.Append(paragraphProperties21); paragraph37.Append(run28); A.Paragraph paragraph38 = new A.Paragraph(); A.ParagraphProperties paragraphProperties22 = new A.ParagraphProperties(){ Level = 3 }; A.Run run29 = new A.Run(); A.RunProperties runProperties34 = new A.RunProperties(){ Language = "en-US" }; runProperties34.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text34 = new A.Text(); text34.Text = "Fourth level"; run29.Append(runProperties34); run29.Append(text34); paragraph38.Append(paragraphProperties22); paragraph38.Append(run29); A.Paragraph paragraph39 = new A.Paragraph(); A.ParagraphProperties paragraphProperties23 = new A.ParagraphProperties(){ Level = 4 }; A.Run run30 = new A.Run(); A.RunProperties runProperties35 = new A.RunProperties(){ Language = "en-US" }; runProperties35.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text35 = new A.Text(); text35.Text = "Fifth level"; run30.Append(runProperties35); run30.Append(text35); A.EndParagraphRunProperties endParagraphRunProperties19 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph39.Append(paragraphProperties23); paragraph39.Append(run30); paragraph39.Append(endParagraphRunProperties19); textBody18.Append(bodyProperties18); textBody18.Append(listStyle18); textBody18.Append(paragraph35); textBody18.Append(paragraph36); textBody18.Append(paragraph37); textBody18.Append(paragraph38); textBody18.Append(paragraph39); shape18.Append(nonVisualShapeProperties18); shape18.Append(shapeProperties18); shape18.Append(textBody18); Shape shape19 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties19 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties24 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Text Placeholder 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties19 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks18 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties19.Append(shapeLocks18); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties24 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape18 = new PlaceholderShape(){ Type = PlaceholderValues.Body, Size = PlaceholderSizeValues.Half, Index = (UInt32Value)2U }; applicationNonVisualDrawingProperties24.Append(placeholderShape18); nonVisualShapeProperties19.Append(nonVisualDrawingProperties24); nonVisualShapeProperties19.Append(nonVisualShapeDrawingProperties19); nonVisualShapeProperties19.Append(applicationNonVisualDrawingProperties24); ShapeProperties shapeProperties19 = new ShapeProperties(); A.Transform2D transform2D16 = new A.Transform2D(); A.Offset offset21 = new A.Offset(){ X = 457201L, Y = 1435101L }; A.Extents extents21 = new A.Extents(){ Cx = 3008313L, Cy = 4691063L }; transform2D16.Append(offset21); transform2D16.Append(extents21); shapeProperties19.Append(transform2D16); TextBody textBody19 = new TextBody(); A.BodyProperties bodyProperties19 = new A.BodyProperties(); A.ListStyle listStyle19 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties15 = new A.Level1ParagraphProperties(){ LeftMargin = 0, Indent = 0 }; A.NoBullet noBullet11 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties65 = new A.DefaultRunProperties(){ FontSize = 1400 }; level1ParagraphProperties15.Append(noBullet11); level1ParagraphProperties15.Append(defaultRunProperties65); A.Level2ParagraphProperties level2ParagraphProperties7 = new A.Level2ParagraphProperties(){ LeftMargin = 457200, Indent = 0 }; A.NoBullet noBullet12 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties66 = new A.DefaultRunProperties(){ FontSize = 1200 }; level2ParagraphProperties7.Append(noBullet12); level2ParagraphProperties7.Append(defaultRunProperties66); A.Level3ParagraphProperties level3ParagraphProperties7 = new A.Level3ParagraphProperties(){ LeftMargin = 914400, Indent = 0 }; A.NoBullet noBullet13 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties67 = new A.DefaultRunProperties(){ FontSize = 1000 }; level3ParagraphProperties7.Append(noBullet13); level3ParagraphProperties7.Append(defaultRunProperties67); A.Level4ParagraphProperties level4ParagraphProperties7 = new A.Level4ParagraphProperties(){ LeftMargin = 1371600, Indent = 0 }; A.NoBullet noBullet14 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties68 = new A.DefaultRunProperties(){ FontSize = 900 }; level4ParagraphProperties7.Append(noBullet14); level4ParagraphProperties7.Append(defaultRunProperties68); A.Level5ParagraphProperties level5ParagraphProperties7 = new A.Level5ParagraphProperties(){ LeftMargin = 1828800, Indent = 0 }; A.NoBullet noBullet15 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties69 = new A.DefaultRunProperties(){ FontSize = 900 }; level5ParagraphProperties7.Append(noBullet15); level5ParagraphProperties7.Append(defaultRunProperties69); A.Level6ParagraphProperties level6ParagraphProperties7 = new A.Level6ParagraphProperties(){ LeftMargin = 2286000, Indent = 0 }; A.NoBullet noBullet16 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties70 = new A.DefaultRunProperties(){ FontSize = 900 }; level6ParagraphProperties7.Append(noBullet16); level6ParagraphProperties7.Append(defaultRunProperties70); A.Level7ParagraphProperties level7ParagraphProperties7 = new A.Level7ParagraphProperties(){ LeftMargin = 2743200, Indent = 0 }; A.NoBullet noBullet17 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties71 = new A.DefaultRunProperties(){ FontSize = 900 }; level7ParagraphProperties7.Append(noBullet17); level7ParagraphProperties7.Append(defaultRunProperties71); A.Level8ParagraphProperties level8ParagraphProperties7 = new A.Level8ParagraphProperties(){ LeftMargin = 3200400, Indent = 0 }; A.NoBullet noBullet18 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties72 = new A.DefaultRunProperties(){ FontSize = 900 }; level8ParagraphProperties7.Append(noBullet18); level8ParagraphProperties7.Append(defaultRunProperties72); A.Level9ParagraphProperties level9ParagraphProperties7 = new A.Level9ParagraphProperties(){ LeftMargin = 3657600, Indent = 0 }; A.NoBullet noBullet19 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties73 = new A.DefaultRunProperties(){ FontSize = 900 }; level9ParagraphProperties7.Append(noBullet19); level9ParagraphProperties7.Append(defaultRunProperties73); listStyle19.Append(level1ParagraphProperties15); listStyle19.Append(level2ParagraphProperties7); listStyle19.Append(level3ParagraphProperties7); listStyle19.Append(level4ParagraphProperties7); listStyle19.Append(level5ParagraphProperties7); listStyle19.Append(level6ParagraphProperties7); listStyle19.Append(level7ParagraphProperties7); listStyle19.Append(level8ParagraphProperties7); listStyle19.Append(level9ParagraphProperties7); A.Paragraph paragraph40 = new A.Paragraph(); A.ParagraphProperties paragraphProperties24 = new A.ParagraphProperties(){ Level = 0 }; A.Run run31 = new A.Run(); A.RunProperties runProperties36 = new A.RunProperties(){ Language = "en-US" }; runProperties36.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text36 = new A.Text(); text36.Text = "Click to edit Master text styles"; run31.Append(runProperties36); run31.Append(text36); paragraph40.Append(paragraphProperties24); paragraph40.Append(run31); textBody19.Append(bodyProperties19); textBody19.Append(listStyle19); textBody19.Append(paragraph40); shape19.Append(nonVisualShapeProperties19); shape19.Append(shapeProperties19); shape19.Append(textBody19); Shape shape20 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties20 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties25 = new NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "Date Placeholder 4" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties20 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks19 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties20.Append(shapeLocks19); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties25 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape19 = new PlaceholderShape(){ Type = PlaceholderValues.DateAndTime, Size = PlaceholderSizeValues.Half, Index = (UInt32Value)10U }; applicationNonVisualDrawingProperties25.Append(placeholderShape19); nonVisualShapeProperties20.Append(nonVisualDrawingProperties25); nonVisualShapeProperties20.Append(nonVisualShapeDrawingProperties20); nonVisualShapeProperties20.Append(applicationNonVisualDrawingProperties25); ShapeProperties shapeProperties20 = new ShapeProperties(); TextBody textBody20 = new TextBody(); A.BodyProperties bodyProperties20 = new A.BodyProperties(); A.ListStyle listStyle20 = new A.ListStyle(); A.Paragraph paragraph41 = new A.Paragraph(); A.Field field6 = new A.Field(){ Id = "{1A15D4F1-1D33-4170-8C9F-182CDE6BA6D1}", Type = "datetimeFigureOut" }; A.RunProperties runProperties37 = new A.RunProperties(){ Language = "en-US" }; runProperties37.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text37 = new A.Text(); text37.Text = "10/3/2012"; field6.Append(runProperties37); field6.Append(text37); A.EndParagraphRunProperties endParagraphRunProperties20 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph41.Append(field6); paragraph41.Append(endParagraphRunProperties20); textBody20.Append(bodyProperties20); textBody20.Append(listStyle20); textBody20.Append(paragraph41); shape20.Append(nonVisualShapeProperties20); shape20.Append(shapeProperties20); shape20.Append(textBody20); Shape shape21 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties21 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties26 = new NonVisualDrawingProperties(){ Id = (UInt32Value)6U, Name = "Footer Placeholder 5" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties21 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks20 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties21.Append(shapeLocks20); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties26 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape20 = new PlaceholderShape(){ Type = PlaceholderValues.Footer, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)11U }; applicationNonVisualDrawingProperties26.Append(placeholderShape20); nonVisualShapeProperties21.Append(nonVisualDrawingProperties26); nonVisualShapeProperties21.Append(nonVisualShapeDrawingProperties21); nonVisualShapeProperties21.Append(applicationNonVisualDrawingProperties26); ShapeProperties shapeProperties21 = new ShapeProperties(); TextBody textBody21 = new TextBody(); A.BodyProperties bodyProperties21 = new A.BodyProperties(); A.ListStyle listStyle21 = new A.ListStyle(); A.Paragraph paragraph42 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties21 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph42.Append(endParagraphRunProperties21); textBody21.Append(bodyProperties21); textBody21.Append(listStyle21); textBody21.Append(paragraph42); shape21.Append(nonVisualShapeProperties21); shape21.Append(shapeProperties21); shape21.Append(textBody21); Shape shape22 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties22 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties27 = new NonVisualDrawingProperties(){ Id = (UInt32Value)7U, Name = "Slide Number Placeholder 6" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties22 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks21 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties22.Append(shapeLocks21); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties27 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape21 = new PlaceholderShape(){ Type = PlaceholderValues.SlideNumber, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)12U }; applicationNonVisualDrawingProperties27.Append(placeholderShape21); nonVisualShapeProperties22.Append(nonVisualDrawingProperties27); nonVisualShapeProperties22.Append(nonVisualShapeDrawingProperties22); nonVisualShapeProperties22.Append(applicationNonVisualDrawingProperties27); ShapeProperties shapeProperties22 = new ShapeProperties(); TextBody textBody22 = new TextBody(); A.BodyProperties bodyProperties22 = new A.BodyProperties(); A.ListStyle listStyle22 = new A.ListStyle(); A.Paragraph paragraph43 = new A.Paragraph(); A.Field field7 = new A.Field(){ Id = "{9E0C3BFA-D4DA-4895-A0F6-B80859694A8D}", Type = "slidenum" }; A.RunProperties runProperties38 = new A.RunProperties(){ Language = "en-US" }; runProperties38.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text38 = new A.Text(); text38.Text = "‹#›"; field7.Append(runProperties38); field7.Append(text38); A.EndParagraphRunProperties endParagraphRunProperties22 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph43.Append(field7); paragraph43.Append(endParagraphRunProperties22); textBody22.Append(bodyProperties22); textBody22.Append(listStyle22); textBody22.Append(paragraph43); shape22.Append(nonVisualShapeProperties22); shape22.Append(shapeProperties22); shape22.Append(textBody22); shapeTree5.Append(nonVisualGroupShapeProperties5); shapeTree5.Append(groupShapeProperties5); shapeTree5.Append(shape17); shapeTree5.Append(shape18); shapeTree5.Append(shape19); shapeTree5.Append(shape20); shapeTree5.Append(shape21); shapeTree5.Append(shape22); commonSlideData5.Append(shapeTree5); ColorMapOverride colorMapOverride3 = new ColorMapOverride(); A.MasterColorMapping masterColorMapping3 = new A.MasterColorMapping(); colorMapOverride3.Append(masterColorMapping3); slideLayout2.Append(commonSlideData5); slideLayout2.Append(colorMapOverride3); slideLayoutPart2.SlideLayout = slideLayout2; }
private void ProcessTableColumn(HtmlEnumerator en) { if (!tables.HasContext) return; TableCellProperties properties = new TableCellProperties(); // in Html, table cell are vertically centered by default properties.TableCellVerticalAlignment = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center }; List<OpenXmlElement> styleAttributes = new List<OpenXmlElement>(); List<OpenXmlElement> runStyleAttributes = new List<OpenXmlElement>(); Unit unit = en.StyleAttributes.GetAsUnit("width"); if (!unit.IsValid) unit = en.Attributes.GetAsUnit("width"); switch (unit.Type) { case UnitMetric.Percent: properties.TableCellWidth = new TableCellWidth() { Type = TableWidthUnitValues.Pct, Width = (unit.ValueInDxa * 50).ToString(CultureInfo.InvariantCulture) }; break; case UnitMetric.Point: properties.TableCellWidth = new TableCellWidth() { Type = TableWidthUnitValues.Dxa, Width = (unit.ValueInDxa * 20).ToString(CultureInfo.InvariantCulture) }; break; case UnitMetric.Pixel: properties.TableCellWidth = new TableCellWidth() { Type = TableWidthUnitValues.Dxa, Width = (unit.ValueInDxa).ToString(CultureInfo.InvariantCulture) }; break; } // fix an issue when specifying the RowSpan or ColSpan=1 (reported by imagremlin) int? colspan = en.Attributes.GetAsInt("colspan"); if (colspan.HasValue && colspan.Value > 1) { properties.GridSpan = new GridSpan() { Val = colspan }; } int? rowspan = en.Attributes.GetAsInt("rowspan"); if (rowspan.HasValue && rowspan.Value > 1) { properties.VerticalMerge = new VerticalMerge() { Val = MergedCellValues.Restart }; Point p = tables.CellPosition; int mx = p.X, shift = 0; // if there is already a running rowSpan on a left-sided column, we have to shift this position foreach (var rs in tables.RowSpan) if (rs.CellOrigin.Y < p.Y && rs.CellOrigin.X <= p.X + shift) shift++; p.Offset(shift, 0); tables.RowSpan.Add(new HtmlTableSpan(p) { RowSpan = rowspan.Value - 1, ColSpan = colspan.HasValue && rowspan.Value > 1 ? colspan.Value : 0 }); } // Manage vertical text (only for table cell) string direction = en.StyleAttributes["writing-mode"]; if (direction != null) { switch (direction) { case "tb-lr": properties.TextDirection = new TextDirection() { Val = TextDirectionValues.BottomToTopLeftToRight }; properties.TableCellVerticalAlignment = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center }; htmlStyles.Tables.BeginTagForParagraph(en.CurrentTag, new Justification() { Val = JustificationValues.Center }); break; case "tb-rl": properties.TextDirection = new TextDirection() { Val = TextDirectionValues.TopToBottomRightToLeft }; properties.TableCellVerticalAlignment = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center }; htmlStyles.Tables.BeginTagForParagraph(en.CurrentTag, new Justification() { Val = JustificationValues.Center }); break; } } var padding = en.StyleAttributes.GetAsMargin("padding"); if (!padding.IsEmpty) { TableCellMargin cellMargin = new TableCellMargin(); var cellMarginSide = new List<KeyValuePair<Unit, TableWidthType>>(); cellMarginSide.Add(new KeyValuePair<Unit, TableWidthType>(padding.Top, new TopMargin())); cellMarginSide.Add(new KeyValuePair<Unit, TableWidthType>(padding.Right, new RightMargin())); cellMarginSide.Add(new KeyValuePair<Unit, TableWidthType>(padding.Bottom, new BottomMargin())); cellMarginSide.Add(new KeyValuePair<Unit, TableWidthType>(padding.Left, new LeftMargin())); foreach (var pair in cellMarginSide) { if (!pair.Key.IsValid || pair.Key.Value == 0) continue; if (pair.Key.Type == UnitMetric.Percent) { pair.Value.Width = (pair.Key.Value * 50).ToString(CultureInfo.InvariantCulture); pair.Value.Type = TableWidthUnitValues.Pct; } else { pair.Value.Width = pair.Key.ValueInDxa.ToString(CultureInfo.InvariantCulture); pair.Value.Type = TableWidthUnitValues.Dxa; } cellMargin.Append(pair.Value); } properties.TableCellMargin = cellMargin; } htmlStyles.Tables.ProcessCommonAttributes(en, styleAttributes); if (styleAttributes.Count > 0) htmlStyles.Tables.BeginTag(en.CurrentTag, styleAttributes); if (runStyleAttributes.Count > 0) htmlStyles.Runs.BeginTag(en.CurrentTag, runStyleAttributes.ToArray()); TableCell cell = new TableCell(); if (properties.HasChildren) cell.TableCellProperties = properties; tables.CurrentTable.GetLastChild<TableRow>().Append(cell); if (en.IsSelfClosedTag) // Force a call to ProcessClosingTableColumn ProcessClosingTableColumn(en); else { // we create a new currentParagraph to add new runs inside the TableCell cell.Append(currentParagraph = new Paragraph()); //cell.Append(currentParagraph); } }
// Generates content of notesMasterPart1. private void GenerateNotesMasterPart1Content(NotesMasterPart notesMasterPart1) { NotesMaster notesMaster1 = new NotesMaster(); notesMaster1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); notesMaster1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); notesMaster1.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData1 = new CommonSlideData(); Background background1 = new Background(); BackgroundStyleReference backgroundStyleReference1 = new BackgroundStyleReference(){ Index = (UInt32Value)1002U }; A.SchemeColor schemeColor10 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; backgroundStyleReference1.Append(schemeColor10); background1.Append(backgroundStyleReference1); ShapeTree shapeTree1 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties1 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties1 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties1 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties1 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties1.Append(nonVisualDrawingProperties1); nonVisualGroupShapeProperties1.Append(nonVisualGroupShapeDrawingProperties1); nonVisualGroupShapeProperties1.Append(applicationNonVisualDrawingProperties1); GroupShapeProperties groupShapeProperties1 = new GroupShapeProperties(); A.TransformGroup transformGroup1 = new A.TransformGroup(); A.Offset offset1 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents1 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset1 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents1 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup1.Append(offset1); transformGroup1.Append(extents1); transformGroup1.Append(childOffset1); transformGroup1.Append(childExtents1); groupShapeProperties1.Append(transformGroup1); Shape shape1 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties1 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties2 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Header Placeholder 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties1 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks1 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties1.Append(shapeLocks1); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties2 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape1 = new PlaceholderShape(){ Type = PlaceholderValues.Header, Size = PlaceholderSizeValues.Quarter }; applicationNonVisualDrawingProperties2.Append(placeholderShape1); nonVisualShapeProperties1.Append(nonVisualDrawingProperties2); nonVisualShapeProperties1.Append(nonVisualShapeDrawingProperties1); nonVisualShapeProperties1.Append(applicationNonVisualDrawingProperties2); ShapeProperties shapeProperties1 = new ShapeProperties(); A.Transform2D transform2D1 = new A.Transform2D(); A.Offset offset2 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents2 = new A.Extents(){ Cx = 3962400L, Cy = 342900L }; transform2D1.Append(offset2); transform2D1.Append(extents2); A.PresetGeometry presetGeometry1 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList1 = new A.AdjustValueList(); presetGeometry1.Append(adjustValueList1); shapeProperties1.Append(transform2D1); shapeProperties1.Append(presetGeometry1); TextBody textBody1 = new TextBody(); A.BodyProperties bodyProperties1 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false }; A.ListStyle listStyle1 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties2 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Left }; A.DefaultRunProperties defaultRunProperties11 = new A.DefaultRunProperties(){ FontSize = 1200 }; level1ParagraphProperties2.Append(defaultRunProperties11); listStyle1.Append(level1ParagraphProperties2); A.Paragraph paragraph1 = new A.Paragraph(); A.Run run1 = new A.Run(); A.RunProperties runProperties1 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties1.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text1 = new A.Text(); text1.Text = "Adding Header to Notes "; run1.Append(runProperties1); run1.Append(text1); A.Run run2 = new A.Run(); A.RunProperties runProperties2 = new A.RunProperties(){ Language = "en-US", Dirty = false, SpellingError = true }; runProperties2.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text2 = new A.Text(); text2.Text = "MAster"; run2.Append(runProperties2); run2.Append(text2); A.EndParagraphRunProperties endParagraphRunProperties1 = new A.EndParagraphRunProperties(){ Language = "en-US", Dirty = false }; paragraph1.Append(run1); paragraph1.Append(run2); paragraph1.Append(endParagraphRunProperties1); textBody1.Append(bodyProperties1); textBody1.Append(listStyle1); textBody1.Append(paragraph1); shape1.Append(nonVisualShapeProperties1); shape1.Append(shapeProperties1); shape1.Append(textBody1); Shape shape2 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties2 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties3 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Date Placeholder 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties2 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks2 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties2.Append(shapeLocks2); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties3 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape2 = new PlaceholderShape(){ Type = PlaceholderValues.DateAndTime, Index = (UInt32Value)1U }; applicationNonVisualDrawingProperties3.Append(placeholderShape2); nonVisualShapeProperties2.Append(nonVisualDrawingProperties3); nonVisualShapeProperties2.Append(nonVisualShapeDrawingProperties2); nonVisualShapeProperties2.Append(applicationNonVisualDrawingProperties3); ShapeProperties shapeProperties2 = new ShapeProperties(); A.Transform2D transform2D2 = new A.Transform2D(); A.Offset offset3 = new A.Offset(){ X = 5179484L, Y = 0L }; A.Extents extents3 = new A.Extents(){ Cx = 3962400L, Cy = 342900L }; transform2D2.Append(offset3); transform2D2.Append(extents3); A.PresetGeometry presetGeometry2 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList2 = new A.AdjustValueList(); presetGeometry2.Append(adjustValueList2); shapeProperties2.Append(transform2D2); shapeProperties2.Append(presetGeometry2); TextBody textBody2 = new TextBody(); A.BodyProperties bodyProperties2 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false }; A.ListStyle listStyle2 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties3 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Right }; A.DefaultRunProperties defaultRunProperties12 = new A.DefaultRunProperties(){ FontSize = 1200 }; level1ParagraphProperties3.Append(defaultRunProperties12); listStyle2.Append(level1ParagraphProperties3); A.Paragraph paragraph2 = new A.Paragraph(); A.Field field1 = new A.Field(){ Id = "{CA3F9B49-9B0F-4F41-BDD8-B26D6525A1C4}", Type = "datetimeFigureOut" }; A.RunProperties runProperties3 = new A.RunProperties(){ Language = "en-US" }; runProperties3.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text3 = new A.Text(); text3.Text = "10/3/2012"; field1.Append(runProperties3); field1.Append(text3); A.EndParagraphRunProperties endParagraphRunProperties2 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph2.Append(field1); paragraph2.Append(endParagraphRunProperties2); textBody2.Append(bodyProperties2); textBody2.Append(listStyle2); textBody2.Append(paragraph2); shape2.Append(nonVisualShapeProperties2); shape2.Append(shapeProperties2); shape2.Append(textBody2); Shape shape3 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties3 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties4 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Slide Image Placeholder 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties3 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks3 = new A.ShapeLocks(){ NoGrouping = true, NoRotation = true, NoChangeAspect = true }; nonVisualShapeDrawingProperties3.Append(shapeLocks3); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties4 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape3 = new PlaceholderShape(){ Type = PlaceholderValues.SlideImage, Index = (UInt32Value)2U }; applicationNonVisualDrawingProperties4.Append(placeholderShape3); nonVisualShapeProperties3.Append(nonVisualDrawingProperties4); nonVisualShapeProperties3.Append(nonVisualShapeDrawingProperties3); nonVisualShapeProperties3.Append(applicationNonVisualDrawingProperties4); ShapeProperties shapeProperties3 = new ShapeProperties(); A.Transform2D transform2D3 = new A.Transform2D(); A.Offset offset4 = new A.Offset(){ X = 2857500L, Y = 514350L }; A.Extents extents4 = new A.Extents(){ Cx = 3429000L, Cy = 2571750L }; transform2D3.Append(offset4); transform2D3.Append(extents4); A.PresetGeometry presetGeometry3 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList3 = new A.AdjustValueList(); presetGeometry3.Append(adjustValueList3); A.NoFill noFill1 = new A.NoFill(); A.Outline outline1 = new A.Outline(){ Width = 12700 }; A.SolidFill solidFill10 = new A.SolidFill(); A.PresetColor presetColor1 = new A.PresetColor(){ Val = A.PresetColorValues.Black }; solidFill10.Append(presetColor1); outline1.Append(solidFill10); shapeProperties3.Append(transform2D3); shapeProperties3.Append(presetGeometry3); shapeProperties3.Append(noFill1); shapeProperties3.Append(outline1); TextBody textBody3 = new TextBody(); A.BodyProperties bodyProperties3 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Center }; A.ListStyle listStyle3 = new A.ListStyle(); A.Paragraph paragraph3 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties3 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph3.Append(endParagraphRunProperties3); textBody3.Append(bodyProperties3); textBody3.Append(listStyle3); textBody3.Append(paragraph3); shape3.Append(nonVisualShapeProperties3); shape3.Append(shapeProperties3); shape3.Append(textBody3); Shape shape4 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties4 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties5 = new NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "Notes Placeholder 4" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties4 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks4 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties4.Append(shapeLocks4); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties5 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape4 = new PlaceholderShape(){ Type = PlaceholderValues.Body, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)3U }; applicationNonVisualDrawingProperties5.Append(placeholderShape4); nonVisualShapeProperties4.Append(nonVisualDrawingProperties5); nonVisualShapeProperties4.Append(nonVisualShapeDrawingProperties4); nonVisualShapeProperties4.Append(applicationNonVisualDrawingProperties5); ShapeProperties shapeProperties4 = new ShapeProperties(); A.Transform2D transform2D4 = new A.Transform2D(); A.Offset offset5 = new A.Offset(){ X = 914400L, Y = 3257550L }; A.Extents extents5 = new A.Extents(){ Cx = 7315200L, Cy = 3086100L }; transform2D4.Append(offset5); transform2D4.Append(extents5); A.PresetGeometry presetGeometry4 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList4 = new A.AdjustValueList(); presetGeometry4.Append(adjustValueList4); shapeProperties4.Append(transform2D4); shapeProperties4.Append(presetGeometry4); TextBody textBody4 = new TextBody(); A.BodyProperties bodyProperties4 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false }; A.NormalAutoFit normalAutoFit1 = new A.NormalAutoFit(); bodyProperties4.Append(normalAutoFit1); A.ListStyle listStyle4 = new A.ListStyle(); A.Paragraph paragraph4 = new A.Paragraph(); A.ParagraphProperties paragraphProperties1 = new A.ParagraphProperties(){ Level = 0 }; A.Run run3 = new A.Run(); A.RunProperties runProperties4 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties4.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text4 = new A.Text(); text4.Text = "Testing text on Notes Master"; run3.Append(runProperties4); run3.Append(text4); paragraph4.Append(paragraphProperties1); paragraph4.Append(run3); A.Paragraph paragraph5 = new A.Paragraph(); A.ParagraphProperties paragraphProperties2 = new A.ParagraphProperties(){ Level = 1 }; A.Run run4 = new A.Run(); A.RunProperties runProperties5 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties5.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text5 = new A.Text(); text5.Text = "Second level"; run4.Append(runProperties5); run4.Append(text5); paragraph5.Append(paragraphProperties2); paragraph5.Append(run4); A.Paragraph paragraph6 = new A.Paragraph(); A.ParagraphProperties paragraphProperties3 = new A.ParagraphProperties(){ Level = 2 }; A.Run run5 = new A.Run(); A.RunProperties runProperties6 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties6.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text6 = new A.Text(); text6.Text = "Third level"; run5.Append(runProperties6); run5.Append(text6); paragraph6.Append(paragraphProperties3); paragraph6.Append(run5); A.Paragraph paragraph7 = new A.Paragraph(); A.ParagraphProperties paragraphProperties4 = new A.ParagraphProperties(){ Level = 3 }; A.Run run6 = new A.Run(); A.RunProperties runProperties7 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties7.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text7 = new A.Text(); text7.Text = "Fourth level"; run6.Append(runProperties7); run6.Append(text7); paragraph7.Append(paragraphProperties4); paragraph7.Append(run6); A.Paragraph paragraph8 = new A.Paragraph(); A.ParagraphProperties paragraphProperties5 = new A.ParagraphProperties(){ Level = 4 }; A.Run run7 = new A.Run(); A.RunProperties runProperties8 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties8.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text8 = new A.Text(); text8.Text = "Fifth level"; run7.Append(runProperties8); run7.Append(text8); A.EndParagraphRunProperties endParagraphRunProperties4 = new A.EndParagraphRunProperties(){ Language = "en-US", Dirty = false }; paragraph8.Append(paragraphProperties5); paragraph8.Append(run7); paragraph8.Append(endParagraphRunProperties4); textBody4.Append(bodyProperties4); textBody4.Append(listStyle4); textBody4.Append(paragraph4); textBody4.Append(paragraph5); textBody4.Append(paragraph6); textBody4.Append(paragraph7); textBody4.Append(paragraph8); shape4.Append(nonVisualShapeProperties4); shape4.Append(shapeProperties4); shape4.Append(textBody4); Shape shape5 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties5 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties6 = new NonVisualDrawingProperties(){ Id = (UInt32Value)6U, Name = "Footer Placeholder 5" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties5 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks5 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties5.Append(shapeLocks5); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties6 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape5 = new PlaceholderShape(){ Type = PlaceholderValues.Footer, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)4U }; applicationNonVisualDrawingProperties6.Append(placeholderShape5); nonVisualShapeProperties5.Append(nonVisualDrawingProperties6); nonVisualShapeProperties5.Append(nonVisualShapeDrawingProperties5); nonVisualShapeProperties5.Append(applicationNonVisualDrawingProperties6); ShapeProperties shapeProperties5 = new ShapeProperties(); A.Transform2D transform2D5 = new A.Transform2D(); A.Offset offset6 = new A.Offset(){ X = 0L, Y = 6513910L }; A.Extents extents6 = new A.Extents(){ Cx = 3962400L, Cy = 342900L }; transform2D5.Append(offset6); transform2D5.Append(extents6); A.PresetGeometry presetGeometry5 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList5 = new A.AdjustValueList(); presetGeometry5.Append(adjustValueList5); shapeProperties5.Append(transform2D5); shapeProperties5.Append(presetGeometry5); TextBody textBody5 = new TextBody(); A.BodyProperties bodyProperties5 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Bottom }; A.ListStyle listStyle5 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties4 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Left }; A.DefaultRunProperties defaultRunProperties13 = new A.DefaultRunProperties(){ FontSize = 1200 }; level1ParagraphProperties4.Append(defaultRunProperties13); listStyle5.Append(level1ParagraphProperties4); A.Paragraph paragraph9 = new A.Paragraph(); A.Run run8 = new A.Run(); A.RunProperties runProperties9 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties9.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text9 = new A.Text(); text9.Text = "Adding Footer to Notes Master"; run8.Append(runProperties9); run8.Append(text9); A.EndParagraphRunProperties endParagraphRunProperties5 = new A.EndParagraphRunProperties(){ Language = "en-US", Dirty = false }; paragraph9.Append(run8); paragraph9.Append(endParagraphRunProperties5); textBody5.Append(bodyProperties5); textBody5.Append(listStyle5); textBody5.Append(paragraph9); shape5.Append(nonVisualShapeProperties5); shape5.Append(shapeProperties5); shape5.Append(textBody5); shapeTree1.Append(nonVisualGroupShapeProperties1); shapeTree1.Append(groupShapeProperties1); shapeTree1.Append(shape1); shapeTree1.Append(shape2); shapeTree1.Append(shape3); shapeTree1.Append(shape4); shapeTree1.Append(shape5); CommonSlideDataExtensionList commonSlideDataExtensionList1 = new CommonSlideDataExtensionList(); CommonSlideDataExtension commonSlideDataExtension1 = new CommonSlideDataExtension(){ Uri = "{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}" }; P14.CreationId creationId1 = new P14.CreationId(){ Val = (UInt32Value)3631591638U }; creationId1.AddNamespaceDeclaration("p14", "http://schemas.microsoft.com/office/powerpoint/2010/main"); commonSlideDataExtension1.Append(creationId1); commonSlideDataExtensionList1.Append(commonSlideDataExtension1); commonSlideData1.Append(background1); commonSlideData1.Append(shapeTree1); commonSlideData1.Append(commonSlideDataExtensionList1); ColorMap colorMap1 = new ColorMap(){ Background1 = A.ColorSchemeIndexValues.Dark1, Text1 = A.ColorSchemeIndexValues.Light1, Background2 = A.ColorSchemeIndexValues.Dark2, Text2 = A.ColorSchemeIndexValues.Light2, Accent1 = A.ColorSchemeIndexValues.Accent1, Accent2 = A.ColorSchemeIndexValues.Accent2, Accent3 = A.ColorSchemeIndexValues.Accent3, Accent4 = A.ColorSchemeIndexValues.Accent4, Accent5 = A.ColorSchemeIndexValues.Accent5, Accent6 = A.ColorSchemeIndexValues.Accent6, Hyperlink = A.ColorSchemeIndexValues.Hyperlink, FollowedHyperlink = A.ColorSchemeIndexValues.FollowedHyperlink }; NotesStyle notesStyle1 = new NotesStyle(); A.Level1ParagraphProperties level1ParagraphProperties5 = new A.Level1ParagraphProperties(){ LeftMargin = 0, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties14 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200, Baseline = 0 }; A.SolidFill solidFill11 = new A.SolidFill(); A.SchemeColor schemeColor11 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill11.Append(schemeColor11); A.LatinFont latinFont10 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont10 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont10 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties14.Append(solidFill11); defaultRunProperties14.Append(latinFont10); defaultRunProperties14.Append(eastAsianFont10); defaultRunProperties14.Append(complexScriptFont10); level1ParagraphProperties5.Append(defaultRunProperties14); A.Level2ParagraphProperties level2ParagraphProperties2 = new A.Level2ParagraphProperties(){ LeftMargin = 457200, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties15 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200 }; A.SolidFill solidFill12 = new A.SolidFill(); A.SchemeColor schemeColor12 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill12.Append(schemeColor12); A.LatinFont latinFont11 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont11 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont11 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties15.Append(solidFill12); defaultRunProperties15.Append(latinFont11); defaultRunProperties15.Append(eastAsianFont11); defaultRunProperties15.Append(complexScriptFont11); level2ParagraphProperties2.Append(defaultRunProperties15); A.Level3ParagraphProperties level3ParagraphProperties2 = new A.Level3ParagraphProperties(){ LeftMargin = 914400, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties16 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200 }; A.SolidFill solidFill13 = new A.SolidFill(); A.SchemeColor schemeColor13 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill13.Append(schemeColor13); A.LatinFont latinFont12 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont12 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont12 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties16.Append(solidFill13); defaultRunProperties16.Append(latinFont12); defaultRunProperties16.Append(eastAsianFont12); defaultRunProperties16.Append(complexScriptFont12); level3ParagraphProperties2.Append(defaultRunProperties16); A.Level4ParagraphProperties level4ParagraphProperties2 = new A.Level4ParagraphProperties(){ LeftMargin = 1371600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties17 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200 }; A.SolidFill solidFill14 = new A.SolidFill(); A.SchemeColor schemeColor14 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill14.Append(schemeColor14); A.LatinFont latinFont13 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont13 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont13 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties17.Append(solidFill14); defaultRunProperties17.Append(latinFont13); defaultRunProperties17.Append(eastAsianFont13); defaultRunProperties17.Append(complexScriptFont13); level4ParagraphProperties2.Append(defaultRunProperties17); A.Level5ParagraphProperties level5ParagraphProperties2 = new A.Level5ParagraphProperties(){ LeftMargin = 1828800, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties18 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200 }; A.SolidFill solidFill15 = new A.SolidFill(); A.SchemeColor schemeColor15 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill15.Append(schemeColor15); A.LatinFont latinFont14 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont14 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont14 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties18.Append(solidFill15); defaultRunProperties18.Append(latinFont14); defaultRunProperties18.Append(eastAsianFont14); defaultRunProperties18.Append(complexScriptFont14); level5ParagraphProperties2.Append(defaultRunProperties18); A.Level6ParagraphProperties level6ParagraphProperties2 = new A.Level6ParagraphProperties(){ LeftMargin = 2286000, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties19 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200 }; A.SolidFill solidFill16 = new A.SolidFill(); A.SchemeColor schemeColor16 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill16.Append(schemeColor16); A.LatinFont latinFont15 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont15 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont15 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties19.Append(solidFill16); defaultRunProperties19.Append(latinFont15); defaultRunProperties19.Append(eastAsianFont15); defaultRunProperties19.Append(complexScriptFont15); level6ParagraphProperties2.Append(defaultRunProperties19); A.Level7ParagraphProperties level7ParagraphProperties2 = new A.Level7ParagraphProperties(){ LeftMargin = 2743200, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties20 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200 }; A.SolidFill solidFill17 = new A.SolidFill(); A.SchemeColor schemeColor17 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill17.Append(schemeColor17); A.LatinFont latinFont16 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont16 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont16 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties20.Append(solidFill17); defaultRunProperties20.Append(latinFont16); defaultRunProperties20.Append(eastAsianFont16); defaultRunProperties20.Append(complexScriptFont16); level7ParagraphProperties2.Append(defaultRunProperties20); A.Level8ParagraphProperties level8ParagraphProperties2 = new A.Level8ParagraphProperties(){ LeftMargin = 3200400, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties21 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200 }; A.SolidFill solidFill18 = new A.SolidFill(); A.SchemeColor schemeColor18 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill18.Append(schemeColor18); A.LatinFont latinFont17 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont17 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont17 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties21.Append(solidFill18); defaultRunProperties21.Append(latinFont17); defaultRunProperties21.Append(eastAsianFont17); defaultRunProperties21.Append(complexScriptFont17); level8ParagraphProperties2.Append(defaultRunProperties21); A.Level9ParagraphProperties level9ParagraphProperties2 = new A.Level9ParagraphProperties(){ LeftMargin = 3657600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties22 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200 }; A.SolidFill solidFill19 = new A.SolidFill(); A.SchemeColor schemeColor19 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill19.Append(schemeColor19); A.LatinFont latinFont18 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont18 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont18 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties22.Append(solidFill19); defaultRunProperties22.Append(latinFont18); defaultRunProperties22.Append(eastAsianFont18); defaultRunProperties22.Append(complexScriptFont18); level9ParagraphProperties2.Append(defaultRunProperties22); notesStyle1.Append(level1ParagraphProperties5); notesStyle1.Append(level2ParagraphProperties2); notesStyle1.Append(level3ParagraphProperties2); notesStyle1.Append(level4ParagraphProperties2); notesStyle1.Append(level5ParagraphProperties2); notesStyle1.Append(level6ParagraphProperties2); notesStyle1.Append(level7ParagraphProperties2); notesStyle1.Append(level8ParagraphProperties2); notesStyle1.Append(level9ParagraphProperties2); notesMaster1.Append(commonSlideData1); notesMaster1.Append(colorMap1); notesMaster1.Append(notesStyle1); notesMasterPart1.NotesMaster = notesMaster1; }
// Generates content of slideLayoutPart3. private void GenerateSlideLayoutPart3Content(SlideLayoutPart slideLayoutPart3) { SlideLayout slideLayout3 = new SlideLayout(){ Type = SlideLayoutValues.SectionHeader, Preserve = true }; slideLayout3.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); slideLayout3.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); slideLayout3.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData6 = new CommonSlideData(){ Name = "Section Header" }; ShapeTree shapeTree6 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties6 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties28 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties6 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties28 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties6.Append(nonVisualDrawingProperties28); nonVisualGroupShapeProperties6.Append(nonVisualGroupShapeDrawingProperties6); nonVisualGroupShapeProperties6.Append(applicationNonVisualDrawingProperties28); GroupShapeProperties groupShapeProperties6 = new GroupShapeProperties(); A.TransformGroup transformGroup6 = new A.TransformGroup(); A.Offset offset22 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents22 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset6 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents6 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup6.Append(offset22); transformGroup6.Append(extents22); transformGroup6.Append(childOffset6); transformGroup6.Append(childExtents6); groupShapeProperties6.Append(transformGroup6); Shape shape23 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties23 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties29 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Title 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties23 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks22 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties23.Append(shapeLocks22); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties29 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape22 = new PlaceholderShape(){ Type = PlaceholderValues.Title }; applicationNonVisualDrawingProperties29.Append(placeholderShape22); nonVisualShapeProperties23.Append(nonVisualDrawingProperties29); nonVisualShapeProperties23.Append(nonVisualShapeDrawingProperties23); nonVisualShapeProperties23.Append(applicationNonVisualDrawingProperties29); ShapeProperties shapeProperties23 = new ShapeProperties(); A.Transform2D transform2D17 = new A.Transform2D(); A.Offset offset23 = new A.Offset(){ X = 722313L, Y = 4406900L }; A.Extents extents23 = new A.Extents(){ Cx = 7772400L, Cy = 1362075L }; transform2D17.Append(offset23); transform2D17.Append(extents23); shapeProperties23.Append(transform2D17); TextBody textBody23 = new TextBody(); A.BodyProperties bodyProperties23 = new A.BodyProperties(){ Anchor = A.TextAnchoringTypeValues.Top }; A.ListStyle listStyle23 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties16 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Left }; A.DefaultRunProperties defaultRunProperties74 = new A.DefaultRunProperties(){ FontSize = 4000, Bold = true, Capital = A.TextCapsValues.All }; level1ParagraphProperties16.Append(defaultRunProperties74); listStyle23.Append(level1ParagraphProperties16); A.Paragraph paragraph44 = new A.Paragraph(); A.Run run32 = new A.Run(); A.RunProperties runProperties39 = new A.RunProperties(){ Language = "en-US" }; runProperties39.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text39 = new A.Text(); text39.Text = "Click to edit Master title style"; run32.Append(runProperties39); run32.Append(text39); A.EndParagraphRunProperties endParagraphRunProperties23 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph44.Append(run32); paragraph44.Append(endParagraphRunProperties23); textBody23.Append(bodyProperties23); textBody23.Append(listStyle23); textBody23.Append(paragraph44); shape23.Append(nonVisualShapeProperties23); shape23.Append(shapeProperties23); shape23.Append(textBody23); Shape shape24 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties24 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties30 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Text Placeholder 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties24 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks23 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties24.Append(shapeLocks23); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties30 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape23 = new PlaceholderShape(){ Type = PlaceholderValues.Body, Index = (UInt32Value)1U }; applicationNonVisualDrawingProperties30.Append(placeholderShape23); nonVisualShapeProperties24.Append(nonVisualDrawingProperties30); nonVisualShapeProperties24.Append(nonVisualShapeDrawingProperties24); nonVisualShapeProperties24.Append(applicationNonVisualDrawingProperties30); ShapeProperties shapeProperties24 = new ShapeProperties(); A.Transform2D transform2D18 = new A.Transform2D(); A.Offset offset24 = new A.Offset(){ X = 722313L, Y = 2906714L }; A.Extents extents24 = new A.Extents(){ Cx = 7772400L, Cy = 1500187L }; transform2D18.Append(offset24); transform2D18.Append(extents24); shapeProperties24.Append(transform2D18); TextBody textBody24 = new TextBody(); A.BodyProperties bodyProperties24 = new A.BodyProperties(){ Anchor = A.TextAnchoringTypeValues.Bottom }; A.ListStyle listStyle24 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties17 = new A.Level1ParagraphProperties(){ LeftMargin = 0, Indent = 0 }; A.NoBullet noBullet20 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties75 = new A.DefaultRunProperties(){ FontSize = 2000 }; A.SolidFill solidFill56 = new A.SolidFill(); A.SchemeColor schemeColor68 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint19 = new A.Tint(){ Val = 75000 }; schemeColor68.Append(tint19); solidFill56.Append(schemeColor68); defaultRunProperties75.Append(solidFill56); level1ParagraphProperties17.Append(noBullet20); level1ParagraphProperties17.Append(defaultRunProperties75); A.Level2ParagraphProperties level2ParagraphProperties8 = new A.Level2ParagraphProperties(){ LeftMargin = 457200, Indent = 0 }; A.NoBullet noBullet21 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties76 = new A.DefaultRunProperties(){ FontSize = 1800 }; A.SolidFill solidFill57 = new A.SolidFill(); A.SchemeColor schemeColor69 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint20 = new A.Tint(){ Val = 75000 }; schemeColor69.Append(tint20); solidFill57.Append(schemeColor69); defaultRunProperties76.Append(solidFill57); level2ParagraphProperties8.Append(noBullet21); level2ParagraphProperties8.Append(defaultRunProperties76); A.Level3ParagraphProperties level3ParagraphProperties8 = new A.Level3ParagraphProperties(){ LeftMargin = 914400, Indent = 0 }; A.NoBullet noBullet22 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties77 = new A.DefaultRunProperties(){ FontSize = 1600 }; A.SolidFill solidFill58 = new A.SolidFill(); A.SchemeColor schemeColor70 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint21 = new A.Tint(){ Val = 75000 }; schemeColor70.Append(tint21); solidFill58.Append(schemeColor70); defaultRunProperties77.Append(solidFill58); level3ParagraphProperties8.Append(noBullet22); level3ParagraphProperties8.Append(defaultRunProperties77); A.Level4ParagraphProperties level4ParagraphProperties8 = new A.Level4ParagraphProperties(){ LeftMargin = 1371600, Indent = 0 }; A.NoBullet noBullet23 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties78 = new A.DefaultRunProperties(){ FontSize = 1400 }; A.SolidFill solidFill59 = new A.SolidFill(); A.SchemeColor schemeColor71 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint22 = new A.Tint(){ Val = 75000 }; schemeColor71.Append(tint22); solidFill59.Append(schemeColor71); defaultRunProperties78.Append(solidFill59); level4ParagraphProperties8.Append(noBullet23); level4ParagraphProperties8.Append(defaultRunProperties78); A.Level5ParagraphProperties level5ParagraphProperties8 = new A.Level5ParagraphProperties(){ LeftMargin = 1828800, Indent = 0 }; A.NoBullet noBullet24 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties79 = new A.DefaultRunProperties(){ FontSize = 1400 }; A.SolidFill solidFill60 = new A.SolidFill(); A.SchemeColor schemeColor72 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint23 = new A.Tint(){ Val = 75000 }; schemeColor72.Append(tint23); solidFill60.Append(schemeColor72); defaultRunProperties79.Append(solidFill60); level5ParagraphProperties8.Append(noBullet24); level5ParagraphProperties8.Append(defaultRunProperties79); A.Level6ParagraphProperties level6ParagraphProperties8 = new A.Level6ParagraphProperties(){ LeftMargin = 2286000, Indent = 0 }; A.NoBullet noBullet25 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties80 = new A.DefaultRunProperties(){ FontSize = 1400 }; A.SolidFill solidFill61 = new A.SolidFill(); A.SchemeColor schemeColor73 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint24 = new A.Tint(){ Val = 75000 }; schemeColor73.Append(tint24); solidFill61.Append(schemeColor73); defaultRunProperties80.Append(solidFill61); level6ParagraphProperties8.Append(noBullet25); level6ParagraphProperties8.Append(defaultRunProperties80); A.Level7ParagraphProperties level7ParagraphProperties8 = new A.Level7ParagraphProperties(){ LeftMargin = 2743200, Indent = 0 }; A.NoBullet noBullet26 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties81 = new A.DefaultRunProperties(){ FontSize = 1400 }; A.SolidFill solidFill62 = new A.SolidFill(); A.SchemeColor schemeColor74 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint25 = new A.Tint(){ Val = 75000 }; schemeColor74.Append(tint25); solidFill62.Append(schemeColor74); defaultRunProperties81.Append(solidFill62); level7ParagraphProperties8.Append(noBullet26); level7ParagraphProperties8.Append(defaultRunProperties81); A.Level8ParagraphProperties level8ParagraphProperties8 = new A.Level8ParagraphProperties(){ LeftMargin = 3200400, Indent = 0 }; A.NoBullet noBullet27 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties82 = new A.DefaultRunProperties(){ FontSize = 1400 }; A.SolidFill solidFill63 = new A.SolidFill(); A.SchemeColor schemeColor75 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint26 = new A.Tint(){ Val = 75000 }; schemeColor75.Append(tint26); solidFill63.Append(schemeColor75); defaultRunProperties82.Append(solidFill63); level8ParagraphProperties8.Append(noBullet27); level8ParagraphProperties8.Append(defaultRunProperties82); A.Level9ParagraphProperties level9ParagraphProperties8 = new A.Level9ParagraphProperties(){ LeftMargin = 3657600, Indent = 0 }; A.NoBullet noBullet28 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties83 = new A.DefaultRunProperties(){ FontSize = 1400 }; A.SolidFill solidFill64 = new A.SolidFill(); A.SchemeColor schemeColor76 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint27 = new A.Tint(){ Val = 75000 }; schemeColor76.Append(tint27); solidFill64.Append(schemeColor76); defaultRunProperties83.Append(solidFill64); level9ParagraphProperties8.Append(noBullet28); level9ParagraphProperties8.Append(defaultRunProperties83); listStyle24.Append(level1ParagraphProperties17); listStyle24.Append(level2ParagraphProperties8); listStyle24.Append(level3ParagraphProperties8); listStyle24.Append(level4ParagraphProperties8); listStyle24.Append(level5ParagraphProperties8); listStyle24.Append(level6ParagraphProperties8); listStyle24.Append(level7ParagraphProperties8); listStyle24.Append(level8ParagraphProperties8); listStyle24.Append(level9ParagraphProperties8); A.Paragraph paragraph45 = new A.Paragraph(); A.ParagraphProperties paragraphProperties25 = new A.ParagraphProperties(){ Level = 0 }; A.Run run33 = new A.Run(); A.RunProperties runProperties40 = new A.RunProperties(){ Language = "en-US" }; runProperties40.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text40 = new A.Text(); text40.Text = "Click to edit Master text styles"; run33.Append(runProperties40); run33.Append(text40); paragraph45.Append(paragraphProperties25); paragraph45.Append(run33); textBody24.Append(bodyProperties24); textBody24.Append(listStyle24); textBody24.Append(paragraph45); shape24.Append(nonVisualShapeProperties24); shape24.Append(shapeProperties24); shape24.Append(textBody24); Shape shape25 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties25 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties31 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Date Placeholder 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties25 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks24 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties25.Append(shapeLocks24); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties31 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape24 = new PlaceholderShape(){ Type = PlaceholderValues.DateAndTime, Size = PlaceholderSizeValues.Half, Index = (UInt32Value)10U }; applicationNonVisualDrawingProperties31.Append(placeholderShape24); nonVisualShapeProperties25.Append(nonVisualDrawingProperties31); nonVisualShapeProperties25.Append(nonVisualShapeDrawingProperties25); nonVisualShapeProperties25.Append(applicationNonVisualDrawingProperties31); ShapeProperties shapeProperties25 = new ShapeProperties(); TextBody textBody25 = new TextBody(); A.BodyProperties bodyProperties25 = new A.BodyProperties(); A.ListStyle listStyle25 = new A.ListStyle(); A.Paragraph paragraph46 = new A.Paragraph(); A.Field field8 = new A.Field(){ Id = "{1A15D4F1-1D33-4170-8C9F-182CDE6BA6D1}", Type = "datetimeFigureOut" }; A.RunProperties runProperties41 = new A.RunProperties(){ Language = "en-US" }; runProperties41.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text41 = new A.Text(); text41.Text = "10/3/2012"; field8.Append(runProperties41); field8.Append(text41); A.EndParagraphRunProperties endParagraphRunProperties24 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph46.Append(field8); paragraph46.Append(endParagraphRunProperties24); textBody25.Append(bodyProperties25); textBody25.Append(listStyle25); textBody25.Append(paragraph46); shape25.Append(nonVisualShapeProperties25); shape25.Append(shapeProperties25); shape25.Append(textBody25); Shape shape26 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties26 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties32 = new NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "Footer Placeholder 4" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties26 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks25 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties26.Append(shapeLocks25); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties32 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape25 = new PlaceholderShape(){ Type = PlaceholderValues.Footer, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)11U }; applicationNonVisualDrawingProperties32.Append(placeholderShape25); nonVisualShapeProperties26.Append(nonVisualDrawingProperties32); nonVisualShapeProperties26.Append(nonVisualShapeDrawingProperties26); nonVisualShapeProperties26.Append(applicationNonVisualDrawingProperties32); ShapeProperties shapeProperties26 = new ShapeProperties(); TextBody textBody26 = new TextBody(); A.BodyProperties bodyProperties26 = new A.BodyProperties(); A.ListStyle listStyle26 = new A.ListStyle(); A.Paragraph paragraph47 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties25 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph47.Append(endParagraphRunProperties25); textBody26.Append(bodyProperties26); textBody26.Append(listStyle26); textBody26.Append(paragraph47); shape26.Append(nonVisualShapeProperties26); shape26.Append(shapeProperties26); shape26.Append(textBody26); Shape shape27 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties27 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties33 = new NonVisualDrawingProperties(){ Id = (UInt32Value)6U, Name = "Slide Number Placeholder 5" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties27 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks26 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties27.Append(shapeLocks26); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties33 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape26 = new PlaceholderShape(){ Type = PlaceholderValues.SlideNumber, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)12U }; applicationNonVisualDrawingProperties33.Append(placeholderShape26); nonVisualShapeProperties27.Append(nonVisualDrawingProperties33); nonVisualShapeProperties27.Append(nonVisualShapeDrawingProperties27); nonVisualShapeProperties27.Append(applicationNonVisualDrawingProperties33); ShapeProperties shapeProperties27 = new ShapeProperties(); TextBody textBody27 = new TextBody(); A.BodyProperties bodyProperties27 = new A.BodyProperties(); A.ListStyle listStyle27 = new A.ListStyle(); A.Paragraph paragraph48 = new A.Paragraph(); A.Field field9 = new A.Field(){ Id = "{9E0C3BFA-D4DA-4895-A0F6-B80859694A8D}", Type = "slidenum" }; A.RunProperties runProperties42 = new A.RunProperties(){ Language = "en-US" }; runProperties42.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text42 = new A.Text(); text42.Text = "‹#›"; field9.Append(runProperties42); field9.Append(text42); A.EndParagraphRunProperties endParagraphRunProperties26 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph48.Append(field9); paragraph48.Append(endParagraphRunProperties26); textBody27.Append(bodyProperties27); textBody27.Append(listStyle27); textBody27.Append(paragraph48); shape27.Append(nonVisualShapeProperties27); shape27.Append(shapeProperties27); shape27.Append(textBody27); shapeTree6.Append(nonVisualGroupShapeProperties6); shapeTree6.Append(groupShapeProperties6); shapeTree6.Append(shape23); shapeTree6.Append(shape24); shapeTree6.Append(shape25); shapeTree6.Append(shape26); shapeTree6.Append(shape27); commonSlideData6.Append(shapeTree6); ColorMapOverride colorMapOverride4 = new ColorMapOverride(); A.MasterColorMapping masterColorMapping4 = new A.MasterColorMapping(); colorMapOverride4.Append(masterColorMapping4); slideLayout3.Append(commonSlideData6); slideLayout3.Append(colorMapOverride4); slideLayoutPart3.SlideLayout = slideLayout3; }
// Generates content of slideLayoutPart1. private void GenerateSlideLayoutPart1Content(SlideLayoutPart slideLayoutPart1) { SlideLayout slideLayout1 = new SlideLayout(){ Type = SlideLayoutValues.Title, Preserve = true }; slideLayout1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); slideLayout1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); slideLayout1.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData3 = new CommonSlideData(){ Name = "Title Slide" }; ShapeTree shapeTree3 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties3 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties9 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties3 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties9 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties3.Append(nonVisualDrawingProperties9); nonVisualGroupShapeProperties3.Append(nonVisualGroupShapeDrawingProperties3); nonVisualGroupShapeProperties3.Append(applicationNonVisualDrawingProperties9); GroupShapeProperties groupShapeProperties3 = new GroupShapeProperties(); A.TransformGroup transformGroup3 = new A.TransformGroup(); A.Offset offset9 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents9 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset3 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents3 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup3.Append(offset9); transformGroup3.Append(extents9); transformGroup3.Append(childOffset3); transformGroup3.Append(childExtents3); groupShapeProperties3.Append(transformGroup3); Shape shape7 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties7 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties10 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Title 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties7 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks6 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties7.Append(shapeLocks6); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties10 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape6 = new PlaceholderShape(){ Type = PlaceholderValues.CenteredTitle }; applicationNonVisualDrawingProperties10.Append(placeholderShape6); nonVisualShapeProperties7.Append(nonVisualDrawingProperties10); nonVisualShapeProperties7.Append(nonVisualShapeDrawingProperties7); nonVisualShapeProperties7.Append(applicationNonVisualDrawingProperties10); ShapeProperties shapeProperties7 = new ShapeProperties(); A.Transform2D transform2D7 = new A.Transform2D(); A.Offset offset10 = new A.Offset(){ X = 685800L, Y = 2130426L }; A.Extents extents10 = new A.Extents(){ Cx = 7772400L, Cy = 1470025L }; transform2D7.Append(offset10); transform2D7.Append(extents10); shapeProperties7.Append(transform2D7); TextBody textBody7 = new TextBody(); A.BodyProperties bodyProperties7 = new A.BodyProperties(); A.ListStyle listStyle7 = new A.ListStyle(); A.Paragraph paragraph20 = new A.Paragraph(); A.Run run17 = new A.Run(); A.RunProperties runProperties18 = new A.RunProperties(){ Language = "en-US" }; runProperties18.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text18 = new A.Text(); text18.Text = "Click to edit Master title style"; run17.Append(runProperties18); run17.Append(text18); A.EndParagraphRunProperties endParagraphRunProperties8 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph20.Append(run17); paragraph20.Append(endParagraphRunProperties8); textBody7.Append(bodyProperties7); textBody7.Append(listStyle7); textBody7.Append(paragraph20); shape7.Append(nonVisualShapeProperties7); shape7.Append(shapeProperties7); shape7.Append(textBody7); Shape shape8 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties8 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties11 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Subtitle 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties8 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks7 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties8.Append(shapeLocks7); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties11 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape7 = new PlaceholderShape(){ Type = PlaceholderValues.SubTitle, Index = (UInt32Value)1U }; applicationNonVisualDrawingProperties11.Append(placeholderShape7); nonVisualShapeProperties8.Append(nonVisualDrawingProperties11); nonVisualShapeProperties8.Append(nonVisualShapeDrawingProperties8); nonVisualShapeProperties8.Append(applicationNonVisualDrawingProperties11); ShapeProperties shapeProperties8 = new ShapeProperties(); A.Transform2D transform2D8 = new A.Transform2D(); A.Offset offset11 = new A.Offset(){ X = 1371600L, Y = 3886200L }; A.Extents extents11 = new A.Extents(){ Cx = 6400800L, Cy = 1752600L }; transform2D8.Append(offset11); transform2D8.Append(extents11); shapeProperties8.Append(transform2D8); TextBody textBody8 = new TextBody(); A.BodyProperties bodyProperties8 = new A.BodyProperties(); A.ListStyle listStyle8 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties6 = new A.Level1ParagraphProperties(){ LeftMargin = 0, Indent = 0, Alignment = A.TextAlignmentTypeValues.Center }; A.NoBullet noBullet1 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties23 = new A.DefaultRunProperties(); A.SolidFill solidFill25 = new A.SolidFill(); A.SchemeColor schemeColor36 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint7 = new A.Tint(){ Val = 75000 }; schemeColor36.Append(tint7); solidFill25.Append(schemeColor36); defaultRunProperties23.Append(solidFill25); level1ParagraphProperties6.Append(noBullet1); level1ParagraphProperties6.Append(defaultRunProperties23); A.Level2ParagraphProperties level2ParagraphProperties3 = new A.Level2ParagraphProperties(){ LeftMargin = 457200, Indent = 0, Alignment = A.TextAlignmentTypeValues.Center }; A.NoBullet noBullet2 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties24 = new A.DefaultRunProperties(); A.SolidFill solidFill26 = new A.SolidFill(); A.SchemeColor schemeColor37 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint8 = new A.Tint(){ Val = 75000 }; schemeColor37.Append(tint8); solidFill26.Append(schemeColor37); defaultRunProperties24.Append(solidFill26); level2ParagraphProperties3.Append(noBullet2); level2ParagraphProperties3.Append(defaultRunProperties24); A.Level3ParagraphProperties level3ParagraphProperties3 = new A.Level3ParagraphProperties(){ LeftMargin = 914400, Indent = 0, Alignment = A.TextAlignmentTypeValues.Center }; A.NoBullet noBullet3 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties25 = new A.DefaultRunProperties(); A.SolidFill solidFill27 = new A.SolidFill(); A.SchemeColor schemeColor38 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint9 = new A.Tint(){ Val = 75000 }; schemeColor38.Append(tint9); solidFill27.Append(schemeColor38); defaultRunProperties25.Append(solidFill27); level3ParagraphProperties3.Append(noBullet3); level3ParagraphProperties3.Append(defaultRunProperties25); A.Level4ParagraphProperties level4ParagraphProperties3 = new A.Level4ParagraphProperties(){ LeftMargin = 1371600, Indent = 0, Alignment = A.TextAlignmentTypeValues.Center }; A.NoBullet noBullet4 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties26 = new A.DefaultRunProperties(); A.SolidFill solidFill28 = new A.SolidFill(); A.SchemeColor schemeColor39 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint10 = new A.Tint(){ Val = 75000 }; schemeColor39.Append(tint10); solidFill28.Append(schemeColor39); defaultRunProperties26.Append(solidFill28); level4ParagraphProperties3.Append(noBullet4); level4ParagraphProperties3.Append(defaultRunProperties26); A.Level5ParagraphProperties level5ParagraphProperties3 = new A.Level5ParagraphProperties(){ LeftMargin = 1828800, Indent = 0, Alignment = A.TextAlignmentTypeValues.Center }; A.NoBullet noBullet5 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties27 = new A.DefaultRunProperties(); A.SolidFill solidFill29 = new A.SolidFill(); A.SchemeColor schemeColor40 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint11 = new A.Tint(){ Val = 75000 }; schemeColor40.Append(tint11); solidFill29.Append(schemeColor40); defaultRunProperties27.Append(solidFill29); level5ParagraphProperties3.Append(noBullet5); level5ParagraphProperties3.Append(defaultRunProperties27); A.Level6ParagraphProperties level6ParagraphProperties3 = new A.Level6ParagraphProperties(){ LeftMargin = 2286000, Indent = 0, Alignment = A.TextAlignmentTypeValues.Center }; A.NoBullet noBullet6 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties28 = new A.DefaultRunProperties(); A.SolidFill solidFill30 = new A.SolidFill(); A.SchemeColor schemeColor41 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint12 = new A.Tint(){ Val = 75000 }; schemeColor41.Append(tint12); solidFill30.Append(schemeColor41); defaultRunProperties28.Append(solidFill30); level6ParagraphProperties3.Append(noBullet6); level6ParagraphProperties3.Append(defaultRunProperties28); A.Level7ParagraphProperties level7ParagraphProperties3 = new A.Level7ParagraphProperties(){ LeftMargin = 2743200, Indent = 0, Alignment = A.TextAlignmentTypeValues.Center }; A.NoBullet noBullet7 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties29 = new A.DefaultRunProperties(); A.SolidFill solidFill31 = new A.SolidFill(); A.SchemeColor schemeColor42 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint13 = new A.Tint(){ Val = 75000 }; schemeColor42.Append(tint13); solidFill31.Append(schemeColor42); defaultRunProperties29.Append(solidFill31); level7ParagraphProperties3.Append(noBullet7); level7ParagraphProperties3.Append(defaultRunProperties29); A.Level8ParagraphProperties level8ParagraphProperties3 = new A.Level8ParagraphProperties(){ LeftMargin = 3200400, Indent = 0, Alignment = A.TextAlignmentTypeValues.Center }; A.NoBullet noBullet8 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties30 = new A.DefaultRunProperties(); A.SolidFill solidFill32 = new A.SolidFill(); A.SchemeColor schemeColor43 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint14 = new A.Tint(){ Val = 75000 }; schemeColor43.Append(tint14); solidFill32.Append(schemeColor43); defaultRunProperties30.Append(solidFill32); level8ParagraphProperties3.Append(noBullet8); level8ParagraphProperties3.Append(defaultRunProperties30); A.Level9ParagraphProperties level9ParagraphProperties3 = new A.Level9ParagraphProperties(){ LeftMargin = 3657600, Indent = 0, Alignment = A.TextAlignmentTypeValues.Center }; A.NoBullet noBullet9 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties31 = new A.DefaultRunProperties(); A.SolidFill solidFill33 = new A.SolidFill(); A.SchemeColor schemeColor44 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint15 = new A.Tint(){ Val = 75000 }; schemeColor44.Append(tint15); solidFill33.Append(schemeColor44); defaultRunProperties31.Append(solidFill33); level9ParagraphProperties3.Append(noBullet9); level9ParagraphProperties3.Append(defaultRunProperties31); listStyle8.Append(level1ParagraphProperties6); listStyle8.Append(level2ParagraphProperties3); listStyle8.Append(level3ParagraphProperties3); listStyle8.Append(level4ParagraphProperties3); listStyle8.Append(level5ParagraphProperties3); listStyle8.Append(level6ParagraphProperties3); listStyle8.Append(level7ParagraphProperties3); listStyle8.Append(level8ParagraphProperties3); listStyle8.Append(level9ParagraphProperties3); A.Paragraph paragraph21 = new A.Paragraph(); A.Run run18 = new A.Run(); A.RunProperties runProperties19 = new A.RunProperties(){ Language = "en-US" }; runProperties19.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text19 = new A.Text(); text19.Text = "Click to edit Master subtitle style"; run18.Append(runProperties19); run18.Append(text19); A.EndParagraphRunProperties endParagraphRunProperties9 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph21.Append(run18); paragraph21.Append(endParagraphRunProperties9); textBody8.Append(bodyProperties8); textBody8.Append(listStyle8); textBody8.Append(paragraph21); shape8.Append(nonVisualShapeProperties8); shape8.Append(shapeProperties8); shape8.Append(textBody8); Shape shape9 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties9 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties12 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Date Placeholder 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties9 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks8 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties9.Append(shapeLocks8); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties12 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape8 = new PlaceholderShape(){ Type = PlaceholderValues.DateAndTime, Size = PlaceholderSizeValues.Half, Index = (UInt32Value)10U }; applicationNonVisualDrawingProperties12.Append(placeholderShape8); nonVisualShapeProperties9.Append(nonVisualDrawingProperties12); nonVisualShapeProperties9.Append(nonVisualShapeDrawingProperties9); nonVisualShapeProperties9.Append(applicationNonVisualDrawingProperties12); ShapeProperties shapeProperties9 = new ShapeProperties(); TextBody textBody9 = new TextBody(); A.BodyProperties bodyProperties9 = new A.BodyProperties(); A.ListStyle listStyle9 = new A.ListStyle(); A.Paragraph paragraph22 = new A.Paragraph(); A.Field field2 = new A.Field(){ Id = "{1A15D4F1-1D33-4170-8C9F-182CDE6BA6D1}", Type = "datetimeFigureOut" }; A.RunProperties runProperties20 = new A.RunProperties(){ Language = "en-US" }; runProperties20.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text20 = new A.Text(); text20.Text = "10/3/2012"; field2.Append(runProperties20); field2.Append(text20); A.EndParagraphRunProperties endParagraphRunProperties10 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph22.Append(field2); paragraph22.Append(endParagraphRunProperties10); textBody9.Append(bodyProperties9); textBody9.Append(listStyle9); textBody9.Append(paragraph22); shape9.Append(nonVisualShapeProperties9); shape9.Append(shapeProperties9); shape9.Append(textBody9); Shape shape10 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties10 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties13 = new NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "Footer Placeholder 4" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties10 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks9 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties10.Append(shapeLocks9); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties13 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape9 = new PlaceholderShape(){ Type = PlaceholderValues.Footer, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)11U }; applicationNonVisualDrawingProperties13.Append(placeholderShape9); nonVisualShapeProperties10.Append(nonVisualDrawingProperties13); nonVisualShapeProperties10.Append(nonVisualShapeDrawingProperties10); nonVisualShapeProperties10.Append(applicationNonVisualDrawingProperties13); ShapeProperties shapeProperties10 = new ShapeProperties(); TextBody textBody10 = new TextBody(); A.BodyProperties bodyProperties10 = new A.BodyProperties(); A.ListStyle listStyle10 = new A.ListStyle(); A.Paragraph paragraph23 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties11 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph23.Append(endParagraphRunProperties11); textBody10.Append(bodyProperties10); textBody10.Append(listStyle10); textBody10.Append(paragraph23); shape10.Append(nonVisualShapeProperties10); shape10.Append(shapeProperties10); shape10.Append(textBody10); Shape shape11 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties11 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties14 = new NonVisualDrawingProperties(){ Id = (UInt32Value)6U, Name = "Slide Number Placeholder 5" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties11 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks10 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties11.Append(shapeLocks10); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties14 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape10 = new PlaceholderShape(){ Type = PlaceholderValues.SlideNumber, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)12U }; applicationNonVisualDrawingProperties14.Append(placeholderShape10); nonVisualShapeProperties11.Append(nonVisualDrawingProperties14); nonVisualShapeProperties11.Append(nonVisualShapeDrawingProperties11); nonVisualShapeProperties11.Append(applicationNonVisualDrawingProperties14); ShapeProperties shapeProperties11 = new ShapeProperties(); TextBody textBody11 = new TextBody(); A.BodyProperties bodyProperties11 = new A.BodyProperties(); A.ListStyle listStyle11 = new A.ListStyle(); A.Paragraph paragraph24 = new A.Paragraph(); A.Field field3 = new A.Field(){ Id = "{9E0C3BFA-D4DA-4895-A0F6-B80859694A8D}", Type = "slidenum" }; A.RunProperties runProperties21 = new A.RunProperties(){ Language = "en-US" }; runProperties21.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text21 = new A.Text(); text21.Text = "‹#›"; field3.Append(runProperties21); field3.Append(text21); A.EndParagraphRunProperties endParagraphRunProperties12 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph24.Append(field3); paragraph24.Append(endParagraphRunProperties12); textBody11.Append(bodyProperties11); textBody11.Append(listStyle11); textBody11.Append(paragraph24); shape11.Append(nonVisualShapeProperties11); shape11.Append(shapeProperties11); shape11.Append(textBody11); shapeTree3.Append(nonVisualGroupShapeProperties3); shapeTree3.Append(groupShapeProperties3); shapeTree3.Append(shape7); shapeTree3.Append(shape8); shapeTree3.Append(shape9); shapeTree3.Append(shape10); shapeTree3.Append(shape11); commonSlideData3.Append(shapeTree3); ColorMapOverride colorMapOverride2 = new ColorMapOverride(); A.MasterColorMapping masterColorMapping2 = new A.MasterColorMapping(); colorMapOverride2.Append(masterColorMapping2); slideLayout1.Append(commonSlideData3); slideLayout1.Append(colorMapOverride2); slideLayoutPart1.SlideLayout = slideLayout1; }
// Generates content of slideLayoutPart10. private void GenerateSlideLayoutPart10Content(SlideLayoutPart slideLayoutPart10) { SlideLayout slideLayout10 = new SlideLayout(){ Type = SlideLayoutValues.TwoObjects, Preserve = true }; slideLayout10.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); slideLayout10.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); slideLayout10.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData13 = new CommonSlideData(){ Name = "Two Content" }; ShapeTree shapeTree13 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties13 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties70 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties13 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties70 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties13.Append(nonVisualDrawingProperties70); nonVisualGroupShapeProperties13.Append(nonVisualGroupShapeDrawingProperties13); nonVisualGroupShapeProperties13.Append(applicationNonVisualDrawingProperties70); GroupShapeProperties groupShapeProperties13 = new GroupShapeProperties(); A.TransformGroup transformGroup13 = new A.TransformGroup(); A.Offset offset38 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents38 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset13 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents13 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup13.Append(offset38); transformGroup13.Append(extents38); transformGroup13.Append(childOffset13); transformGroup13.Append(childExtents13); groupShapeProperties13.Append(transformGroup13); Shape shape58 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties58 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties71 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Title 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties58 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks57 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties58.Append(shapeLocks57); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties71 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape57 = new PlaceholderShape(){ Type = PlaceholderValues.Title }; applicationNonVisualDrawingProperties71.Append(placeholderShape57); nonVisualShapeProperties58.Append(nonVisualDrawingProperties71); nonVisualShapeProperties58.Append(nonVisualShapeDrawingProperties58); nonVisualShapeProperties58.Append(applicationNonVisualDrawingProperties71); ShapeProperties shapeProperties58 = new ShapeProperties(); TextBody textBody58 = new TextBody(); A.BodyProperties bodyProperties58 = new A.BodyProperties(); A.ListStyle listStyle58 = new A.ListStyle(); A.Paragraph paragraph99 = new A.Paragraph(); A.Run run66 = new A.Run(); A.RunProperties runProperties87 = new A.RunProperties(){ Language = "en-US" }; runProperties87.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text87 = new A.Text(); text87.Text = "Click to edit Master title style"; run66.Append(runProperties87); run66.Append(text87); A.EndParagraphRunProperties endParagraphRunProperties55 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph99.Append(run66); paragraph99.Append(endParagraphRunProperties55); textBody58.Append(bodyProperties58); textBody58.Append(listStyle58); textBody58.Append(paragraph99); shape58.Append(nonVisualShapeProperties58); shape58.Append(shapeProperties58); shape58.Append(textBody58); Shape shape59 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties59 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties72 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Content Placeholder 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties59 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks58 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties59.Append(shapeLocks58); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties72 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape58 = new PlaceholderShape(){ Size = PlaceholderSizeValues.Half, Index = (UInt32Value)1U }; applicationNonVisualDrawingProperties72.Append(placeholderShape58); nonVisualShapeProperties59.Append(nonVisualDrawingProperties72); nonVisualShapeProperties59.Append(nonVisualShapeDrawingProperties59); nonVisualShapeProperties59.Append(applicationNonVisualDrawingProperties72); ShapeProperties shapeProperties59 = new ShapeProperties(); A.Transform2D transform2D26 = new A.Transform2D(); A.Offset offset39 = new A.Offset(){ X = 342901L, Y = 2133601L }; A.Extents extents39 = new A.Extents(){ Cx = 3009900L, Cy = 6034088L }; transform2D26.Append(offset39); transform2D26.Append(extents39); shapeProperties59.Append(transform2D26); TextBody textBody59 = new TextBody(); A.BodyProperties bodyProperties59 = new A.BodyProperties(); A.ListStyle listStyle59 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties23 = new A.Level1ParagraphProperties(); A.DefaultRunProperties defaultRunProperties121 = new A.DefaultRunProperties(){ FontSize = 2800 }; level1ParagraphProperties23.Append(defaultRunProperties121); A.Level2ParagraphProperties level2ParagraphProperties13 = new A.Level2ParagraphProperties(); A.DefaultRunProperties defaultRunProperties122 = new A.DefaultRunProperties(){ FontSize = 2400 }; level2ParagraphProperties13.Append(defaultRunProperties122); A.Level3ParagraphProperties level3ParagraphProperties13 = new A.Level3ParagraphProperties(); A.DefaultRunProperties defaultRunProperties123 = new A.DefaultRunProperties(){ FontSize = 2000 }; level3ParagraphProperties13.Append(defaultRunProperties123); A.Level4ParagraphProperties level4ParagraphProperties13 = new A.Level4ParagraphProperties(); A.DefaultRunProperties defaultRunProperties124 = new A.DefaultRunProperties(){ FontSize = 1800 }; level4ParagraphProperties13.Append(defaultRunProperties124); A.Level5ParagraphProperties level5ParagraphProperties13 = new A.Level5ParagraphProperties(); A.DefaultRunProperties defaultRunProperties125 = new A.DefaultRunProperties(){ FontSize = 1800 }; level5ParagraphProperties13.Append(defaultRunProperties125); A.Level6ParagraphProperties level6ParagraphProperties13 = new A.Level6ParagraphProperties(); A.DefaultRunProperties defaultRunProperties126 = new A.DefaultRunProperties(){ FontSize = 1800 }; level6ParagraphProperties13.Append(defaultRunProperties126); A.Level7ParagraphProperties level7ParagraphProperties13 = new A.Level7ParagraphProperties(); A.DefaultRunProperties defaultRunProperties127 = new A.DefaultRunProperties(){ FontSize = 1800 }; level7ParagraphProperties13.Append(defaultRunProperties127); A.Level8ParagraphProperties level8ParagraphProperties13 = new A.Level8ParagraphProperties(); A.DefaultRunProperties defaultRunProperties128 = new A.DefaultRunProperties(){ FontSize = 1800 }; level8ParagraphProperties13.Append(defaultRunProperties128); A.Level9ParagraphProperties level9ParagraphProperties13 = new A.Level9ParagraphProperties(); A.DefaultRunProperties defaultRunProperties129 = new A.DefaultRunProperties(){ FontSize = 1800 }; level9ParagraphProperties13.Append(defaultRunProperties129); listStyle59.Append(level1ParagraphProperties23); listStyle59.Append(level2ParagraphProperties13); listStyle59.Append(level3ParagraphProperties13); listStyle59.Append(level4ParagraphProperties13); listStyle59.Append(level5ParagraphProperties13); listStyle59.Append(level6ParagraphProperties13); listStyle59.Append(level7ParagraphProperties13); listStyle59.Append(level8ParagraphProperties13); listStyle59.Append(level9ParagraphProperties13); A.Paragraph paragraph100 = new A.Paragraph(); A.ParagraphProperties paragraphProperties53 = new A.ParagraphProperties(){ Level = 0 }; A.Run run67 = new A.Run(); A.RunProperties runProperties88 = new A.RunProperties(){ Language = "en-US" }; runProperties88.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text88 = new A.Text(); text88.Text = "Click to edit Master text styles"; run67.Append(runProperties88); run67.Append(text88); paragraph100.Append(paragraphProperties53); paragraph100.Append(run67); A.Paragraph paragraph101 = new A.Paragraph(); A.ParagraphProperties paragraphProperties54 = new A.ParagraphProperties(){ Level = 1 }; A.Run run68 = new A.Run(); A.RunProperties runProperties89 = new A.RunProperties(){ Language = "en-US" }; runProperties89.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text89 = new A.Text(); text89.Text = "Second level"; run68.Append(runProperties89); run68.Append(text89); paragraph101.Append(paragraphProperties54); paragraph101.Append(run68); A.Paragraph paragraph102 = new A.Paragraph(); A.ParagraphProperties paragraphProperties55 = new A.ParagraphProperties(){ Level = 2 }; A.Run run69 = new A.Run(); A.RunProperties runProperties90 = new A.RunProperties(){ Language = "en-US" }; runProperties90.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text90 = new A.Text(); text90.Text = "Third level"; run69.Append(runProperties90); run69.Append(text90); paragraph102.Append(paragraphProperties55); paragraph102.Append(run69); A.Paragraph paragraph103 = new A.Paragraph(); A.ParagraphProperties paragraphProperties56 = new A.ParagraphProperties(){ Level = 3 }; A.Run run70 = new A.Run(); A.RunProperties runProperties91 = new A.RunProperties(){ Language = "en-US" }; runProperties91.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text91 = new A.Text(); text91.Text = "Fourth level"; run70.Append(runProperties91); run70.Append(text91); paragraph103.Append(paragraphProperties56); paragraph103.Append(run70); A.Paragraph paragraph104 = new A.Paragraph(); A.ParagraphProperties paragraphProperties57 = new A.ParagraphProperties(){ Level = 4 }; A.Run run71 = new A.Run(); A.RunProperties runProperties92 = new A.RunProperties(){ Language = "en-US" }; runProperties92.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text92 = new A.Text(); text92.Text = "Fifth level"; run71.Append(runProperties92); run71.Append(text92); A.EndParagraphRunProperties endParagraphRunProperties56 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph104.Append(paragraphProperties57); paragraph104.Append(run71); paragraph104.Append(endParagraphRunProperties56); textBody59.Append(bodyProperties59); textBody59.Append(listStyle59); textBody59.Append(paragraph100); textBody59.Append(paragraph101); textBody59.Append(paragraph102); textBody59.Append(paragraph103); textBody59.Append(paragraph104); shape59.Append(nonVisualShapeProperties59); shape59.Append(shapeProperties59); shape59.Append(textBody59); Shape shape60 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties60 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties73 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Content Placeholder 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties60 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks59 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties60.Append(shapeLocks59); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties73 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape59 = new PlaceholderShape(){ Size = PlaceholderSizeValues.Half, Index = (UInt32Value)2U }; applicationNonVisualDrawingProperties73.Append(placeholderShape59); nonVisualShapeProperties60.Append(nonVisualDrawingProperties73); nonVisualShapeProperties60.Append(nonVisualShapeDrawingProperties60); nonVisualShapeProperties60.Append(applicationNonVisualDrawingProperties73); ShapeProperties shapeProperties60 = new ShapeProperties(); A.Transform2D transform2D27 = new A.Transform2D(); A.Offset offset40 = new A.Offset(){ X = 3505201L, Y = 2133601L }; A.Extents extents40 = new A.Extents(){ Cx = 3009900L, Cy = 6034088L }; transform2D27.Append(offset40); transform2D27.Append(extents40); shapeProperties60.Append(transform2D27); TextBody textBody60 = new TextBody(); A.BodyProperties bodyProperties60 = new A.BodyProperties(); A.ListStyle listStyle60 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties24 = new A.Level1ParagraphProperties(); A.DefaultRunProperties defaultRunProperties130 = new A.DefaultRunProperties(){ FontSize = 2800 }; level1ParagraphProperties24.Append(defaultRunProperties130); A.Level2ParagraphProperties level2ParagraphProperties14 = new A.Level2ParagraphProperties(); A.DefaultRunProperties defaultRunProperties131 = new A.DefaultRunProperties(){ FontSize = 2400 }; level2ParagraphProperties14.Append(defaultRunProperties131); A.Level3ParagraphProperties level3ParagraphProperties14 = new A.Level3ParagraphProperties(); A.DefaultRunProperties defaultRunProperties132 = new A.DefaultRunProperties(){ FontSize = 2000 }; level3ParagraphProperties14.Append(defaultRunProperties132); A.Level4ParagraphProperties level4ParagraphProperties14 = new A.Level4ParagraphProperties(); A.DefaultRunProperties defaultRunProperties133 = new A.DefaultRunProperties(){ FontSize = 1800 }; level4ParagraphProperties14.Append(defaultRunProperties133); A.Level5ParagraphProperties level5ParagraphProperties14 = new A.Level5ParagraphProperties(); A.DefaultRunProperties defaultRunProperties134 = new A.DefaultRunProperties(){ FontSize = 1800 }; level5ParagraphProperties14.Append(defaultRunProperties134); A.Level6ParagraphProperties level6ParagraphProperties14 = new A.Level6ParagraphProperties(); A.DefaultRunProperties defaultRunProperties135 = new A.DefaultRunProperties(){ FontSize = 1800 }; level6ParagraphProperties14.Append(defaultRunProperties135); A.Level7ParagraphProperties level7ParagraphProperties14 = new A.Level7ParagraphProperties(); A.DefaultRunProperties defaultRunProperties136 = new A.DefaultRunProperties(){ FontSize = 1800 }; level7ParagraphProperties14.Append(defaultRunProperties136); A.Level8ParagraphProperties level8ParagraphProperties14 = new A.Level8ParagraphProperties(); A.DefaultRunProperties defaultRunProperties137 = new A.DefaultRunProperties(){ FontSize = 1800 }; level8ParagraphProperties14.Append(defaultRunProperties137); A.Level9ParagraphProperties level9ParagraphProperties14 = new A.Level9ParagraphProperties(); A.DefaultRunProperties defaultRunProperties138 = new A.DefaultRunProperties(){ FontSize = 1800 }; level9ParagraphProperties14.Append(defaultRunProperties138); listStyle60.Append(level1ParagraphProperties24); listStyle60.Append(level2ParagraphProperties14); listStyle60.Append(level3ParagraphProperties14); listStyle60.Append(level4ParagraphProperties14); listStyle60.Append(level5ParagraphProperties14); listStyle60.Append(level6ParagraphProperties14); listStyle60.Append(level7ParagraphProperties14); listStyle60.Append(level8ParagraphProperties14); listStyle60.Append(level9ParagraphProperties14); A.Paragraph paragraph105 = new A.Paragraph(); A.ParagraphProperties paragraphProperties58 = new A.ParagraphProperties(){ Level = 0 }; A.Run run72 = new A.Run(); A.RunProperties runProperties93 = new A.RunProperties(){ Language = "en-US" }; runProperties93.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text93 = new A.Text(); text93.Text = "Click to edit Master text styles"; run72.Append(runProperties93); run72.Append(text93); paragraph105.Append(paragraphProperties58); paragraph105.Append(run72); A.Paragraph paragraph106 = new A.Paragraph(); A.ParagraphProperties paragraphProperties59 = new A.ParagraphProperties(){ Level = 1 }; A.Run run73 = new A.Run(); A.RunProperties runProperties94 = new A.RunProperties(){ Language = "en-US" }; runProperties94.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text94 = new A.Text(); text94.Text = "Second level"; run73.Append(runProperties94); run73.Append(text94); paragraph106.Append(paragraphProperties59); paragraph106.Append(run73); A.Paragraph paragraph107 = new A.Paragraph(); A.ParagraphProperties paragraphProperties60 = new A.ParagraphProperties(){ Level = 2 }; A.Run run74 = new A.Run(); A.RunProperties runProperties95 = new A.RunProperties(){ Language = "en-US" }; runProperties95.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text95 = new A.Text(); text95.Text = "Third level"; run74.Append(runProperties95); run74.Append(text95); paragraph107.Append(paragraphProperties60); paragraph107.Append(run74); A.Paragraph paragraph108 = new A.Paragraph(); A.ParagraphProperties paragraphProperties61 = new A.ParagraphProperties(){ Level = 3 }; A.Run run75 = new A.Run(); A.RunProperties runProperties96 = new A.RunProperties(){ Language = "en-US" }; runProperties96.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text96 = new A.Text(); text96.Text = "Fourth level"; run75.Append(runProperties96); run75.Append(text96); paragraph108.Append(paragraphProperties61); paragraph108.Append(run75); A.Paragraph paragraph109 = new A.Paragraph(); A.ParagraphProperties paragraphProperties62 = new A.ParagraphProperties(){ Level = 4 }; A.Run run76 = new A.Run(); A.RunProperties runProperties97 = new A.RunProperties(){ Language = "en-US" }; runProperties97.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text97 = new A.Text(); text97.Text = "Fifth level"; run76.Append(runProperties97); run76.Append(text97); A.EndParagraphRunProperties endParagraphRunProperties57 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph109.Append(paragraphProperties62); paragraph109.Append(run76); paragraph109.Append(endParagraphRunProperties57); textBody60.Append(bodyProperties60); textBody60.Append(listStyle60); textBody60.Append(paragraph105); textBody60.Append(paragraph106); textBody60.Append(paragraph107); textBody60.Append(paragraph108); textBody60.Append(paragraph109); shape60.Append(nonVisualShapeProperties60); shape60.Append(shapeProperties60); shape60.Append(textBody60); Shape shape61 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties61 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties74 = new NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "Date Placeholder 4" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties61 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks60 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties61.Append(shapeLocks60); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties74 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape60 = new PlaceholderShape(){ Type = PlaceholderValues.DateAndTime, Size = PlaceholderSizeValues.Half, Index = (UInt32Value)10U }; applicationNonVisualDrawingProperties74.Append(placeholderShape60); nonVisualShapeProperties61.Append(nonVisualDrawingProperties74); nonVisualShapeProperties61.Append(nonVisualShapeDrawingProperties61); nonVisualShapeProperties61.Append(applicationNonVisualDrawingProperties74); ShapeProperties shapeProperties61 = new ShapeProperties(); TextBody textBody61 = new TextBody(); A.BodyProperties bodyProperties61 = new A.BodyProperties(); A.ListStyle listStyle61 = new A.ListStyle(); A.Paragraph paragraph110 = new A.Paragraph(); A.Field field22 = new A.Field(){ Id = "{1A15D4F1-1D33-4170-8C9F-182CDE6BA6D1}", Type = "datetimeFigureOut" }; A.RunProperties runProperties98 = new A.RunProperties(){ Language = "en-US" }; runProperties98.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text98 = new A.Text(); text98.Text = "10/3/2012"; field22.Append(runProperties98); field22.Append(text98); A.EndParagraphRunProperties endParagraphRunProperties58 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph110.Append(field22); paragraph110.Append(endParagraphRunProperties58); textBody61.Append(bodyProperties61); textBody61.Append(listStyle61); textBody61.Append(paragraph110); shape61.Append(nonVisualShapeProperties61); shape61.Append(shapeProperties61); shape61.Append(textBody61); Shape shape62 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties62 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties75 = new NonVisualDrawingProperties(){ Id = (UInt32Value)6U, Name = "Footer Placeholder 5" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties62 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks61 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties62.Append(shapeLocks61); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties75 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape61 = new PlaceholderShape(){ Type = PlaceholderValues.Footer, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)11U }; applicationNonVisualDrawingProperties75.Append(placeholderShape61); nonVisualShapeProperties62.Append(nonVisualDrawingProperties75); nonVisualShapeProperties62.Append(nonVisualShapeDrawingProperties62); nonVisualShapeProperties62.Append(applicationNonVisualDrawingProperties75); ShapeProperties shapeProperties62 = new ShapeProperties(); TextBody textBody62 = new TextBody(); A.BodyProperties bodyProperties62 = new A.BodyProperties(); A.ListStyle listStyle62 = new A.ListStyle(); A.Paragraph paragraph111 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties59 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph111.Append(endParagraphRunProperties59); textBody62.Append(bodyProperties62); textBody62.Append(listStyle62); textBody62.Append(paragraph111); shape62.Append(nonVisualShapeProperties62); shape62.Append(shapeProperties62); shape62.Append(textBody62); Shape shape63 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties63 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties76 = new NonVisualDrawingProperties(){ Id = (UInt32Value)7U, Name = "Slide Number Placeholder 6" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties63 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks62 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties63.Append(shapeLocks62); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties76 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape62 = new PlaceholderShape(){ Type = PlaceholderValues.SlideNumber, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)12U }; applicationNonVisualDrawingProperties76.Append(placeholderShape62); nonVisualShapeProperties63.Append(nonVisualDrawingProperties76); nonVisualShapeProperties63.Append(nonVisualShapeDrawingProperties63); nonVisualShapeProperties63.Append(applicationNonVisualDrawingProperties76); ShapeProperties shapeProperties63 = new ShapeProperties(); TextBody textBody63 = new TextBody(); A.BodyProperties bodyProperties63 = new A.BodyProperties(); A.ListStyle listStyle63 = new A.ListStyle(); A.Paragraph paragraph112 = new A.Paragraph(); A.Field field23 = new A.Field(){ Id = "{9E0C3BFA-D4DA-4895-A0F6-B80859694A8D}", Type = "slidenum" }; A.RunProperties runProperties99 = new A.RunProperties(){ Language = "en-US" }; runProperties99.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text99 = new A.Text(); text99.Text = "‹#›"; field23.Append(runProperties99); field23.Append(text99); A.EndParagraphRunProperties endParagraphRunProperties60 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph112.Append(field23); paragraph112.Append(endParagraphRunProperties60); textBody63.Append(bodyProperties63); textBody63.Append(listStyle63); textBody63.Append(paragraph112); shape63.Append(nonVisualShapeProperties63); shape63.Append(shapeProperties63); shape63.Append(textBody63); shapeTree13.Append(nonVisualGroupShapeProperties13); shapeTree13.Append(groupShapeProperties13); shapeTree13.Append(shape58); shapeTree13.Append(shape59); shapeTree13.Append(shape60); shapeTree13.Append(shape61); shapeTree13.Append(shape62); shapeTree13.Append(shape63); commonSlideData13.Append(shapeTree13); ColorMapOverride colorMapOverride11 = new ColorMapOverride(); A.MasterColorMapping masterColorMapping11 = new A.MasterColorMapping(); colorMapOverride11.Append(masterColorMapping11); slideLayout10.Append(commonSlideData13); slideLayout10.Append(colorMapOverride11); slideLayoutPart10.SlideLayout = slideLayout10; }
internal C.DataTable ToDataTable(bool IsStylish = false) { C.DataTable dt = new C.DataTable(); if (this.ShowHorizontalBorder) dt.ShowHorizontalBorder = new C.ShowHorizontalBorder() { Val = true }; if (this.ShowVerticalBorder) dt.ShowVerticalBorder = new C.ShowVerticalBorder() { Val = true }; if (this.ShowOutlineBorder) dt.ShowOutlineBorder = new C.ShowOutlineBorder() { Val = true }; if (this.ShowLegendKeys) dt.ShowKeys = new C.ShowKeys() { Val = true }; if (this.ShapeProperties.HasShapeProperties) dt.ChartShapeProperties = this.ShapeProperties.ToChartShapeProperties(IsStylish); if (this.Font != null) { dt.TextProperties = new C.TextProperties(); dt.TextProperties.BodyProperties = new A.BodyProperties(); dt.TextProperties.ListStyle = new A.ListStyle(); dt.TextProperties.Append(this.Font.ToParagraph()); } else if (IsStylish) { dt.TextProperties = new C.TextProperties(); dt.TextProperties.BodyProperties = new A.BodyProperties() { Rotation = 0, UseParagraphSpacing = true, VerticalOverflow = A.TextVerticalOverflowValues.Ellipsis, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = true }; dt.TextProperties.ListStyle = new A.ListStyle(); A.Paragraph para = new A.Paragraph(); para.ParagraphProperties = new A.ParagraphProperties(); A.DefaultRunProperties defrunprops = new A.DefaultRunProperties(); defrunprops.FontSize = 900; defrunprops.Bold = false; defrunprops.Italic = false; defrunprops.Underline = A.TextUnderlineValues.None; defrunprops.Strike = A.TextStrikeValues.NoStrike; defrunprops.Kerning = 1200; defrunprops.Baseline = 0; A.SchemeColor schclr = new A.SchemeColor() { Val = A.SchemeColorValues.Text1 }; schclr.Append(new A.LuminanceModulation() { Val = 65000 }); schclr.Append(new A.LuminanceOffset() { Val = 35000 }); defrunprops.Append(new A.SolidFill() { SchemeColor = schclr }); defrunprops.Append(new A.LatinFont() { Typeface = "+mn-lt" }); defrunprops.Append(new A.EastAsianFont() { Typeface = "+mn-ea" }); defrunprops.Append(new A.ComplexScriptFont() { Typeface = "+mn-cs" }); para.ParagraphProperties.Append(defrunprops); para.Append(new A.EndParagraphRunProperties() { Language = System.Globalization.CultureInfo.CurrentCulture.Name }); dt.TextProperties.Append(para); } return dt; }
internal override void Process(DocxNode node, ref Paragraph paragraph) { if (IsHidden(node)) { return; } string src = node.ExtractAttributeValue("src"); if (!string.IsNullOrEmpty(src)) { try { Drawing drawing = PrepareImage(src); if (drawing != null) { if (paragraph == null) { paragraph = node.Parent.AppendChild(new Paragraph()); OnParagraphCreated(node, paragraph); } Run run = paragraph.AppendChild(new Run(drawing)); RunCreated(node, run); } } catch { return;//fails silently? } } }
// Generates content of slidePart1. private void GenerateSlidePart1Content(SlidePart slidePart1) { Slide slide1 = new Slide(); slide1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); slide1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); slide1.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData2 = new CommonSlideData(); ShapeTree shapeTree2 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties2 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties7 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties2 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties7 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties2.Append(nonVisualDrawingProperties7); nonVisualGroupShapeProperties2.Append(nonVisualGroupShapeDrawingProperties2); nonVisualGroupShapeProperties2.Append(applicationNonVisualDrawingProperties7); GroupShapeProperties groupShapeProperties2 = new GroupShapeProperties(); A.TransformGroup transformGroup2 = new A.TransformGroup(); A.Offset offset7 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents7 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset2 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents2 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup2.Append(offset7); transformGroup2.Append(extents7); transformGroup2.Append(childOffset2); transformGroup2.Append(childExtents2); groupShapeProperties2.Append(transformGroup2); Shape shape6 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties6 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties8 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "TextBox 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties6 = new NonVisualShapeDrawingProperties(){ TextBox = true }; ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties8 = new ApplicationNonVisualDrawingProperties(); nonVisualShapeProperties6.Append(nonVisualDrawingProperties8); nonVisualShapeProperties6.Append(nonVisualShapeDrawingProperties6); nonVisualShapeProperties6.Append(applicationNonVisualDrawingProperties8); ShapeProperties shapeProperties6 = new ShapeProperties(); A.Transform2D transform2D6 = new A.Transform2D(); A.Offset offset8 = new A.Offset(){ X = 1905000L, Y = 1295400L }; A.Extents extents8 = new A.Extents(){ Cx = 6172200L, Cy = 2862322L }; transform2D6.Append(offset8); transform2D6.Append(extents8); A.PresetGeometry presetGeometry6 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList6 = new A.AdjustValueList(); presetGeometry6.Append(adjustValueList6); A.NoFill noFill2 = new A.NoFill(); shapeProperties6.Append(transform2D6); shapeProperties6.Append(presetGeometry6); shapeProperties6.Append(noFill2); TextBody textBody6 = new TextBody(); A.BodyProperties bodyProperties6 = new A.BodyProperties(){ Wrap = A.TextWrappingValues.Square, RightToLeftColumns = false }; A.ShapeAutoFit shapeAutoFit1 = new A.ShapeAutoFit(); bodyProperties6.Append(shapeAutoFit1); A.ListStyle listStyle6 = new A.ListStyle(); A.Paragraph paragraph10 = new A.Paragraph(); A.Run run9 = new A.Run(); A.RunProperties runProperties10 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties10.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text10 = new A.Text(); text10.Text = "Changes made to the Notes Master:"; run9.Append(runProperties10); run9.Append(text10); paragraph10.Append(run9); A.Paragraph paragraph11 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties6 = new A.EndParagraphRunProperties(){ Language = "en-US", Dirty = false }; paragraph11.Append(endParagraphRunProperties6); A.Paragraph paragraph12 = new A.Paragraph(); A.ParagraphProperties paragraphProperties6 = new A.ParagraphProperties(){ LeftMargin = 342900, Indent = -342900 }; A.AutoNumberedBullet autoNumberedBullet1 = new A.AutoNumberedBullet(){ Type = A.TextAutoNumberSchemeValues.ArabicParenR }; paragraphProperties6.Append(autoNumberedBullet1); A.Run run10 = new A.Run(); A.RunProperties runProperties11 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties11.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text11 = new A.Text(); text11.Text = "Added text to Header"; run10.Append(runProperties11); run10.Append(text11); paragraph12.Append(paragraphProperties6); paragraph12.Append(run10); A.Paragraph paragraph13 = new A.Paragraph(); A.ParagraphProperties paragraphProperties7 = new A.ParagraphProperties(){ LeftMargin = 342900, Indent = -342900 }; A.AutoNumberedBullet autoNumberedBullet2 = new A.AutoNumberedBullet(){ Type = A.TextAutoNumberSchemeValues.ArabicParenR }; paragraphProperties7.Append(autoNumberedBullet2); A.Run run11 = new A.Run(); A.RunProperties runProperties12 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties12.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text12 = new A.Text(); text12.Text = "Added text to Footer"; run11.Append(runProperties12); run11.Append(text12); paragraph13.Append(paragraphProperties7); paragraph13.Append(run11); A.Paragraph paragraph14 = new A.Paragraph(); A.ParagraphProperties paragraphProperties8 = new A.ParagraphProperties(){ LeftMargin = 342900, Indent = -342900 }; A.AutoNumberedBullet autoNumberedBullet3 = new A.AutoNumberedBullet(){ Type = A.TextAutoNumberSchemeValues.ArabicParenR }; paragraphProperties8.Append(autoNumberedBullet3); A.Run run12 = new A.Run(); A.RunProperties runProperties13 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties13.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text13 = new A.Text(); text13.Text = "Changed Font scheme to Verve"; run12.Append(runProperties13); run12.Append(text13); paragraph14.Append(paragraphProperties8); paragraph14.Append(run12); A.Paragraph paragraph15 = new A.Paragraph(); A.ParagraphProperties paragraphProperties9 = new A.ParagraphProperties(){ LeftMargin = 342900, Indent = -342900 }; A.AutoNumberedBullet autoNumberedBullet4 = new A.AutoNumberedBullet(){ Type = A.TextAutoNumberSchemeValues.ArabicParenR }; paragraphProperties9.Append(autoNumberedBullet4); A.Run run13 = new A.Run(); A.RunProperties runProperties14 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties14.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text14 = new A.Text(); text14.Text = "Added Background Style"; run13.Append(runProperties14); run13.Append(text14); paragraph15.Append(paragraphProperties9); paragraph15.Append(run13); A.Paragraph paragraph16 = new A.Paragraph(); A.ParagraphProperties paragraphProperties10 = new A.ParagraphProperties(){ LeftMargin = 342900, Indent = -342900 }; A.AutoNumberedBullet autoNumberedBullet5 = new A.AutoNumberedBullet(){ Type = A.TextAutoNumberSchemeValues.ArabicParenR }; paragraphProperties10.Append(autoNumberedBullet5); A.Run run14 = new A.Run(); A.RunProperties runProperties15 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties15.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text15 = new A.Text(); text15.Text = "Changed Notes page orientation to Landscape"; run14.Append(runProperties15); run14.Append(text15); paragraph16.Append(paragraphProperties10); paragraph16.Append(run14); A.Paragraph paragraph17 = new A.Paragraph(); A.ParagraphProperties paragraphProperties11 = new A.ParagraphProperties(){ LeftMargin = 342900, Indent = -342900 }; A.AutoNumberedBullet autoNumberedBullet6 = new A.AutoNumberedBullet(){ Type = A.TextAutoNumberSchemeValues.ArabicParenR }; paragraphProperties11.Append(autoNumberedBullet6); A.Run run15 = new A.Run(); A.RunProperties runProperties16 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties16.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text16 = new A.Text(); text16.Text = "Changed Color scheme to Oriel"; run15.Append(runProperties16); run15.Append(text16); paragraph17.Append(paragraphProperties11); paragraph17.Append(run15); A.Paragraph paragraph18 = new A.Paragraph(); A.ParagraphProperties paragraphProperties12 = new A.ParagraphProperties(){ LeftMargin = 342900, Indent = -342900 }; A.AutoNumberedBullet autoNumberedBullet7 = new A.AutoNumberedBullet(){ Type = A.TextAutoNumberSchemeValues.ArabicParenR }; paragraphProperties12.Append(autoNumberedBullet7); A.Run run16 = new A.Run(); A.RunProperties runProperties17 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties17.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text17 = new A.Text(); text17.Text = "Removed Page Number"; run16.Append(runProperties17); run16.Append(text17); paragraph18.Append(paragraphProperties12); paragraph18.Append(run16); A.Paragraph paragraph19 = new A.Paragraph(); A.ParagraphProperties paragraphProperties13 = new A.ParagraphProperties(){ LeftMargin = 342900, Indent = -342900 }; A.AutoNumberedBullet autoNumberedBullet8 = new A.AutoNumberedBullet(){ Type = A.TextAutoNumberSchemeValues.ArabicParenR }; paragraphProperties13.Append(autoNumberedBullet8); A.EndParagraphRunProperties endParagraphRunProperties7 = new A.EndParagraphRunProperties(){ Language = "en-US", Dirty = false }; paragraph19.Append(paragraphProperties13); paragraph19.Append(endParagraphRunProperties7); textBody6.Append(bodyProperties6); textBody6.Append(listStyle6); textBody6.Append(paragraph10); textBody6.Append(paragraph11); textBody6.Append(paragraph12); textBody6.Append(paragraph13); textBody6.Append(paragraph14); textBody6.Append(paragraph15); textBody6.Append(paragraph16); textBody6.Append(paragraph17); textBody6.Append(paragraph18); textBody6.Append(paragraph19); shape6.Append(nonVisualShapeProperties6); shape6.Append(shapeProperties6); shape6.Append(textBody6); shapeTree2.Append(nonVisualGroupShapeProperties2); shapeTree2.Append(groupShapeProperties2); shapeTree2.Append(shape6); commonSlideData2.Append(shapeTree2); ColorMapOverride colorMapOverride1 = new ColorMapOverride(); A.MasterColorMapping masterColorMapping1 = new A.MasterColorMapping(); colorMapOverride1.Append(masterColorMapping1); slide1.Append(commonSlideData2); slide1.Append(colorMapOverride1); slidePart1.Slide = slide1; }
private void ProcessTableCaption(HtmlEnumerator en) { if (!tables.HasContext) return; string att = en.StyleAttributes["text-align"]; if (att == null) att = en.Attributes["align"]; ProcessHtmlChunks(en, "</caption>"); var runStyleId = htmlStyles.GetStyle("Subtle Reference", true); var legend = new Paragraph( new ParagraphProperties( new ParagraphStyleId() { Val = htmlStyles.GetStyle("caption", false) }, new ParagraphMarkRunProperties( new RunStyle() { Val = runStyleId })), new Run( new RunProperties( new RunStyle() { Val = runStyleId }), new FieldChar() { FieldCharType = FieldCharValues.Begin }), new Run( new RunProperties( new RunStyle() { Val = runStyleId }), new FieldCode(" SEQ Tableau \\* ARABIC ") { Space = SpaceProcessingModeValues.Preserve }), new Run( new RunProperties( new RunStyle() { Val = runStyleId }), new FieldChar() { FieldCharType = FieldCharValues.End }) ); legend.Append(elements); elements.Clear(); if (att != null) { JustificationValues? align = ConverterUtility.FormatParagraphAlign(att); if (align.HasValue) { legend.InsertInProperties(new Justification { Val = align }); } } else { // If no particular alignement has been specified for the legend, we will align the legend // relative to the owning table TableProperties props = tables.CurrentTable.GetFirstChild<TableProperties>(); if (props != null) { TableJustification justif = props.GetFirstChild<TableJustification>(); if (justif != null) legend.InsertInProperties(new Justification { Val = justif.Val.Value.ToJustification() }); } } if (this.TableCaptionPosition == CaptionPositionValues.Above) { this.paragraphs.Insert(this.paragraphs.Count - 1, legend); } else { this.paragraphs.Add(legend); } EnsureCaptionStyle(); }
// Generates content of slideLayoutPart8. private void GenerateSlideLayoutPart8Content(SlideLayoutPart slideLayoutPart8) { SlideLayout slideLayout8 = new SlideLayout(){ Type = SlideLayoutValues.TwoTextAndTwoObjects, Preserve = true }; slideLayout8.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); slideLayout8.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); slideLayout8.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData11 = new CommonSlideData(){ Name = "Comparison" }; ShapeTree shapeTree11 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties11 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties55 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties11 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties55 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties11.Append(nonVisualDrawingProperties55); nonVisualGroupShapeProperties11.Append(nonVisualGroupShapeDrawingProperties11); nonVisualGroupShapeProperties11.Append(applicationNonVisualDrawingProperties55); GroupShapeProperties groupShapeProperties11 = new GroupShapeProperties(); A.TransformGroup transformGroup11 = new A.TransformGroup(); A.Offset offset31 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents31 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset11 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents11 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup11.Append(offset31); transformGroup11.Append(extents31); transformGroup11.Append(childOffset11); transformGroup11.Append(childExtents11); groupShapeProperties11.Append(transformGroup11); Shape shape45 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties45 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties56 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Title 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties45 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks44 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties45.Append(shapeLocks44); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties56 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape44 = new PlaceholderShape(){ Type = PlaceholderValues.Title }; applicationNonVisualDrawingProperties56.Append(placeholderShape44); nonVisualShapeProperties45.Append(nonVisualDrawingProperties56); nonVisualShapeProperties45.Append(nonVisualShapeDrawingProperties45); nonVisualShapeProperties45.Append(applicationNonVisualDrawingProperties56); ShapeProperties shapeProperties45 = new ShapeProperties(); A.Transform2D transform2D21 = new A.Transform2D(); A.Offset offset32 = new A.Offset(){ X = 457200L, Y = 274638L }; A.Extents extents32 = new A.Extents(){ Cx = 8229600L, Cy = 1143000L }; transform2D21.Append(offset32); transform2D21.Append(extents32); shapeProperties45.Append(transform2D21); TextBody textBody45 = new TextBody(); A.BodyProperties bodyProperties45 = new A.BodyProperties(); A.ListStyle listStyle45 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties18 = new A.Level1ParagraphProperties(); A.DefaultRunProperties defaultRunProperties84 = new A.DefaultRunProperties(); level1ParagraphProperties18.Append(defaultRunProperties84); listStyle45.Append(level1ParagraphProperties18); A.Paragraph paragraph74 = new A.Paragraph(); A.Run run47 = new A.Run(); A.RunProperties runProperties64 = new A.RunProperties(){ Language = "en-US" }; runProperties64.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text64 = new A.Text(); text64.Text = "Click to edit Master title style"; run47.Append(runProperties64); run47.Append(text64); A.EndParagraphRunProperties endParagraphRunProperties44 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph74.Append(run47); paragraph74.Append(endParagraphRunProperties44); textBody45.Append(bodyProperties45); textBody45.Append(listStyle45); textBody45.Append(paragraph74); shape45.Append(nonVisualShapeProperties45); shape45.Append(shapeProperties45); shape45.Append(textBody45); Shape shape46 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties46 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties57 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Text Placeholder 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties46 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks45 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties46.Append(shapeLocks45); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties57 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape45 = new PlaceholderShape(){ Type = PlaceholderValues.Body, Index = (UInt32Value)1U }; applicationNonVisualDrawingProperties57.Append(placeholderShape45); nonVisualShapeProperties46.Append(nonVisualDrawingProperties57); nonVisualShapeProperties46.Append(nonVisualShapeDrawingProperties46); nonVisualShapeProperties46.Append(applicationNonVisualDrawingProperties57); ShapeProperties shapeProperties46 = new ShapeProperties(); A.Transform2D transform2D22 = new A.Transform2D(); A.Offset offset33 = new A.Offset(){ X = 457201L, Y = 1535113L }; A.Extents extents33 = new A.Extents(){ Cx = 4040188L, Cy = 639762L }; transform2D22.Append(offset33); transform2D22.Append(extents33); shapeProperties46.Append(transform2D22); TextBody textBody46 = new TextBody(); A.BodyProperties bodyProperties46 = new A.BodyProperties(){ Anchor = A.TextAnchoringTypeValues.Bottom }; A.ListStyle listStyle46 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties19 = new A.Level1ParagraphProperties(){ LeftMargin = 0, Indent = 0 }; A.NoBullet noBullet29 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties85 = new A.DefaultRunProperties(){ FontSize = 2400, Bold = true }; level1ParagraphProperties19.Append(noBullet29); level1ParagraphProperties19.Append(defaultRunProperties85); A.Level2ParagraphProperties level2ParagraphProperties9 = new A.Level2ParagraphProperties(){ LeftMargin = 457200, Indent = 0 }; A.NoBullet noBullet30 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties86 = new A.DefaultRunProperties(){ FontSize = 2000, Bold = true }; level2ParagraphProperties9.Append(noBullet30); level2ParagraphProperties9.Append(defaultRunProperties86); A.Level3ParagraphProperties level3ParagraphProperties9 = new A.Level3ParagraphProperties(){ LeftMargin = 914400, Indent = 0 }; A.NoBullet noBullet31 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties87 = new A.DefaultRunProperties(){ FontSize = 1800, Bold = true }; level3ParagraphProperties9.Append(noBullet31); level3ParagraphProperties9.Append(defaultRunProperties87); A.Level4ParagraphProperties level4ParagraphProperties9 = new A.Level4ParagraphProperties(){ LeftMargin = 1371600, Indent = 0 }; A.NoBullet noBullet32 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties88 = new A.DefaultRunProperties(){ FontSize = 1600, Bold = true }; level4ParagraphProperties9.Append(noBullet32); level4ParagraphProperties9.Append(defaultRunProperties88); A.Level5ParagraphProperties level5ParagraphProperties9 = new A.Level5ParagraphProperties(){ LeftMargin = 1828800, Indent = 0 }; A.NoBullet noBullet33 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties89 = new A.DefaultRunProperties(){ FontSize = 1600, Bold = true }; level5ParagraphProperties9.Append(noBullet33); level5ParagraphProperties9.Append(defaultRunProperties89); A.Level6ParagraphProperties level6ParagraphProperties9 = new A.Level6ParagraphProperties(){ LeftMargin = 2286000, Indent = 0 }; A.NoBullet noBullet34 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties90 = new A.DefaultRunProperties(){ FontSize = 1600, Bold = true }; level6ParagraphProperties9.Append(noBullet34); level6ParagraphProperties9.Append(defaultRunProperties90); A.Level7ParagraphProperties level7ParagraphProperties9 = new A.Level7ParagraphProperties(){ LeftMargin = 2743200, Indent = 0 }; A.NoBullet noBullet35 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties91 = new A.DefaultRunProperties(){ FontSize = 1600, Bold = true }; level7ParagraphProperties9.Append(noBullet35); level7ParagraphProperties9.Append(defaultRunProperties91); A.Level8ParagraphProperties level8ParagraphProperties9 = new A.Level8ParagraphProperties(){ LeftMargin = 3200400, Indent = 0 }; A.NoBullet noBullet36 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties92 = new A.DefaultRunProperties(){ FontSize = 1600, Bold = true }; level8ParagraphProperties9.Append(noBullet36); level8ParagraphProperties9.Append(defaultRunProperties92); A.Level9ParagraphProperties level9ParagraphProperties9 = new A.Level9ParagraphProperties(){ LeftMargin = 3657600, Indent = 0 }; A.NoBullet noBullet37 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties93 = new A.DefaultRunProperties(){ FontSize = 1600, Bold = true }; level9ParagraphProperties9.Append(noBullet37); level9ParagraphProperties9.Append(defaultRunProperties93); listStyle46.Append(level1ParagraphProperties19); listStyle46.Append(level2ParagraphProperties9); listStyle46.Append(level3ParagraphProperties9); listStyle46.Append(level4ParagraphProperties9); listStyle46.Append(level5ParagraphProperties9); listStyle46.Append(level6ParagraphProperties9); listStyle46.Append(level7ParagraphProperties9); listStyle46.Append(level8ParagraphProperties9); listStyle46.Append(level9ParagraphProperties9); A.Paragraph paragraph75 = new A.Paragraph(); A.ParagraphProperties paragraphProperties36 = new A.ParagraphProperties(){ Level = 0 }; A.Run run48 = new A.Run(); A.RunProperties runProperties65 = new A.RunProperties(){ Language = "en-US" }; runProperties65.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text65 = new A.Text(); text65.Text = "Click to edit Master text styles"; run48.Append(runProperties65); run48.Append(text65); paragraph75.Append(paragraphProperties36); paragraph75.Append(run48); textBody46.Append(bodyProperties46); textBody46.Append(listStyle46); textBody46.Append(paragraph75); shape46.Append(nonVisualShapeProperties46); shape46.Append(shapeProperties46); shape46.Append(textBody46); Shape shape47 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties47 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties58 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Content Placeholder 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties47 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks46 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties47.Append(shapeLocks46); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties58 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape46 = new PlaceholderShape(){ Size = PlaceholderSizeValues.Half, Index = (UInt32Value)2U }; applicationNonVisualDrawingProperties58.Append(placeholderShape46); nonVisualShapeProperties47.Append(nonVisualDrawingProperties58); nonVisualShapeProperties47.Append(nonVisualShapeDrawingProperties47); nonVisualShapeProperties47.Append(applicationNonVisualDrawingProperties58); ShapeProperties shapeProperties47 = new ShapeProperties(); A.Transform2D transform2D23 = new A.Transform2D(); A.Offset offset34 = new A.Offset(){ X = 457201L, Y = 2174875L }; A.Extents extents34 = new A.Extents(){ Cx = 4040188L, Cy = 3951288L }; transform2D23.Append(offset34); transform2D23.Append(extents34); shapeProperties47.Append(transform2D23); TextBody textBody47 = new TextBody(); A.BodyProperties bodyProperties47 = new A.BodyProperties(); A.ListStyle listStyle47 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties20 = new A.Level1ParagraphProperties(); A.DefaultRunProperties defaultRunProperties94 = new A.DefaultRunProperties(){ FontSize = 2400 }; level1ParagraphProperties20.Append(defaultRunProperties94); A.Level2ParagraphProperties level2ParagraphProperties10 = new A.Level2ParagraphProperties(); A.DefaultRunProperties defaultRunProperties95 = new A.DefaultRunProperties(){ FontSize = 2000 }; level2ParagraphProperties10.Append(defaultRunProperties95); A.Level3ParagraphProperties level3ParagraphProperties10 = new A.Level3ParagraphProperties(); A.DefaultRunProperties defaultRunProperties96 = new A.DefaultRunProperties(){ FontSize = 1800 }; level3ParagraphProperties10.Append(defaultRunProperties96); A.Level4ParagraphProperties level4ParagraphProperties10 = new A.Level4ParagraphProperties(); A.DefaultRunProperties defaultRunProperties97 = new A.DefaultRunProperties(){ FontSize = 1600 }; level4ParagraphProperties10.Append(defaultRunProperties97); A.Level5ParagraphProperties level5ParagraphProperties10 = new A.Level5ParagraphProperties(); A.DefaultRunProperties defaultRunProperties98 = new A.DefaultRunProperties(){ FontSize = 1600 }; level5ParagraphProperties10.Append(defaultRunProperties98); A.Level6ParagraphProperties level6ParagraphProperties10 = new A.Level6ParagraphProperties(); A.DefaultRunProperties defaultRunProperties99 = new A.DefaultRunProperties(){ FontSize = 1600 }; level6ParagraphProperties10.Append(defaultRunProperties99); A.Level7ParagraphProperties level7ParagraphProperties10 = new A.Level7ParagraphProperties(); A.DefaultRunProperties defaultRunProperties100 = new A.DefaultRunProperties(){ FontSize = 1600 }; level7ParagraphProperties10.Append(defaultRunProperties100); A.Level8ParagraphProperties level8ParagraphProperties10 = new A.Level8ParagraphProperties(); A.DefaultRunProperties defaultRunProperties101 = new A.DefaultRunProperties(){ FontSize = 1600 }; level8ParagraphProperties10.Append(defaultRunProperties101); A.Level9ParagraphProperties level9ParagraphProperties10 = new A.Level9ParagraphProperties(); A.DefaultRunProperties defaultRunProperties102 = new A.DefaultRunProperties(){ FontSize = 1600 }; level9ParagraphProperties10.Append(defaultRunProperties102); listStyle47.Append(level1ParagraphProperties20); listStyle47.Append(level2ParagraphProperties10); listStyle47.Append(level3ParagraphProperties10); listStyle47.Append(level4ParagraphProperties10); listStyle47.Append(level5ParagraphProperties10); listStyle47.Append(level6ParagraphProperties10); listStyle47.Append(level7ParagraphProperties10); listStyle47.Append(level8ParagraphProperties10); listStyle47.Append(level9ParagraphProperties10); A.Paragraph paragraph76 = new A.Paragraph(); A.ParagraphProperties paragraphProperties37 = new A.ParagraphProperties(){ Level = 0 }; A.Run run49 = new A.Run(); A.RunProperties runProperties66 = new A.RunProperties(){ Language = "en-US" }; runProperties66.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text66 = new A.Text(); text66.Text = "Click to edit Master text styles"; run49.Append(runProperties66); run49.Append(text66); paragraph76.Append(paragraphProperties37); paragraph76.Append(run49); A.Paragraph paragraph77 = new A.Paragraph(); A.ParagraphProperties paragraphProperties38 = new A.ParagraphProperties(){ Level = 1 }; A.Run run50 = new A.Run(); A.RunProperties runProperties67 = new A.RunProperties(){ Language = "en-US" }; runProperties67.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text67 = new A.Text(); text67.Text = "Second level"; run50.Append(runProperties67); run50.Append(text67); paragraph77.Append(paragraphProperties38); paragraph77.Append(run50); A.Paragraph paragraph78 = new A.Paragraph(); A.ParagraphProperties paragraphProperties39 = new A.ParagraphProperties(){ Level = 2 }; A.Run run51 = new A.Run(); A.RunProperties runProperties68 = new A.RunProperties(){ Language = "en-US" }; runProperties68.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text68 = new A.Text(); text68.Text = "Third level"; run51.Append(runProperties68); run51.Append(text68); paragraph78.Append(paragraphProperties39); paragraph78.Append(run51); A.Paragraph paragraph79 = new A.Paragraph(); A.ParagraphProperties paragraphProperties40 = new A.ParagraphProperties(){ Level = 3 }; A.Run run52 = new A.Run(); A.RunProperties runProperties69 = new A.RunProperties(){ Language = "en-US" }; runProperties69.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text69 = new A.Text(); text69.Text = "Fourth level"; run52.Append(runProperties69); run52.Append(text69); paragraph79.Append(paragraphProperties40); paragraph79.Append(run52); A.Paragraph paragraph80 = new A.Paragraph(); A.ParagraphProperties paragraphProperties41 = new A.ParagraphProperties(){ Level = 4 }; A.Run run53 = new A.Run(); A.RunProperties runProperties70 = new A.RunProperties(){ Language = "en-US" }; runProperties70.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text70 = new A.Text(); text70.Text = "Fifth level"; run53.Append(runProperties70); run53.Append(text70); A.EndParagraphRunProperties endParagraphRunProperties45 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph80.Append(paragraphProperties41); paragraph80.Append(run53); paragraph80.Append(endParagraphRunProperties45); textBody47.Append(bodyProperties47); textBody47.Append(listStyle47); textBody47.Append(paragraph76); textBody47.Append(paragraph77); textBody47.Append(paragraph78); textBody47.Append(paragraph79); textBody47.Append(paragraph80); shape47.Append(nonVisualShapeProperties47); shape47.Append(shapeProperties47); shape47.Append(textBody47); Shape shape48 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties48 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties59 = new NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "Text Placeholder 4" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties48 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks47 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties48.Append(shapeLocks47); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties59 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape47 = new PlaceholderShape(){ Type = PlaceholderValues.Body, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)3U }; applicationNonVisualDrawingProperties59.Append(placeholderShape47); nonVisualShapeProperties48.Append(nonVisualDrawingProperties59); nonVisualShapeProperties48.Append(nonVisualShapeDrawingProperties48); nonVisualShapeProperties48.Append(applicationNonVisualDrawingProperties59); ShapeProperties shapeProperties48 = new ShapeProperties(); A.Transform2D transform2D24 = new A.Transform2D(); A.Offset offset35 = new A.Offset(){ X = 4645026L, Y = 1535113L }; A.Extents extents35 = new A.Extents(){ Cx = 4041775L, Cy = 639762L }; transform2D24.Append(offset35); transform2D24.Append(extents35); shapeProperties48.Append(transform2D24); TextBody textBody48 = new TextBody(); A.BodyProperties bodyProperties48 = new A.BodyProperties(){ Anchor = A.TextAnchoringTypeValues.Bottom }; A.ListStyle listStyle48 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties21 = new A.Level1ParagraphProperties(){ LeftMargin = 0, Indent = 0 }; A.NoBullet noBullet38 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties103 = new A.DefaultRunProperties(){ FontSize = 2400, Bold = true }; level1ParagraphProperties21.Append(noBullet38); level1ParagraphProperties21.Append(defaultRunProperties103); A.Level2ParagraphProperties level2ParagraphProperties11 = new A.Level2ParagraphProperties(){ LeftMargin = 457200, Indent = 0 }; A.NoBullet noBullet39 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties104 = new A.DefaultRunProperties(){ FontSize = 2000, Bold = true }; level2ParagraphProperties11.Append(noBullet39); level2ParagraphProperties11.Append(defaultRunProperties104); A.Level3ParagraphProperties level3ParagraphProperties11 = new A.Level3ParagraphProperties(){ LeftMargin = 914400, Indent = 0 }; A.NoBullet noBullet40 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties105 = new A.DefaultRunProperties(){ FontSize = 1800, Bold = true }; level3ParagraphProperties11.Append(noBullet40); level3ParagraphProperties11.Append(defaultRunProperties105); A.Level4ParagraphProperties level4ParagraphProperties11 = new A.Level4ParagraphProperties(){ LeftMargin = 1371600, Indent = 0 }; A.NoBullet noBullet41 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties106 = new A.DefaultRunProperties(){ FontSize = 1600, Bold = true }; level4ParagraphProperties11.Append(noBullet41); level4ParagraphProperties11.Append(defaultRunProperties106); A.Level5ParagraphProperties level5ParagraphProperties11 = new A.Level5ParagraphProperties(){ LeftMargin = 1828800, Indent = 0 }; A.NoBullet noBullet42 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties107 = new A.DefaultRunProperties(){ FontSize = 1600, Bold = true }; level5ParagraphProperties11.Append(noBullet42); level5ParagraphProperties11.Append(defaultRunProperties107); A.Level6ParagraphProperties level6ParagraphProperties11 = new A.Level6ParagraphProperties(){ LeftMargin = 2286000, Indent = 0 }; A.NoBullet noBullet43 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties108 = new A.DefaultRunProperties(){ FontSize = 1600, Bold = true }; level6ParagraphProperties11.Append(noBullet43); level6ParagraphProperties11.Append(defaultRunProperties108); A.Level7ParagraphProperties level7ParagraphProperties11 = new A.Level7ParagraphProperties(){ LeftMargin = 2743200, Indent = 0 }; A.NoBullet noBullet44 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties109 = new A.DefaultRunProperties(){ FontSize = 1600, Bold = true }; level7ParagraphProperties11.Append(noBullet44); level7ParagraphProperties11.Append(defaultRunProperties109); A.Level8ParagraphProperties level8ParagraphProperties11 = new A.Level8ParagraphProperties(){ LeftMargin = 3200400, Indent = 0 }; A.NoBullet noBullet45 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties110 = new A.DefaultRunProperties(){ FontSize = 1600, Bold = true }; level8ParagraphProperties11.Append(noBullet45); level8ParagraphProperties11.Append(defaultRunProperties110); A.Level9ParagraphProperties level9ParagraphProperties11 = new A.Level9ParagraphProperties(){ LeftMargin = 3657600, Indent = 0 }; A.NoBullet noBullet46 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties111 = new A.DefaultRunProperties(){ FontSize = 1600, Bold = true }; level9ParagraphProperties11.Append(noBullet46); level9ParagraphProperties11.Append(defaultRunProperties111); listStyle48.Append(level1ParagraphProperties21); listStyle48.Append(level2ParagraphProperties11); listStyle48.Append(level3ParagraphProperties11); listStyle48.Append(level4ParagraphProperties11); listStyle48.Append(level5ParagraphProperties11); listStyle48.Append(level6ParagraphProperties11); listStyle48.Append(level7ParagraphProperties11); listStyle48.Append(level8ParagraphProperties11); listStyle48.Append(level9ParagraphProperties11); A.Paragraph paragraph81 = new A.Paragraph(); A.ParagraphProperties paragraphProperties42 = new A.ParagraphProperties(){ Level = 0 }; A.Run run54 = new A.Run(); A.RunProperties runProperties71 = new A.RunProperties(){ Language = "en-US" }; runProperties71.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text71 = new A.Text(); text71.Text = "Click to edit Master text styles"; run54.Append(runProperties71); run54.Append(text71); paragraph81.Append(paragraphProperties42); paragraph81.Append(run54); textBody48.Append(bodyProperties48); textBody48.Append(listStyle48); textBody48.Append(paragraph81); shape48.Append(nonVisualShapeProperties48); shape48.Append(shapeProperties48); shape48.Append(textBody48); Shape shape49 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties49 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties60 = new NonVisualDrawingProperties(){ Id = (UInt32Value)6U, Name = "Content Placeholder 5" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties49 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks48 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties49.Append(shapeLocks48); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties60 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape48 = new PlaceholderShape(){ Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)4U }; applicationNonVisualDrawingProperties60.Append(placeholderShape48); nonVisualShapeProperties49.Append(nonVisualDrawingProperties60); nonVisualShapeProperties49.Append(nonVisualShapeDrawingProperties49); nonVisualShapeProperties49.Append(applicationNonVisualDrawingProperties60); ShapeProperties shapeProperties49 = new ShapeProperties(); A.Transform2D transform2D25 = new A.Transform2D(); A.Offset offset36 = new A.Offset(){ X = 4645026L, Y = 2174875L }; A.Extents extents36 = new A.Extents(){ Cx = 4041775L, Cy = 3951288L }; transform2D25.Append(offset36); transform2D25.Append(extents36); shapeProperties49.Append(transform2D25); TextBody textBody49 = new TextBody(); A.BodyProperties bodyProperties49 = new A.BodyProperties(); A.ListStyle listStyle49 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties22 = new A.Level1ParagraphProperties(); A.DefaultRunProperties defaultRunProperties112 = new A.DefaultRunProperties(){ FontSize = 2400 }; level1ParagraphProperties22.Append(defaultRunProperties112); A.Level2ParagraphProperties level2ParagraphProperties12 = new A.Level2ParagraphProperties(); A.DefaultRunProperties defaultRunProperties113 = new A.DefaultRunProperties(){ FontSize = 2000 }; level2ParagraphProperties12.Append(defaultRunProperties113); A.Level3ParagraphProperties level3ParagraphProperties12 = new A.Level3ParagraphProperties(); A.DefaultRunProperties defaultRunProperties114 = new A.DefaultRunProperties(){ FontSize = 1800 }; level3ParagraphProperties12.Append(defaultRunProperties114); A.Level4ParagraphProperties level4ParagraphProperties12 = new A.Level4ParagraphProperties(); A.DefaultRunProperties defaultRunProperties115 = new A.DefaultRunProperties(){ FontSize = 1600 }; level4ParagraphProperties12.Append(defaultRunProperties115); A.Level5ParagraphProperties level5ParagraphProperties12 = new A.Level5ParagraphProperties(); A.DefaultRunProperties defaultRunProperties116 = new A.DefaultRunProperties(){ FontSize = 1600 }; level5ParagraphProperties12.Append(defaultRunProperties116); A.Level6ParagraphProperties level6ParagraphProperties12 = new A.Level6ParagraphProperties(); A.DefaultRunProperties defaultRunProperties117 = new A.DefaultRunProperties(){ FontSize = 1600 }; level6ParagraphProperties12.Append(defaultRunProperties117); A.Level7ParagraphProperties level7ParagraphProperties12 = new A.Level7ParagraphProperties(); A.DefaultRunProperties defaultRunProperties118 = new A.DefaultRunProperties(){ FontSize = 1600 }; level7ParagraphProperties12.Append(defaultRunProperties118); A.Level8ParagraphProperties level8ParagraphProperties12 = new A.Level8ParagraphProperties(); A.DefaultRunProperties defaultRunProperties119 = new A.DefaultRunProperties(){ FontSize = 1600 }; level8ParagraphProperties12.Append(defaultRunProperties119); A.Level9ParagraphProperties level9ParagraphProperties12 = new A.Level9ParagraphProperties(); A.DefaultRunProperties defaultRunProperties120 = new A.DefaultRunProperties(){ FontSize = 1600 }; level9ParagraphProperties12.Append(defaultRunProperties120); listStyle49.Append(level1ParagraphProperties22); listStyle49.Append(level2ParagraphProperties12); listStyle49.Append(level3ParagraphProperties12); listStyle49.Append(level4ParagraphProperties12); listStyle49.Append(level5ParagraphProperties12); listStyle49.Append(level6ParagraphProperties12); listStyle49.Append(level7ParagraphProperties12); listStyle49.Append(level8ParagraphProperties12); listStyle49.Append(level9ParagraphProperties12); A.Paragraph paragraph82 = new A.Paragraph(); A.ParagraphProperties paragraphProperties43 = new A.ParagraphProperties(){ Level = 0 }; A.Run run55 = new A.Run(); A.RunProperties runProperties72 = new A.RunProperties(){ Language = "en-US" }; runProperties72.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text72 = new A.Text(); text72.Text = "Click to edit Master text styles"; run55.Append(runProperties72); run55.Append(text72); paragraph82.Append(paragraphProperties43); paragraph82.Append(run55); A.Paragraph paragraph83 = new A.Paragraph(); A.ParagraphProperties paragraphProperties44 = new A.ParagraphProperties(){ Level = 1 }; A.Run run56 = new A.Run(); A.RunProperties runProperties73 = new A.RunProperties(){ Language = "en-US" }; runProperties73.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text73 = new A.Text(); text73.Text = "Second level"; run56.Append(runProperties73); run56.Append(text73); paragraph83.Append(paragraphProperties44); paragraph83.Append(run56); A.Paragraph paragraph84 = new A.Paragraph(); A.ParagraphProperties paragraphProperties45 = new A.ParagraphProperties(){ Level = 2 }; A.Run run57 = new A.Run(); A.RunProperties runProperties74 = new A.RunProperties(){ Language = "en-US" }; runProperties74.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text74 = new A.Text(); text74.Text = "Third level"; run57.Append(runProperties74); run57.Append(text74); paragraph84.Append(paragraphProperties45); paragraph84.Append(run57); A.Paragraph paragraph85 = new A.Paragraph(); A.ParagraphProperties paragraphProperties46 = new A.ParagraphProperties(){ Level = 3 }; A.Run run58 = new A.Run(); A.RunProperties runProperties75 = new A.RunProperties(){ Language = "en-US" }; runProperties75.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text75 = new A.Text(); text75.Text = "Fourth level"; run58.Append(runProperties75); run58.Append(text75); paragraph85.Append(paragraphProperties46); paragraph85.Append(run58); A.Paragraph paragraph86 = new A.Paragraph(); A.ParagraphProperties paragraphProperties47 = new A.ParagraphProperties(){ Level = 4 }; A.Run run59 = new A.Run(); A.RunProperties runProperties76 = new A.RunProperties(){ Language = "en-US" }; runProperties76.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text76 = new A.Text(); text76.Text = "Fifth level"; run59.Append(runProperties76); run59.Append(text76); A.EndParagraphRunProperties endParagraphRunProperties46 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph86.Append(paragraphProperties47); paragraph86.Append(run59); paragraph86.Append(endParagraphRunProperties46); textBody49.Append(bodyProperties49); textBody49.Append(listStyle49); textBody49.Append(paragraph82); textBody49.Append(paragraph83); textBody49.Append(paragraph84); textBody49.Append(paragraph85); textBody49.Append(paragraph86); shape49.Append(nonVisualShapeProperties49); shape49.Append(shapeProperties49); shape49.Append(textBody49); Shape shape50 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties50 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties61 = new NonVisualDrawingProperties(){ Id = (UInt32Value)7U, Name = "Date Placeholder 6" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties50 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks49 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties50.Append(shapeLocks49); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties61 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape49 = new PlaceholderShape(){ Type = PlaceholderValues.DateAndTime, Size = PlaceholderSizeValues.Half, Index = (UInt32Value)10U }; applicationNonVisualDrawingProperties61.Append(placeholderShape49); nonVisualShapeProperties50.Append(nonVisualDrawingProperties61); nonVisualShapeProperties50.Append(nonVisualShapeDrawingProperties50); nonVisualShapeProperties50.Append(applicationNonVisualDrawingProperties61); ShapeProperties shapeProperties50 = new ShapeProperties(); TextBody textBody50 = new TextBody(); A.BodyProperties bodyProperties50 = new A.BodyProperties(); A.ListStyle listStyle50 = new A.ListStyle(); A.Paragraph paragraph87 = new A.Paragraph(); A.Field field18 = new A.Field(){ Id = "{1A15D4F1-1D33-4170-8C9F-182CDE6BA6D1}", Type = "datetimeFigureOut" }; A.RunProperties runProperties77 = new A.RunProperties(){ Language = "en-US" }; runProperties77.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text77 = new A.Text(); text77.Text = "10/3/2012"; field18.Append(runProperties77); field18.Append(text77); A.EndParagraphRunProperties endParagraphRunProperties47 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph87.Append(field18); paragraph87.Append(endParagraphRunProperties47); textBody50.Append(bodyProperties50); textBody50.Append(listStyle50); textBody50.Append(paragraph87); shape50.Append(nonVisualShapeProperties50); shape50.Append(shapeProperties50); shape50.Append(textBody50); Shape shape51 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties51 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties62 = new NonVisualDrawingProperties(){ Id = (UInt32Value)8U, Name = "Footer Placeholder 7" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties51 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks50 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties51.Append(shapeLocks50); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties62 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape50 = new PlaceholderShape(){ Type = PlaceholderValues.Footer, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)11U }; applicationNonVisualDrawingProperties62.Append(placeholderShape50); nonVisualShapeProperties51.Append(nonVisualDrawingProperties62); nonVisualShapeProperties51.Append(nonVisualShapeDrawingProperties51); nonVisualShapeProperties51.Append(applicationNonVisualDrawingProperties62); ShapeProperties shapeProperties51 = new ShapeProperties(); TextBody textBody51 = new TextBody(); A.BodyProperties bodyProperties51 = new A.BodyProperties(); A.ListStyle listStyle51 = new A.ListStyle(); A.Paragraph paragraph88 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties48 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph88.Append(endParagraphRunProperties48); textBody51.Append(bodyProperties51); textBody51.Append(listStyle51); textBody51.Append(paragraph88); shape51.Append(nonVisualShapeProperties51); shape51.Append(shapeProperties51); shape51.Append(textBody51); Shape shape52 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties52 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties63 = new NonVisualDrawingProperties(){ Id = (UInt32Value)9U, Name = "Slide Number Placeholder 8" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties52 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks51 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties52.Append(shapeLocks51); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties63 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape51 = new PlaceholderShape(){ Type = PlaceholderValues.SlideNumber, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)12U }; applicationNonVisualDrawingProperties63.Append(placeholderShape51); nonVisualShapeProperties52.Append(nonVisualDrawingProperties63); nonVisualShapeProperties52.Append(nonVisualShapeDrawingProperties52); nonVisualShapeProperties52.Append(applicationNonVisualDrawingProperties63); ShapeProperties shapeProperties52 = new ShapeProperties(); TextBody textBody52 = new TextBody(); A.BodyProperties bodyProperties52 = new A.BodyProperties(); A.ListStyle listStyle52 = new A.ListStyle(); A.Paragraph paragraph89 = new A.Paragraph(); A.Field field19 = new A.Field(){ Id = "{9E0C3BFA-D4DA-4895-A0F6-B80859694A8D}", Type = "slidenum" }; A.RunProperties runProperties78 = new A.RunProperties(){ Language = "en-US" }; runProperties78.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text78 = new A.Text(); text78.Text = "‹#›"; field19.Append(runProperties78); field19.Append(text78); A.EndParagraphRunProperties endParagraphRunProperties49 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph89.Append(field19); paragraph89.Append(endParagraphRunProperties49); textBody52.Append(bodyProperties52); textBody52.Append(listStyle52); textBody52.Append(paragraph89); shape52.Append(nonVisualShapeProperties52); shape52.Append(shapeProperties52); shape52.Append(textBody52); shapeTree11.Append(nonVisualGroupShapeProperties11); shapeTree11.Append(groupShapeProperties11); shapeTree11.Append(shape45); shapeTree11.Append(shape46); shapeTree11.Append(shape47); shapeTree11.Append(shape48); shapeTree11.Append(shape49); shapeTree11.Append(shape50); shapeTree11.Append(shape51); shapeTree11.Append(shape52); commonSlideData11.Append(shapeTree11); ColorMapOverride colorMapOverride9 = new ColorMapOverride(); A.MasterColorMapping masterColorMapping9 = new A.MasterColorMapping(); colorMapOverride9.Append(masterColorMapping9); slideLayout8.Append(commonSlideData11); slideLayout8.Append(colorMapOverride9); slideLayoutPart8.SlideLayout = slideLayout8; }
public static Paragraph CloneParaGraphWithStyles(Paragraph sourceParagraph, string paramKey, string text) { var xmlSource = sourceParagraph.OuterXml; Regex regex = new Regex("(\\[#[\\s\\S]*?#])", RegexOptions.CultureInvariant | RegexOptions.Compiled); string result = regex.Replace(xmlSource, text.Trim()); //xmlSource = xmlSource.Replace(paramKey.Trim(), text.Trim()); return new Paragraph(result); }
// Generates content of slideLayoutPart11. private void GenerateSlideLayoutPart11Content(SlideLayoutPart slideLayoutPart11) { SlideLayout slideLayout11 = new SlideLayout(){ Type = SlideLayoutValues.PictureText, Preserve = true }; slideLayout11.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); slideLayout11.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); slideLayout11.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData14 = new CommonSlideData(){ Name = "Picture with Caption" }; ShapeTree shapeTree14 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties14 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties77 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties14 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties77 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties14.Append(nonVisualDrawingProperties77); nonVisualGroupShapeProperties14.Append(nonVisualGroupShapeDrawingProperties14); nonVisualGroupShapeProperties14.Append(applicationNonVisualDrawingProperties77); GroupShapeProperties groupShapeProperties14 = new GroupShapeProperties(); A.TransformGroup transformGroup14 = new A.TransformGroup(); A.Offset offset41 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents41 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset14 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents14 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup14.Append(offset41); transformGroup14.Append(extents41); transformGroup14.Append(childOffset14); transformGroup14.Append(childExtents14); groupShapeProperties14.Append(transformGroup14); Shape shape64 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties64 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties78 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Title 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties64 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks63 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties64.Append(shapeLocks63); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties78 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape63 = new PlaceholderShape(){ Type = PlaceholderValues.Title }; applicationNonVisualDrawingProperties78.Append(placeholderShape63); nonVisualShapeProperties64.Append(nonVisualDrawingProperties78); nonVisualShapeProperties64.Append(nonVisualShapeDrawingProperties64); nonVisualShapeProperties64.Append(applicationNonVisualDrawingProperties78); ShapeProperties shapeProperties64 = new ShapeProperties(); A.Transform2D transform2D28 = new A.Transform2D(); A.Offset offset42 = new A.Offset(){ X = 1792288L, Y = 4800601L }; A.Extents extents42 = new A.Extents(){ Cx = 5486400L, Cy = 566738L }; transform2D28.Append(offset42); transform2D28.Append(extents42); shapeProperties64.Append(transform2D28); TextBody textBody64 = new TextBody(); A.BodyProperties bodyProperties64 = new A.BodyProperties(){ Anchor = A.TextAnchoringTypeValues.Bottom }; A.ListStyle listStyle64 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties25 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Left }; A.DefaultRunProperties defaultRunProperties139 = new A.DefaultRunProperties(){ FontSize = 2000, Bold = true }; level1ParagraphProperties25.Append(defaultRunProperties139); listStyle64.Append(level1ParagraphProperties25); A.Paragraph paragraph113 = new A.Paragraph(); A.Run run77 = new A.Run(); A.RunProperties runProperties100 = new A.RunProperties(){ Language = "en-US" }; runProperties100.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text100 = new A.Text(); text100.Text = "Click to edit Master title style"; run77.Append(runProperties100); run77.Append(text100); A.EndParagraphRunProperties endParagraphRunProperties61 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph113.Append(run77); paragraph113.Append(endParagraphRunProperties61); textBody64.Append(bodyProperties64); textBody64.Append(listStyle64); textBody64.Append(paragraph113); shape64.Append(nonVisualShapeProperties64); shape64.Append(shapeProperties64); shape64.Append(textBody64); Shape shape65 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties65 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties79 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Picture Placeholder 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties65 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks64 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties65.Append(shapeLocks64); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties79 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape64 = new PlaceholderShape(){ Type = PlaceholderValues.Picture, Index = (UInt32Value)1U }; applicationNonVisualDrawingProperties79.Append(placeholderShape64); nonVisualShapeProperties65.Append(nonVisualDrawingProperties79); nonVisualShapeProperties65.Append(nonVisualShapeDrawingProperties65); nonVisualShapeProperties65.Append(applicationNonVisualDrawingProperties79); ShapeProperties shapeProperties65 = new ShapeProperties(); A.Transform2D transform2D29 = new A.Transform2D(); A.Offset offset43 = new A.Offset(){ X = 1792288L, Y = 612775L }; A.Extents extents43 = new A.Extents(){ Cx = 5486400L, Cy = 4114800L }; transform2D29.Append(offset43); transform2D29.Append(extents43); shapeProperties65.Append(transform2D29); TextBody textBody65 = new TextBody(); A.BodyProperties bodyProperties65 = new A.BodyProperties(); A.ListStyle listStyle65 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties26 = new A.Level1ParagraphProperties(){ LeftMargin = 0, Indent = 0 }; A.NoBullet noBullet47 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties140 = new A.DefaultRunProperties(){ FontSize = 3200 }; level1ParagraphProperties26.Append(noBullet47); level1ParagraphProperties26.Append(defaultRunProperties140); A.Level2ParagraphProperties level2ParagraphProperties15 = new A.Level2ParagraphProperties(){ LeftMargin = 457200, Indent = 0 }; A.NoBullet noBullet48 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties141 = new A.DefaultRunProperties(){ FontSize = 2800 }; level2ParagraphProperties15.Append(noBullet48); level2ParagraphProperties15.Append(defaultRunProperties141); A.Level3ParagraphProperties level3ParagraphProperties15 = new A.Level3ParagraphProperties(){ LeftMargin = 914400, Indent = 0 }; A.NoBullet noBullet49 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties142 = new A.DefaultRunProperties(){ FontSize = 2400 }; level3ParagraphProperties15.Append(noBullet49); level3ParagraphProperties15.Append(defaultRunProperties142); A.Level4ParagraphProperties level4ParagraphProperties15 = new A.Level4ParagraphProperties(){ LeftMargin = 1371600, Indent = 0 }; A.NoBullet noBullet50 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties143 = new A.DefaultRunProperties(){ FontSize = 2000 }; level4ParagraphProperties15.Append(noBullet50); level4ParagraphProperties15.Append(defaultRunProperties143); A.Level5ParagraphProperties level5ParagraphProperties15 = new A.Level5ParagraphProperties(){ LeftMargin = 1828800, Indent = 0 }; A.NoBullet noBullet51 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties144 = new A.DefaultRunProperties(){ FontSize = 2000 }; level5ParagraphProperties15.Append(noBullet51); level5ParagraphProperties15.Append(defaultRunProperties144); A.Level6ParagraphProperties level6ParagraphProperties15 = new A.Level6ParagraphProperties(){ LeftMargin = 2286000, Indent = 0 }; A.NoBullet noBullet52 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties145 = new A.DefaultRunProperties(){ FontSize = 2000 }; level6ParagraphProperties15.Append(noBullet52); level6ParagraphProperties15.Append(defaultRunProperties145); A.Level7ParagraphProperties level7ParagraphProperties15 = new A.Level7ParagraphProperties(){ LeftMargin = 2743200, Indent = 0 }; A.NoBullet noBullet53 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties146 = new A.DefaultRunProperties(){ FontSize = 2000 }; level7ParagraphProperties15.Append(noBullet53); level7ParagraphProperties15.Append(defaultRunProperties146); A.Level8ParagraphProperties level8ParagraphProperties15 = new A.Level8ParagraphProperties(){ LeftMargin = 3200400, Indent = 0 }; A.NoBullet noBullet54 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties147 = new A.DefaultRunProperties(){ FontSize = 2000 }; level8ParagraphProperties15.Append(noBullet54); level8ParagraphProperties15.Append(defaultRunProperties147); A.Level9ParagraphProperties level9ParagraphProperties15 = new A.Level9ParagraphProperties(){ LeftMargin = 3657600, Indent = 0 }; A.NoBullet noBullet55 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties148 = new A.DefaultRunProperties(){ FontSize = 2000 }; level9ParagraphProperties15.Append(noBullet55); level9ParagraphProperties15.Append(defaultRunProperties148); listStyle65.Append(level1ParagraphProperties26); listStyle65.Append(level2ParagraphProperties15); listStyle65.Append(level3ParagraphProperties15); listStyle65.Append(level4ParagraphProperties15); listStyle65.Append(level5ParagraphProperties15); listStyle65.Append(level6ParagraphProperties15); listStyle65.Append(level7ParagraphProperties15); listStyle65.Append(level8ParagraphProperties15); listStyle65.Append(level9ParagraphProperties15); A.Paragraph paragraph114 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties62 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph114.Append(endParagraphRunProperties62); textBody65.Append(bodyProperties65); textBody65.Append(listStyle65); textBody65.Append(paragraph114); shape65.Append(nonVisualShapeProperties65); shape65.Append(shapeProperties65); shape65.Append(textBody65); Shape shape66 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties66 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties80 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Text Placeholder 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties66 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks65 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties66.Append(shapeLocks65); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties80 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape65 = new PlaceholderShape(){ Type = PlaceholderValues.Body, Size = PlaceholderSizeValues.Half, Index = (UInt32Value)2U }; applicationNonVisualDrawingProperties80.Append(placeholderShape65); nonVisualShapeProperties66.Append(nonVisualDrawingProperties80); nonVisualShapeProperties66.Append(nonVisualShapeDrawingProperties66); nonVisualShapeProperties66.Append(applicationNonVisualDrawingProperties80); ShapeProperties shapeProperties66 = new ShapeProperties(); A.Transform2D transform2D30 = new A.Transform2D(); A.Offset offset44 = new A.Offset(){ X = 1792288L, Y = 5367339L }; A.Extents extents44 = new A.Extents(){ Cx = 5486400L, Cy = 804862L }; transform2D30.Append(offset44); transform2D30.Append(extents44); shapeProperties66.Append(transform2D30); TextBody textBody66 = new TextBody(); A.BodyProperties bodyProperties66 = new A.BodyProperties(); A.ListStyle listStyle66 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties27 = new A.Level1ParagraphProperties(){ LeftMargin = 0, Indent = 0 }; A.NoBullet noBullet56 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties149 = new A.DefaultRunProperties(){ FontSize = 1400 }; level1ParagraphProperties27.Append(noBullet56); level1ParagraphProperties27.Append(defaultRunProperties149); A.Level2ParagraphProperties level2ParagraphProperties16 = new A.Level2ParagraphProperties(){ LeftMargin = 457200, Indent = 0 }; A.NoBullet noBullet57 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties150 = new A.DefaultRunProperties(){ FontSize = 1200 }; level2ParagraphProperties16.Append(noBullet57); level2ParagraphProperties16.Append(defaultRunProperties150); A.Level3ParagraphProperties level3ParagraphProperties16 = new A.Level3ParagraphProperties(){ LeftMargin = 914400, Indent = 0 }; A.NoBullet noBullet58 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties151 = new A.DefaultRunProperties(){ FontSize = 1000 }; level3ParagraphProperties16.Append(noBullet58); level3ParagraphProperties16.Append(defaultRunProperties151); A.Level4ParagraphProperties level4ParagraphProperties16 = new A.Level4ParagraphProperties(){ LeftMargin = 1371600, Indent = 0 }; A.NoBullet noBullet59 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties152 = new A.DefaultRunProperties(){ FontSize = 900 }; level4ParagraphProperties16.Append(noBullet59); level4ParagraphProperties16.Append(defaultRunProperties152); A.Level5ParagraphProperties level5ParagraphProperties16 = new A.Level5ParagraphProperties(){ LeftMargin = 1828800, Indent = 0 }; A.NoBullet noBullet60 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties153 = new A.DefaultRunProperties(){ FontSize = 900 }; level5ParagraphProperties16.Append(noBullet60); level5ParagraphProperties16.Append(defaultRunProperties153); A.Level6ParagraphProperties level6ParagraphProperties16 = new A.Level6ParagraphProperties(){ LeftMargin = 2286000, Indent = 0 }; A.NoBullet noBullet61 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties154 = new A.DefaultRunProperties(){ FontSize = 900 }; level6ParagraphProperties16.Append(noBullet61); level6ParagraphProperties16.Append(defaultRunProperties154); A.Level7ParagraphProperties level7ParagraphProperties16 = new A.Level7ParagraphProperties(){ LeftMargin = 2743200, Indent = 0 }; A.NoBullet noBullet62 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties155 = new A.DefaultRunProperties(){ FontSize = 900 }; level7ParagraphProperties16.Append(noBullet62); level7ParagraphProperties16.Append(defaultRunProperties155); A.Level8ParagraphProperties level8ParagraphProperties16 = new A.Level8ParagraphProperties(){ LeftMargin = 3200400, Indent = 0 }; A.NoBullet noBullet63 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties156 = new A.DefaultRunProperties(){ FontSize = 900 }; level8ParagraphProperties16.Append(noBullet63); level8ParagraphProperties16.Append(defaultRunProperties156); A.Level9ParagraphProperties level9ParagraphProperties16 = new A.Level9ParagraphProperties(){ LeftMargin = 3657600, Indent = 0 }; A.NoBullet noBullet64 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties157 = new A.DefaultRunProperties(){ FontSize = 900 }; level9ParagraphProperties16.Append(noBullet64); level9ParagraphProperties16.Append(defaultRunProperties157); listStyle66.Append(level1ParagraphProperties27); listStyle66.Append(level2ParagraphProperties16); listStyle66.Append(level3ParagraphProperties16); listStyle66.Append(level4ParagraphProperties16); listStyle66.Append(level5ParagraphProperties16); listStyle66.Append(level6ParagraphProperties16); listStyle66.Append(level7ParagraphProperties16); listStyle66.Append(level8ParagraphProperties16); listStyle66.Append(level9ParagraphProperties16); A.Paragraph paragraph115 = new A.Paragraph(); A.ParagraphProperties paragraphProperties63 = new A.ParagraphProperties(){ Level = 0 }; A.Run run78 = new A.Run(); A.RunProperties runProperties101 = new A.RunProperties(){ Language = "en-US" }; runProperties101.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text101 = new A.Text(); text101.Text = "Click to edit Master text styles"; run78.Append(runProperties101); run78.Append(text101); paragraph115.Append(paragraphProperties63); paragraph115.Append(run78); textBody66.Append(bodyProperties66); textBody66.Append(listStyle66); textBody66.Append(paragraph115); shape66.Append(nonVisualShapeProperties66); shape66.Append(shapeProperties66); shape66.Append(textBody66); Shape shape67 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties67 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties81 = new NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "Date Placeholder 4" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties67 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks66 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties67.Append(shapeLocks66); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties81 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape66 = new PlaceholderShape(){ Type = PlaceholderValues.DateAndTime, Size = PlaceholderSizeValues.Half, Index = (UInt32Value)10U }; applicationNonVisualDrawingProperties81.Append(placeholderShape66); nonVisualShapeProperties67.Append(nonVisualDrawingProperties81); nonVisualShapeProperties67.Append(nonVisualShapeDrawingProperties67); nonVisualShapeProperties67.Append(applicationNonVisualDrawingProperties81); ShapeProperties shapeProperties67 = new ShapeProperties(); TextBody textBody67 = new TextBody(); A.BodyProperties bodyProperties67 = new A.BodyProperties(); A.ListStyle listStyle67 = new A.ListStyle(); A.Paragraph paragraph116 = new A.Paragraph(); A.Field field24 = new A.Field(){ Id = "{1A15D4F1-1D33-4170-8C9F-182CDE6BA6D1}", Type = "datetimeFigureOut" }; A.RunProperties runProperties102 = new A.RunProperties(){ Language = "en-US" }; runProperties102.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text102 = new A.Text(); text102.Text = "10/3/2012"; field24.Append(runProperties102); field24.Append(text102); A.EndParagraphRunProperties endParagraphRunProperties63 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph116.Append(field24); paragraph116.Append(endParagraphRunProperties63); textBody67.Append(bodyProperties67); textBody67.Append(listStyle67); textBody67.Append(paragraph116); shape67.Append(nonVisualShapeProperties67); shape67.Append(shapeProperties67); shape67.Append(textBody67); Shape shape68 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties68 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties82 = new NonVisualDrawingProperties(){ Id = (UInt32Value)6U, Name = "Footer Placeholder 5" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties68 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks67 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties68.Append(shapeLocks67); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties82 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape67 = new PlaceholderShape(){ Type = PlaceholderValues.Footer, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)11U }; applicationNonVisualDrawingProperties82.Append(placeholderShape67); nonVisualShapeProperties68.Append(nonVisualDrawingProperties82); nonVisualShapeProperties68.Append(nonVisualShapeDrawingProperties68); nonVisualShapeProperties68.Append(applicationNonVisualDrawingProperties82); ShapeProperties shapeProperties68 = new ShapeProperties(); TextBody textBody68 = new TextBody(); A.BodyProperties bodyProperties68 = new A.BodyProperties(); A.ListStyle listStyle68 = new A.ListStyle(); A.Paragraph paragraph117 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties64 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph117.Append(endParagraphRunProperties64); textBody68.Append(bodyProperties68); textBody68.Append(listStyle68); textBody68.Append(paragraph117); shape68.Append(nonVisualShapeProperties68); shape68.Append(shapeProperties68); shape68.Append(textBody68); Shape shape69 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties69 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties83 = new NonVisualDrawingProperties(){ Id = (UInt32Value)7U, Name = "Slide Number Placeholder 6" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties69 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks68 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties69.Append(shapeLocks68); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties83 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape68 = new PlaceholderShape(){ Type = PlaceholderValues.SlideNumber, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)12U }; applicationNonVisualDrawingProperties83.Append(placeholderShape68); nonVisualShapeProperties69.Append(nonVisualDrawingProperties83); nonVisualShapeProperties69.Append(nonVisualShapeDrawingProperties69); nonVisualShapeProperties69.Append(applicationNonVisualDrawingProperties83); ShapeProperties shapeProperties69 = new ShapeProperties(); TextBody textBody69 = new TextBody(); A.BodyProperties bodyProperties69 = new A.BodyProperties(); A.ListStyle listStyle69 = new A.ListStyle(); A.Paragraph paragraph118 = new A.Paragraph(); A.Field field25 = new A.Field(){ Id = "{9E0C3BFA-D4DA-4895-A0F6-B80859694A8D}", Type = "slidenum" }; A.RunProperties runProperties103 = new A.RunProperties(){ Language = "en-US" }; runProperties103.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text103 = new A.Text(); text103.Text = "‹#›"; field25.Append(runProperties103); field25.Append(text103); A.EndParagraphRunProperties endParagraphRunProperties65 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph118.Append(field25); paragraph118.Append(endParagraphRunProperties65); textBody69.Append(bodyProperties69); textBody69.Append(listStyle69); textBody69.Append(paragraph118); shape69.Append(nonVisualShapeProperties69); shape69.Append(shapeProperties69); shape69.Append(textBody69); shapeTree14.Append(nonVisualGroupShapeProperties14); shapeTree14.Append(groupShapeProperties14); shapeTree14.Append(shape64); shapeTree14.Append(shape65); shapeTree14.Append(shape66); shapeTree14.Append(shape67); shapeTree14.Append(shape68); shapeTree14.Append(shape69); commonSlideData14.Append(shapeTree14); ColorMapOverride colorMapOverride12 = new ColorMapOverride(); A.MasterColorMapping masterColorMapping12 = new A.MasterColorMapping(); colorMapOverride12.Append(masterColorMapping12); slideLayout11.Append(commonSlideData14); slideLayout11.Append(colorMapOverride12); slideLayoutPart11.SlideLayout = slideLayout11; }
private void AddParagraph(OXmlParagraphElement element) { Paragraph paragraph = new Paragraph(); if (element != null && element.Style != null) paragraph.ParagraphProperties = new ParagraphProperties { ParagraphStyleId = new ParagraphStyleId { Val = element.Style } }; _paragraph = _element.AppendChild(paragraph); //_run = _paragraph.AppendChild(new Run()); _run = null; }
internal C.ValueAxis ToValueAxis(bool IsStylish = false) { C.ValueAxis va = new C.ValueAxis(); va.AxisId = new C.AxisId() { Val = this.AxisId }; va.Scaling = new C.Scaling(); va.Scaling.Orientation = new C.Orientation() { Val = this.Orientation }; if (this.LogBase != null) va.Scaling.LogBase = new C.LogBase() { Val = this.LogBase.Value }; if (this.MaxAxisValue != null) va.Scaling.MaxAxisValue = new C.MaxAxisValue() { Val = this.MaxAxisValue.Value }; if (this.MinAxisValue != null) va.Scaling.MinAxisValue = new C.MinAxisValue() { Val = this.MinAxisValue.Value }; va.Delete = new C.Delete() { Val = this.Delete }; C.AxisPositionValues axpos = this.AxisPosition; if (!this.ForceAxisPosition) { if (this.OtherAxisIsInReverseOrder) axpos = SLChartTool.GetOppositePosition(axpos); if (this.OtherAxisCrossedAtMaximum) axpos = SLChartTool.GetOppositePosition(axpos); } va.AxisPosition = new C.AxisPosition() { Val = axpos }; if (this.ShowMajorGridlines) { va.MajorGridlines = this.MajorGridlines.ToMajorGridlines(IsStylish); } if (this.ShowMinorGridlines) { va.MinorGridlines = this.MinorGridlines.ToMinorGridlines(IsStylish); } if (this.ShowTitle) { va.Title = this.Title.ToTitle(IsStylish); } if (this.HasNumberingFormat) { va.NumberingFormat = new C.NumberingFormat() { FormatCode = this.FormatCode, SourceLinked = this.SourceLinked }; } va.MajorTickMark = new C.MajorTickMark() { Val = this.MajorTickMark }; va.MinorTickMark = new C.MinorTickMark() { Val = this.MinorTickMark }; va.TickLabelPosition = new C.TickLabelPosition() { Val = this.TickLabelPosition }; if (this.ShapeProperties.HasShapeProperties) va.ChartShapeProperties = this.ShapeProperties.ToChartShapeProperties(IsStylish); if (this.Rotation != null || this.Vertical != null || this.Anchor != null || this.AnchorCenter != null) { va.TextProperties = new C.TextProperties(); va.TextProperties.BodyProperties = new A.BodyProperties(); if (this.Rotation != null) va.TextProperties.BodyProperties.Rotation = (int)(this.Rotation.Value * SLConstants.DegreeToAngleRepresentation); if (this.Vertical != null) va.TextProperties.BodyProperties.Vertical = this.Vertical.Value; if (this.Anchor != null) va.TextProperties.BodyProperties.Anchor = this.Anchor.Value; if (this.AnchorCenter != null) va.TextProperties.BodyProperties.AnchorCenter = this.AnchorCenter.Value; va.TextProperties.ListStyle = new A.ListStyle(); A.Paragraph para = new A.Paragraph(); para.ParagraphProperties = new A.ParagraphProperties(); para.ParagraphProperties.Append(new A.DefaultRunProperties()); va.TextProperties.Append(para); } else if (IsStylish) { va.TextProperties = new C.TextProperties(); va.TextProperties.BodyProperties = new A.BodyProperties() { Rotation = -60000000, UseParagraphSpacing = true, VerticalOverflow = A.TextVerticalOverflowValues.Ellipsis, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = true }; va.TextProperties.ListStyle = new A.ListStyle(); A.Paragraph para = new A.Paragraph(); para.ParagraphProperties = new A.ParagraphProperties(); A.DefaultRunProperties defrunprops = new A.DefaultRunProperties(); defrunprops.FontSize = 900; defrunprops.Bold = false; defrunprops.Italic = false; defrunprops.Underline = A.TextUnderlineValues.None; defrunprops.Strike = A.TextStrikeValues.NoStrike; defrunprops.Kerning = 1200; defrunprops.Baseline = 0; A.SchemeColor schclr = new A.SchemeColor() { Val = A.SchemeColorValues.Text1 }; schclr.Append(new A.LuminanceModulation() { Val = 65000 }); schclr.Append(new A.LuminanceOffset() { Val = 35000 }); defrunprops.Append(new A.SolidFill() { SchemeColor = schclr }); defrunprops.Append(new A.LatinFont() { Typeface = "+mn-lt" }); defrunprops.Append(new A.EastAsianFont() { Typeface = "+mn-ea" }); defrunprops.Append(new A.ComplexScriptFont() { Typeface = "+mn-cs" }); para.ParagraphProperties.Append(defrunprops); para.Append(new A.EndParagraphRunProperties() { Language = System.Globalization.CultureInfo.CurrentCulture.Name }); va.TextProperties.Append(para); } va.CrossingAxis = new C.CrossingAxis() { Val = this.CrossingAxis }; if (this.IsCrosses != null) { if (this.IsCrosses.Value) { va.Append(new C.Crosses() { Val = this.Crosses }); } else { va.Append(new C.CrossesAt() { Val = this.CrossesAt }); } } va.Append(new C.CrossBetween() { Val = this.CrossBetween }); if (this.ValueMajorUnit != null) va.Append(new C.MajorUnit() { Val = this.ValueMajorUnit.Value }); if (this.ValueMinorUnit != null) va.Append(new C.MinorUnit() { Val = this.ValueMinorUnit.Value }); if (this.BuiltInUnitValues != null) { C.DisplayUnits du = new C.DisplayUnits(); du.Append(new C.BuiltInUnit() { Val = this.BuiltInUnitValues.Value }); if (this.ShowDisplayUnitsLabel) { C.DisplayUnitsLabel dul = new C.DisplayUnitsLabel(); dul.Layout = new C.Layout(); du.Append(dul); } va.Append(du); } return va; }
// Generates content of slideMasterPart1. private void GenerateSlideMasterPart1Content(SlideMasterPart slideMasterPart1) { SlideMaster slideMaster1 = new SlideMaster(); slideMaster1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); slideMaster1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); slideMaster1.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData4 = new CommonSlideData(); Background background2 = new Background(); BackgroundStyleReference backgroundStyleReference2 = new BackgroundStyleReference(){ Index = (UInt32Value)1001U }; A.SchemeColor schemeColor45 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background1 }; backgroundStyleReference2.Append(schemeColor45); background2.Append(backgroundStyleReference2); ShapeTree shapeTree4 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties4 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties15 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties4 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties15 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties4.Append(nonVisualDrawingProperties15); nonVisualGroupShapeProperties4.Append(nonVisualGroupShapeDrawingProperties4); nonVisualGroupShapeProperties4.Append(applicationNonVisualDrawingProperties15); GroupShapeProperties groupShapeProperties4 = new GroupShapeProperties(); A.TransformGroup transformGroup4 = new A.TransformGroup(); A.Offset offset12 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents12 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset4 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents4 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup4.Append(offset12); transformGroup4.Append(extents12); transformGroup4.Append(childOffset4); transformGroup4.Append(childExtents4); groupShapeProperties4.Append(transformGroup4); Shape shape12 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties12 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties16 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Title Placeholder 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties12 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks11 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties12.Append(shapeLocks11); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties16 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape11 = new PlaceholderShape(){ Type = PlaceholderValues.Title }; applicationNonVisualDrawingProperties16.Append(placeholderShape11); nonVisualShapeProperties12.Append(nonVisualDrawingProperties16); nonVisualShapeProperties12.Append(nonVisualShapeDrawingProperties12); nonVisualShapeProperties12.Append(applicationNonVisualDrawingProperties16); ShapeProperties shapeProperties12 = new ShapeProperties(); A.Transform2D transform2D9 = new A.Transform2D(); A.Offset offset13 = new A.Offset(){ X = 457200L, Y = 274638L }; A.Extents extents13 = new A.Extents(){ Cx = 8229600L, Cy = 1143000L }; transform2D9.Append(offset13); transform2D9.Append(extents13); A.PresetGeometry presetGeometry7 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList7 = new A.AdjustValueList(); presetGeometry7.Append(adjustValueList7); shapeProperties12.Append(transform2D9); shapeProperties12.Append(presetGeometry7); TextBody textBody12 = new TextBody(); A.BodyProperties bodyProperties12 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Center }; A.NormalAutoFit normalAutoFit2 = new A.NormalAutoFit(); bodyProperties12.Append(normalAutoFit2); A.ListStyle listStyle12 = new A.ListStyle(); A.Paragraph paragraph25 = new A.Paragraph(); A.Run run19 = new A.Run(); A.RunProperties runProperties22 = new A.RunProperties(){ Language = "en-US" }; runProperties22.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text22 = new A.Text(); text22.Text = "Click to edit Master title style"; run19.Append(runProperties22); run19.Append(text22); A.EndParagraphRunProperties endParagraphRunProperties13 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph25.Append(run19); paragraph25.Append(endParagraphRunProperties13); textBody12.Append(bodyProperties12); textBody12.Append(listStyle12); textBody12.Append(paragraph25); shape12.Append(nonVisualShapeProperties12); shape12.Append(shapeProperties12); shape12.Append(textBody12); Shape shape13 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties13 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties17 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Text Placeholder 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties13 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks12 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties13.Append(shapeLocks12); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties17 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape12 = new PlaceholderShape(){ Type = PlaceholderValues.Body, Index = (UInt32Value)1U }; applicationNonVisualDrawingProperties17.Append(placeholderShape12); nonVisualShapeProperties13.Append(nonVisualDrawingProperties17); nonVisualShapeProperties13.Append(nonVisualShapeDrawingProperties13); nonVisualShapeProperties13.Append(applicationNonVisualDrawingProperties17); ShapeProperties shapeProperties13 = new ShapeProperties(); A.Transform2D transform2D10 = new A.Transform2D(); A.Offset offset14 = new A.Offset(){ X = 457200L, Y = 1600201L }; A.Extents extents14 = new A.Extents(){ Cx = 8229600L, Cy = 4525963L }; transform2D10.Append(offset14); transform2D10.Append(extents14); A.PresetGeometry presetGeometry8 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList8 = new A.AdjustValueList(); presetGeometry8.Append(adjustValueList8); shapeProperties13.Append(transform2D10); shapeProperties13.Append(presetGeometry8); TextBody textBody13 = new TextBody(); A.BodyProperties bodyProperties13 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false }; A.NormalAutoFit normalAutoFit3 = new A.NormalAutoFit(); bodyProperties13.Append(normalAutoFit3); A.ListStyle listStyle13 = new A.ListStyle(); A.Paragraph paragraph26 = new A.Paragraph(); A.ParagraphProperties paragraphProperties14 = new A.ParagraphProperties(){ Level = 0 }; A.Run run20 = new A.Run(); A.RunProperties runProperties23 = new A.RunProperties(){ Language = "en-US" }; runProperties23.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text23 = new A.Text(); text23.Text = "Click to edit Master text styles"; run20.Append(runProperties23); run20.Append(text23); paragraph26.Append(paragraphProperties14); paragraph26.Append(run20); A.Paragraph paragraph27 = new A.Paragraph(); A.ParagraphProperties paragraphProperties15 = new A.ParagraphProperties(){ Level = 1 }; A.Run run21 = new A.Run(); A.RunProperties runProperties24 = new A.RunProperties(){ Language = "en-US" }; runProperties24.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text24 = new A.Text(); text24.Text = "Second level"; run21.Append(runProperties24); run21.Append(text24); paragraph27.Append(paragraphProperties15); paragraph27.Append(run21); A.Paragraph paragraph28 = new A.Paragraph(); A.ParagraphProperties paragraphProperties16 = new A.ParagraphProperties(){ Level = 2 }; A.Run run22 = new A.Run(); A.RunProperties runProperties25 = new A.RunProperties(){ Language = "en-US" }; runProperties25.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text25 = new A.Text(); text25.Text = "Third level"; run22.Append(runProperties25); run22.Append(text25); paragraph28.Append(paragraphProperties16); paragraph28.Append(run22); A.Paragraph paragraph29 = new A.Paragraph(); A.ParagraphProperties paragraphProperties17 = new A.ParagraphProperties(){ Level = 3 }; A.Run run23 = new A.Run(); A.RunProperties runProperties26 = new A.RunProperties(){ Language = "en-US" }; runProperties26.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text26 = new A.Text(); text26.Text = "Fourth level"; run23.Append(runProperties26); run23.Append(text26); paragraph29.Append(paragraphProperties17); paragraph29.Append(run23); A.Paragraph paragraph30 = new A.Paragraph(); A.ParagraphProperties paragraphProperties18 = new A.ParagraphProperties(){ Level = 4 }; A.Run run24 = new A.Run(); A.RunProperties runProperties27 = new A.RunProperties(){ Language = "en-US" }; runProperties27.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text27 = new A.Text(); text27.Text = "Fifth level"; run24.Append(runProperties27); run24.Append(text27); A.EndParagraphRunProperties endParagraphRunProperties14 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph30.Append(paragraphProperties18); paragraph30.Append(run24); paragraph30.Append(endParagraphRunProperties14); textBody13.Append(bodyProperties13); textBody13.Append(listStyle13); textBody13.Append(paragraph26); textBody13.Append(paragraph27); textBody13.Append(paragraph28); textBody13.Append(paragraph29); textBody13.Append(paragraph30); shape13.Append(nonVisualShapeProperties13); shape13.Append(shapeProperties13); shape13.Append(textBody13); Shape shape14 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties14 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties18 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Date Placeholder 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties14 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks13 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties14.Append(shapeLocks13); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties18 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape13 = new PlaceholderShape(){ Type = PlaceholderValues.DateAndTime, Size = PlaceholderSizeValues.Half, Index = (UInt32Value)2U }; applicationNonVisualDrawingProperties18.Append(placeholderShape13); nonVisualShapeProperties14.Append(nonVisualDrawingProperties18); nonVisualShapeProperties14.Append(nonVisualShapeDrawingProperties14); nonVisualShapeProperties14.Append(applicationNonVisualDrawingProperties18); ShapeProperties shapeProperties14 = new ShapeProperties(); A.Transform2D transform2D11 = new A.Transform2D(); A.Offset offset15 = new A.Offset(){ X = 457200L, Y = 6356351L }; A.Extents extents15 = new A.Extents(){ Cx = 2133600L, Cy = 365125L }; transform2D11.Append(offset15); transform2D11.Append(extents15); A.PresetGeometry presetGeometry9 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList9 = new A.AdjustValueList(); presetGeometry9.Append(adjustValueList9); shapeProperties14.Append(transform2D11); shapeProperties14.Append(presetGeometry9); TextBody textBody14 = new TextBody(); A.BodyProperties bodyProperties14 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Center }; A.ListStyle listStyle14 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties7 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Left }; A.DefaultRunProperties defaultRunProperties32 = new A.DefaultRunProperties(){ FontSize = 1200 }; A.SolidFill solidFill34 = new A.SolidFill(); A.SchemeColor schemeColor46 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint16 = new A.Tint(){ Val = 75000 }; schemeColor46.Append(tint16); solidFill34.Append(schemeColor46); defaultRunProperties32.Append(solidFill34); level1ParagraphProperties7.Append(defaultRunProperties32); listStyle14.Append(level1ParagraphProperties7); A.Paragraph paragraph31 = new A.Paragraph(); A.Field field4 = new A.Field(){ Id = "{1A15D4F1-1D33-4170-8C9F-182CDE6BA6D1}", Type = "datetimeFigureOut" }; A.RunProperties runProperties28 = new A.RunProperties(){ Language = "en-US" }; runProperties28.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text28 = new A.Text(); text28.Text = "10/3/2012"; field4.Append(runProperties28); field4.Append(text28); A.EndParagraphRunProperties endParagraphRunProperties15 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph31.Append(field4); paragraph31.Append(endParagraphRunProperties15); textBody14.Append(bodyProperties14); textBody14.Append(listStyle14); textBody14.Append(paragraph31); shape14.Append(nonVisualShapeProperties14); shape14.Append(shapeProperties14); shape14.Append(textBody14); Shape shape15 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties15 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties19 = new NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "Footer Placeholder 4" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties15 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks14 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties15.Append(shapeLocks14); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties19 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape14 = new PlaceholderShape(){ Type = PlaceholderValues.Footer, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)3U }; applicationNonVisualDrawingProperties19.Append(placeholderShape14); nonVisualShapeProperties15.Append(nonVisualDrawingProperties19); nonVisualShapeProperties15.Append(nonVisualShapeDrawingProperties15); nonVisualShapeProperties15.Append(applicationNonVisualDrawingProperties19); ShapeProperties shapeProperties15 = new ShapeProperties(); A.Transform2D transform2D12 = new A.Transform2D(); A.Offset offset16 = new A.Offset(){ X = 3124200L, Y = 6356351L }; A.Extents extents16 = new A.Extents(){ Cx = 2895600L, Cy = 365125L }; transform2D12.Append(offset16); transform2D12.Append(extents16); A.PresetGeometry presetGeometry10 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList10 = new A.AdjustValueList(); presetGeometry10.Append(adjustValueList10); shapeProperties15.Append(transform2D12); shapeProperties15.Append(presetGeometry10); TextBody textBody15 = new TextBody(); A.BodyProperties bodyProperties15 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Center }; A.ListStyle listStyle15 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties8 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Center }; A.DefaultRunProperties defaultRunProperties33 = new A.DefaultRunProperties(){ FontSize = 1200 }; A.SolidFill solidFill35 = new A.SolidFill(); A.SchemeColor schemeColor47 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint17 = new A.Tint(){ Val = 75000 }; schemeColor47.Append(tint17); solidFill35.Append(schemeColor47); defaultRunProperties33.Append(solidFill35); level1ParagraphProperties8.Append(defaultRunProperties33); listStyle15.Append(level1ParagraphProperties8); A.Paragraph paragraph32 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties16 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph32.Append(endParagraphRunProperties16); textBody15.Append(bodyProperties15); textBody15.Append(listStyle15); textBody15.Append(paragraph32); shape15.Append(nonVisualShapeProperties15); shape15.Append(shapeProperties15); shape15.Append(textBody15); Shape shape16 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties16 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties20 = new NonVisualDrawingProperties(){ Id = (UInt32Value)6U, Name = "Slide Number Placeholder 5" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties16 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks15 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties16.Append(shapeLocks15); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties20 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape15 = new PlaceholderShape(){ Type = PlaceholderValues.SlideNumber, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)4U }; applicationNonVisualDrawingProperties20.Append(placeholderShape15); nonVisualShapeProperties16.Append(nonVisualDrawingProperties20); nonVisualShapeProperties16.Append(nonVisualShapeDrawingProperties16); nonVisualShapeProperties16.Append(applicationNonVisualDrawingProperties20); ShapeProperties shapeProperties16 = new ShapeProperties(); A.Transform2D transform2D13 = new A.Transform2D(); A.Offset offset17 = new A.Offset(){ X = 6553200L, Y = 6356351L }; A.Extents extents17 = new A.Extents(){ Cx = 2133600L, Cy = 365125L }; transform2D13.Append(offset17); transform2D13.Append(extents17); A.PresetGeometry presetGeometry11 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList11 = new A.AdjustValueList(); presetGeometry11.Append(adjustValueList11); shapeProperties16.Append(transform2D13); shapeProperties16.Append(presetGeometry11); TextBody textBody16 = new TextBody(); A.BodyProperties bodyProperties16 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Center }; A.ListStyle listStyle16 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties9 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Right }; A.DefaultRunProperties defaultRunProperties34 = new A.DefaultRunProperties(){ FontSize = 1200 }; A.SolidFill solidFill36 = new A.SolidFill(); A.SchemeColor schemeColor48 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint18 = new A.Tint(){ Val = 75000 }; schemeColor48.Append(tint18); solidFill36.Append(schemeColor48); defaultRunProperties34.Append(solidFill36); level1ParagraphProperties9.Append(defaultRunProperties34); listStyle16.Append(level1ParagraphProperties9); A.Paragraph paragraph33 = new A.Paragraph(); A.Field field5 = new A.Field(){ Id = "{9E0C3BFA-D4DA-4895-A0F6-B80859694A8D}", Type = "slidenum" }; A.RunProperties runProperties29 = new A.RunProperties(){ Language = "en-US" }; runProperties29.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text29 = new A.Text(); text29.Text = "‹#›"; field5.Append(runProperties29); field5.Append(text29); A.EndParagraphRunProperties endParagraphRunProperties17 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph33.Append(field5); paragraph33.Append(endParagraphRunProperties17); textBody16.Append(bodyProperties16); textBody16.Append(listStyle16); textBody16.Append(paragraph33); shape16.Append(nonVisualShapeProperties16); shape16.Append(shapeProperties16); shape16.Append(textBody16); shapeTree4.Append(nonVisualGroupShapeProperties4); shapeTree4.Append(groupShapeProperties4); shapeTree4.Append(shape12); shapeTree4.Append(shape13); shapeTree4.Append(shape14); shapeTree4.Append(shape15); shapeTree4.Append(shape16); CommonSlideDataExtensionList commonSlideDataExtensionList2 = new CommonSlideDataExtensionList(); CommonSlideDataExtension commonSlideDataExtension2 = new CommonSlideDataExtension(){ Uri = "{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}" }; P14.CreationId creationId2 = new P14.CreationId(){ Val = (UInt32Value)2970118228U }; creationId2.AddNamespaceDeclaration("p14", "http://schemas.microsoft.com/office/powerpoint/2010/main"); commonSlideDataExtension2.Append(creationId2); commonSlideDataExtensionList2.Append(commonSlideDataExtension2); commonSlideData4.Append(background2); commonSlideData4.Append(shapeTree4); commonSlideData4.Append(commonSlideDataExtensionList2); ColorMap colorMap2 = new ColorMap(){ Background1 = A.ColorSchemeIndexValues.Light1, Text1 = A.ColorSchemeIndexValues.Dark1, Background2 = A.ColorSchemeIndexValues.Light2, Text2 = A.ColorSchemeIndexValues.Dark2, Accent1 = A.ColorSchemeIndexValues.Accent1, Accent2 = A.ColorSchemeIndexValues.Accent2, Accent3 = A.ColorSchemeIndexValues.Accent3, Accent4 = A.ColorSchemeIndexValues.Accent4, Accent5 = A.ColorSchemeIndexValues.Accent5, Accent6 = A.ColorSchemeIndexValues.Accent6, Hyperlink = A.ColorSchemeIndexValues.Hyperlink, FollowedHyperlink = A.ColorSchemeIndexValues.FollowedHyperlink }; SlideLayoutIdList slideLayoutIdList1 = new SlideLayoutIdList(); SlideLayoutId slideLayoutId1 = new SlideLayoutId(){ Id = (UInt32Value)2147483649U, RelationshipId = "rId1" }; SlideLayoutId slideLayoutId2 = new SlideLayoutId(){ Id = (UInt32Value)2147483650U, RelationshipId = "rId2" }; SlideLayoutId slideLayoutId3 = new SlideLayoutId(){ Id = (UInt32Value)2147483651U, RelationshipId = "rId3" }; SlideLayoutId slideLayoutId4 = new SlideLayoutId(){ Id = (UInt32Value)2147483652U, RelationshipId = "rId4" }; SlideLayoutId slideLayoutId5 = new SlideLayoutId(){ Id = (UInt32Value)2147483653U, RelationshipId = "rId5" }; SlideLayoutId slideLayoutId6 = new SlideLayoutId(){ Id = (UInt32Value)2147483654U, RelationshipId = "rId6" }; SlideLayoutId slideLayoutId7 = new SlideLayoutId(){ Id = (UInt32Value)2147483655U, RelationshipId = "rId7" }; SlideLayoutId slideLayoutId8 = new SlideLayoutId(){ Id = (UInt32Value)2147483656U, RelationshipId = "rId8" }; SlideLayoutId slideLayoutId9 = new SlideLayoutId(){ Id = (UInt32Value)2147483657U, RelationshipId = "rId9" }; SlideLayoutId slideLayoutId10 = new SlideLayoutId(){ Id = (UInt32Value)2147483658U, RelationshipId = "rId10" }; SlideLayoutId slideLayoutId11 = new SlideLayoutId(){ Id = (UInt32Value)2147483659U, RelationshipId = "rId11" }; slideLayoutIdList1.Append(slideLayoutId1); slideLayoutIdList1.Append(slideLayoutId2); slideLayoutIdList1.Append(slideLayoutId3); slideLayoutIdList1.Append(slideLayoutId4); slideLayoutIdList1.Append(slideLayoutId5); slideLayoutIdList1.Append(slideLayoutId6); slideLayoutIdList1.Append(slideLayoutId7); slideLayoutIdList1.Append(slideLayoutId8); slideLayoutIdList1.Append(slideLayoutId9); slideLayoutIdList1.Append(slideLayoutId10); slideLayoutIdList1.Append(slideLayoutId11); TextStyles textStyles1 = new TextStyles(); TitleStyle titleStyle1 = new TitleStyle(); A.Level1ParagraphProperties level1ParagraphProperties10 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Center, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore1 = new A.SpaceBefore(); A.SpacingPercent spacingPercent1 = new A.SpacingPercent(){ Val = 0 }; spaceBefore1.Append(spacingPercent1); A.NoBullet noBullet10 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties35 = new A.DefaultRunProperties(){ FontSize = 4400, Kerning = 1200 }; A.SolidFill solidFill37 = new A.SolidFill(); A.SchemeColor schemeColor49 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill37.Append(schemeColor49); A.LatinFont latinFont21 = new A.LatinFont(){ Typeface = "+mj-lt" }; A.EastAsianFont eastAsianFont21 = new A.EastAsianFont(){ Typeface = "+mj-ea" }; A.ComplexScriptFont complexScriptFont21 = new A.ComplexScriptFont(){ Typeface = "+mj-cs" }; defaultRunProperties35.Append(solidFill37); defaultRunProperties35.Append(latinFont21); defaultRunProperties35.Append(eastAsianFont21); defaultRunProperties35.Append(complexScriptFont21); level1ParagraphProperties10.Append(spaceBefore1); level1ParagraphProperties10.Append(noBullet10); level1ParagraphProperties10.Append(defaultRunProperties35); titleStyle1.Append(level1ParagraphProperties10); BodyStyle bodyStyle1 = new BodyStyle(); A.Level1ParagraphProperties level1ParagraphProperties11 = new A.Level1ParagraphProperties(){ LeftMargin = 342900, Indent = -342900, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore2 = new A.SpaceBefore(); A.SpacingPercent spacingPercent2 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore2.Append(spacingPercent2); A.BulletFont bulletFont1 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet1 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties36 = new A.DefaultRunProperties(){ FontSize = 3200, Kerning = 1200 }; A.SolidFill solidFill38 = new A.SolidFill(); A.SchemeColor schemeColor50 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill38.Append(schemeColor50); A.LatinFont latinFont22 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont22 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont22 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties36.Append(solidFill38); defaultRunProperties36.Append(latinFont22); defaultRunProperties36.Append(eastAsianFont22); defaultRunProperties36.Append(complexScriptFont22); level1ParagraphProperties11.Append(spaceBefore2); level1ParagraphProperties11.Append(bulletFont1); level1ParagraphProperties11.Append(characterBullet1); level1ParagraphProperties11.Append(defaultRunProperties36); A.Level2ParagraphProperties level2ParagraphProperties4 = new A.Level2ParagraphProperties(){ LeftMargin = 742950, Indent = -285750, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore3 = new A.SpaceBefore(); A.SpacingPercent spacingPercent3 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore3.Append(spacingPercent3); A.BulletFont bulletFont2 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet2 = new A.CharacterBullet(){ Char = "–" }; A.DefaultRunProperties defaultRunProperties37 = new A.DefaultRunProperties(){ FontSize = 2800, Kerning = 1200 }; A.SolidFill solidFill39 = new A.SolidFill(); A.SchemeColor schemeColor51 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill39.Append(schemeColor51); A.LatinFont latinFont23 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont23 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont23 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties37.Append(solidFill39); defaultRunProperties37.Append(latinFont23); defaultRunProperties37.Append(eastAsianFont23); defaultRunProperties37.Append(complexScriptFont23); level2ParagraphProperties4.Append(spaceBefore3); level2ParagraphProperties4.Append(bulletFont2); level2ParagraphProperties4.Append(characterBullet2); level2ParagraphProperties4.Append(defaultRunProperties37); A.Level3ParagraphProperties level3ParagraphProperties4 = new A.Level3ParagraphProperties(){ LeftMargin = 1143000, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore4 = new A.SpaceBefore(); A.SpacingPercent spacingPercent4 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore4.Append(spacingPercent4); A.BulletFont bulletFont3 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet3 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties38 = new A.DefaultRunProperties(){ FontSize = 2400, Kerning = 1200 }; A.SolidFill solidFill40 = new A.SolidFill(); A.SchemeColor schemeColor52 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill40.Append(schemeColor52); A.LatinFont latinFont24 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont24 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont24 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties38.Append(solidFill40); defaultRunProperties38.Append(latinFont24); defaultRunProperties38.Append(eastAsianFont24); defaultRunProperties38.Append(complexScriptFont24); level3ParagraphProperties4.Append(spaceBefore4); level3ParagraphProperties4.Append(bulletFont3); level3ParagraphProperties4.Append(characterBullet3); level3ParagraphProperties4.Append(defaultRunProperties38); A.Level4ParagraphProperties level4ParagraphProperties4 = new A.Level4ParagraphProperties(){ LeftMargin = 1600200, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore5 = new A.SpaceBefore(); A.SpacingPercent spacingPercent5 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore5.Append(spacingPercent5); A.BulletFont bulletFont4 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet4 = new A.CharacterBullet(){ Char = "–" }; A.DefaultRunProperties defaultRunProperties39 = new A.DefaultRunProperties(){ FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill41 = new A.SolidFill(); A.SchemeColor schemeColor53 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill41.Append(schemeColor53); A.LatinFont latinFont25 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont25 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont25 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties39.Append(solidFill41); defaultRunProperties39.Append(latinFont25); defaultRunProperties39.Append(eastAsianFont25); defaultRunProperties39.Append(complexScriptFont25); level4ParagraphProperties4.Append(spaceBefore5); level4ParagraphProperties4.Append(bulletFont4); level4ParagraphProperties4.Append(characterBullet4); level4ParagraphProperties4.Append(defaultRunProperties39); A.Level5ParagraphProperties level5ParagraphProperties4 = new A.Level5ParagraphProperties(){ LeftMargin = 2057400, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore6 = new A.SpaceBefore(); A.SpacingPercent spacingPercent6 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore6.Append(spacingPercent6); A.BulletFont bulletFont5 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet5 = new A.CharacterBullet(){ Char = "»" }; A.DefaultRunProperties defaultRunProperties40 = new A.DefaultRunProperties(){ FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill42 = new A.SolidFill(); A.SchemeColor schemeColor54 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill42.Append(schemeColor54); A.LatinFont latinFont26 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont26 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont26 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties40.Append(solidFill42); defaultRunProperties40.Append(latinFont26); defaultRunProperties40.Append(eastAsianFont26); defaultRunProperties40.Append(complexScriptFont26); level5ParagraphProperties4.Append(spaceBefore6); level5ParagraphProperties4.Append(bulletFont5); level5ParagraphProperties4.Append(characterBullet5); level5ParagraphProperties4.Append(defaultRunProperties40); A.Level6ParagraphProperties level6ParagraphProperties4 = new A.Level6ParagraphProperties(){ LeftMargin = 2514600, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore7 = new A.SpaceBefore(); A.SpacingPercent spacingPercent7 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore7.Append(spacingPercent7); A.BulletFont bulletFont6 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet6 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties41 = new A.DefaultRunProperties(){ FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill43 = new A.SolidFill(); A.SchemeColor schemeColor55 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill43.Append(schemeColor55); A.LatinFont latinFont27 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont27 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont27 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties41.Append(solidFill43); defaultRunProperties41.Append(latinFont27); defaultRunProperties41.Append(eastAsianFont27); defaultRunProperties41.Append(complexScriptFont27); level6ParagraphProperties4.Append(spaceBefore7); level6ParagraphProperties4.Append(bulletFont6); level6ParagraphProperties4.Append(characterBullet6); level6ParagraphProperties4.Append(defaultRunProperties41); A.Level7ParagraphProperties level7ParagraphProperties4 = new A.Level7ParagraphProperties(){ LeftMargin = 2971800, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore8 = new A.SpaceBefore(); A.SpacingPercent spacingPercent8 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore8.Append(spacingPercent8); A.BulletFont bulletFont7 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet7 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties42 = new A.DefaultRunProperties(){ FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill44 = new A.SolidFill(); A.SchemeColor schemeColor56 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill44.Append(schemeColor56); A.LatinFont latinFont28 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont28 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont28 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties42.Append(solidFill44); defaultRunProperties42.Append(latinFont28); defaultRunProperties42.Append(eastAsianFont28); defaultRunProperties42.Append(complexScriptFont28); level7ParagraphProperties4.Append(spaceBefore8); level7ParagraphProperties4.Append(bulletFont7); level7ParagraphProperties4.Append(characterBullet7); level7ParagraphProperties4.Append(defaultRunProperties42); A.Level8ParagraphProperties level8ParagraphProperties4 = new A.Level8ParagraphProperties(){ LeftMargin = 3429000, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore9 = new A.SpaceBefore(); A.SpacingPercent spacingPercent9 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore9.Append(spacingPercent9); A.BulletFont bulletFont8 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet8 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties43 = new A.DefaultRunProperties(){ FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill45 = new A.SolidFill(); A.SchemeColor schemeColor57 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill45.Append(schemeColor57); A.LatinFont latinFont29 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont29 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont29 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties43.Append(solidFill45); defaultRunProperties43.Append(latinFont29); defaultRunProperties43.Append(eastAsianFont29); defaultRunProperties43.Append(complexScriptFont29); level8ParagraphProperties4.Append(spaceBefore9); level8ParagraphProperties4.Append(bulletFont8); level8ParagraphProperties4.Append(characterBullet8); level8ParagraphProperties4.Append(defaultRunProperties43); A.Level9ParagraphProperties level9ParagraphProperties4 = new A.Level9ParagraphProperties(){ LeftMargin = 3886200, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore10 = new A.SpaceBefore(); A.SpacingPercent spacingPercent10 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore10.Append(spacingPercent10); A.BulletFont bulletFont9 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet9 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties44 = new A.DefaultRunProperties(){ FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill46 = new A.SolidFill(); A.SchemeColor schemeColor58 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill46.Append(schemeColor58); A.LatinFont latinFont30 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont30 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont30 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties44.Append(solidFill46); defaultRunProperties44.Append(latinFont30); defaultRunProperties44.Append(eastAsianFont30); defaultRunProperties44.Append(complexScriptFont30); level9ParagraphProperties4.Append(spaceBefore10); level9ParagraphProperties4.Append(bulletFont9); level9ParagraphProperties4.Append(characterBullet9); level9ParagraphProperties4.Append(defaultRunProperties44); bodyStyle1.Append(level1ParagraphProperties11); bodyStyle1.Append(level2ParagraphProperties4); bodyStyle1.Append(level3ParagraphProperties4); bodyStyle1.Append(level4ParagraphProperties4); bodyStyle1.Append(level5ParagraphProperties4); bodyStyle1.Append(level6ParagraphProperties4); bodyStyle1.Append(level7ParagraphProperties4); bodyStyle1.Append(level8ParagraphProperties4); bodyStyle1.Append(level9ParagraphProperties4); OtherStyle otherStyle1 = new OtherStyle(); A.DefaultParagraphProperties defaultParagraphProperties2 = new A.DefaultParagraphProperties(); A.DefaultRunProperties defaultRunProperties45 = new A.DefaultRunProperties(){ Language = "en-US" }; defaultParagraphProperties2.Append(defaultRunProperties45); A.Level1ParagraphProperties level1ParagraphProperties12 = new A.Level1ParagraphProperties(){ LeftMargin = 0, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties46 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill47 = new A.SolidFill(); A.SchemeColor schemeColor59 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill47.Append(schemeColor59); A.LatinFont latinFont31 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont31 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont31 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties46.Append(solidFill47); defaultRunProperties46.Append(latinFont31); defaultRunProperties46.Append(eastAsianFont31); defaultRunProperties46.Append(complexScriptFont31); level1ParagraphProperties12.Append(defaultRunProperties46); A.Level2ParagraphProperties level2ParagraphProperties5 = new A.Level2ParagraphProperties(){ LeftMargin = 457200, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties47 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill48 = new A.SolidFill(); A.SchemeColor schemeColor60 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill48.Append(schemeColor60); A.LatinFont latinFont32 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont32 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont32 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties47.Append(solidFill48); defaultRunProperties47.Append(latinFont32); defaultRunProperties47.Append(eastAsianFont32); defaultRunProperties47.Append(complexScriptFont32); level2ParagraphProperties5.Append(defaultRunProperties47); A.Level3ParagraphProperties level3ParagraphProperties5 = new A.Level3ParagraphProperties(){ LeftMargin = 914400, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties48 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill49 = new A.SolidFill(); A.SchemeColor schemeColor61 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill49.Append(schemeColor61); A.LatinFont latinFont33 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont33 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont33 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties48.Append(solidFill49); defaultRunProperties48.Append(latinFont33); defaultRunProperties48.Append(eastAsianFont33); defaultRunProperties48.Append(complexScriptFont33); level3ParagraphProperties5.Append(defaultRunProperties48); A.Level4ParagraphProperties level4ParagraphProperties5 = new A.Level4ParagraphProperties(){ LeftMargin = 1371600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties49 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill50 = new A.SolidFill(); A.SchemeColor schemeColor62 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill50.Append(schemeColor62); A.LatinFont latinFont34 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont34 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont34 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties49.Append(solidFill50); defaultRunProperties49.Append(latinFont34); defaultRunProperties49.Append(eastAsianFont34); defaultRunProperties49.Append(complexScriptFont34); level4ParagraphProperties5.Append(defaultRunProperties49); A.Level5ParagraphProperties level5ParagraphProperties5 = new A.Level5ParagraphProperties(){ LeftMargin = 1828800, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties50 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill51 = new A.SolidFill(); A.SchemeColor schemeColor63 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill51.Append(schemeColor63); A.LatinFont latinFont35 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont35 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont35 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties50.Append(solidFill51); defaultRunProperties50.Append(latinFont35); defaultRunProperties50.Append(eastAsianFont35); defaultRunProperties50.Append(complexScriptFont35); level5ParagraphProperties5.Append(defaultRunProperties50); A.Level6ParagraphProperties level6ParagraphProperties5 = new A.Level6ParagraphProperties(){ LeftMargin = 2286000, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties51 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill52 = new A.SolidFill(); A.SchemeColor schemeColor64 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill52.Append(schemeColor64); A.LatinFont latinFont36 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont36 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont36 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties51.Append(solidFill52); defaultRunProperties51.Append(latinFont36); defaultRunProperties51.Append(eastAsianFont36); defaultRunProperties51.Append(complexScriptFont36); level6ParagraphProperties5.Append(defaultRunProperties51); A.Level7ParagraphProperties level7ParagraphProperties5 = new A.Level7ParagraphProperties(){ LeftMargin = 2743200, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties52 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill53 = new A.SolidFill(); A.SchemeColor schemeColor65 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill53.Append(schemeColor65); A.LatinFont latinFont37 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont37 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont37 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties52.Append(solidFill53); defaultRunProperties52.Append(latinFont37); defaultRunProperties52.Append(eastAsianFont37); defaultRunProperties52.Append(complexScriptFont37); level7ParagraphProperties5.Append(defaultRunProperties52); A.Level8ParagraphProperties level8ParagraphProperties5 = new A.Level8ParagraphProperties(){ LeftMargin = 3200400, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties53 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill54 = new A.SolidFill(); A.SchemeColor schemeColor66 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill54.Append(schemeColor66); A.LatinFont latinFont38 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont38 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont38 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties53.Append(solidFill54); defaultRunProperties53.Append(latinFont38); defaultRunProperties53.Append(eastAsianFont38); defaultRunProperties53.Append(complexScriptFont38); level8ParagraphProperties5.Append(defaultRunProperties53); A.Level9ParagraphProperties level9ParagraphProperties5 = new A.Level9ParagraphProperties(){ LeftMargin = 3657600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties54 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill55 = new A.SolidFill(); A.SchemeColor schemeColor67 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill55.Append(schemeColor67); A.LatinFont latinFont39 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont39 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont39 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties54.Append(solidFill55); defaultRunProperties54.Append(latinFont39); defaultRunProperties54.Append(eastAsianFont39); defaultRunProperties54.Append(complexScriptFont39); level9ParagraphProperties5.Append(defaultRunProperties54); otherStyle1.Append(defaultParagraphProperties2); otherStyle1.Append(level1ParagraphProperties12); otherStyle1.Append(level2ParagraphProperties5); otherStyle1.Append(level3ParagraphProperties5); otherStyle1.Append(level4ParagraphProperties5); otherStyle1.Append(level5ParagraphProperties5); otherStyle1.Append(level6ParagraphProperties5); otherStyle1.Append(level7ParagraphProperties5); otherStyle1.Append(level8ParagraphProperties5); otherStyle1.Append(level9ParagraphProperties5); textStyles1.Append(titleStyle1); textStyles1.Append(bodyStyle1); textStyles1.Append(otherStyle1); slideMaster1.Append(commonSlideData4); slideMaster1.Append(colorMap2); slideMaster1.Append(slideLayoutIdList1); slideMaster1.Append(textStyles1); slideMasterPart1.SlideMaster = slideMaster1; }
/// <summary> /// Start the parse processing. /// </summary> /// <returns>Returns a list of parsed paragraph.</returns> public IList<OpenXmlCompositeElement> Parse(String html) { if (String.IsNullOrEmpty(html)) return new Paragraph[0]; // Reset: elements = new List<OpenXmlElement>(); paragraphs = new List<OpenXmlCompositeElement>(); tables = new TableContext(); htmlStyles.Runs.Reset(); currentParagraph = null; // Start a new processing paragraphs.Add(currentParagraph = htmlStyles.Paragraph.NewParagraph()); if (htmlStyles.DefaultParagraphStyle != null) { currentParagraph.Append(new ParagraphProperties( new ParagraphStyleId { Val = htmlStyles.DefaultParagraphStyle } )); } HtmlEnumerator en = new HtmlEnumerator(html); ProcessHtmlChunks(en, null); if (elements.Count > 0) this.currentParagraph.Append(elements); // As the Parse method is public, to avoid changing the type of the return value, I use this proxy // that will allow me to call the recursive method RemoveEmptyParagraphs with no major changes, impacting the client. RemoveEmptyParagraphs(); return paragraphs; }
public bool ContainsParam(Paragraph paragraph, ref PowerPointParameter dataParam) { foreach (var param in PowerPointTokenReplacements) { if (!string.IsNullOrEmpty(param.Name) && paragraph.InnerText.ToLower().Contains(param.Name.ToLower())) { dataParam = param; return true; } } return false; }
// Generates content of slideLayoutPart9. private void GenerateSlideLayoutPart9Content(SlideLayoutPart slideLayoutPart9) { SlideLayout slideLayout9 = new SlideLayout(){ Type = SlideLayoutValues.VerticalText, Preserve = true }; slideLayout9.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); slideLayout9.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); slideLayout9.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData12 = new CommonSlideData(){ Name = "Title and Vertical Text" }; ShapeTree shapeTree12 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties12 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties64 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties12 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties64 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties12.Append(nonVisualDrawingProperties64); nonVisualGroupShapeProperties12.Append(nonVisualGroupShapeDrawingProperties12); nonVisualGroupShapeProperties12.Append(applicationNonVisualDrawingProperties64); GroupShapeProperties groupShapeProperties12 = new GroupShapeProperties(); A.TransformGroup transformGroup12 = new A.TransformGroup(); A.Offset offset37 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents37 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset12 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents12 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup12.Append(offset37); transformGroup12.Append(extents37); transformGroup12.Append(childOffset12); transformGroup12.Append(childExtents12); groupShapeProperties12.Append(transformGroup12); Shape shape53 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties53 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties65 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Title 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties53 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks52 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties53.Append(shapeLocks52); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties65 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape52 = new PlaceholderShape(){ Type = PlaceholderValues.Title }; applicationNonVisualDrawingProperties65.Append(placeholderShape52); nonVisualShapeProperties53.Append(nonVisualDrawingProperties65); nonVisualShapeProperties53.Append(nonVisualShapeDrawingProperties53); nonVisualShapeProperties53.Append(applicationNonVisualDrawingProperties65); ShapeProperties shapeProperties53 = new ShapeProperties(); TextBody textBody53 = new TextBody(); A.BodyProperties bodyProperties53 = new A.BodyProperties(); A.ListStyle listStyle53 = new A.ListStyle(); A.Paragraph paragraph90 = new A.Paragraph(); A.Run run60 = new A.Run(); A.RunProperties runProperties79 = new A.RunProperties(){ Language = "en-US" }; runProperties79.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text79 = new A.Text(); text79.Text = "Click to edit Master title style"; run60.Append(runProperties79); run60.Append(text79); A.EndParagraphRunProperties endParagraphRunProperties50 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph90.Append(run60); paragraph90.Append(endParagraphRunProperties50); textBody53.Append(bodyProperties53); textBody53.Append(listStyle53); textBody53.Append(paragraph90); shape53.Append(nonVisualShapeProperties53); shape53.Append(shapeProperties53); shape53.Append(textBody53); Shape shape54 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties54 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties66 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Vertical Text Placeholder 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties54 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks53 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties54.Append(shapeLocks53); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties66 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape53 = new PlaceholderShape(){ Type = PlaceholderValues.Body, Orientation = DirectionValues.Vertical, Index = (UInt32Value)1U }; applicationNonVisualDrawingProperties66.Append(placeholderShape53); nonVisualShapeProperties54.Append(nonVisualDrawingProperties66); nonVisualShapeProperties54.Append(nonVisualShapeDrawingProperties54); nonVisualShapeProperties54.Append(applicationNonVisualDrawingProperties66); ShapeProperties shapeProperties54 = new ShapeProperties(); TextBody textBody54 = new TextBody(); A.BodyProperties bodyProperties54 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.EastAsianVetical }; A.ListStyle listStyle54 = new A.ListStyle(); A.Paragraph paragraph91 = new A.Paragraph(); A.ParagraphProperties paragraphProperties48 = new A.ParagraphProperties(){ Level = 0 }; A.Run run61 = new A.Run(); A.RunProperties runProperties80 = new A.RunProperties(){ Language = "en-US" }; runProperties80.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text80 = new A.Text(); text80.Text = "Click to edit Master text styles"; run61.Append(runProperties80); run61.Append(text80); paragraph91.Append(paragraphProperties48); paragraph91.Append(run61); A.Paragraph paragraph92 = new A.Paragraph(); A.ParagraphProperties paragraphProperties49 = new A.ParagraphProperties(){ Level = 1 }; A.Run run62 = new A.Run(); A.RunProperties runProperties81 = new A.RunProperties(){ Language = "en-US" }; runProperties81.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text81 = new A.Text(); text81.Text = "Second level"; run62.Append(runProperties81); run62.Append(text81); paragraph92.Append(paragraphProperties49); paragraph92.Append(run62); A.Paragraph paragraph93 = new A.Paragraph(); A.ParagraphProperties paragraphProperties50 = new A.ParagraphProperties(){ Level = 2 }; A.Run run63 = new A.Run(); A.RunProperties runProperties82 = new A.RunProperties(){ Language = "en-US" }; runProperties82.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text82 = new A.Text(); text82.Text = "Third level"; run63.Append(runProperties82); run63.Append(text82); paragraph93.Append(paragraphProperties50); paragraph93.Append(run63); A.Paragraph paragraph94 = new A.Paragraph(); A.ParagraphProperties paragraphProperties51 = new A.ParagraphProperties(){ Level = 3 }; A.Run run64 = new A.Run(); A.RunProperties runProperties83 = new A.RunProperties(){ Language = "en-US" }; runProperties83.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text83 = new A.Text(); text83.Text = "Fourth level"; run64.Append(runProperties83); run64.Append(text83); paragraph94.Append(paragraphProperties51); paragraph94.Append(run64); A.Paragraph paragraph95 = new A.Paragraph(); A.ParagraphProperties paragraphProperties52 = new A.ParagraphProperties(){ Level = 4 }; A.Run run65 = new A.Run(); A.RunProperties runProperties84 = new A.RunProperties(){ Language = "en-US" }; runProperties84.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text84 = new A.Text(); text84.Text = "Fifth level"; run65.Append(runProperties84); run65.Append(text84); A.EndParagraphRunProperties endParagraphRunProperties51 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph95.Append(paragraphProperties52); paragraph95.Append(run65); paragraph95.Append(endParagraphRunProperties51); textBody54.Append(bodyProperties54); textBody54.Append(listStyle54); textBody54.Append(paragraph91); textBody54.Append(paragraph92); textBody54.Append(paragraph93); textBody54.Append(paragraph94); textBody54.Append(paragraph95); shape54.Append(nonVisualShapeProperties54); shape54.Append(shapeProperties54); shape54.Append(textBody54); Shape shape55 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties55 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties67 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Date Placeholder 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties55 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks54 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties55.Append(shapeLocks54); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties67 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape54 = new PlaceholderShape(){ Type = PlaceholderValues.DateAndTime, Size = PlaceholderSizeValues.Half, Index = (UInt32Value)10U }; applicationNonVisualDrawingProperties67.Append(placeholderShape54); nonVisualShapeProperties55.Append(nonVisualDrawingProperties67); nonVisualShapeProperties55.Append(nonVisualShapeDrawingProperties55); nonVisualShapeProperties55.Append(applicationNonVisualDrawingProperties67); ShapeProperties shapeProperties55 = new ShapeProperties(); TextBody textBody55 = new TextBody(); A.BodyProperties bodyProperties55 = new A.BodyProperties(); A.ListStyle listStyle55 = new A.ListStyle(); A.Paragraph paragraph96 = new A.Paragraph(); A.Field field20 = new A.Field(){ Id = "{1A15D4F1-1D33-4170-8C9F-182CDE6BA6D1}", Type = "datetimeFigureOut" }; A.RunProperties runProperties85 = new A.RunProperties(){ Language = "en-US" }; runProperties85.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text85 = new A.Text(); text85.Text = "10/3/2012"; field20.Append(runProperties85); field20.Append(text85); A.EndParagraphRunProperties endParagraphRunProperties52 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph96.Append(field20); paragraph96.Append(endParagraphRunProperties52); textBody55.Append(bodyProperties55); textBody55.Append(listStyle55); textBody55.Append(paragraph96); shape55.Append(nonVisualShapeProperties55); shape55.Append(shapeProperties55); shape55.Append(textBody55); Shape shape56 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties56 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties68 = new NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "Footer Placeholder 4" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties56 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks55 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties56.Append(shapeLocks55); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties68 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape55 = new PlaceholderShape(){ Type = PlaceholderValues.Footer, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)11U }; applicationNonVisualDrawingProperties68.Append(placeholderShape55); nonVisualShapeProperties56.Append(nonVisualDrawingProperties68); nonVisualShapeProperties56.Append(nonVisualShapeDrawingProperties56); nonVisualShapeProperties56.Append(applicationNonVisualDrawingProperties68); ShapeProperties shapeProperties56 = new ShapeProperties(); TextBody textBody56 = new TextBody(); A.BodyProperties bodyProperties56 = new A.BodyProperties(); A.ListStyle listStyle56 = new A.ListStyle(); A.Paragraph paragraph97 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties53 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph97.Append(endParagraphRunProperties53); textBody56.Append(bodyProperties56); textBody56.Append(listStyle56); textBody56.Append(paragraph97); shape56.Append(nonVisualShapeProperties56); shape56.Append(shapeProperties56); shape56.Append(textBody56); Shape shape57 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties57 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties69 = new NonVisualDrawingProperties(){ Id = (UInt32Value)6U, Name = "Slide Number Placeholder 5" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties57 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks56 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties57.Append(shapeLocks56); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties69 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape56 = new PlaceholderShape(){ Type = PlaceholderValues.SlideNumber, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)12U }; applicationNonVisualDrawingProperties69.Append(placeholderShape56); nonVisualShapeProperties57.Append(nonVisualDrawingProperties69); nonVisualShapeProperties57.Append(nonVisualShapeDrawingProperties57); nonVisualShapeProperties57.Append(applicationNonVisualDrawingProperties69); ShapeProperties shapeProperties57 = new ShapeProperties(); TextBody textBody57 = new TextBody(); A.BodyProperties bodyProperties57 = new A.BodyProperties(); A.ListStyle listStyle57 = new A.ListStyle(); A.Paragraph paragraph98 = new A.Paragraph(); A.Field field21 = new A.Field(){ Id = "{9E0C3BFA-D4DA-4895-A0F6-B80859694A8D}", Type = "slidenum" }; A.RunProperties runProperties86 = new A.RunProperties(){ Language = "en-US" }; runProperties86.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text86 = new A.Text(); text86.Text = "‹#›"; field21.Append(runProperties86); field21.Append(text86); A.EndParagraphRunProperties endParagraphRunProperties54 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph98.Append(field21); paragraph98.Append(endParagraphRunProperties54); textBody57.Append(bodyProperties57); textBody57.Append(listStyle57); textBody57.Append(paragraph98); shape57.Append(nonVisualShapeProperties57); shape57.Append(shapeProperties57); shape57.Append(textBody57); shapeTree12.Append(nonVisualGroupShapeProperties12); shapeTree12.Append(groupShapeProperties12); shapeTree12.Append(shape53); shapeTree12.Append(shape54); shapeTree12.Append(shape55); shapeTree12.Append(shape56); shapeTree12.Append(shape57); commonSlideData12.Append(shapeTree12); ColorMapOverride colorMapOverride10 = new ColorMapOverride(); A.MasterColorMapping masterColorMapping10 = new A.MasterColorMapping(); colorMapOverride10.Append(masterColorMapping10); slideLayout9.Append(commonSlideData12); slideLayout9.Append(colorMapOverride10); slideLayoutPart9.SlideLayout = slideLayout9; }
// Generates content of slideLayoutPart4. private void GenerateSlideLayoutPart4Content(SlideLayoutPart slideLayoutPart4) { SlideLayout slideLayout4 = new SlideLayout(){ Type = SlideLayoutValues.Blank, Preserve = true }; slideLayout4.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); slideLayout4.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); slideLayout4.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData7 = new CommonSlideData(){ Name = "Blank" }; ShapeTree shapeTree7 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties7 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties34 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties7 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties34 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties7.Append(nonVisualDrawingProperties34); nonVisualGroupShapeProperties7.Append(nonVisualGroupShapeDrawingProperties7); nonVisualGroupShapeProperties7.Append(applicationNonVisualDrawingProperties34); GroupShapeProperties groupShapeProperties7 = new GroupShapeProperties(); A.TransformGroup transformGroup7 = new A.TransformGroup(); A.Offset offset25 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents25 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset7 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents7 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup7.Append(offset25); transformGroup7.Append(extents25); transformGroup7.Append(childOffset7); transformGroup7.Append(childExtents7); groupShapeProperties7.Append(transformGroup7); Shape shape28 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties28 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties35 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Date Placeholder 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties28 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks27 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties28.Append(shapeLocks27); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties35 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape27 = new PlaceholderShape(){ Type = PlaceholderValues.DateAndTime, Size = PlaceholderSizeValues.Half, Index = (UInt32Value)10U }; applicationNonVisualDrawingProperties35.Append(placeholderShape27); nonVisualShapeProperties28.Append(nonVisualDrawingProperties35); nonVisualShapeProperties28.Append(nonVisualShapeDrawingProperties28); nonVisualShapeProperties28.Append(applicationNonVisualDrawingProperties35); ShapeProperties shapeProperties28 = new ShapeProperties(); TextBody textBody28 = new TextBody(); A.BodyProperties bodyProperties28 = new A.BodyProperties(); A.ListStyle listStyle28 = new A.ListStyle(); A.Paragraph paragraph49 = new A.Paragraph(); A.Field field10 = new A.Field(){ Id = "{1A15D4F1-1D33-4170-8C9F-182CDE6BA6D1}", Type = "datetimeFigureOut" }; A.RunProperties runProperties43 = new A.RunProperties(){ Language = "en-US" }; runProperties43.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text43 = new A.Text(); text43.Text = "10/3/2012"; field10.Append(runProperties43); field10.Append(text43); A.EndParagraphRunProperties endParagraphRunProperties27 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph49.Append(field10); paragraph49.Append(endParagraphRunProperties27); textBody28.Append(bodyProperties28); textBody28.Append(listStyle28); textBody28.Append(paragraph49); shape28.Append(nonVisualShapeProperties28); shape28.Append(shapeProperties28); shape28.Append(textBody28); Shape shape29 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties29 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties36 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Footer Placeholder 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties29 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks28 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties29.Append(shapeLocks28); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties36 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape28 = new PlaceholderShape(){ Type = PlaceholderValues.Footer, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)11U }; applicationNonVisualDrawingProperties36.Append(placeholderShape28); nonVisualShapeProperties29.Append(nonVisualDrawingProperties36); nonVisualShapeProperties29.Append(nonVisualShapeDrawingProperties29); nonVisualShapeProperties29.Append(applicationNonVisualDrawingProperties36); ShapeProperties shapeProperties29 = new ShapeProperties(); TextBody textBody29 = new TextBody(); A.BodyProperties bodyProperties29 = new A.BodyProperties(); A.ListStyle listStyle29 = new A.ListStyle(); A.Paragraph paragraph50 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties28 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph50.Append(endParagraphRunProperties28); textBody29.Append(bodyProperties29); textBody29.Append(listStyle29); textBody29.Append(paragraph50); shape29.Append(nonVisualShapeProperties29); shape29.Append(shapeProperties29); shape29.Append(textBody29); Shape shape30 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties30 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties37 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Slide Number Placeholder 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties30 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks29 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties30.Append(shapeLocks29); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties37 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape29 = new PlaceholderShape(){ Type = PlaceholderValues.SlideNumber, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)12U }; applicationNonVisualDrawingProperties37.Append(placeholderShape29); nonVisualShapeProperties30.Append(nonVisualDrawingProperties37); nonVisualShapeProperties30.Append(nonVisualShapeDrawingProperties30); nonVisualShapeProperties30.Append(applicationNonVisualDrawingProperties37); ShapeProperties shapeProperties30 = new ShapeProperties(); TextBody textBody30 = new TextBody(); A.BodyProperties bodyProperties30 = new A.BodyProperties(); A.ListStyle listStyle30 = new A.ListStyle(); A.Paragraph paragraph51 = new A.Paragraph(); A.Field field11 = new A.Field(){ Id = "{9E0C3BFA-D4DA-4895-A0F6-B80859694A8D}", Type = "slidenum" }; A.RunProperties runProperties44 = new A.RunProperties(){ Language = "en-US" }; runProperties44.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text44 = new A.Text(); text44.Text = "‹#›"; field11.Append(runProperties44); field11.Append(text44); A.EndParagraphRunProperties endParagraphRunProperties29 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph51.Append(field11); paragraph51.Append(endParagraphRunProperties29); textBody30.Append(bodyProperties30); textBody30.Append(listStyle30); textBody30.Append(paragraph51); shape30.Append(nonVisualShapeProperties30); shape30.Append(shapeProperties30); shape30.Append(textBody30); shapeTree7.Append(nonVisualGroupShapeProperties7); shapeTree7.Append(groupShapeProperties7); shapeTree7.Append(shape28); shapeTree7.Append(shape29); shapeTree7.Append(shape30); commonSlideData7.Append(shapeTree7); ColorMapOverride colorMapOverride5 = new ColorMapOverride(); A.MasterColorMapping masterColorMapping5 = new A.MasterColorMapping(); colorMapOverride5.Append(masterColorMapping5); slideLayout4.Append(commonSlideData7); slideLayout4.Append(colorMapOverride5); slideLayoutPart4.SlideLayout = slideLayout4; }
void ReplaceText(Paragraph paragraph) { var parent = paragraph.Parent; //get parent element - to be used when removing placeholder var dataParam = new PowerPointParameter(); if (ContainsParam(paragraph, ref dataParam)) //check if paragraph is on our parameter list { var param = CloneParaGraphWithStyles(paragraph, dataParam.Name, dataParam.Text); // create new param - preserve styles parent.InsertBefore(param, paragraph);//insert new element paragraph.Remove();//delete placeholder saveFile = true; } }
// Creates an Paragraph instance and adds its children. public TableRow GenerateTableRow(IndividualInfo ii, string iid) { TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00442AD3" }; TableRowProperties tableRowProperties1 = new TableRowProperties(); CantSplit cantSplit1 = new CantSplit(); tableRowProperties1.Append(cantSplit1); TableCell tableCell1 = new TableCell(); TableCellProperties tableCellProperties1 = new TableCellProperties(); TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "4788", Type = TableWidthUnitValues.Dxa }; tableCellProperties1.Append(tableCellWidth1); Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" }; Run run1 = new Run(); Break break1 = new Break(); run1.Append(break1); Run run2 = new Run(); RunProperties runProperties1 = new RunProperties(); NoProof noProof1 = new NoProof(); runProperties1.Append(noProof1); Text text1 = new Text(); text1.Text = ii.FirstName; run2.Append(runProperties1); run2.Append(text1); Run run3 = new Run(); Text text2 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text2.Text = " "; run3.Append(text2); Run run4 = new Run(); RunProperties runProperties2 = new RunProperties(); NoProof noProof2 = new NoProof(); runProperties2.Append(noProof2); Text text3 = new Text(); text3.Text = ii.LastName; run4.Append(runProperties2); run4.Append(text3); paragraph1.Append(run1); paragraph1.Append(run2); paragraph1.Append(run3); paragraph1.Append(run4); Paragraph paragraph2 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00731A43", RsidRunAdditionDefault = "00FB1F22" }; Run run5 = new Run(); RunProperties runProperties3 = new RunProperties(); NoProof noProof3 = new NoProof(); runProperties3.Append(noProof3); Text text4 = new Text(); text4.Text = ii.Address; run5.Append(runProperties3); run5.Append(text4); paragraph2.Append(run5); Paragraph paragraph2a = null; if (ii.Address2.HasValue()) { paragraph2a = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00731A43", RsidRunAdditionDefault = "00FB1F22" }; Run r = new Run(); RunProperties rp = new RunProperties(); NoProof np = new NoProof(); rp.Append(np); Text tt = new Text(); tt.Text = ii.Address; r.Append(rp); r.Append(tt); paragraph2a.Append(r); } Paragraph paragraph3 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00731A43", RsidRunAdditionDefault = "00FB1F22" }; Run run6 = new Run(); RunProperties runProperties4 = new RunProperties(); NoProof noProof4 = new NoProof(); runProperties4.Append(noProof4); Text text5 = new Text(); text5.Text = ii.CityStateZip; run6.Append(runProperties4); run6.Append(text5); paragraph3.Append(run6); Paragraph paragraph4 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" }; Table table1 = new Table(); TableProperties tableProperties1 = new TableProperties(); TableStyle tableStyle1 = new TableStyle() { Val = "TableGrid" }; TableWidth tableWidth1 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto }; TableBorders tableBorders1 = new TableBorders(); TopBorder topBorder1 = new TopBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; tableBorders1.Append(topBorder1); tableBorders1.Append(leftBorder1); tableBorders1.Append(bottomBorder1); tableBorders1.Append(rightBorder1); tableBorders1.Append(insideHorizontalBorder1); tableBorders1.Append(insideVerticalBorder1); TableLook tableLook1 = new TableLook() { Val = "04A0", FirstRow = true, LastRow = false, FirstColumn = true, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = true }; tableProperties1.Append(tableStyle1); tableProperties1.Append(tableWidth1); tableProperties1.Append(tableBorders1); tableProperties1.Append(tableLook1); TableGrid tableGrid1 = new TableGrid(); GridColumn gridColumn1 = new GridColumn() { Width = "1435" }; GridColumn gridColumn2 = new GridColumn() { Width = "3122" }; tableGrid1.Append(gridColumn1); tableGrid1.Append(gridColumn2); TableRow tableRow2 = new TableRow() { RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43" }; TableCell tableCell2 = new TableCell(); TableCellProperties tableCellProperties2 = new TableCellProperties(); TableCellWidth tableCellWidth2 = new TableCellWidth() { Width = "1435", Type = TableWidthUnitValues.Dxa }; tableCellProperties2.Append(tableCellWidth2); Paragraph paragraph5 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" }; Run run11 = new Run(); Text text10 = new Text(); text10.Text = "Email"; run11.Append(text10); paragraph5.Append(run11); tableCell2.Append(tableCellProperties2); tableCell2.Append(paragraph5); TableCell tableCell3 = new TableCell(); TableCellProperties tableCellProperties3 = new TableCellProperties(); TableCellWidth tableCellWidth3 = new TableCellWidth() { Width = "3122", Type = TableWidthUnitValues.Dxa }; tableCellProperties3.Append(tableCellWidth3); Paragraph paragraph6 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00485B24", RsidRunAdditionDefault = "00FB1F22" }; paragraph6.Append(new Run(new Text(ii.Email))); tableCell3.Append(tableCellProperties3); tableCell3.Append(paragraph6); tableRow2.Append(tableCell2); tableRow2.Append(tableCell3); TableRow tableRow3 = new TableRow() { RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43" }; TableCell tableCell4 = new TableCell(); TableCellProperties tableCellProperties4 = new TableCellProperties(); TableCellWidth tableCellWidth4 = new TableCellWidth() { Width = "1435", Type = TableWidthUnitValues.Dxa }; tableCellProperties4.Append(tableCellWidth4); Paragraph paragraph7 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" }; Run run12 = new Run(); Text text11 = new Text(); text11.Text = "Home Phone"; run12.Append(text11); paragraph7.Append(run12); tableCell4.Append(tableCellProperties4); tableCell4.Append(paragraph7); TableCell tableCell5 = new TableCell(); TableCellProperties tableCellProperties5 = new TableCellProperties(); TableCellWidth tableCellWidth5 = new TableCellWidth() { Width = "3122", Type = TableWidthUnitValues.Dxa }; tableCellProperties5.Append(tableCellWidth5); Paragraph paragraph8 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00485B24", RsidRunAdditionDefault = "00FB1F22" }; Run run13 = new Run(); RunProperties runProperties7 = new RunProperties(); NoProof noProof7 = new NoProof(); runProperties7.Append(noProof7); Text text12 = new Text(); text12.Text = ii.HomePhone.FmtFone(); run13.Append(runProperties7); run13.Append(text12); Run run14 = new Run(); Text text13 = new Text() { Space = SpaceProcessingModeValues.Preserve }; text13.Text = " "; run14.Append(text13); paragraph8.Append(run13); paragraph8.Append(run14); tableCell5.Append(tableCellProperties5); tableCell5.Append(paragraph8); tableRow3.Append(tableCell4); tableRow3.Append(tableCell5); TableRow tableRow4 = new TableRow() { RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43" }; TableCell tableCell6 = new TableCell(); TableCellProperties tableCellProperties6 = new TableCellProperties(); TableCellWidth tableCellWidth6 = new TableCellWidth() { Width = "1435", Type = TableWidthUnitValues.Dxa }; tableCellProperties6.Append(tableCellWidth6); Paragraph paragraph9 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" }; Run run15 = new Run(); Text text14 = new Text(); text14.Text = "Cell Phone"; run15.Append(text14); paragraph9.Append(run15); tableCell6.Append(tableCellProperties6); tableCell6.Append(paragraph9); TableCell tableCell7 = new TableCell(); TableCellProperties tableCellProperties7 = new TableCellProperties(); TableCellWidth tableCellWidth7 = new TableCellWidth() { Width = "3122", Type = TableWidthUnitValues.Dxa }; tableCellProperties7.Append(tableCellWidth7); Paragraph paragraph10 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" }; Run run16 = new Run(); RunProperties runProperties8 = new RunProperties(); NoProof noProof8 = new NoProof(); runProperties8.Append(noProof8); Text text15 = new Text(); text15.Text = ii.CellPhone.FmtFone(); run16.Append(runProperties8); run16.Append(text15); paragraph10.Append(run16); tableCell7.Append(tableCellProperties7); tableCell7.Append(paragraph10); tableRow4.Append(tableCell6); tableRow4.Append(tableCell7); TableRow tableRow5 = new TableRow() { RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43" }; TableCell tableCell8 = new TableCell(); TableCellProperties tableCellProperties8 = new TableCellProperties(); TableCellWidth tableCellWidth8 = new TableCellWidth() { Width = "1435", Type = TableWidthUnitValues.Dxa }; tableCellProperties8.Append(tableCellWidth8); Paragraph paragraph11 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" }; Run run17 = new Run(); Text text16 = new Text(); text16.Text = "Work Phone"; run17.Append(text16); paragraph11.Append(run17); tableCell8.Append(tableCellProperties8); tableCell8.Append(paragraph11); TableCell tableCell9 = new TableCell(); TableCellProperties tableCellProperties9 = new TableCellProperties(); TableCellWidth tableCellWidth9 = new TableCellWidth() { Width = "3122", Type = TableWidthUnitValues.Dxa }; tableCellProperties9.Append(tableCellWidth9); Paragraph paragraph12 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" }; Run run18 = new Run(); RunProperties runProperties9 = new RunProperties(); NoProof noProof9 = new NoProof(); runProperties9.Append(noProof9); Text text17 = new Text(); text17.Text = ii.WorkPhone.FmtFone(); run18.Append(runProperties9); run18.Append(text17); paragraph12.Append(run18); tableCell9.Append(tableCellProperties9); tableCell9.Append(paragraph12); tableRow5.Append(tableCell8); tableRow5.Append(tableCell9); TableRow tableRow6 = new TableRow() { RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43" }; TableCell tableCell10 = new TableCell(); TableCellProperties tableCellProperties10 = new TableCellProperties(); TableCellWidth tableCellWidth10 = new TableCellWidth() { Width = "1435", Type = TableWidthUnitValues.Dxa }; tableCellProperties10.Append(tableCellWidth10); Paragraph paragraph13 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" }; Run run19 = new Run(); Text text18 = new Text(); text18.Text = "Birthday"; run19.Append(text18); paragraph13.Append(run19); tableCell10.Append(tableCellProperties10); tableCell10.Append(paragraph13); TableCell tableCell11 = new TableCell(); TableCellProperties tableCellProperties11 = new TableCellProperties(); TableCellWidth tableCellWidth11 = new TableCellWidth() { Width = "3122", Type = TableWidthUnitValues.Dxa }; tableCellProperties11.Append(tableCellWidth11); Paragraph paragraph14 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00BC57A3", RsidRunAdditionDefault = "00FB1F22" }; Run run20 = new Run(); RunProperties runProperties10 = new RunProperties(); NoProof noProof10 = new NoProof(); runProperties10.Append(noProof10); Text text19 = new Text(); text19.Text = ii.BirthDay; run20.Append(runProperties10); run20.Append(text19); paragraph14.Append(run20); tableCell11.Append(tableCellProperties11); tableCell11.Append(paragraph14); tableRow6.Append(tableCell10); tableRow6.Append(tableCell11); TableRow tableRow7 = new TableRow() { RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43" }; TableCell tableCell12 = new TableCell(); TableCellProperties tableCellProperties12 = new TableCellProperties(); TableCellWidth tableCellWidth12 = new TableCellWidth() { Width = "1435", Type = TableWidthUnitValues.Dxa }; tableCellProperties12.Append(tableCellWidth12); Paragraph paragraph15 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "006D0F9D", RsidRunAdditionDefault = "00FB1F22" }; Run run21 = new Run(); Text text20 = new Text(); text20.Text = "Anniversary"; run21.Append(text20); paragraph15.Append(run21); tableCell12.Append(tableCellProperties12); tableCell12.Append(paragraph15); TableCell tableCell13 = new TableCell(); TableCellProperties tableCellProperties13 = new TableCellProperties(); TableCellWidth tableCellWidth13 = new TableCellWidth() { Width = "3122", Type = TableWidthUnitValues.Dxa }; tableCellProperties13.Append(tableCellWidth13); Paragraph paragraph16 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" }; paragraph16.Append(new Run(new Text(ii.Anniversary))); tableCell13.Append(tableCellProperties13); tableCell13.Append(paragraph16); tableRow7.Append(tableCell12); tableRow7.Append(tableCell13); TableRow tableRow8 = new TableRow() { RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43" }; TableCell tableCell14 = new TableCell(); TableCellProperties tableCellProperties14 = new TableCellProperties(); TableCellWidth tableCellWidth14 = new TableCellWidth() { Width = "1435", Type = TableWidthUnitValues.Dxa }; tableCellProperties14.Append(tableCellWidth14); Paragraph paragraph17 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" }; Run run22 = new Run(); Text text21 = new Text(); text21.Text = "Spouse"; run22.Append(text21); paragraph17.Append(run22); tableCell14.Append(tableCellProperties14); tableCell14.Append(paragraph17); TableCell tableCell15 = new TableCell(); TableCellProperties tableCellProperties15 = new TableCellProperties(); TableCellWidth tableCellWidth15 = new TableCellWidth() { Width = "3122", Type = TableWidthUnitValues.Dxa }; tableCellProperties15.Append(tableCellWidth15); Paragraph paragraph18 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" }; ParagraphProperties paragraphProperties1 = new ParagraphProperties(); ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties(); NoProof noProof11 = new NoProof(); paragraphMarkRunProperties1.Append(noProof11); paragraphProperties1.Append(paragraphMarkRunProperties1); Run run23 = new Run(); RunProperties runProperties11 = new RunProperties(); NoProof noProof12 = new NoProof(); runProperties11.Append(noProof12); Text text22 = new Text(); text22.Text = ii.Spouse; run23.Append(runProperties11); run23.Append(text22); paragraph18.Append(paragraphProperties1); paragraph18.Append(run23); tableCell15.Append(tableCellProperties15); tableCell15.Append(paragraph18); tableRow8.Append(tableCell14); tableRow8.Append(tableCell15); table1.Append(tableProperties1); table1.Append(tableGrid1); table1.Append(tableRow2); table1.Append(tableRow3); table1.Append(tableRow4); table1.Append(tableRow5); table1.Append(tableRow6); table1.Append(tableRow7); table1.Append(tableRow8); Paragraph paragraph19 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00485B24", RsidRunAdditionDefault = "00FB1F22" }; tableCell1.Append(tableCellProperties1); tableCell1.Append(paragraph1); tableCell1.Append(paragraph2); if (paragraph2a != null) tableCell1.Append(paragraph2a); tableCell1.Append(paragraph3); tableCell1.Append(paragraph4); tableCell1.Append(table1); tableCell1.Append(paragraph19); TableCell tableCell16 = new TableCell(); TableCellProperties tableCellProperties16 = new TableCellProperties(); TableCellWidth tableCellWidth16 = new TableCellWidth() { Width = "4788", Type = TableWidthUnitValues.Dxa }; TableCellVerticalAlignment tableCellVerticalAlignment1 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center }; tableCellProperties16.Append(tableCellWidth16); tableCellProperties16.Append(tableCellVerticalAlignment1); tableCell16.Append(tableCellProperties16); Paragraph paragraph20 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00960953", RsidRunAdditionDefault = "00FB1F22" }; ParagraphProperties paragraphProperties2 = new ParagraphProperties(); Justification justification1 = new Justification() { Val = JustificationValues.Center }; paragraphProperties2.Append(justification1); paragraph20.Append(paragraphProperties2); if (iid.HasValue()) { Run run24 = new Run(); RunProperties runProperties12 = new RunProperties(); NoProof noProof13 = new NoProof(); runProperties12.Append(noProof13); Drawing drawing1 = new Drawing(); Wp.Inline inline1 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U }; Wp.Extent extent1 = new Wp.Extent() { Cx = 1428750L, Cy = 1905000L }; Wp.EffectExtent effectExtent1 = new Wp.EffectExtent() { LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L }; Wp.DocProperties docProperties1 = new Wp.DocProperties() { Id = (UInt32Value)1U, Name = "Picture 1", Description = "D:\\Pictures\\ttt.jpg" }; Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties1 = new Wp.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks1 = new A.GraphicFrameLocks() { NoChangeAspect = true }; graphicFrameLocks1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); nonVisualGraphicFrameDrawingProperties1.Append(graphicFrameLocks1); A.Graphic graphic1 = new A.Graphic(); graphic1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); A.GraphicData graphicData1 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" }; Pic.Picture picture1 = new Pic.Picture(); picture1.AddNamespaceDeclaration("pic", "http://schemas.openxmlformats.org/drawingml/2006/picture"); Pic.NonVisualPictureProperties nonVisualPictureProperties1 = new Pic.NonVisualPictureProperties(); Pic.NonVisualDrawingProperties nonVisualDrawingProperties1 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "Picture 459", Description = "D:\\Pictures\\ttt.jpg" }; Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties1 = new Pic.NonVisualPictureDrawingProperties(); A.PictureLocks pictureLocks1 = new A.PictureLocks() { NoChangeAspect = false, NoChangeArrowheads = true }; nonVisualPictureDrawingProperties1.Append(pictureLocks1); nonVisualPictureProperties1.Append(nonVisualDrawingProperties1); nonVisualPictureProperties1.Append(nonVisualPictureDrawingProperties1); Pic.BlipFill blipFill1 = new Pic.BlipFill(); A.Blip blip1 = new A.Blip() { Embed = iid }; A.BlipExtensionList blipExtensionList1 = new A.BlipExtensionList(); A.BlipExtension blipExtension1 = new A.BlipExtension() { Uri = "{28A0092B-C50C-407E-A947-70E740481C1C}" }; A14.UseLocalDpi useLocalDpi1 = new A14.UseLocalDpi() { Val = false }; useLocalDpi1.AddNamespaceDeclaration("a14", "http://schemas.microsoft.com/office/drawing/2010/main"); blipExtension1.Append(useLocalDpi1); blipExtensionList1.Append(blipExtension1); blip1.Append(blipExtensionList1); A.SourceRectangle sourceRectangle1 = new A.SourceRectangle(); A.Stretch stretch1 = new A.Stretch(); A.FillRectangle fillRectangle1 = new A.FillRectangle(); stretch1.Append(fillRectangle1); blipFill1.Append(blip1); blipFill1.Append(sourceRectangle1); blipFill1.Append(stretch1); Pic.ShapeProperties shapeProperties1 = new Pic.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto }; A.Transform2D transform2D1 = new A.Transform2D(); A.Offset offset1 = new A.Offset() { X = 0L, Y = 0L }; A.Extents extents1 = new A.Extents() { Cx = 1428750L, Cy = 1905000L }; transform2D1.Append(offset1); transform2D1.Append(extents1); A.PresetGeometry presetGeometry1 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList1 = new A.AdjustValueList(); presetGeometry1.Append(adjustValueList1); A.NoFill noFill1 = new A.NoFill(); A.Outline outline1 = new A.Outline(); A.NoFill noFill2 = new A.NoFill(); outline1.Append(noFill2); shapeProperties1.Append(transform2D1); shapeProperties1.Append(presetGeometry1); shapeProperties1.Append(noFill1); shapeProperties1.Append(outline1); picture1.Append(nonVisualPictureProperties1); picture1.Append(blipFill1); picture1.Append(shapeProperties1); graphicData1.Append(picture1); graphic1.Append(graphicData1); inline1.Append(extent1); inline1.Append(effectExtent1); inline1.Append(docProperties1); inline1.Append(nonVisualGraphicFrameDrawingProperties1); inline1.Append(graphic1); drawing1.Append(inline1); run24.Append(runProperties12); run24.Append(drawing1); paragraph20.Append(run24); } tableCell16.Append(paragraph20); BookmarkStart bookmarkStart1 = new BookmarkStart() { Name = "_GoBack", Id = "0" }; BookmarkEnd bookmarkEnd1 = new BookmarkEnd() { Id = "0" }; tableRow1.Append(tableRowProperties1); tableRow1.Append(tableCell1); tableRow1.Append(tableCell16); tableRow1.Append(bookmarkStart1); tableRow1.Append(bookmarkEnd1); return tableRow1; }
// Generates content of slideLayoutPart5. private void GenerateSlideLayoutPart5Content(SlideLayoutPart slideLayoutPart5) { SlideLayout slideLayout5 = new SlideLayout(){ Type = SlideLayoutValues.Object, Preserve = true }; slideLayout5.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); slideLayout5.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); slideLayout5.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData8 = new CommonSlideData(){ Name = "Title and Content" }; ShapeTree shapeTree8 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties8 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties38 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties8 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties38 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties8.Append(nonVisualDrawingProperties38); nonVisualGroupShapeProperties8.Append(nonVisualGroupShapeDrawingProperties8); nonVisualGroupShapeProperties8.Append(applicationNonVisualDrawingProperties38); GroupShapeProperties groupShapeProperties8 = new GroupShapeProperties(); A.TransformGroup transformGroup8 = new A.TransformGroup(); A.Offset offset26 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents26 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset8 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents8 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup8.Append(offset26); transformGroup8.Append(extents26); transformGroup8.Append(childOffset8); transformGroup8.Append(childExtents8); groupShapeProperties8.Append(transformGroup8); Shape shape31 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties31 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties39 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Title 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties31 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks30 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties31.Append(shapeLocks30); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties39 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape30 = new PlaceholderShape(){ Type = PlaceholderValues.Title }; applicationNonVisualDrawingProperties39.Append(placeholderShape30); nonVisualShapeProperties31.Append(nonVisualDrawingProperties39); nonVisualShapeProperties31.Append(nonVisualShapeDrawingProperties31); nonVisualShapeProperties31.Append(applicationNonVisualDrawingProperties39); ShapeProperties shapeProperties31 = new ShapeProperties(); TextBody textBody31 = new TextBody(); A.BodyProperties bodyProperties31 = new A.BodyProperties(); A.ListStyle listStyle31 = new A.ListStyle(); A.Paragraph paragraph52 = new A.Paragraph(); A.Run run34 = new A.Run(); A.RunProperties runProperties45 = new A.RunProperties(){ Language = "en-US" }; runProperties45.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text45 = new A.Text(); text45.Text = "Click to edit Master title style"; run34.Append(runProperties45); run34.Append(text45); A.EndParagraphRunProperties endParagraphRunProperties30 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph52.Append(run34); paragraph52.Append(endParagraphRunProperties30); textBody31.Append(bodyProperties31); textBody31.Append(listStyle31); textBody31.Append(paragraph52); shape31.Append(nonVisualShapeProperties31); shape31.Append(shapeProperties31); shape31.Append(textBody31); Shape shape32 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties32 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties40 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Content Placeholder 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties32 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks31 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties32.Append(shapeLocks31); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties40 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape31 = new PlaceholderShape(){ Index = (UInt32Value)1U }; applicationNonVisualDrawingProperties40.Append(placeholderShape31); nonVisualShapeProperties32.Append(nonVisualDrawingProperties40); nonVisualShapeProperties32.Append(nonVisualShapeDrawingProperties32); nonVisualShapeProperties32.Append(applicationNonVisualDrawingProperties40); ShapeProperties shapeProperties32 = new ShapeProperties(); TextBody textBody32 = new TextBody(); A.BodyProperties bodyProperties32 = new A.BodyProperties(); A.ListStyle listStyle32 = new A.ListStyle(); A.Paragraph paragraph53 = new A.Paragraph(); A.ParagraphProperties paragraphProperties26 = new A.ParagraphProperties(){ Level = 0 }; A.Run run35 = new A.Run(); A.RunProperties runProperties46 = new A.RunProperties(){ Language = "en-US" }; runProperties46.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text46 = new A.Text(); text46.Text = "Click to edit Master text styles"; run35.Append(runProperties46); run35.Append(text46); paragraph53.Append(paragraphProperties26); paragraph53.Append(run35); A.Paragraph paragraph54 = new A.Paragraph(); A.ParagraphProperties paragraphProperties27 = new A.ParagraphProperties(){ Level = 1 }; A.Run run36 = new A.Run(); A.RunProperties runProperties47 = new A.RunProperties(){ Language = "en-US" }; runProperties47.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text47 = new A.Text(); text47.Text = "Second level"; run36.Append(runProperties47); run36.Append(text47); paragraph54.Append(paragraphProperties27); paragraph54.Append(run36); A.Paragraph paragraph55 = new A.Paragraph(); A.ParagraphProperties paragraphProperties28 = new A.ParagraphProperties(){ Level = 2 }; A.Run run37 = new A.Run(); A.RunProperties runProperties48 = new A.RunProperties(){ Language = "en-US" }; runProperties48.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text48 = new A.Text(); text48.Text = "Third level"; run37.Append(runProperties48); run37.Append(text48); paragraph55.Append(paragraphProperties28); paragraph55.Append(run37); A.Paragraph paragraph56 = new A.Paragraph(); A.ParagraphProperties paragraphProperties29 = new A.ParagraphProperties(){ Level = 3 }; A.Run run38 = new A.Run(); A.RunProperties runProperties49 = new A.RunProperties(){ Language = "en-US" }; runProperties49.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text49 = new A.Text(); text49.Text = "Fourth level"; run38.Append(runProperties49); run38.Append(text49); paragraph56.Append(paragraphProperties29); paragraph56.Append(run38); A.Paragraph paragraph57 = new A.Paragraph(); A.ParagraphProperties paragraphProperties30 = new A.ParagraphProperties(){ Level = 4 }; A.Run run39 = new A.Run(); A.RunProperties runProperties50 = new A.RunProperties(){ Language = "en-US" }; runProperties50.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text50 = new A.Text(); text50.Text = "Fifth level"; run39.Append(runProperties50); run39.Append(text50); A.EndParagraphRunProperties endParagraphRunProperties31 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph57.Append(paragraphProperties30); paragraph57.Append(run39); paragraph57.Append(endParagraphRunProperties31); textBody32.Append(bodyProperties32); textBody32.Append(listStyle32); textBody32.Append(paragraph53); textBody32.Append(paragraph54); textBody32.Append(paragraph55); textBody32.Append(paragraph56); textBody32.Append(paragraph57); shape32.Append(nonVisualShapeProperties32); shape32.Append(shapeProperties32); shape32.Append(textBody32); Shape shape33 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties33 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties41 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Date Placeholder 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties33 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks32 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties33.Append(shapeLocks32); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties41 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape32 = new PlaceholderShape(){ Type = PlaceholderValues.DateAndTime, Size = PlaceholderSizeValues.Half, Index = (UInt32Value)10U }; applicationNonVisualDrawingProperties41.Append(placeholderShape32); nonVisualShapeProperties33.Append(nonVisualDrawingProperties41); nonVisualShapeProperties33.Append(nonVisualShapeDrawingProperties33); nonVisualShapeProperties33.Append(applicationNonVisualDrawingProperties41); ShapeProperties shapeProperties33 = new ShapeProperties(); TextBody textBody33 = new TextBody(); A.BodyProperties bodyProperties33 = new A.BodyProperties(); A.ListStyle listStyle33 = new A.ListStyle(); A.Paragraph paragraph58 = new A.Paragraph(); A.Field field12 = new A.Field(){ Id = "{1A15D4F1-1D33-4170-8C9F-182CDE6BA6D1}", Type = "datetimeFigureOut" }; A.RunProperties runProperties51 = new A.RunProperties(){ Language = "en-US" }; runProperties51.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text51 = new A.Text(); text51.Text = "10/3/2012"; field12.Append(runProperties51); field12.Append(text51); A.EndParagraphRunProperties endParagraphRunProperties32 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph58.Append(field12); paragraph58.Append(endParagraphRunProperties32); textBody33.Append(bodyProperties33); textBody33.Append(listStyle33); textBody33.Append(paragraph58); shape33.Append(nonVisualShapeProperties33); shape33.Append(shapeProperties33); shape33.Append(textBody33); Shape shape34 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties34 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties42 = new NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "Footer Placeholder 4" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties34 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks33 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties34.Append(shapeLocks33); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties42 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape33 = new PlaceholderShape(){ Type = PlaceholderValues.Footer, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)11U }; applicationNonVisualDrawingProperties42.Append(placeholderShape33); nonVisualShapeProperties34.Append(nonVisualDrawingProperties42); nonVisualShapeProperties34.Append(nonVisualShapeDrawingProperties34); nonVisualShapeProperties34.Append(applicationNonVisualDrawingProperties42); ShapeProperties shapeProperties34 = new ShapeProperties(); TextBody textBody34 = new TextBody(); A.BodyProperties bodyProperties34 = new A.BodyProperties(); A.ListStyle listStyle34 = new A.ListStyle(); A.Paragraph paragraph59 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties33 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph59.Append(endParagraphRunProperties33); textBody34.Append(bodyProperties34); textBody34.Append(listStyle34); textBody34.Append(paragraph59); shape34.Append(nonVisualShapeProperties34); shape34.Append(shapeProperties34); shape34.Append(textBody34); Shape shape35 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties35 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties43 = new NonVisualDrawingProperties(){ Id = (UInt32Value)6U, Name = "Slide Number Placeholder 5" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties35 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks34 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties35.Append(shapeLocks34); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties43 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape34 = new PlaceholderShape(){ Type = PlaceholderValues.SlideNumber, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)12U }; applicationNonVisualDrawingProperties43.Append(placeholderShape34); nonVisualShapeProperties35.Append(nonVisualDrawingProperties43); nonVisualShapeProperties35.Append(nonVisualShapeDrawingProperties35); nonVisualShapeProperties35.Append(applicationNonVisualDrawingProperties43); ShapeProperties shapeProperties35 = new ShapeProperties(); TextBody textBody35 = new TextBody(); A.BodyProperties bodyProperties35 = new A.BodyProperties(); A.ListStyle listStyle35 = new A.ListStyle(); A.Paragraph paragraph60 = new A.Paragraph(); A.Field field13 = new A.Field(){ Id = "{9E0C3BFA-D4DA-4895-A0F6-B80859694A8D}", Type = "slidenum" }; A.RunProperties runProperties52 = new A.RunProperties(){ Language = "en-US" }; runProperties52.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text52 = new A.Text(); text52.Text = "‹#›"; field13.Append(runProperties52); field13.Append(text52); A.EndParagraphRunProperties endParagraphRunProperties34 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph60.Append(field13); paragraph60.Append(endParagraphRunProperties34); textBody35.Append(bodyProperties35); textBody35.Append(listStyle35); textBody35.Append(paragraph60); shape35.Append(nonVisualShapeProperties35); shape35.Append(shapeProperties35); shape35.Append(textBody35); shapeTree8.Append(nonVisualGroupShapeProperties8); shapeTree8.Append(groupShapeProperties8); shapeTree8.Append(shape31); shapeTree8.Append(shape32); shapeTree8.Append(shape33); shapeTree8.Append(shape34); shapeTree8.Append(shape35); commonSlideData8.Append(shapeTree8); ColorMapOverride colorMapOverride6 = new ColorMapOverride(); A.MasterColorMapping masterColorMapping6 = new A.MasterColorMapping(); colorMapOverride6.Append(masterColorMapping6); slideLayout5.Append(commonSlideData8); slideLayout5.Append(colorMapOverride6); slideLayoutPart5.SlideLayout = slideLayout5; }
private void ProcessHeading(HtmlEnumerator en) { char level = en.Current[2]; AlternateProcessHtmlChunks(en, "</h" + level + ">"); Paragraph p = new Paragraph(elements); p.InsertInProperties( new ParagraphStyleId() { Val = htmlStyles.GetStyle("heading " + level, false) }); this.elements.Clear(); AddParagraph(p); AddParagraph(currentParagraph = htmlStyles.Paragraph.NewParagraph()); }
// Generates content of slideLayoutPart6. private void GenerateSlideLayoutPart6Content(SlideLayoutPart slideLayoutPart6) { SlideLayout slideLayout6 = new SlideLayout(){ Type = SlideLayoutValues.TitleOnly, Preserve = true }; slideLayout6.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); slideLayout6.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); slideLayout6.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData9 = new CommonSlideData(){ Name = "Title Only" }; ShapeTree shapeTree9 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties9 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties44 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties9 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties44 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties9.Append(nonVisualDrawingProperties44); nonVisualGroupShapeProperties9.Append(nonVisualGroupShapeDrawingProperties9); nonVisualGroupShapeProperties9.Append(applicationNonVisualDrawingProperties44); GroupShapeProperties groupShapeProperties9 = new GroupShapeProperties(); A.TransformGroup transformGroup9 = new A.TransformGroup(); A.Offset offset27 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents27 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset9 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents9 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup9.Append(offset27); transformGroup9.Append(extents27); transformGroup9.Append(childOffset9); transformGroup9.Append(childExtents9); groupShapeProperties9.Append(transformGroup9); Shape shape36 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties36 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties45 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Title 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties36 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks35 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties36.Append(shapeLocks35); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties45 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape35 = new PlaceholderShape(){ Type = PlaceholderValues.Title }; applicationNonVisualDrawingProperties45.Append(placeholderShape35); nonVisualShapeProperties36.Append(nonVisualDrawingProperties45); nonVisualShapeProperties36.Append(nonVisualShapeDrawingProperties36); nonVisualShapeProperties36.Append(applicationNonVisualDrawingProperties45); ShapeProperties shapeProperties36 = new ShapeProperties(); TextBody textBody36 = new TextBody(); A.BodyProperties bodyProperties36 = new A.BodyProperties(); A.ListStyle listStyle36 = new A.ListStyle(); A.Paragraph paragraph61 = new A.Paragraph(); A.Run run40 = new A.Run(); A.RunProperties runProperties53 = new A.RunProperties(){ Language = "en-US" }; runProperties53.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text53 = new A.Text(); text53.Text = "Click to edit Master title style"; run40.Append(runProperties53); run40.Append(text53); A.EndParagraphRunProperties endParagraphRunProperties35 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph61.Append(run40); paragraph61.Append(endParagraphRunProperties35); textBody36.Append(bodyProperties36); textBody36.Append(listStyle36); textBody36.Append(paragraph61); shape36.Append(nonVisualShapeProperties36); shape36.Append(shapeProperties36); shape36.Append(textBody36); Shape shape37 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties37 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties46 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Date Placeholder 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties37 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks36 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties37.Append(shapeLocks36); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties46 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape36 = new PlaceholderShape(){ Type = PlaceholderValues.DateAndTime, Size = PlaceholderSizeValues.Half, Index = (UInt32Value)10U }; applicationNonVisualDrawingProperties46.Append(placeholderShape36); nonVisualShapeProperties37.Append(nonVisualDrawingProperties46); nonVisualShapeProperties37.Append(nonVisualShapeDrawingProperties37); nonVisualShapeProperties37.Append(applicationNonVisualDrawingProperties46); ShapeProperties shapeProperties37 = new ShapeProperties(); TextBody textBody37 = new TextBody(); A.BodyProperties bodyProperties37 = new A.BodyProperties(); A.ListStyle listStyle37 = new A.ListStyle(); A.Paragraph paragraph62 = new A.Paragraph(); A.Field field14 = new A.Field(){ Id = "{1A15D4F1-1D33-4170-8C9F-182CDE6BA6D1}", Type = "datetimeFigureOut" }; A.RunProperties runProperties54 = new A.RunProperties(){ Language = "en-US" }; runProperties54.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text54 = new A.Text(); text54.Text = "10/3/2012"; field14.Append(runProperties54); field14.Append(text54); A.EndParagraphRunProperties endParagraphRunProperties36 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph62.Append(field14); paragraph62.Append(endParagraphRunProperties36); textBody37.Append(bodyProperties37); textBody37.Append(listStyle37); textBody37.Append(paragraph62); shape37.Append(nonVisualShapeProperties37); shape37.Append(shapeProperties37); shape37.Append(textBody37); Shape shape38 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties38 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties47 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Footer Placeholder 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties38 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks37 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties38.Append(shapeLocks37); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties47 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape37 = new PlaceholderShape(){ Type = PlaceholderValues.Footer, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)11U }; applicationNonVisualDrawingProperties47.Append(placeholderShape37); nonVisualShapeProperties38.Append(nonVisualDrawingProperties47); nonVisualShapeProperties38.Append(nonVisualShapeDrawingProperties38); nonVisualShapeProperties38.Append(applicationNonVisualDrawingProperties47); ShapeProperties shapeProperties38 = new ShapeProperties(); TextBody textBody38 = new TextBody(); A.BodyProperties bodyProperties38 = new A.BodyProperties(); A.ListStyle listStyle38 = new A.ListStyle(); A.Paragraph paragraph63 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties37 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph63.Append(endParagraphRunProperties37); textBody38.Append(bodyProperties38); textBody38.Append(listStyle38); textBody38.Append(paragraph63); shape38.Append(nonVisualShapeProperties38); shape38.Append(shapeProperties38); shape38.Append(textBody38); Shape shape39 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties39 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties48 = new NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "Slide Number Placeholder 4" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties39 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks38 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties39.Append(shapeLocks38); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties48 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape38 = new PlaceholderShape(){ Type = PlaceholderValues.SlideNumber, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)12U }; applicationNonVisualDrawingProperties48.Append(placeholderShape38); nonVisualShapeProperties39.Append(nonVisualDrawingProperties48); nonVisualShapeProperties39.Append(nonVisualShapeDrawingProperties39); nonVisualShapeProperties39.Append(applicationNonVisualDrawingProperties48); ShapeProperties shapeProperties39 = new ShapeProperties(); TextBody textBody39 = new TextBody(); A.BodyProperties bodyProperties39 = new A.BodyProperties(); A.ListStyle listStyle39 = new A.ListStyle(); A.Paragraph paragraph64 = new A.Paragraph(); A.Field field15 = new A.Field(){ Id = "{9E0C3BFA-D4DA-4895-A0F6-B80859694A8D}", Type = "slidenum" }; A.RunProperties runProperties55 = new A.RunProperties(){ Language = "en-US" }; runProperties55.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text55 = new A.Text(); text55.Text = "‹#›"; field15.Append(runProperties55); field15.Append(text55); A.EndParagraphRunProperties endParagraphRunProperties38 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph64.Append(field15); paragraph64.Append(endParagraphRunProperties38); textBody39.Append(bodyProperties39); textBody39.Append(listStyle39); textBody39.Append(paragraph64); shape39.Append(nonVisualShapeProperties39); shape39.Append(shapeProperties39); shape39.Append(textBody39); shapeTree9.Append(nonVisualGroupShapeProperties9); shapeTree9.Append(groupShapeProperties9); shapeTree9.Append(shape36); shapeTree9.Append(shape37); shapeTree9.Append(shape38); shapeTree9.Append(shape39); commonSlideData9.Append(shapeTree9); ColorMapOverride colorMapOverride7 = new ColorMapOverride(); A.MasterColorMapping masterColorMapping7 = new A.MasterColorMapping(); colorMapOverride7.Append(masterColorMapping7); slideLayout6.Append(commonSlideData9); slideLayout6.Append(colorMapOverride7); slideLayoutPart6.SlideLayout = slideLayout6; }
private void ProcessTableColumn(HtmlEnumerator en) { if (!tables.HasContext) return; List<OpenXmlElement> styleAttributes = new List<OpenXmlElement>(); List<OpenXmlElement> runStyleAttributes = new List<OpenXmlElement>(); Unit unit = en.StyleAttributes.GetAsUnit("width"); if (!unit.IsValid) unit = en.Attributes.GetAsUnit("width"); if (unit.IsValid) { switch (unit.Type) { case UnitMetric.Percent: styleAttributes.Add(new TableCellWidth() { Type = TableWidthUnitValues.Pct, Width = (unit.Value * 50).ToString(CultureInfo.InvariantCulture) }); break; case UnitMetric.Point: styleAttributes.Add(new TableCellWidth() { Type = TableWidthUnitValues.Dxa, Width = (unit.Value * 20).ToString(CultureInfo.InvariantCulture) }); break; case UnitMetric.Pixel: styleAttributes.Add(new TableCellWidth() { Type = TableWidthUnitValues.Dxa, Width = (unit.Value).ToString(CultureInfo.InvariantCulture) }); break; } } int? colspan = en.Attributes.GetAsInt("colspan"); if (colspan.HasValue) { styleAttributes.Add(new GridSpan() { Val = colspan }); } int? rowspan = en.Attributes.GetAsInt("rowspan"); if (rowspan.HasValue) { styleAttributes.Add(new VerticalMerge() { Val = MergedCellValues.Restart }); tables.RowSpan[tables.CellPosition] = rowspan.Value - 1; } htmlStyles.Runs.ProcessCommonRunAttributes(en, runStyleAttributes); // Manage vertical text (only for table cell) string direction = en.StyleAttributes["writing-mode"]; if (direction != null) { switch (direction) { case "tb-lr": styleAttributes.Add(new TextDirection() { Val = TextDirectionValues.BottomToTopLeftToRight }); styleAttributes.Add(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center }); htmlStyles.Tables.BeginTagForParagraph("<td>", new Justification() { Val = JustificationValues.Center }); break; case "tb-rl": styleAttributes.Add(new TextDirection() { Val = TextDirectionValues.TopToBottomRightToLeft }); styleAttributes.Add(new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center }); htmlStyles.Tables.BeginTagForParagraph("<td>", new Justification() { Val = JustificationValues.Center }); break; } } var padding = en.StyleAttributes.GetAsMargin("padding"); if (!padding.IsEmpty) { TableCellMargin cellMargin = new TableCellMargin(); var cellMarginSide = new List<KeyValuePair<Unit, TableWidthType>>(); cellMarginSide.Add(new KeyValuePair<Unit, TableWidthType>(padding.Top, new TopMargin())); cellMarginSide.Add(new KeyValuePair<Unit, TableWidthType>(padding.Right, new RightMargin())); cellMarginSide.Add(new KeyValuePair<Unit, TableWidthType>(padding.Bottom, new BottomMargin())); cellMarginSide.Add(new KeyValuePair<Unit, TableWidthType>(padding.Left, new LeftMargin())); foreach (var pair in cellMarginSide) { if (!pair.Key.IsValid || pair.Key.Value == 0) continue; if (pair.Key.Type == UnitMetric.Percent) { pair.Value.Width = (pair.Key.Value * 50).ToString(CultureInfo.InvariantCulture); pair.Value.Type = TableWidthUnitValues.Pct; } else { pair.Value.Width = pair.Key.ValueInDxa.ToString(CultureInfo.InvariantCulture); pair.Value.Type = TableWidthUnitValues.Dxa; } cellMargin.Append(pair.Value); } styleAttributes.Add(cellMargin); } htmlStyles.Tables.ProcessCommonAttributes(en, styleAttributes); if (runStyleAttributes.Count > 0) htmlStyles.Runs.BeginTag(en.CurrentTag, runStyleAttributes.ToArray()); TableCell cell = new TableCell( new TableCellProperties(styleAttributes)); tables.CurrentTable.GetLastChild<TableRow>().Append(cell); if (en.IsSelfClosedTag) // Force a call to ProcessClosingTableColumn ProcessClosingTableColumn(en); else { // we create a new currentParagraph to add new runs inside the TableCell cell.Append(currentParagraph = new Paragraph()); } }
// Generates content of slideLayoutPart7. private void GenerateSlideLayoutPart7Content(SlideLayoutPart slideLayoutPart7) { SlideLayout slideLayout7 = new SlideLayout(){ Type = SlideLayoutValues.VerticalTitleAndText, Preserve = true }; slideLayout7.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); slideLayout7.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); slideLayout7.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData10 = new CommonSlideData(){ Name = "Vertical Title and Text" }; ShapeTree shapeTree10 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties10 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties49 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties10 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties49 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties10.Append(nonVisualDrawingProperties49); nonVisualGroupShapeProperties10.Append(nonVisualGroupShapeDrawingProperties10); nonVisualGroupShapeProperties10.Append(applicationNonVisualDrawingProperties49); GroupShapeProperties groupShapeProperties10 = new GroupShapeProperties(); A.TransformGroup transformGroup10 = new A.TransformGroup(); A.Offset offset28 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents28 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset10 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents10 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup10.Append(offset28); transformGroup10.Append(extents28); transformGroup10.Append(childOffset10); transformGroup10.Append(childExtents10); groupShapeProperties10.Append(transformGroup10); Shape shape40 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties40 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties50 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Vertical Title 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties40 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks39 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties40.Append(shapeLocks39); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties50 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape39 = new PlaceholderShape(){ Type = PlaceholderValues.Title, Orientation = DirectionValues.Vertical }; applicationNonVisualDrawingProperties50.Append(placeholderShape39); nonVisualShapeProperties40.Append(nonVisualDrawingProperties50); nonVisualShapeProperties40.Append(nonVisualShapeDrawingProperties40); nonVisualShapeProperties40.Append(applicationNonVisualDrawingProperties50); ShapeProperties shapeProperties40 = new ShapeProperties(); A.Transform2D transform2D19 = new A.Transform2D(); A.Offset offset29 = new A.Offset(){ X = 4972049L, Y = 366713L }; A.Extents extents29 = new A.Extents(){ Cx = 1543051L, Cy = 7800975L }; transform2D19.Append(offset29); transform2D19.Append(extents29); shapeProperties40.Append(transform2D19); TextBody textBody40 = new TextBody(); A.BodyProperties bodyProperties40 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.EastAsianVetical }; A.ListStyle listStyle40 = new A.ListStyle(); A.Paragraph paragraph65 = new A.Paragraph(); A.Run run41 = new A.Run(); A.RunProperties runProperties56 = new A.RunProperties(){ Language = "en-US" }; runProperties56.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text56 = new A.Text(); text56.Text = "Click to edit Master title style"; run41.Append(runProperties56); run41.Append(text56); A.EndParagraphRunProperties endParagraphRunProperties39 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph65.Append(run41); paragraph65.Append(endParagraphRunProperties39); textBody40.Append(bodyProperties40); textBody40.Append(listStyle40); textBody40.Append(paragraph65); shape40.Append(nonVisualShapeProperties40); shape40.Append(shapeProperties40); shape40.Append(textBody40); Shape shape41 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties41 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties51 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Vertical Text Placeholder 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties41 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks40 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties41.Append(shapeLocks40); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties51 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape40 = new PlaceholderShape(){ Type = PlaceholderValues.Body, Orientation = DirectionValues.Vertical, Index = (UInt32Value)1U }; applicationNonVisualDrawingProperties51.Append(placeholderShape40); nonVisualShapeProperties41.Append(nonVisualDrawingProperties51); nonVisualShapeProperties41.Append(nonVisualShapeDrawingProperties41); nonVisualShapeProperties41.Append(applicationNonVisualDrawingProperties51); ShapeProperties shapeProperties41 = new ShapeProperties(); A.Transform2D transform2D20 = new A.Transform2D(); A.Offset offset30 = new A.Offset(){ X = 342901L, Y = 366713L }; A.Extents extents30 = new A.Extents(){ Cx = 4476751L, Cy = 7800975L }; transform2D20.Append(offset30); transform2D20.Append(extents30); shapeProperties41.Append(transform2D20); TextBody textBody41 = new TextBody(); A.BodyProperties bodyProperties41 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.EastAsianVetical }; A.ListStyle listStyle41 = new A.ListStyle(); A.Paragraph paragraph66 = new A.Paragraph(); A.ParagraphProperties paragraphProperties31 = new A.ParagraphProperties(){ Level = 0 }; A.Run run42 = new A.Run(); A.RunProperties runProperties57 = new A.RunProperties(){ Language = "en-US" }; runProperties57.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text57 = new A.Text(); text57.Text = "Click to edit Master text styles"; run42.Append(runProperties57); run42.Append(text57); paragraph66.Append(paragraphProperties31); paragraph66.Append(run42); A.Paragraph paragraph67 = new A.Paragraph(); A.ParagraphProperties paragraphProperties32 = new A.ParagraphProperties(){ Level = 1 }; A.Run run43 = new A.Run(); A.RunProperties runProperties58 = new A.RunProperties(){ Language = "en-US" }; runProperties58.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text58 = new A.Text(); text58.Text = "Second level"; run43.Append(runProperties58); run43.Append(text58); paragraph67.Append(paragraphProperties32); paragraph67.Append(run43); A.Paragraph paragraph68 = new A.Paragraph(); A.ParagraphProperties paragraphProperties33 = new A.ParagraphProperties(){ Level = 2 }; A.Run run44 = new A.Run(); A.RunProperties runProperties59 = new A.RunProperties(){ Language = "en-US" }; runProperties59.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text59 = new A.Text(); text59.Text = "Third level"; run44.Append(runProperties59); run44.Append(text59); paragraph68.Append(paragraphProperties33); paragraph68.Append(run44); A.Paragraph paragraph69 = new A.Paragraph(); A.ParagraphProperties paragraphProperties34 = new A.ParagraphProperties(){ Level = 3 }; A.Run run45 = new A.Run(); A.RunProperties runProperties60 = new A.RunProperties(){ Language = "en-US" }; runProperties60.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text60 = new A.Text(); text60.Text = "Fourth level"; run45.Append(runProperties60); run45.Append(text60); paragraph69.Append(paragraphProperties34); paragraph69.Append(run45); A.Paragraph paragraph70 = new A.Paragraph(); A.ParagraphProperties paragraphProperties35 = new A.ParagraphProperties(){ Level = 4 }; A.Run run46 = new A.Run(); A.RunProperties runProperties61 = new A.RunProperties(){ Language = "en-US" }; runProperties61.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text61 = new A.Text(); text61.Text = "Fifth level"; run46.Append(runProperties61); run46.Append(text61); A.EndParagraphRunProperties endParagraphRunProperties40 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph70.Append(paragraphProperties35); paragraph70.Append(run46); paragraph70.Append(endParagraphRunProperties40); textBody41.Append(bodyProperties41); textBody41.Append(listStyle41); textBody41.Append(paragraph66); textBody41.Append(paragraph67); textBody41.Append(paragraph68); textBody41.Append(paragraph69); textBody41.Append(paragraph70); shape41.Append(nonVisualShapeProperties41); shape41.Append(shapeProperties41); shape41.Append(textBody41); Shape shape42 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties42 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties52 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Date Placeholder 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties42 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks41 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties42.Append(shapeLocks41); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties52 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape41 = new PlaceholderShape(){ Type = PlaceholderValues.DateAndTime, Size = PlaceholderSizeValues.Half, Index = (UInt32Value)10U }; applicationNonVisualDrawingProperties52.Append(placeholderShape41); nonVisualShapeProperties42.Append(nonVisualDrawingProperties52); nonVisualShapeProperties42.Append(nonVisualShapeDrawingProperties42); nonVisualShapeProperties42.Append(applicationNonVisualDrawingProperties52); ShapeProperties shapeProperties42 = new ShapeProperties(); TextBody textBody42 = new TextBody(); A.BodyProperties bodyProperties42 = new A.BodyProperties(); A.ListStyle listStyle42 = new A.ListStyle(); A.Paragraph paragraph71 = new A.Paragraph(); A.Field field16 = new A.Field(){ Id = "{1A15D4F1-1D33-4170-8C9F-182CDE6BA6D1}", Type = "datetimeFigureOut" }; A.RunProperties runProperties62 = new A.RunProperties(){ Language = "en-US" }; runProperties62.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text62 = new A.Text(); text62.Text = "10/3/2012"; field16.Append(runProperties62); field16.Append(text62); A.EndParagraphRunProperties endParagraphRunProperties41 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph71.Append(field16); paragraph71.Append(endParagraphRunProperties41); textBody42.Append(bodyProperties42); textBody42.Append(listStyle42); textBody42.Append(paragraph71); shape42.Append(nonVisualShapeProperties42); shape42.Append(shapeProperties42); shape42.Append(textBody42); Shape shape43 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties43 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties53 = new NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "Footer Placeholder 4" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties43 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks42 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties43.Append(shapeLocks42); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties53 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape42 = new PlaceholderShape(){ Type = PlaceholderValues.Footer, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)11U }; applicationNonVisualDrawingProperties53.Append(placeholderShape42); nonVisualShapeProperties43.Append(nonVisualDrawingProperties53); nonVisualShapeProperties43.Append(nonVisualShapeDrawingProperties43); nonVisualShapeProperties43.Append(applicationNonVisualDrawingProperties53); ShapeProperties shapeProperties43 = new ShapeProperties(); TextBody textBody43 = new TextBody(); A.BodyProperties bodyProperties43 = new A.BodyProperties(); A.ListStyle listStyle43 = new A.ListStyle(); A.Paragraph paragraph72 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties42 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph72.Append(endParagraphRunProperties42); textBody43.Append(bodyProperties43); textBody43.Append(listStyle43); textBody43.Append(paragraph72); shape43.Append(nonVisualShapeProperties43); shape43.Append(shapeProperties43); shape43.Append(textBody43); Shape shape44 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties44 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties54 = new NonVisualDrawingProperties(){ Id = (UInt32Value)6U, Name = "Slide Number Placeholder 5" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties44 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks43 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties44.Append(shapeLocks43); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties54 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape43 = new PlaceholderShape(){ Type = PlaceholderValues.SlideNumber, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)12U }; applicationNonVisualDrawingProperties54.Append(placeholderShape43); nonVisualShapeProperties44.Append(nonVisualDrawingProperties54); nonVisualShapeProperties44.Append(nonVisualShapeDrawingProperties44); nonVisualShapeProperties44.Append(applicationNonVisualDrawingProperties54); ShapeProperties shapeProperties44 = new ShapeProperties(); TextBody textBody44 = new TextBody(); A.BodyProperties bodyProperties44 = new A.BodyProperties(); A.ListStyle listStyle44 = new A.ListStyle(); A.Paragraph paragraph73 = new A.Paragraph(); A.Field field17 = new A.Field(){ Id = "{9E0C3BFA-D4DA-4895-A0F6-B80859694A8D}", Type = "slidenum" }; A.RunProperties runProperties63 = new A.RunProperties(){ Language = "en-US" }; runProperties63.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text63 = new A.Text(); text63.Text = "‹#›"; field17.Append(runProperties63); field17.Append(text63); A.EndParagraphRunProperties endParagraphRunProperties43 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph73.Append(field17); paragraph73.Append(endParagraphRunProperties43); textBody44.Append(bodyProperties44); textBody44.Append(listStyle44); textBody44.Append(paragraph73); shape44.Append(nonVisualShapeProperties44); shape44.Append(shapeProperties44); shape44.Append(textBody44); shapeTree10.Append(nonVisualGroupShapeProperties10); shapeTree10.Append(groupShapeProperties10); shapeTree10.Append(shape40); shapeTree10.Append(shape41); shapeTree10.Append(shape42); shapeTree10.Append(shape43); shapeTree10.Append(shape44); commonSlideData10.Append(shapeTree10); ColorMapOverride colorMapOverride8 = new ColorMapOverride(); A.MasterColorMapping masterColorMapping8 = new A.MasterColorMapping(); colorMapOverride8.Append(masterColorMapping8); slideLayout7.Append(commonSlideData10); slideLayout7.Append(colorMapOverride8); slideLayoutPart7.SlideLayout = slideLayout7; }