Beispiel #1
0
        // Generates content of mainDocumentPart1.
        private static void GenerateMainDocumentPart1Content(MainDocumentPart mainDocumentPart1, WordprocessingDocument document)
        {
            Document document1 = new Document() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 w15 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("w15", "http://schemas.microsoft.com/office/word/2012/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");

            Body body1 = new Body();

            Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            Justification justification1 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
            FontSize fontSize1 = new FontSize() { Val = "20" };

            paragraphMarkRunProperties1.Append(fontSize1);

            paragraphProperties1.Append(spacingBetweenLines1);
            paragraphProperties1.Append(justification1);
            paragraphProperties1.Append(paragraphMarkRunProperties1);
            BookmarkStart bookmarkStart1 = new BookmarkStart() { Name = "_GoBack", Id = "0" };
            BookmarkEnd bookmarkEnd1 = new BookmarkEnd() { Id = "0" };

            Run run1 = new Run();

            RunProperties runProperties1 = new RunProperties();
            NoProof noProof1 = new NoProof();
            FontSize fontSize2 = new FontSize() { Val = "20" };
            Languages languages1 = new Languages() { EastAsia = "ru-RU" };

            runProperties1.Append(noProof1);
            runProperties1.Append(fontSize2);
            runProperties1.Append(languages1);

            AlternateContent alternateContent1 = new AlternateContent();

            AlternateContentChoice alternateContentChoice1 = new AlternateContentChoice() { Requires = "wps" };

            Drawing drawing1 = new Drawing();

            Wp.Anchor anchor1 = new Wp.Anchor() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)114300U, DistanceFromRight = (UInt32Value)114300U, SimplePos = false, RelativeHeight = (UInt32Value)251659264U, BehindDoc = false, Locked = false, LayoutInCell = true, AllowOverlap = true };
            Wp.SimplePosition simplePosition1 = new Wp.SimplePosition() { X = 0L, Y = 0L };

            Wp.HorizontalPosition horizontalPosition1 = new Wp.HorizontalPosition() { RelativeFrom = Wp.HorizontalRelativePositionValues.Column };
            Wp.PositionOffset positionOffset1 = new Wp.PositionOffset();
            positionOffset1.Text = "7559955";

            horizontalPosition1.Append(positionOffset1);

            Wp.VerticalPosition verticalPosition1 = new Wp.VerticalPosition() { RelativeFrom = Wp.VerticalRelativePositionValues.Paragraph };
            Wp.PositionOffset positionOffset2 = new Wp.PositionOffset();
            positionOffset2.Text = "-180045";

            verticalPosition1.Append(positionOffset2);
            Wp.Extent extent1 = new Wp.Extent() { Cx = 2540000L, Cy = 635000L };
            Wp.EffectExtent effectExtent1 = new Wp.EffectExtent() { LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L };
            Wp.WrapNone wrapNone1 = new Wp.WrapNone();
            Wp.DocProperties docProperties1 = new Wp.DocProperties() { Id = (UInt32Value)1U, Name = "Надпись 1" };
            Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties1 = new Wp.NonVisualGraphicFrameDrawingProperties();

            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.microsoft.com/office/word/2010/wordprocessingShape" };

            Wps.WordprocessingShape wordprocessingShape1 = new Wps.WordprocessingShape();
            Wps.NonVisualDrawingShapeProperties nonVisualDrawingShapeProperties1 = new Wps.NonVisualDrawingShapeProperties() { TextBox = true };

            Wps.ShapeProperties shapeProperties1 = new Wps.ShapeProperties();

            A.Transform2D transform2D1 = new A.Transform2D();
            A.Offset offset1 = new A.Offset() { X = 0L, Y = 0L };
            A.Extents extents1 = new A.Extents() { Cx = 2540000L, Cy = 635000L };

            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() { Width = 6350 };
            A.NoFill noFill2 = new A.NoFill();

            outline1.Append(noFill2);
            A.EffectList effectList1 = new A.EffectList();

            A.ShapePropertiesExtensionList shapePropertiesExtensionList1 = new A.ShapePropertiesExtensionList();

            A.ShapePropertiesExtension shapePropertiesExtension1 = new A.ShapePropertiesExtension() { Uri = "{91240B29-F687-4F45-9708-019B960494DF}" };

            A14.HiddenLineProperties hiddenLineProperties1 = new A14.HiddenLineProperties() { Width = 6350 };
            hiddenLineProperties1.AddNamespaceDeclaration("a14", "http://schemas.microsoft.com/office/drawing/2010/main");

            A.SolidFill solidFill1 = new A.SolidFill();
            A.PresetColor presetColor1 = new A.PresetColor() { Val = A.PresetColorValues.Black };

            solidFill1.Append(presetColor1);

            hiddenLineProperties1.Append(solidFill1);

            shapePropertiesExtension1.Append(hiddenLineProperties1);

            shapePropertiesExtensionList1.Append(shapePropertiesExtension1);

            shapeProperties1.Append(transform2D1);
            shapeProperties1.Append(presetGeometry1);
            shapeProperties1.Append(noFill1);
            shapeProperties1.Append(outline1);
            shapeProperties1.Append(effectList1);
            shapeProperties1.Append(shapePropertiesExtensionList1);

            Wps.ShapeStyle shapeStyle1 = new Wps.ShapeStyle();

            A.LineReference lineReference1 = new A.LineReference() { Index = (UInt32Value)0U };
            A.SchemeColor schemeColor1 = new A.SchemeColor() { Val = A.SchemeColorValues.Accent1 };

            lineReference1.Append(schemeColor1);

            A.FillReference fillReference1 = new A.FillReference() { Index = (UInt32Value)0U };
            A.SchemeColor schemeColor2 = new A.SchemeColor() { Val = A.SchemeColorValues.Accent1 };

            fillReference1.Append(schemeColor2);

            A.EffectReference effectReference1 = new A.EffectReference() { Index = (UInt32Value)0U };
            A.SchemeColor schemeColor3 = new A.SchemeColor() { Val = A.SchemeColorValues.Accent1 };

            effectReference1.Append(schemeColor3);

            A.FontReference fontReference1 = new A.FontReference() { Index = A.FontCollectionIndexValues.Minor };
            A.SchemeColor schemeColor4 = new A.SchemeColor() { Val = A.SchemeColorValues.Dark1 };

            fontReference1.Append(schemeColor4);

            shapeStyle1.Append(lineReference1);
            shapeStyle1.Append(fillReference1);
            shapeStyle1.Append(effectReference1);
            shapeStyle1.Append(fontReference1);

            Wps.TextBoxInfo2 textBoxInfo21 = new Wps.TextBoxInfo2();

            TextBoxContent textBoxContent1 = new TextBoxContent();

            if (Dow == "Понедельник")
            {
                Paragraph paragraph2 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

                ParagraphProperties paragraphProperties2 = new ParagraphProperties();
                SpacingBetweenLines spacingBetweenLines2 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                Justification justification2 = new Justification() { Val = JustificationValues.Right };

                ParagraphMarkRunProperties paragraphMarkRunProperties2 = new ParagraphMarkRunProperties();
                FontSize fontSize3 = new FontSize() { Val = "20" };

                paragraphMarkRunProperties2.Append(fontSize3);

                paragraphProperties2.Append(spacingBetweenLines2);
                paragraphProperties2.Append(justification2);
                paragraphProperties2.Append(paragraphMarkRunProperties2);

                Run run2 = new Run() { RsidRunProperties = "00FA5335" };

                RunProperties runProperties2 = new RunProperties();
                FontSize fontSize4 = new FontSize() { Val = "20" };

                runProperties2.Append(fontSize4);
                Text text1 = new Text();
                text1.Text = "«УТВЕРЖДАЮ»";

                run2.Append(runProperties2);
                run2.Append(text1);

                paragraph2.Append(paragraphProperties2);
                paragraph2.Append(run2);

                Paragraph paragraph3 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

                ParagraphProperties paragraphProperties3 = new ParagraphProperties();
                SpacingBetweenLines spacingBetweenLines3 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                Justification justification3 = new Justification() { Val = JustificationValues.Right };

                ParagraphMarkRunProperties paragraphMarkRunProperties3 = new ParagraphMarkRunProperties();
                FontSize fontSize5 = new FontSize() { Val = "20" };

                paragraphMarkRunProperties3.Append(fontSize5);

                paragraphProperties3.Append(spacingBetweenLines3);
                paragraphProperties3.Append(justification3);
                paragraphProperties3.Append(paragraphMarkRunProperties3);

                Run run3 = new Run() { RsidRunProperties = "00FA5335" };

                RunProperties runProperties3 = new RunProperties();
                FontSize fontSize6 = new FontSize() { Val = "20" };

                runProperties3.Append(fontSize6);
                Text text2 = new Text();
                text2.Text = "Проректор по учебной работе";

                run3.Append(runProperties3);
                run3.Append(text2);

                paragraph3.Append(paragraphProperties3);
                paragraph3.Append(run3);

                Paragraph paragraph4 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

                ParagraphProperties paragraphProperties4 = new ParagraphProperties();
                SpacingBetweenLines spacingBetweenLines4 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                Justification justification4 = new Justification() { Val = JustificationValues.Right };

                ParagraphMarkRunProperties paragraphMarkRunProperties4 = new ParagraphMarkRunProperties();
                FontSize fontSize7 = new FontSize() { Val = "20" };

                paragraphMarkRunProperties4.Append(fontSize7);

                paragraphProperties4.Append(spacingBetweenLines4);
                paragraphProperties4.Append(justification4);
                paragraphProperties4.Append(paragraphMarkRunProperties4);

                Run run4 = new Run() { RsidRunProperties = "00FA5335" };

                RunProperties runProperties4 = new RunProperties();
                FontSize fontSize8 = new FontSize() { Val = "20" };

                runProperties4.Append(fontSize8);
                Text text3 = new Text() { Space = SpaceProcessingModeValues.Preserve };
                text3.Text = "______________     ";

                run4.Append(runProperties4);
                run4.Append(text3);
                ProofError proofError1 = new ProofError() { Type = ProofingErrorValues.SpellStart };

                Run run5 = new Run() { RsidRunProperties = "00FA5335" };

                RunProperties runProperties5 = new RunProperties();
                FontSize fontSize9 = new FontSize() { Val = "20" };

                runProperties5.Append(fontSize9);
                Text text4 = new Text();
                text4.Text = "А.В.Синицкий";

                run5.Append(runProperties5);
                run5.Append(text4);
                ProofError proofError2 = new ProofError() { Type = ProofingErrorValues.SpellEnd };

                paragraph4.Append(paragraphProperties4);
                paragraph4.Append(run4);
                paragraph4.Append(proofError1);
                paragraph4.Append(run5);
                paragraph4.Append(proofError2);

                textBoxContent1.Append(paragraph2);
                textBoxContent1.Append(paragraph3);
                textBoxContent1.Append(paragraph4);
            }

            textBoxInfo21.Append(textBoxContent1);

            Wps.TextBodyProperties textBodyProperties1 = new Wps.TextBodyProperties() { Rotation = 0, UseParagraphSpacing = false, VerticalOverflow = A.TextVerticalOverflowValues.Overflow, HorizontalOverflow = A.TextHorizontalOverflowValues.Overflow, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, ColumnCount = 1, ColumnSpacing = 0, RightToLeftColumns = false, FromWordArt = false, Anchor = A.TextAnchoringTypeValues.Top, AnchorCenter = false, ForceAntiAlias = false, CompatibleLineSpacing = true };

            A.PresetTextWrap presetTextWrap1 = new A.PresetTextWrap() { Preset = A.TextShapeValues.TextNoShape };
            A.AdjustValueList adjustValueList2 = new A.AdjustValueList();

            presetTextWrap1.Append(adjustValueList2);
            A.NoAutoFit noAutoFit1 = new A.NoAutoFit();

            textBodyProperties1.Append(presetTextWrap1);
            textBodyProperties1.Append(noAutoFit1);

            wordprocessingShape1.Append(nonVisualDrawingShapeProperties1);
            wordprocessingShape1.Append(shapeProperties1);
            wordprocessingShape1.Append(shapeStyle1);
            wordprocessingShape1.Append(textBoxInfo21);
            wordprocessingShape1.Append(textBodyProperties1);

            graphicData1.Append(wordprocessingShape1);

            graphic1.Append(graphicData1);

            anchor1.Append(simplePosition1);
            anchor1.Append(horizontalPosition1);
            anchor1.Append(verticalPosition1);
            anchor1.Append(extent1);
            anchor1.Append(effectExtent1);
            anchor1.Append(wrapNone1);
            anchor1.Append(docProperties1);
            anchor1.Append(nonVisualGraphicFrameDrawingProperties1);
            anchor1.Append(graphic1);

            drawing1.Append(anchor1);

            alternateContentChoice1.Append(drawing1);

            AlternateContentFallback alternateContentFallback1 = new AlternateContentFallback();

            Picture picture1 = new Picture();

            V.Shapetype shapetype1 = new V.Shapetype() { Id = "_x0000_t202", CoordinateSize = "21600,21600", OptionalNumber = 202, EdgePath = "m,l,21600r21600,l21600,xe" };
            V.Stroke stroke1 = new V.Stroke() { JoinStyle = V.StrokeJoinStyleValues.Miter };
            V.Path path1 = new V.Path() { AllowGradientShape = true, ConnectionPointType = Ovml.ConnectValues.Rectangle };

            shapetype1.Append(stroke1);
            shapetype1.Append(path1);

            V.Shape shape1 = new V.Shape() { Id = "Надпись 1", Style = "position:absolute;left:0;text-align:left;margin-left:595.25pt;margin-top:-14.2pt;width:200pt;height:50pt;z-index:251659264;visibility:visible;mso-wrap-style:square;mso-wrap-distance-left:9pt;mso-wrap-distance-top:0;mso-wrap-distance-right:9pt;mso-wrap-distance-bottom:0;mso-position-horizontal:absolute;mso-position-horizontal-relative:text;mso-position-vertical:absolute;mso-position-vertical-relative:text;v-text-anchor:top", OptionalString = "_x0000_s1026", Filled = false, Stroked = false, StrokeWeight = ".5pt", Type = "#_x0000_t202", EncodedPackage = "UEsDBBQABgAIAAAAIQC2gziS/gAAAOEBAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbJSRQU7DMBBF\n90jcwfIWJU67QAgl6YK0S0CoHGBkTxKLZGx5TGhvj5O2G0SRWNoz/78nu9wcxkFMGNg6quQqL6RA\n0s5Y6ir5vt9lD1JwBDIwOMJKHpHlpr69KfdHjyxSmriSfYz+USnWPY7AufNIadK6MEJMx9ApD/oD\nOlTrorhX2lFEilmcO2RdNtjC5xDF9pCuTyYBB5bi6bQ4syoJ3g9WQ0ymaiLzg5KdCXlKLjvcW893\nSUOqXwnz5DrgnHtJTxOsQfEKIT7DmDSUCaxw7Rqn8787ZsmRM9e2VmPeBN4uqYvTtW7jvijg9N/y\nJsXecLq0q+WD6m8AAAD//wMAUEsDBBQABgAIAAAAIQA4/SH/1gAAAJQBAAALAAAAX3JlbHMvLnJl\nbHOkkMFqwzAMhu+DvYPRfXGawxijTi+j0GvpHsDYimMaW0Yy2fr2M4PBMnrbUb/Q94l/f/hMi1qR\nJVI2sOt6UJgd+ZiDgffL8ekFlFSbvV0oo4EbChzGx4f9GRdb25HMsYhqlCwG5lrLq9biZkxWOiqY\n22YiTra2kYMu1l1tQD30/bPm3wwYN0x18gb45AdQl1tp5j/sFB2T0FQ7R0nTNEV3j6o9feQzro1i\nOWA14Fm+Q8a1a8+Bvu/d/dMb2JY5uiPbhG/ktn4cqGU/er3pcvwCAAD//wMAUEsDBBQABgAIAAAA\nIQBUFACl/wIAAFgGAAAOAAAAZHJzL2Uyb0RvYy54bWysVcFuEzEQvSPxD5bv6e6GTZqsuqnSVkFI\nUVvRop4dr7ex6rWN7SQbEAfu/AL/wIEDN34h/SPG3k2aFg4UkYN3PPM8nnkznhwd15VAS2YsVzLH\nyUGMEZNUFVze5vjd9aQzwMg6IgsilGQ5XjOLj0cvXxytdMa6aq5EwQwCJ9JmK53juXM6iyJL56wi\n9kBpJsFYKlMRB1tzGxWGrMB7JaJuHPejlTKFNooya0F71hjxKPgvS0bdRVla5pDIMcTmwmrCOvNr\nNDoi2a0hes5pGwb5hygqwiVcunN1RhxBC8N/c1VxapRVpTugqopUWXLKQg6QTRI/yeZqTjQLuQA5\nVu9osv/PLT1fXhrEC6gdRpJUUKLN1823zffNz82P+8/3X1DiOVppmwH0SgPY1Seq9vhWb0HpU69L\nU/kvJIXADmyvdwyz2iEKym4vjeGHEQVb/1XPy+AmejitjXWvmaqQF3JsoIKBWLKcWtdAtxB/mVQT\nLgToSSYkWjVOw4GdBZwL6QEs9EPjBna1AzHoIbhQq4/DpJvGJ91hZ9IfHHbSSdrrDA/jQSdOhifD\nfpwO07PJJ+89SbM5Lwomp1yybd8k6d/Vpe3gpuKhcx4FbpXghc/Kx+ZzPRUGLQk08EwQetfytYeK\nHocT6ITstt+QZeQr2FQqSG4tmPcv5FtWQv1DwbwivDy2u5JQyqQLtQ48AtqjSgjvOQdbvD/aVOE5\nh3cnws1Kut3hiktlQrWfhF3cbUMuGzyQsZe3F109q9sOnqliDY1tFDQc9KbVdMKB9ymx7pIYmAeg\nhBnnLmAphYIuU62E0VyZD3/Sezy0A1gxWsF8ybF9vyCGYSTeSHjAwyRNwa0Lm7R32IWN2bfM9i1y\nUZ0q6AB4pBBdED3eia1YGlXdwCgc+1vBRCSFu3PstuKpa6YejFLKxuMAghGkiZvKK029a0+v77fr\n+oYY3T5AB510rraTiGRP3mGD9SelGi+cKnl4pJ7ghtWWeBhfoR/bUevn4/4+oB7+EEa/AAAA//8D\nAFBLAwQUAAYACAAAACEAneNfUOIAAAAMAQAADwAAAGRycy9kb3ducmV2LnhtbEyPwU7DMAyG70i8\nQ2Qkblvaio7SNZ2mShMSgsPGLtzcJmurJU5psq3w9GRc4Pjbn35/LlaT0eysRtdbEhDPI2CKGit7\nagXs3zezDJjzSBK1JSXgSzlYlbc3BebSXmirzjvfslBCLkcBnfdDzrlrOmXQze2gKOwOdjToQxxb\nLke8hHKjeRJFC26wp3Chw0FVnWqOu5MR8FJt3nBbJyb71tXz62E9fO4/UiHu76b1EphXk/+D4aof\n1KEMTrU9kXRMhxw/RWlgBcyS7AHYFUl/R7WAx3gBvCz4/yfKHwAAAP//AwBQSwECLQAUAAYACAAA\nACEAtoM4kv4AAADhAQAAEwAAAAAAAAAAAAAAAAAAAAAAW0NvbnRlbnRfVHlwZXNdLnhtbFBLAQIt\nABQABgAIAAAAIQA4/SH/1gAAAJQBAAALAAAAAAAAAAAAAAAAAC8BAABfcmVscy8ucmVsc1BLAQIt\nABQABgAIAAAAIQBUFACl/wIAAFgGAAAOAAAAAAAAAAAAAAAAAC4CAABkcnMvZTJvRG9jLnhtbFBL\nAQItABQABgAIAAAAIQCd419Q4gAAAAwBAAAPAAAAAAAAAAAAAAAAAFkFAABkcnMvZG93bnJldi54\nbWxQSwUGAAAAAAQABADzAAAAaAYAAAAA\n" };
            V.Fill fill1 = new V.Fill() { DetectMouseClick = true };

            V.TextBox textBox1 = new V.TextBox();

            TextBoxContent textBoxContent2 = new TextBoxContent();

            Paragraph paragraph5 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

            ParagraphProperties paragraphProperties5 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines5 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            Justification justification5 = new Justification() { Val = JustificationValues.Right };

            ParagraphMarkRunProperties paragraphMarkRunProperties5 = new ParagraphMarkRunProperties();
            FontSize fontSize10 = new FontSize() { Val = "20" };

            paragraphMarkRunProperties5.Append(fontSize10);

            paragraphProperties5.Append(spacingBetweenLines5);
            paragraphProperties5.Append(justification5);
            paragraphProperties5.Append(paragraphMarkRunProperties5);

            Run run6 = new Run() { RsidRunProperties = "00FA5335" };

            RunProperties runProperties6 = new RunProperties();
            FontSize fontSize11 = new FontSize() { Val = "20" };

            runProperties6.Append(fontSize11);
            Text text5 = new Text();
            text5.Text = "«УТВЕРЖДАЮ»";

            run6.Append(runProperties6);
            run6.Append(text5);

            paragraph5.Append(paragraphProperties5);
            paragraph5.Append(run6);

            Paragraph paragraph6 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

            ParagraphProperties paragraphProperties6 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines6 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            Justification justification6 = new Justification() { Val = JustificationValues.Right };

            ParagraphMarkRunProperties paragraphMarkRunProperties6 = new ParagraphMarkRunProperties();
            FontSize fontSize12 = new FontSize() { Val = "20" };

            paragraphMarkRunProperties6.Append(fontSize12);

            paragraphProperties6.Append(spacingBetweenLines6);
            paragraphProperties6.Append(justification6);
            paragraphProperties6.Append(paragraphMarkRunProperties6);

            Run run7 = new Run() { RsidRunProperties = "00FA5335" };

            RunProperties runProperties7 = new RunProperties();
            FontSize fontSize13 = new FontSize() { Val = "20" };

            runProperties7.Append(fontSize13);
            Text text6 = new Text();
            text6.Text = "Проректор по учебной работе";

            run7.Append(runProperties7);
            run7.Append(text6);

            paragraph6.Append(paragraphProperties6);
            paragraph6.Append(run7);

            Paragraph paragraph7 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

            ParagraphProperties paragraphProperties7 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines7 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            Justification justification7 = new Justification() { Val = JustificationValues.Right };

            ParagraphMarkRunProperties paragraphMarkRunProperties7 = new ParagraphMarkRunProperties();
            FontSize fontSize14 = new FontSize() { Val = "20" };

            paragraphMarkRunProperties7.Append(fontSize14);

            paragraphProperties7.Append(spacingBetweenLines7);
            paragraphProperties7.Append(justification7);
            paragraphProperties7.Append(paragraphMarkRunProperties7);

            Run run8 = new Run() { RsidRunProperties = "00FA5335" };

            RunProperties runProperties8 = new RunProperties();
            FontSize fontSize15 = new FontSize() { Val = "20" };

            runProperties8.Append(fontSize15);
            Text text7 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text7.Text = "______________     ";

            run8.Append(runProperties8);
            run8.Append(text7);
            ProofError proofError3 = new ProofError() { Type = ProofingErrorValues.SpellStart };

            Run run9 = new Run() { RsidRunProperties = "00FA5335" };

            RunProperties runProperties9 = new RunProperties();
            FontSize fontSize16 = new FontSize() { Val = "20" };

            runProperties9.Append(fontSize16);
            Text text8 = new Text();
            text8.Text = "А.В.Синицкий";

            run9.Append(runProperties9);
            run9.Append(text8);
            ProofError proofError4 = new ProofError() { Type = ProofingErrorValues.SpellEnd };

            paragraph7.Append(paragraphProperties7);
            paragraph7.Append(run8);
            paragraph7.Append(proofError3);
            paragraph7.Append(run9);
            paragraph7.Append(proofError4);

            textBoxContent2.Append(paragraph5);
            textBoxContent2.Append(paragraph6);
            textBoxContent2.Append(paragraph7);

            textBox1.Append(textBoxContent2);

            shape1.Append(fill1);
            shape1.Append(textBox1);

            picture1.Append(shapetype1);
            picture1.Append(shape1);

            alternateContentFallback1.Append(picture1);

            alternateContent1.Append(alternateContentChoice1);
            alternateContent1.Append(alternateContentFallback1);

            run1.Append(runProperties1);
            run1.Append(alternateContent1);

            Run run10 = new Run() { RsidRunProperties = "00FA5335" };

            RunProperties runProperties10 = new RunProperties();
            FontSize fontSize17 = new FontSize() { Val = "20" };

            runProperties10.Append(fontSize17);
            Text text9 = new Text();
            text9.Text = "Расписание";

            run10.Append(runProperties10);
            run10.Append(text9);

            paragraph1.Append(paragraphProperties1);
            paragraph1.Append(bookmarkStart1);
            paragraph1.Append(bookmarkEnd1);
            paragraph1.Append(run1);
            paragraph1.Append(run10);

            Paragraph paragraph8 = new Paragraph() { RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

            ParagraphProperties paragraphProperties8 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines8 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            Justification justification8 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties8 = new ParagraphMarkRunProperties();
            FontSize fontSize18 = new FontSize() { Val = "20" };

            paragraphMarkRunProperties8.Append(fontSize18);

            paragraphProperties8.Append(spacingBetweenLines8);
            paragraphProperties8.Append(justification8);
            paragraphProperties8.Append(paragraphMarkRunProperties8);

            Run run11 = new Run() { RsidRunProperties = "00FA5335" };

            RunProperties runProperties11 = new RunProperties();
            FontSize fontSize19 = new FontSize() { Val = "20" };

            runProperties11.Append(fontSize19);
            Text text10 = new Text();
            text10.Text = "второго семестра 2013 – 2014 учебного года";

            run11.Append(runProperties11);
            run11.Append(text10);

            paragraph8.Append(paragraphProperties8);
            paragraph8.Append(run11);

            Paragraph paragraph9 = new Paragraph() { RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

            ParagraphProperties paragraphProperties9 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines9 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            Justification justification9 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties9 = new ParagraphMarkRunProperties();
            FontSize fontSize20 = new FontSize() { Val = "20" };

            paragraphMarkRunProperties9.Append(fontSize20);

            paragraphProperties9.Append(spacingBetweenLines9);
            paragraphProperties9.Append(justification9);
            paragraphProperties9.Append(paragraphMarkRunProperties9);

            Run run12 = new Run() { RsidRunProperties = "00FA5335" };

            RunProperties runProperties12 = new RunProperties();
            FontSize fontSize21 = new FontSize() { Val = "20" };

            runProperties12.Append(fontSize21);
            Text text11 = new Text();
            text11.Text = FacultyName;

            run12.Append(runProperties12);
            run12.Append(text11);

            paragraph9.Append(paragraphProperties9);
            paragraph9.Append(run12);

            Paragraph paragraph10 = new Paragraph() { RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

            ParagraphProperties paragraphProperties10 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines10 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            Justification justification10 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties10 = new ParagraphMarkRunProperties();
            Bold bold1 = new Bold();
            FontSize fontSize22 = new FontSize() { Val = "28" };

            paragraphMarkRunProperties10.Append(bold1);
            paragraphMarkRunProperties10.Append(fontSize22);

            paragraphProperties10.Append(spacingBetweenLines10);
            paragraphProperties10.Append(justification10);
            paragraphProperties10.Append(paragraphMarkRunProperties10);

            Run run13 = new Run() { RsidRunProperties = "00FA5335" };

            RunProperties runProperties13 = new RunProperties();
            Bold bold2 = new Bold();
            FontSize fontSize23 = new FontSize() { Val = "28" };

            runProperties13.Append(bold2);
            runProperties13.Append(fontSize23);
            Text text12 = new Text();
            text12.Text = Dow;

            run13.Append(runProperties13);
            run13.Append(text12);

            paragraph10.Append(paragraphProperties10);
            paragraph10.Append(run13);

            Table table1 = new Table();

            TableProperties tableProperties1 = new TableProperties();
            TableWidth tableWidth1 = new TableWidth() { Width = "15919", Type = TableWidthUnitValues.Dxa };

            TableBorders tableBorders1 = new TableBorders();
            TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
            LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
            RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
            InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
            InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };

            tableBorders1.Append(topBorder1);
            tableBorders1.Append(leftBorder1);
            tableBorders1.Append(bottomBorder1);
            tableBorders1.Append(rightBorder1);
            tableBorders1.Append(insideHorizontalBorder1);
            tableBorders1.Append(insideVerticalBorder1);
            TableLayout tableLayout1 = new TableLayout() { Type = TableLayoutValues.Fixed };
            TableLook tableLook1 = new TableLook() { Val = "0000" };

            tableProperties1.Append(tableWidth1);
            tableProperties1.Append(tableBorders1);
            tableProperties1.Append(tableLayout1);
            tableProperties1.Append(tableLook1);

            TableGrid tableGrid1 = new TableGrid();
            GridColumn gridColumn1 = new GridColumn() { Width = "1383" };

            int colWidth = 14536 / Schedule.Count;
            for (int i = 0; i < Schedule.Count; i++)
            {
                GridColumn gridColumn2 = new GridColumn() { Width = colWidth.ToString() };

                tableGrid1.Append(gridColumn2);
            }

            // Ряд имён групп

            TableRow tableRow1 = new TableRow() { RsidTableRowMarkRevision = "00FA5335", RsidTableRowAddition = "00FA5335", RsidTableRowProperties = "00FA5335" };

            TablePropertyExceptions tablePropertyExceptions1 = new TablePropertyExceptions();

            TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault();
            TopMargin topMargin1 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };
            BottomMargin bottomMargin1 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };

            tableCellMarginDefault1.Append(topMargin1);
            tableCellMarginDefault1.Append(bottomMargin1);

            tablePropertyExceptions1.Append(tableCellMarginDefault1);

            Dictionary<int, List<int>> plainGroupsListIds = new Dictionary<int, List<int>>();
            Dictionary<int, List<int>> nGroupsListIds = new Dictionary<int, List<int>>();

            var groupNames = new List<string>();

            foreach (var group in Schedule)
            {
                var groupName = _Repo.GetStudentGroup(group.Key).Name;
                groupNames.Add(groupName.Replace(" (+Н)", ""));

                if (groupName.Contains(" (+Н)"))
                {
                    var plainGroupName = groupName.Replace(" (+Н)", "");
                    var nGroupName = groupName.Replace(" (+", "(");

                    var plainGroupId = _Repo.FindStudentGroup(plainGroupName).StudentGroupId;
                    var plainStudentIds = _Repo.GetAllStudentsInGroups()
                            .Where(sig => sig.StudentGroup.StudentGroupId == plainGroupId)
                            .Select(stig => stig.Student.StudentId)
                            .ToList();
                    plainGroupsListIds.Add(group.Key, _Repo.GetAllStudentsInGroups()
                            .Where(sig => plainStudentIds.Contains(sig.Student.StudentId))
                            .Select(stig => stig.StudentGroup.StudentGroupId)
                            .Distinct()
                            .ToList());

                    var nGroupId = _Repo.FindStudentGroup(nGroupName).StudentGroupId;
                    var nStudentIds = _Repo.GetAllStudentsInGroups()
                            .Where(sig => sig.StudentGroup.StudentGroupId == nGroupId)
                            .Select(stig => stig.Student.StudentId)
                            .ToList();
                    nGroupsListIds.Add(group.Key, _Repo.GetAllStudentsInGroups()
                            .Where(sig => nStudentIds.Contains(sig.Student.StudentId))
                            .Select(stig => stig.StudentGroup.StudentGroupId)
                            .Distinct()
                            .ToList());
                }
            }

            TableCell tableCell1 = new TableCell();

            TableCellProperties tableCellProperties1 = new TableCellProperties();
            TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "1383", Type = TableWidthUnitValues.Dxa };
            Shading shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" };

            tableCellProperties1.Append(tableCellWidth1);
            tableCellProperties1.Append(shading1);

            Paragraph paragraph11 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

            ParagraphProperties paragraphProperties11 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines11 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            Justification justification11 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties11 = new ParagraphMarkRunProperties();
            FontSize fontSize24 = new FontSize() { Val = "20" };

            paragraphMarkRunProperties11.Append(fontSize24);

            paragraphProperties11.Append(spacingBetweenLines11);
            paragraphProperties11.Append(justification11);
            paragraphProperties11.Append(paragraphMarkRunProperties11);

            Run run14 = new Run() { RsidRunProperties = "00FA5335" };

            RunProperties runProperties14 = new RunProperties();
            FontSize fontSize25 = new FontSize() { Val = "20" };

            runProperties14.Append(fontSize25);
            Text text13 = new Text();
            text13.Text = "Время";

            run14.Append(runProperties14);
            run14.Append(text13);

            paragraph11.Append(paragraphProperties11);
            paragraph11.Append(run14);

            tableCell1.Append(tableCellProperties1);
            tableCell1.Append(paragraph11);

            var HeaderCells = new List<TableCell>();

            for (int i = 0; i < Schedule.Count; i++)
            {
                TableCell tableCell2 = new TableCell();

                TableCellProperties tableCellProperties2 = new TableCellProperties();
                TableCellWidth tableCellWidth2 = new TableCellWidth() { Width = colWidth.ToString(), Type = TableWidthUnitValues.Dxa };
                Shading shading2 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" };

                tableCellProperties2.Append(tableCellWidth2);
                tableCellProperties2.Append(shading2);

                Paragraph paragraph12 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

                ParagraphProperties paragraphProperties12 = new ParagraphProperties();
                SpacingBetweenLines spacingBetweenLines12 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                Justification justification12 = new Justification() { Val = JustificationValues.Center };

                ParagraphMarkRunProperties paragraphMarkRunProperties12 = new ParagraphMarkRunProperties();
                FontSize fontSize26 = new FontSize() { Val = "20" };

                paragraphMarkRunProperties12.Append(fontSize26);

                paragraphProperties12.Append(spacingBetweenLines12);
                paragraphProperties12.Append(justification12);
                paragraphProperties12.Append(paragraphMarkRunProperties12);

                Run run15 = new Run() { RsidRunProperties = "00FA5335" };

                RunProperties runProperties15 = new RunProperties();
                FontSize fontSize27 = new FontSize() { Val = "20" };

                runProperties15.Append(fontSize27);
                Text text14 = new Text();
                text14.Text = groupNames[i];

                run15.Append(runProperties15);
                run15.Append(text14);

                paragraph12.Append(paragraphProperties12);
                paragraph12.Append(run15);

                tableCell2.Append(tableCellProperties2);
                tableCell2.Append(paragraph12);

                HeaderCells.Add(tableCell2);
            }

            tableRow1.Append(tablePropertyExceptions1);
            tableRow1.Append(tableCell1);
            foreach (var tc in HeaderCells)
            {
                tableRow1.Append(tc);
            }
            // FINISH --------- Ряд имён групп

            var timeList = new List<string>();
            foreach (var group in Schedule)
            {
                foreach (var time in group.Value.Keys)
                {
                    if (!timeList.Contains(time))
                    {
                        timeList.Add(time);
                    }
                }
            }

            var ScheduleRows = new List<TableRow>();

            var timeRowIndexList = new List<int>();

            foreach (var time in timeList.OrderBy(t => int.Parse(t.Split(':')[0]) * 60 + int.Parse(t.Split(':')[1])))
            {
                var TimeSchedule = new List<List<string>>();
                for (int i = 0; i < Schedule.Count; i++)
                {
                    TimeSchedule.Add(new List<string>());
                }

                var Hour = int.Parse(time.Substring(0, 2));
                var Minute = int.Parse(time.Substring(3, 2));

                Minute += 80;

                while (Minute >= 60)
                {
                    Hour++;
                    Minute -= 60;
                }

                var timeString = time + " - " + Hour.ToString("D2") + ":" + Minute.ToString("D2");

                var columnGroupIndex = 0;
                foreach (var group in Schedule)
                {
                    if (group.Value.ContainsKey(time))
                    {
                        var eventCount = group.Value[time].Count;

                        var tfdIndex = 0;
                        foreach (var tfdData in group.Value[time].OrderBy(tfd => tfd.Value.Item2.Select(l => _Repo.CalculateWeekNumber(l.Calendar.Date)).Min()))
                        {
                            var cellText = "";
                            cellText += tfdData.Value.Item2[0].TeacherForDiscipline.Discipline.Name;
                            var groupId = tfdData.Value.Item2[0].TeacherForDiscipline.Discipline.StudentGroup.StudentGroupId;

                            if (plainGroupsListIds.ContainsKey(group.Key))
                            {
                                if (plainGroupsListIds[group.Key].Contains(groupId) && nGroupsListIds[group.Key].Contains(groupId))
                                {
                                    cellText += " (+Н)";
                                }
                                if (!plainGroupsListIds[group.Key].Contains(groupId) && nGroupsListIds[group.Key].Contains(groupId))
                                {
                                    cellText += " (Н)";
                                }
                            }
                            cellText += Environment.NewLine;
                            cellText += tfdData.Value.Item2[0].TeacherForDiscipline.Teacher.FIO + Environment.NewLine;
                            cellText += "(" + tfdData.Value.Item1 + ")" + Environment.NewLine;

                            var audWeekList = tfdData.Value.Item2.ToDictionary(l => _Repo.CalculateWeekNumber(l.Calendar.Date), l => l.Auditorium.Name);
                            var grouped = audWeekList.GroupBy(a => a.Value);

                            var enumerable = grouped as List<IGrouping<string, KeyValuePair<int, string>>> ?? grouped.ToList();
                            var gcount = enumerable.Count();
                            if (gcount == 1)
                            {
                                cellText += enumerable.ElementAt(0).Key;
                            }
                            else
                            {
                                for (int j = 0; j < gcount; j++)
                                {
                                    var jItem = enumerable.OrderBy(e => e.Select(ag => ag.Key).ToList().Min()).ElementAt(j);
                                    cellText += ScheduleRepository.CombineWeeks(jItem.Select(ag => ag.Key).ToList()) + " - " + jItem.Key;

                                    if (j != gcount - 1)
                                    {
                                        cellText += Environment.NewLine;
                                    }
                                }
                            }

                            TimeSchedule[columnGroupIndex].Add(cellText);

                            tfdIndex++;

                        }
                    }

                    columnGroupIndex++;
                }

                // ====================================================================================================================================================

                TableRow tableRow2 = new TableRow() { RsidTableRowMarkRevision = "00FA5335", RsidTableRowAddition = "00FA5335", RsidTableRowProperties = "00FA5335" };

                TablePropertyExceptions tablePropertyExceptions2 = new TablePropertyExceptions();

                TableCellMarginDefault tableCellMarginDefault2 = new TableCellMarginDefault();
                TopMargin topMargin2 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };
                BottomMargin bottomMargin2 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };

                tableCellMarginDefault2.Append(topMargin2);
                tableCellMarginDefault2.Append(bottomMargin2);

                tablePropertyExceptions2.Append(tableCellMarginDefault2);

                TableCell tableCell4 = new TableCell();

                TableCellProperties tableCellProperties4 = new TableCellProperties();
                TableCellWidth tableCellWidth4 = new TableCellWidth() { Width = "1383", Type = TableWidthUnitValues.Dxa };
                Shading shading4 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" };
                TableCellVerticalAlignment tableCellVerticalAlignment1 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center };

                tableCellProperties4.Append(tableCellWidth4);
                tableCellProperties4.Append(shading4);
                tableCellProperties4.Append(tableCellVerticalAlignment1);

                Paragraph paragraph14 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

                ParagraphProperties paragraphProperties14 = new ParagraphProperties();
                SpacingBetweenLines spacingBetweenLines14 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
                Justification justification14 = new Justification() { Val = JustificationValues.Center };

                ParagraphMarkRunProperties paragraphMarkRunProperties14 = new ParagraphMarkRunProperties();
                FontSize fontSize30 = new FontSize() { Val = "20" };

                paragraphMarkRunProperties14.Append(fontSize30);

                paragraphProperties14.Append(spacingBetweenLines14);
                paragraphProperties14.Append(justification14);
                paragraphProperties14.Append(paragraphMarkRunProperties14);

                Run run17 = new Run() { RsidRunProperties = "00FA5335" };

                RunProperties runProperties17 = new RunProperties();
                FontSize fontSize31 = new FontSize() { Val = "20" };

                runProperties17.Append(fontSize31);
                Text text16 = new Text();
                text16.Text = timeString;

                run17.Append(runProperties17);
                run17.Append(text16);

                paragraph14.Append(paragraphProperties14);
                paragraph14.Append(run17);

                tableCell4.Append(tableCellProperties4);
                tableCell4.Append(paragraph14);

                var TimeScheduleTableCells = new List<TableCell>();

                for (int i = 0; i < TimeSchedule.Count; i++)
                {
                    TableCell tableCell6 = new TableCell();

                    TableCellProperties tableCellProperties6 = new TableCellProperties();
                    TableCellWidth tableCellWidth6 = new TableCellWidth() { Width = colWidth.ToString(), Type = TableWidthUnitValues.Dxa };
                    Shading shading6 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" };
                    TableCellVerticalAlignment tableCellVerticalAlignment2 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center };

                    tableCellProperties6.Append(tableCellWidth6);
                    tableCellProperties6.Append(shading6);
                    tableCellProperties6.Append(tableCellVerticalAlignment2);

                    if (TimeSchedule[i].Count == 0) // Empty cell
                    {
                        Paragraph paragraph15 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

                        ParagraphProperties paragraphProperties15 = new ParagraphProperties();
                        SpacingBetweenLines spacingBetweenLines15 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

                        ParagraphMarkRunProperties paragraphMarkRunProperties15 = new ParagraphMarkRunProperties();
                        FontSize fontSize32 = new FontSize() { Val = "20" };

                        paragraphMarkRunProperties15.Append(fontSize32);

                        paragraphProperties15.Append(spacingBetweenLines15);
                        paragraphProperties15.Append(paragraphMarkRunProperties15);

                        paragraph15.Append(paragraphProperties15);

                        tableCell6.Append(tableCellProperties6);
                        tableCell6.Append(paragraph15);
                    }
                    else
                    {
                        Table table2 = new Table();

                        TableProperties tableProperties2 = new TableProperties();
                        TableWidth tableWidth2 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto };
                        TableLayout tableLayout2 = new TableLayout() { Type = TableLayoutValues.Fixed };
                        TableLook tableLook2 = new TableLook() { Val = "0000" };

                        TableBorders tableBorders9 = new TableBorders();
                        TopBorder topBorder9 = new TopBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
                        LeftBorder leftBorder9 = new LeftBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
                        BottomBorder bottomBorder9 = new BottomBorder() { Val = BorderValues.None, Color = "000000", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
                        RightBorder rightBorder9 = new RightBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
                        InsideHorizontalBorder insideHorizontalBorder9 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
                        InsideVerticalBorder insideVerticalBorder9 = new InsideVerticalBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };

                        tableBorders9.Append(topBorder9);
                        tableBorders9.Append(leftBorder9);
                        tableBorders9.Append(bottomBorder9);
                        tableBorders9.Append(rightBorder9);
                        tableBorders9.Append(insideHorizontalBorder9);
                        tableBorders9.Append(insideVerticalBorder9);

                        tableProperties2.Append(tableWidth2);
                        tableProperties2.Append(tableBorders9);
                        tableProperties2.Append(tableLayout2);
                        tableProperties2.Append(tableLook2);

                        TableGrid tableGrid2 = new TableGrid();
                        GridColumn gridColumn4 = new GridColumn() { Width = "7052" };

                        tableGrid2.Append(gridColumn4);

                        for (int j = 0; j < TimeSchedule[i].Count; j++)
                        {
                            var item = TimeSchedule[i][j];
                            var itemLines = Regex.Split(item, "\r\n");

                            TableRow tableRow3 = new TableRow() { RsidTableRowMarkRevision = "00FA5335", RsidTableRowAddition = "00FA5335", RsidTableRowProperties = "00FA5335" };

                            TablePropertyExceptions tablePropertyExceptions3 = new TablePropertyExceptions();

                            TableCellMarginDefault tableCellMarginDefault3 = new TableCellMarginDefault();
                            TopMargin topMargin3 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };
                            BottomMargin bottomMargin3 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };

                            tableCellMarginDefault3.Append(topMargin3);
                            tableCellMarginDefault3.Append(bottomMargin3);

                            tablePropertyExceptions3.Append(tableCellMarginDefault3);

                            TableCell tableCell7 = new TableCell();

                            TableCellProperties tableCellProperties7 = new TableCellProperties();
                            TableCellWidth tableCellWidth7 = new TableCellWidth() { Width = "7052", Type = TableWidthUnitValues.Dxa };
                            TableCellVerticalAlignment tableCellVerticalAlignment3 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center };

                            TableCellBorders tableCellBorders99 = new TableCellBorders();
                            BottomBorder bottomBorder99;
                            if (j != TimeSchedule[i].Count - 1)
                            {
                                bottomBorder99 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
                                tableCellBorders99.Append(bottomBorder99);
                            }

                            tableCellProperties7.Append(tableCellWidth7);
                            tableCellProperties7.Append(tableCellBorders99);
                            tableCellProperties7.Append(tableCellVerticalAlignment3);

                            Paragraph paragraph16 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

                            ParagraphProperties paragraphProperties16 = new ParagraphProperties();
                            SpacingBetweenLines spacingBetweenLines16 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

                            ParagraphMarkRunProperties paragraphMarkRunProperties16 = new ParagraphMarkRunProperties();
                            FontSize fontSize33 = new FontSize() { Val = "20" };

                            paragraphMarkRunProperties16.Append(fontSize33);

                            paragraphProperties16.Append(spacingBetweenLines16);
                            paragraphProperties16.Append(paragraphMarkRunProperties16);

                            Run run18 = new Run() { RsidRunProperties = "00FA5335" };

                            RunProperties runProperties18 = new RunProperties();
                            FontSize fontSize34 = new FontSize() { Val = "20" };

                            runProperties18.Append(fontSize34);
                            Text text17 = new Text();
                            text17.Text = itemLines[0];

                            run18.Append(runProperties18);
                            run18.Append(text17);

                            paragraph16.Append(paragraphProperties16);
                            paragraph16.Append(run18);

                            Paragraph paragraph17 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

                            ParagraphProperties paragraphProperties17 = new ParagraphProperties();
                            SpacingBetweenLines spacingBetweenLines17 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

                            ParagraphMarkRunProperties paragraphMarkRunProperties17 = new ParagraphMarkRunProperties();
                            FontSize fontSize35 = new FontSize() { Val = "20" };

                            paragraphMarkRunProperties17.Append(fontSize35);

                            paragraphProperties17.Append(spacingBetweenLines17);
                            paragraphProperties17.Append(paragraphMarkRunProperties17);

                            Run run19 = new Run() { RsidRunProperties = "00FA5335" };

                            RunProperties runProperties19 = new RunProperties();
                            FontSize fontSize36 = new FontSize() { Val = "20" };

                            runProperties19.Append(fontSize36);
                            Text text18 = new Text();
                            text18.Text = itemLines[1];

                            run19.Append(runProperties19);
                            run19.Append(text18);

                            paragraph17.Append(paragraphProperties17);
                            paragraph17.Append(run19);

                            Paragraph paragraph18 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

                            ParagraphProperties paragraphProperties18 = new ParagraphProperties();
                            SpacingBetweenLines spacingBetweenLines18 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

                            ParagraphMarkRunProperties paragraphMarkRunProperties18 = new ParagraphMarkRunProperties();
                            FontSize fontSize37 = new FontSize() { Val = "20" };

                            paragraphMarkRunProperties18.Append(fontSize37);

                            paragraphProperties18.Append(spacingBetweenLines18);
                            paragraphProperties18.Append(paragraphMarkRunProperties18);

                            Run run20 = new Run() { RsidRunProperties = "00FA5335" };

                            RunProperties runProperties20 = new RunProperties();
                            FontSize fontSize38 = new FontSize() { Val = "20" };

                            runProperties20.Append(fontSize38);
                            Text text19 = new Text();
                            text19.Text = itemLines[2];

                            run20.Append(runProperties20);
                            run20.Append(text19);

                            paragraph18.Append(paragraphProperties18);
                            paragraph18.Append(run20);

                            Paragraph paragraph19 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

                            ParagraphProperties paragraphProperties19 = new ParagraphProperties();
                            SpacingBetweenLines spacingBetweenLines19 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

                            ParagraphMarkRunProperties paragraphMarkRunProperties19 = new ParagraphMarkRunProperties();
                            FontSize fontSize39 = new FontSize() { Val = "20" };

                            paragraphMarkRunProperties19.Append(fontSize39);

                            paragraphProperties19.Append(spacingBetweenLines19);
                            paragraphProperties19.Append(paragraphMarkRunProperties19);

                            Run run21 = new Run() { RsidRunProperties = "00FA5335" };

                            RunProperties runProperties21 = new RunProperties();
                            FontSize fontSize40 = new FontSize() { Val = "20" };

                            runProperties21.Append(fontSize40);
                            Text text20 = new Text();
                            text20.Text = itemLines[3];

                            run21.Append(runProperties21);
                            run21.Append(text20);

                            paragraph19.Append(paragraphProperties19);
                            paragraph19.Append(run21);

                            tableCell7.Append(tableCellProperties7);
                            tableCell7.Append(paragraph16);
                            tableCell7.Append(paragraph17);
                            tableCell7.Append(paragraph18);
                            tableCell7.Append(paragraph19);

                            tableRow3.Append(tablePropertyExceptions3);
                            tableRow3.Append(tableCell7);

                            table2.Append(tableRow3);
                        }

                        table2.Append(tableProperties2);
                        table2.Append(tableGrid2);

                        Paragraph paragraph20 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

                        ParagraphProperties paragraphProperties20 = new ParagraphProperties();
                        SpacingBetweenLines spacingBetweenLines20 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

                        ParagraphMarkRunProperties paragraphMarkRunProperties20 = new ParagraphMarkRunProperties();
                        FontSize fontSize41 = new FontSize() { Val = "20" };

                        paragraphMarkRunProperties20.Append(fontSize41);

                        paragraphProperties20.Append(spacingBetweenLines20);
                        paragraphProperties20.Append(paragraphMarkRunProperties20);

                        paragraph20.Append(paragraphProperties20);

                        tableCell6.Append(tableCellProperties6);
                        tableCell6.Append(table2);
                        tableCell6.Append(paragraph20);
                    }

                    TimeScheduleTableCells.Add(tableCell6);
                }

                tableRow2.Append(tablePropertyExceptions2);
                tableRow2.Append(tableCell4);

                foreach (var tc in TimeScheduleTableCells)
                {
                    tableRow2.Append(tc);
                }

                ScheduleRows.Add(tableRow2);
            }

            table1.Append(tableProperties1);
            table1.Append(tableGrid1);
            table1.Append(tableRow1);

            foreach (var tr in ScheduleRows)
            {
                table1.Append(tr);
            }

            Paragraph paragraph61 = new Paragraph() { RsidParagraphMarkRevision = "00FA5335", RsidParagraphAddition = "00FA5335", RsidParagraphProperties = "00FA5335", RsidRunAdditionDefault = "00FA5335" };

            ParagraphProperties paragraphProperties61 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines61 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };
            Justification justification19 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties61 = new ParagraphMarkRunProperties();
            Bold bold3 = new Bold();
            FontSize fontSize114 = new FontSize() { Val = "20" };

            paragraphMarkRunProperties61.Append(bold3);
            paragraphMarkRunProperties61.Append(fontSize114);

            paragraphProperties61.Append(spacingBetweenLines61);
            paragraphProperties61.Append(justification19);
            paragraphProperties61.Append(paragraphMarkRunProperties61);

            paragraph61.Append(paragraphProperties61);

            SectionProperties sectionProperties1 = new SectionProperties() { RsidRPr = "00FA5335", RsidR = "00FA5335", RsidSect = "00FA5335" };
            PageSize pageSize1 = new PageSize() { Width = (UInt32Value)16838U, Height = (UInt32Value)11906U, Orient = PageOrientationValues.Landscape };
            PageMargin pageMargin1 = new PageMargin() { Top = 567, Right = (UInt32Value)567U, Bottom = 567, Left = (UInt32Value)567U, Header = (UInt32Value)708U, Footer = (UInt32Value)708U, Gutter = (UInt32Value)0U };
            Columns columns1 = new Columns() { Space = "708" };
            DocGrid docGrid1 = new DocGrid() { LinePitch = 360 };

            sectionProperties1.Append(pageSize1);
            sectionProperties1.Append(pageMargin1);
            sectionProperties1.Append(columns1);
            sectionProperties1.Append(docGrid1);

            body1.Append(paragraph1);
            body1.Append(paragraph8);
            body1.Append(paragraph9);
            body1.Append(paragraph10);
            body1.Append(table1);
            body1.Append(paragraph61);
            body1.Append(sectionProperties1);

            document1.Append(body1);

            mainDocumentPart1.Document = document1;
        }
        // Generates content of drawingsPart1.
        private void GenerateDrawingsPart1Content(DrawingsPart drawingsPart1)
        {
            Xdr.WorksheetDrawing worksheetDrawing1 = new Xdr.WorksheetDrawing();
            worksheetDrawing1.AddNamespaceDeclaration("xdr", "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing");
            worksheetDrawing1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");

            Xdr.TwoCellAnchor twoCellAnchor1 = new Xdr.TwoCellAnchor() { EditAs = Xdr.EditAsValues.OneCell };

            Xdr.FromMarker fromMarker1 = new Xdr.FromMarker();
            Xdr.ColumnId columnId1 = new Xdr.ColumnId();
            columnId1.Text = "0";
            Xdr.ColumnOffset columnOffset1 = new Xdr.ColumnOffset();
            columnOffset1.Text = "347384";
            Xdr.RowId rowId1 = new Xdr.RowId();
            rowId1.Text = "0";
            Xdr.RowOffset rowOffset1 = new Xdr.RowOffset();
            rowOffset1.Text = "123265";

            fromMarker1.Append(columnId1);
            fromMarker1.Append(columnOffset1);
            fromMarker1.Append(rowId1);
            fromMarker1.Append(rowOffset1);

            Xdr.ToMarker toMarker1 = new Xdr.ToMarker();
            Xdr.ColumnId columnId2 = new Xdr.ColumnId();
            columnId2.Text = "2";
            Xdr.ColumnOffset columnOffset2 = new Xdr.ColumnOffset();
            columnOffset2.Text = "223413";
            Xdr.RowId rowId2 = new Xdr.RowId();
            rowId2.Text = "3";
            Xdr.RowOffset rowOffset2 = new Xdr.RowOffset();
            rowOffset2.Text = "98965";

            toMarker1.Append(columnId2);
            toMarker1.Append(columnOffset2);
            toMarker1.Append(rowId2);
            toMarker1.Append(rowOffset2);

            Xdr.Picture picture1 = new Xdr.Picture();

            Xdr.NonVisualPictureProperties nonVisualPictureProperties1 = new Xdr.NonVisualPictureProperties();
            Xdr.NonVisualDrawingProperties nonVisualDrawingProperties1 = new Xdr.NonVisualDrawingProperties() { Id = (UInt32Value)2U, Name = "Picture 1", Description = "logo-Sprayette" };

            Xdr.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties1 = new Xdr.NonVisualPictureDrawingProperties();
            A.PictureLocks pictureLocks1 = new A.PictureLocks() { NoChangeAspect = true, NoChangeArrowheads = true };

            nonVisualPictureDrawingProperties1.Append(pictureLocks1);

            nonVisualPictureProperties1.Append(nonVisualDrawingProperties1);
            nonVisualPictureProperties1.Append(nonVisualPictureDrawingProperties1);

            Xdr.BlipFill blipFill1 = new Xdr.BlipFill();

            A.Blip blip1 = new A.Blip() { Embed = "rId1" };
            blip1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");

            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);

            Xdr.ShapeProperties shapeProperties1 = new Xdr.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto };

            A.Transform2D transform2D1 = new A.Transform2D();
            A.Offset offset1 = new A.Offset() { X = 347384L, Y = 123265L };
            A.Extents extents1 = new A.Extents() { Cx = 2106000L, Cy = 547200L };

            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 outline4 = new A.Outline();
            A.NoFill noFill2 = new A.NoFill();

            outline4.Append(noFill2);

            A.ShapePropertiesExtensionList shapePropertiesExtensionList1 = new A.ShapePropertiesExtensionList();

            A.ShapePropertiesExtension shapePropertiesExtension1 = new A.ShapePropertiesExtension() { Uri = "{909E8E84-426E-40DD-AFC4-6F175D3DCCD1}" };

            A14.HiddenFillProperties hiddenFillProperties1 = new A14.HiddenFillProperties();
            hiddenFillProperties1.AddNamespaceDeclaration("a14", "http://schemas.microsoft.com/office/drawing/2010/main");

            A.SolidFill solidFill6 = new A.SolidFill();
            A.RgbColorModelHex rgbColorModelHex14 = new A.RgbColorModelHex() { Val = "FFFFFF" };

            solidFill6.Append(rgbColorModelHex14);

            hiddenFillProperties1.Append(solidFill6);

            shapePropertiesExtension1.Append(hiddenFillProperties1);

            A.ShapePropertiesExtension shapePropertiesExtension2 = new A.ShapePropertiesExtension() { Uri = "{91240B29-F687-4F45-9708-019B960494DF}" };

            A14.HiddenLineProperties hiddenLineProperties1 = new A14.HiddenLineProperties() { Width = 9525 };
            hiddenLineProperties1.AddNamespaceDeclaration("a14", "http://schemas.microsoft.com/office/drawing/2010/main");

            A.SolidFill solidFill7 = new A.SolidFill();
            A.RgbColorModelHex rgbColorModelHex15 = new A.RgbColorModelHex() { Val = "000000" };

            solidFill7.Append(rgbColorModelHex15);
            A.Miter miter1 = new A.Miter() { Limit = 800000 };
            A.HeadEnd headEnd1 = new A.HeadEnd();
            A.TailEnd tailEnd1 = new A.TailEnd();

            hiddenLineProperties1.Append(solidFill7);
            hiddenLineProperties1.Append(miter1);
            hiddenLineProperties1.Append(headEnd1);
            hiddenLineProperties1.Append(tailEnd1);

            shapePropertiesExtension2.Append(hiddenLineProperties1);

            shapePropertiesExtensionList1.Append(shapePropertiesExtension1);
            shapePropertiesExtensionList1.Append(shapePropertiesExtension2);

            shapeProperties1.Append(transform2D1);
            shapeProperties1.Append(presetGeometry1);
            shapeProperties1.Append(noFill1);
            shapeProperties1.Append(outline4);
            shapeProperties1.Append(shapePropertiesExtensionList1);

            picture1.Append(nonVisualPictureProperties1);
            picture1.Append(blipFill1);
            picture1.Append(shapeProperties1);
            Xdr.ClientData clientData1 = new Xdr.ClientData();

            twoCellAnchor1.Append(fromMarker1);
            twoCellAnchor1.Append(toMarker1);
            twoCellAnchor1.Append(picture1);
            twoCellAnchor1.Append(clientData1);

            worksheetDrawing1.Append(twoCellAnchor1);

            drawingsPart1.WorksheetDrawing = worksheetDrawing1;
        }
        public static void GenerateNotesSlidePart1Content(NotesSlidePart notesSlidePart1)
        {
            NotesSlide notesSlide1 = new NotesSlide();

            notesSlide1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");
            notesSlide1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
            notesSlide1.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main");

            CommonSlideData commonSlideData4 = new CommonSlideData();

            ShapeTree shapeTree4 = new ShapeTree();

            NonVisualGroupShapeProperties nonVisualGroupShapeProperties4 = new NonVisualGroupShapeProperties();
            NonVisualDrawingProperties    nonVisualDrawingProperties20   = new NonVisualDrawingProperties()
            {
                Id = (UInt32Value)1U, Name = ""
            };
            NonVisualGroupShapeDrawingProperties  nonVisualGroupShapeDrawingProperties4   = new NonVisualGroupShapeDrawingProperties();
            ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties20 = new ApplicationNonVisualDrawingProperties();

            nonVisualGroupShapeProperties4.Append(nonVisualDrawingProperties20);
            nonVisualGroupShapeProperties4.Append(nonVisualGroupShapeDrawingProperties4);
            nonVisualGroupShapeProperties4.Append(applicationNonVisualDrawingProperties20);

            GroupShapeProperties groupShapeProperties4 = new GroupShapeProperties();

            A.TransformGroup transformGroup4 = 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 childOffset4 = new A.ChildOffset()
            {
                X = 0L, Y = 0L
            };
            A.ChildExtents childExtents4 = new A.ChildExtents()
            {
                Cx = 0L, Cy = 0L
            };

            transformGroup4.Append(offset22);
            transformGroup4.Append(extents22);
            transformGroup4.Append(childOffset4);
            transformGroup4.Append(childExtents4);

            groupShapeProperties4.Append(transformGroup4);

            Shape shape16 = new Shape();

            NonVisualShapeProperties   nonVisualShapeProperties16   = new NonVisualShapeProperties();
            NonVisualDrawingProperties nonVisualDrawingProperties21 = new NonVisualDrawingProperties()
            {
                Id = (UInt32Value)19458U, Name = "Rectangle 7"
            };

            NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties16 = new NonVisualShapeDrawingProperties();

            A.ShapeLocks shapeLocks16 = new A.ShapeLocks()
            {
                NoGrouping = true, NoChangeArrowheads = true
            };

            nonVisualShapeDrawingProperties16.Append(shapeLocks16);

            ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties21 = new ApplicationNonVisualDrawingProperties();
            PlaceholderShape placeholderShape11 = new PlaceholderShape()
            {
                Type = PlaceholderValues.SlideNumber, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)5U
            };

            applicationNonVisualDrawingProperties21.Append(placeholderShape11);

            nonVisualShapeProperties16.Append(nonVisualDrawingProperties21);
            nonVisualShapeProperties16.Append(nonVisualShapeDrawingProperties16);
            nonVisualShapeProperties16.Append(applicationNonVisualDrawingProperties21);

            ShapeProperties shapeProperties19 = new ShapeProperties();

            A.NoFill  noFill19  = new A.NoFill();
            A.Outline outline33 = new A.Outline();

            A.ShapePropertiesExtensionList shapePropertiesExtensionList7 = new A.ShapePropertiesExtensionList();

            A.ShapePropertiesExtension shapePropertiesExtension7 = new A.ShapePropertiesExtension()
            {
                Uri = "{909E8E84-426E-40DD-AFC4-6F175D3DCCD1}"
            };

            A14.HiddenFillProperties hiddenFillProperties2 = new A14.HiddenFillProperties();
            hiddenFillProperties2.AddNamespaceDeclaration("a14", "http://schemas.microsoft.com/office/drawing/2010/main");

            A.SolidFill        solidFill158        = new A.SolidFill();
            A.RgbColorModelHex rgbColorModelHex239 = new A.RgbColorModelHex()
            {
                Val = "FFFFFF"
            };

            solidFill158.Append(rgbColorModelHex239);

            hiddenFillProperties2.Append(solidFill158);

            shapePropertiesExtension7.Append(hiddenFillProperties2);

            A.ShapePropertiesExtension shapePropertiesExtension8 = new A.ShapePropertiesExtension()
            {
                Uri = "{91240B29-F687-4F45-9708-019B960494DF}"
            };

            A14.HiddenLineProperties hiddenLineProperties6 = new A14.HiddenLineProperties()
            {
                Width = 9525
            };
            hiddenLineProperties6.AddNamespaceDeclaration("a14", "http://schemas.microsoft.com/office/drawing/2010/main");

            A.SolidFill        solidFill159        = new A.SolidFill();
            A.RgbColorModelHex rgbColorModelHex240 = new A.RgbColorModelHex()
            {
                Val = "000000"
            };

            solidFill159.Append(rgbColorModelHex240);
            A.Miter miter15 = new A.Miter()
            {
                Limit = 800000
            };
            A.HeadEnd headEnd14 = new A.HeadEnd();
            A.TailEnd tailEnd14 = new A.TailEnd();

            hiddenLineProperties6.Append(solidFill159);
            hiddenLineProperties6.Append(miter15);
            hiddenLineProperties6.Append(headEnd14);
            hiddenLineProperties6.Append(tailEnd14);

            shapePropertiesExtension8.Append(hiddenLineProperties6);

            shapePropertiesExtensionList7.Append(shapePropertiesExtension7);
            shapePropertiesExtensionList7.Append(shapePropertiesExtension8);

            shapeProperties19.Append(noFill19);
            shapeProperties19.Append(outline33);
            shapeProperties19.Append(shapePropertiesExtensionList7);

            TextBody textBody15 = new TextBody();

            A.BodyProperties bodyProperties17 = new A.BodyProperties();

            A.ListStyle listStyle17 = new A.ListStyle();

            A.Level1ParagraphProperties level1ParagraphProperties16 = new A.Level1ParagraphProperties();

            A.SpaceBefore    spaceBefore74    = new A.SpaceBefore();
            A.SpacingPercent spacingPercent95 = new A.SpacingPercent()
            {
                Val = 30000
            };

            spaceBefore74.Append(spacingPercent95);

            A.DefaultRunProperties defaultRunProperties95 = new A.DefaultRunProperties()
            {
                FontSize = 1200
            };

            A.SolidFill   solidFill160   = new A.SolidFill();
            A.SchemeColor schemeColor221 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.Text1
            };

            solidFill160.Append(schemeColor221);
            A.LatinFont latinFont112 = new A.LatinFont()
            {
                Typeface = "Arial", Panose = "020B0604020202020204", PitchFamily = 34, CharacterSet = 0
            };
            A.EastAsianFont eastAsianFont75 = new A.EastAsianFont()
            {
                Typeface = "MS PGothic", Panose = "020B0600070205080204", PitchFamily = 34, CharacterSet = -128
            };

            defaultRunProperties95.Append(solidFill160);
            defaultRunProperties95.Append(latinFont112);
            defaultRunProperties95.Append(eastAsianFont75);

            level1ParagraphProperties16.Append(spaceBefore74);
            level1ParagraphProperties16.Append(defaultRunProperties95);

            A.Level2ParagraphProperties level2ParagraphProperties8 = new A.Level2ParagraphProperties()
            {
                LeftMargin = 735013, Indent = -280988
            };

            A.SpaceBefore    spaceBefore75    = new A.SpaceBefore();
            A.SpacingPercent spacingPercent96 = new A.SpacingPercent()
            {
                Val = 30000
            };

            spaceBefore75.Append(spacingPercent96);

            A.DefaultRunProperties defaultRunProperties96 = new A.DefaultRunProperties()
            {
                FontSize = 1200
            };

            A.SolidFill   solidFill161   = new A.SolidFill();
            A.SchemeColor schemeColor222 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.Text1
            };

            solidFill161.Append(schemeColor222);
            A.LatinFont latinFont113 = new A.LatinFont()
            {
                Typeface = "Arial", Panose = "020B0604020202020204", PitchFamily = 34, CharacterSet = 0
            };
            A.EastAsianFont eastAsianFont76 = new A.EastAsianFont()
            {
                Typeface = "MS PGothic", Panose = "020B0600070205080204", PitchFamily = 34, CharacterSet = -128
            };

            defaultRunProperties96.Append(solidFill161);
            defaultRunProperties96.Append(latinFont113);
            defaultRunProperties96.Append(eastAsianFont76);

            level2ParagraphProperties8.Append(spaceBefore75);
            level2ParagraphProperties8.Append(defaultRunProperties96);

            A.Level3ParagraphProperties level3ParagraphProperties8 = new A.Level3ParagraphProperties()
            {
                LeftMargin = 1131888, Indent = -225425
            };

            A.SpaceBefore    spaceBefore76    = new A.SpaceBefore();
            A.SpacingPercent spacingPercent97 = new A.SpacingPercent()
            {
                Val = 30000
            };

            spaceBefore76.Append(spacingPercent97);

            A.DefaultRunProperties defaultRunProperties97 = new A.DefaultRunProperties()
            {
                FontSize = 1200
            };

            A.SolidFill   solidFill162   = new A.SolidFill();
            A.SchemeColor schemeColor223 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.Text1
            };

            solidFill162.Append(schemeColor223);
            A.LatinFont latinFont114 = new A.LatinFont()
            {
                Typeface = "Arial", Panose = "020B0604020202020204", PitchFamily = 34, CharacterSet = 0
            };
            A.EastAsianFont eastAsianFont77 = new A.EastAsianFont()
            {
                Typeface = "MS PGothic", Panose = "020B0600070205080204", PitchFamily = 34, CharacterSet = -128
            };

            defaultRunProperties97.Append(solidFill162);
            defaultRunProperties97.Append(latinFont114);
            defaultRunProperties97.Append(eastAsianFont77);

            level3ParagraphProperties8.Append(spaceBefore76);
            level3ParagraphProperties8.Append(defaultRunProperties97);

            A.Level4ParagraphProperties level4ParagraphProperties8 = new A.Level4ParagraphProperties()
            {
                LeftMargin = 1585913, Indent = -225425
            };

            A.SpaceBefore    spaceBefore77    = new A.SpaceBefore();
            A.SpacingPercent spacingPercent98 = new A.SpacingPercent()
            {
                Val = 30000
            };

            spaceBefore77.Append(spacingPercent98);

            A.DefaultRunProperties defaultRunProperties98 = new A.DefaultRunProperties()
            {
                FontSize = 1200
            };

            A.SolidFill   solidFill163   = new A.SolidFill();
            A.SchemeColor schemeColor224 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.Text1
            };

            solidFill163.Append(schemeColor224);
            A.LatinFont latinFont115 = new A.LatinFont()
            {
                Typeface = "Arial", Panose = "020B0604020202020204", PitchFamily = 34, CharacterSet = 0
            };
            A.EastAsianFont eastAsianFont78 = new A.EastAsianFont()
            {
                Typeface = "MS PGothic", Panose = "020B0600070205080204", PitchFamily = 34, CharacterSet = -128
            };

            defaultRunProperties98.Append(solidFill163);
            defaultRunProperties98.Append(latinFont115);
            defaultRunProperties98.Append(eastAsianFont78);

            level4ParagraphProperties8.Append(spaceBefore77);
            level4ParagraphProperties8.Append(defaultRunProperties98);

            A.Level5ParagraphProperties level5ParagraphProperties8 = new A.Level5ParagraphProperties()
            {
                LeftMargin = 2038350, Indent = -225425
            };

            A.SpaceBefore    spaceBefore78    = new A.SpaceBefore();
            A.SpacingPercent spacingPercent99 = new A.SpacingPercent()
            {
                Val = 30000
            };

            spaceBefore78.Append(spacingPercent99);

            A.DefaultRunProperties defaultRunProperties99 = new A.DefaultRunProperties()
            {
                FontSize = 1200
            };

            A.SolidFill   solidFill164   = new A.SolidFill();
            A.SchemeColor schemeColor225 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.Text1
            };

            solidFill164.Append(schemeColor225);
            A.LatinFont latinFont116 = new A.LatinFont()
            {
                Typeface = "Arial", Panose = "020B0604020202020204", PitchFamily = 34, CharacterSet = 0
            };
            A.EastAsianFont eastAsianFont79 = new A.EastAsianFont()
            {
                Typeface = "MS PGothic", Panose = "020B0600070205080204", PitchFamily = 34, CharacterSet = -128
            };

            defaultRunProperties99.Append(solidFill164);
            defaultRunProperties99.Append(latinFont116);
            defaultRunProperties99.Append(eastAsianFont79);

            level5ParagraphProperties8.Append(spaceBefore78);
            level5ParagraphProperties8.Append(defaultRunProperties99);

            A.Level6ParagraphProperties level6ParagraphProperties8 = new A.Level6ParagraphProperties()
            {
                LeftMargin = 2495550, Indent = -225425, EastAsianLineBreak = false, FontAlignment = A.TextFontAlignmentValues.Baseline, Height = false
            };

            A.SpaceBefore    spaceBefore79     = new A.SpaceBefore();
            A.SpacingPercent spacingPercent100 = new A.SpacingPercent()
            {
                Val = 30000
            };

            spaceBefore79.Append(spacingPercent100);

            A.SpaceAfter     spaceAfter59      = new A.SpaceAfter();
            A.SpacingPercent spacingPercent101 = new A.SpacingPercent()
            {
                Val = 0
            };

            spaceAfter59.Append(spacingPercent101);

            A.DefaultRunProperties defaultRunProperties100 = new A.DefaultRunProperties()
            {
                FontSize = 1200
            };

            A.SolidFill   solidFill165   = new A.SolidFill();
            A.SchemeColor schemeColor226 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.Text1
            };

            solidFill165.Append(schemeColor226);
            A.LatinFont latinFont117 = new A.LatinFont()
            {
                Typeface = "Arial", Panose = "020B0604020202020204", PitchFamily = 34, CharacterSet = 0
            };
            A.EastAsianFont eastAsianFont80 = new A.EastAsianFont()
            {
                Typeface = "MS PGothic", Panose = "020B0600070205080204", PitchFamily = 34, CharacterSet = -128
            };

            defaultRunProperties100.Append(solidFill165);
            defaultRunProperties100.Append(latinFont117);
            defaultRunProperties100.Append(eastAsianFont80);

            level6ParagraphProperties8.Append(spaceBefore79);
            level6ParagraphProperties8.Append(spaceAfter59);
            level6ParagraphProperties8.Append(defaultRunProperties100);

            A.Level7ParagraphProperties level7ParagraphProperties8 = new A.Level7ParagraphProperties()
            {
                LeftMargin = 2952750, Indent = -225425, EastAsianLineBreak = false, FontAlignment = A.TextFontAlignmentValues.Baseline, Height = false
            };

            A.SpaceBefore    spaceBefore80     = new A.SpaceBefore();
            A.SpacingPercent spacingPercent102 = new A.SpacingPercent()
            {
                Val = 30000
            };

            spaceBefore80.Append(spacingPercent102);

            A.SpaceAfter     spaceAfter60      = new A.SpaceAfter();
            A.SpacingPercent spacingPercent103 = new A.SpacingPercent()
            {
                Val = 0
            };

            spaceAfter60.Append(spacingPercent103);

            A.DefaultRunProperties defaultRunProperties101 = new A.DefaultRunProperties()
            {
                FontSize = 1200
            };

            A.SolidFill   solidFill166   = new A.SolidFill();
            A.SchemeColor schemeColor227 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.Text1
            };

            solidFill166.Append(schemeColor227);
            A.LatinFont latinFont118 = new A.LatinFont()
            {
                Typeface = "Arial", Panose = "020B0604020202020204", PitchFamily = 34, CharacterSet = 0
            };
            A.EastAsianFont eastAsianFont81 = new A.EastAsianFont()
            {
                Typeface = "MS PGothic", Panose = "020B0600070205080204", PitchFamily = 34, CharacterSet = -128
            };

            defaultRunProperties101.Append(solidFill166);
            defaultRunProperties101.Append(latinFont118);
            defaultRunProperties101.Append(eastAsianFont81);

            level7ParagraphProperties8.Append(spaceBefore80);
            level7ParagraphProperties8.Append(spaceAfter60);
            level7ParagraphProperties8.Append(defaultRunProperties101);

            A.Level8ParagraphProperties level8ParagraphProperties8 = new A.Level8ParagraphProperties()
            {
                LeftMargin = 3409950, Indent = -225425, EastAsianLineBreak = false, FontAlignment = A.TextFontAlignmentValues.Baseline, Height = false
            };

            A.SpaceBefore    spaceBefore81     = new A.SpaceBefore();
            A.SpacingPercent spacingPercent104 = new A.SpacingPercent()
            {
                Val = 30000
            };

            spaceBefore81.Append(spacingPercent104);

            A.SpaceAfter     spaceAfter61      = new A.SpaceAfter();
            A.SpacingPercent spacingPercent105 = new A.SpacingPercent()
            {
                Val = 0
            };

            spaceAfter61.Append(spacingPercent105);

            A.DefaultRunProperties defaultRunProperties102 = new A.DefaultRunProperties()
            {
                FontSize = 1200
            };

            A.SolidFill   solidFill167   = new A.SolidFill();
            A.SchemeColor schemeColor228 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.Text1
            };

            solidFill167.Append(schemeColor228);
            A.LatinFont latinFont119 = new A.LatinFont()
            {
                Typeface = "Arial", Panose = "020B0604020202020204", PitchFamily = 34, CharacterSet = 0
            };
            A.EastAsianFont eastAsianFont82 = new A.EastAsianFont()
            {
                Typeface = "MS PGothic", Panose = "020B0600070205080204", PitchFamily = 34, CharacterSet = -128
            };

            defaultRunProperties102.Append(solidFill167);
            defaultRunProperties102.Append(latinFont119);
            defaultRunProperties102.Append(eastAsianFont82);

            level8ParagraphProperties8.Append(spaceBefore81);
            level8ParagraphProperties8.Append(spaceAfter61);
            level8ParagraphProperties8.Append(defaultRunProperties102);

            A.Level9ParagraphProperties level9ParagraphProperties8 = new A.Level9ParagraphProperties()
            {
                LeftMargin = 3867150, Indent = -225425, EastAsianLineBreak = false, FontAlignment = A.TextFontAlignmentValues.Baseline, Height = false
            };

            A.SpaceBefore    spaceBefore82     = new A.SpaceBefore();
            A.SpacingPercent spacingPercent106 = new A.SpacingPercent()
            {
                Val = 30000
            };

            spaceBefore82.Append(spacingPercent106);

            A.SpaceAfter     spaceAfter62      = new A.SpaceAfter();
            A.SpacingPercent spacingPercent107 = new A.SpacingPercent()
            {
                Val = 0
            };

            spaceAfter62.Append(spacingPercent107);

            A.DefaultRunProperties defaultRunProperties103 = new A.DefaultRunProperties()
            {
                FontSize = 1200
            };

            A.SolidFill   solidFill168   = new A.SolidFill();
            A.SchemeColor schemeColor229 = new A.SchemeColor()
            {
                Val = A.SchemeColorValues.Text1
            };

            solidFill168.Append(schemeColor229);
            A.LatinFont latinFont120 = new A.LatinFont()
            {
                Typeface = "Arial", Panose = "020B0604020202020204", PitchFamily = 34, CharacterSet = 0
            };
            A.EastAsianFont eastAsianFont83 = new A.EastAsianFont()
            {
                Typeface = "MS PGothic", Panose = "020B0600070205080204", PitchFamily = 34, CharacterSet = -128
            };

            defaultRunProperties103.Append(solidFill168);
            defaultRunProperties103.Append(latinFont120);
            defaultRunProperties103.Append(eastAsianFont83);

            level9ParagraphProperties8.Append(spaceBefore82);
            level9ParagraphProperties8.Append(spaceAfter62);
            level9ParagraphProperties8.Append(defaultRunProperties103);

            listStyle17.Append(level1ParagraphProperties16);
            listStyle17.Append(level2ParagraphProperties8);
            listStyle17.Append(level3ParagraphProperties8);
            listStyle17.Append(level4ParagraphProperties8);
            listStyle17.Append(level5ParagraphProperties8);
            listStyle17.Append(level6ParagraphProperties8);
            listStyle17.Append(level7ParagraphProperties8);
            listStyle17.Append(level8ParagraphProperties8);
            listStyle17.Append(level9ParagraphProperties8);

            A.Paragraph paragraph40 = new A.Paragraph();

            A.ParagraphProperties paragraphProperties37 = new A.ParagraphProperties();

            A.SpaceBefore    spaceBefore83     = new A.SpaceBefore();
            A.SpacingPercent spacingPercent108 = new A.SpacingPercent()
            {
                Val = 0
            };

            spaceBefore83.Append(spacingPercent108);

            paragraphProperties37.Append(spaceBefore83);

            A.Field field4 = new A.Field()
            {
                Id = "{99BBE751-775A-442D-AED5-C8FC60817C7D}", Type = "slidenum"
            };

            A.RunProperties runProperties41 = new A.RunProperties()
            {
                Language = "en-US", AlternativeLanguage = "et-EE"
            };
            runProperties41.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0"));
            A.ComplexScriptFont complexScriptFont61 = new A.ComplexScriptFont()
            {
                Typeface = "Arial", Panose = "020B0604020202020204", PitchFamily = 34, CharacterSet = 0
            };

            runProperties41.Append(complexScriptFont61);

            A.ParagraphProperties paragraphProperties38 = new A.ParagraphProperties();

            A.SpaceBefore    spaceBefore84     = new A.SpaceBefore();
            A.SpacingPercent spacingPercent109 = new A.SpacingPercent()
            {
                Val = 0
            };

            spaceBefore84.Append(spacingPercent109);

            paragraphProperties38.Append(spaceBefore84);
            A.Text text41 = new A.Text();
            text41.Text = "1";

            field4.Append(runProperties41);
            field4.Append(paragraphProperties38);
            field4.Append(text41);

            A.EndParagraphRunProperties endParagraphRunProperties21 = new A.EndParagraphRunProperties()
            {
                Language = "en-US", AlternativeLanguage = "et-EE"
            };
            A.ComplexScriptFont complexScriptFont62 = new A.ComplexScriptFont()
            {
                Typeface = "Arial", Panose = "020B0604020202020204", PitchFamily = 34, CharacterSet = 0
            };

            endParagraphRunProperties21.Append(complexScriptFont62);

            paragraph40.Append(paragraphProperties37);
            paragraph40.Append(field4);
            paragraph40.Append(endParagraphRunProperties21);

            textBody15.Append(bodyProperties17);
            textBody15.Append(listStyle17);
            textBody15.Append(paragraph40);

            shape16.Append(nonVisualShapeProperties16);
            shape16.Append(shapeProperties19);
            shape16.Append(textBody15);

            Shape shape17 = new Shape();

            NonVisualShapeProperties   nonVisualShapeProperties17   = new NonVisualShapeProperties();
            NonVisualDrawingProperties nonVisualDrawingProperties22 = new NonVisualDrawingProperties()
            {
                Id = (UInt32Value)19459U, Name = "Rectangle 2"
            };

            NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties17 = new NonVisualShapeDrawingProperties();

            A.ShapeLocks shapeLocks17 = new A.ShapeLocks()
            {
                NoGrouping = true, NoRotation = true, NoChangeAspect = true, NoChangeArrowheads = true, NoTextEdit = true
            };

            nonVisualShapeDrawingProperties17.Append(shapeLocks17);

            ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties22 = new ApplicationNonVisualDrawingProperties();
            PlaceholderShape placeholderShape12 = new PlaceholderShape()
            {
                Type = PlaceholderValues.SlideImage
            };

            applicationNonVisualDrawingProperties22.Append(placeholderShape12);

            nonVisualShapeProperties17.Append(nonVisualDrawingProperties22);
            nonVisualShapeProperties17.Append(nonVisualShapeDrawingProperties17);
            nonVisualShapeProperties17.Append(applicationNonVisualDrawingProperties22);

            ShapeProperties shapeProperties20 = new ShapeProperties();

            A.Outline outline34 = new A.Outline();

            shapeProperties20.Append(outline34);

            shape17.Append(nonVisualShapeProperties17);
            shape17.Append(shapeProperties20);

            Shape shape18 = new Shape();

            NonVisualShapeProperties   nonVisualShapeProperties18   = new NonVisualShapeProperties();
            NonVisualDrawingProperties nonVisualDrawingProperties23 = new NonVisualDrawingProperties()
            {
                Id = (UInt32Value)19460U, Name = "Rectangle 3"
            };

            NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties18 = new NonVisualShapeDrawingProperties();

            A.ShapeLocks shapeLocks18 = new A.ShapeLocks()
            {
                NoGrouping = true, NoChangeArrowheads = true
            };

            nonVisualShapeDrawingProperties18.Append(shapeLocks18);

            ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties23 = new ApplicationNonVisualDrawingProperties();
            PlaceholderShape placeholderShape13 = new PlaceholderShape()
            {
                Type = PlaceholderValues.Body, Index = (UInt32Value)1U
            };

            applicationNonVisualDrawingProperties23.Append(placeholderShape13);

            nonVisualShapeProperties18.Append(nonVisualDrawingProperties23);
            nonVisualShapeProperties18.Append(nonVisualShapeDrawingProperties18);
            nonVisualShapeProperties18.Append(applicationNonVisualDrawingProperties23);

            ShapeProperties shapeProperties21 = new ShapeProperties();

            A.NoFill  noFill20  = new A.NoFill();
            A.Outline outline35 = new A.Outline();

            A.ShapePropertiesExtensionList shapePropertiesExtensionList8 = new A.ShapePropertiesExtensionList();

            A.ShapePropertiesExtension shapePropertiesExtension9 = new A.ShapePropertiesExtension()
            {
                Uri = "{909E8E84-426E-40DD-AFC4-6F175D3DCCD1}"
            };

            A14.HiddenFillProperties hiddenFillProperties3 = new A14.HiddenFillProperties();
            hiddenFillProperties3.AddNamespaceDeclaration("a14", "http://schemas.microsoft.com/office/drawing/2010/main");

            A.SolidFill        solidFill169        = new A.SolidFill();
            A.RgbColorModelHex rgbColorModelHex241 = new A.RgbColorModelHex()
            {
                Val = "FFFFFF"
            };

            solidFill169.Append(rgbColorModelHex241);

            hiddenFillProperties3.Append(solidFill169);

            shapePropertiesExtension9.Append(hiddenFillProperties3);

            A.ShapePropertiesExtension shapePropertiesExtension10 = new A.ShapePropertiesExtension()
            {
                Uri = "{91240B29-F687-4F45-9708-019B960494DF}"
            };

            A14.HiddenLineProperties hiddenLineProperties7 = new A14.HiddenLineProperties()
            {
                Width = 9525
            };
            hiddenLineProperties7.AddNamespaceDeclaration("a14", "http://schemas.microsoft.com/office/drawing/2010/main");

            A.SolidFill        solidFill170        = new A.SolidFill();
            A.RgbColorModelHex rgbColorModelHex242 = new A.RgbColorModelHex()
            {
                Val = "000000"
            };

            solidFill170.Append(rgbColorModelHex242);
            A.Miter miter16 = new A.Miter()
            {
                Limit = 800000
            };
            A.HeadEnd headEnd15 = new A.HeadEnd();
            A.TailEnd tailEnd15 = new A.TailEnd();

            hiddenLineProperties7.Append(solidFill170);
            hiddenLineProperties7.Append(miter16);
            hiddenLineProperties7.Append(headEnd15);
            hiddenLineProperties7.Append(tailEnd15);

            shapePropertiesExtension10.Append(hiddenLineProperties7);

            shapePropertiesExtensionList8.Append(shapePropertiesExtension9);
            shapePropertiesExtensionList8.Append(shapePropertiesExtension10);

            shapeProperties21.Append(noFill20);
            shapeProperties21.Append(outline35);
            shapeProperties21.Append(shapePropertiesExtensionList8);

            TextBody textBody16 = new TextBody();

            A.BodyProperties bodyProperties18 = new A.BodyProperties();
            A.ListStyle      listStyle18      = new A.ListStyle();

            A.Paragraph           paragraph41           = new A.Paragraph();
            A.ParagraphProperties paragraphProperties39 = new A.ParagraphProperties()
            {
                EastAsianLineBreak = true, Height = true
            };

            A.EndParagraphRunProperties endParagraphRunProperties22 = new A.EndParagraphRunProperties()
            {
                Language = "lv-LV", AlternativeLanguage = "et-EE"
            };
            A.LatinFont latinFont121 = new A.LatinFont()
            {
                Typeface = "Arial", Panose = "020B0604020202020204", PitchFamily = 34, CharacterSet = 0
            };

            endParagraphRunProperties22.Append(latinFont121);

            paragraph41.Append(paragraphProperties39);
            paragraph41.Append(endParagraphRunProperties22);

            textBody16.Append(bodyProperties18);
            textBody16.Append(listStyle18);
            textBody16.Append(paragraph41);

            shape18.Append(nonVisualShapeProperties18);
            shape18.Append(shapeProperties21);
            shape18.Append(textBody16);

            shapeTree4.Append(nonVisualGroupShapeProperties4);
            shapeTree4.Append(groupShapeProperties4);
            shapeTree4.Append(shape16);
            shapeTree4.Append(shape17);
            shapeTree4.Append(shape18);

            CommonSlideDataExtensionList commonSlideDataExtensionList4 = new CommonSlideDataExtensionList();

            CommonSlideDataExtension commonSlideDataExtension4 = new CommonSlideDataExtension()
            {
                Uri = "{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}"
            };

            P14.CreationId creationId4 = new P14.CreationId()
            {
                Val = (UInt32Value)4141007346U
            };
            creationId4.AddNamespaceDeclaration("p14", "http://schemas.microsoft.com/office/powerpoint/2010/main");

            commonSlideDataExtension4.Append(creationId4);

            commonSlideDataExtensionList4.Append(commonSlideDataExtension4);

            commonSlideData4.Append(shapeTree4);
            commonSlideData4.Append(commonSlideDataExtensionList4);

            ColorMapOverride colorMapOverride2 = new ColorMapOverride();

            A.MasterColorMapping masterColorMapping2 = new A.MasterColorMapping();

            colorMapOverride2.Append(masterColorMapping2);

            notesSlide1.Append(commonSlideData4);
            notesSlide1.Append(colorMapOverride2);

            notesSlidePart1.NotesSlide = notesSlide1;
        }
Beispiel #4
0
        // Creates an Paragraph instance and adds its children.
        public static Paragraph GenerateParagraph()
        {
            Paragraph paragraph1 = new Paragraph()
            {
                RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "00B96314", ParagraphId = "0B39323B", TextId = "7F2F315D"
            };
            BookmarkStart bookmarkStart1 = new BookmarkStart()
            {
                Name = "_GoBack", Id = "0"
            };

            Run run1 = new Run();

            RunProperties runProperties1 = new RunProperties();
            NoProof       noProof1       = new NoProof();

            runProperties1.Append(noProof1);

            Drawing drawing1 = new Drawing();

            Anchor anchor1 = new Anchor()
            {
                DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)114300U, DistanceFromRight = (UInt32Value)114300U, SimplePos = false, RelativeHeight = (UInt32Value)251659264U, BehindDoc = true, Locked = false, LayoutInCell = true, AllowOverlap = true, EditId = "3E042748", AnchorId = "3A391EBB"
            };
            SimplePosition simplePosition1 = new SimplePosition()
            {
                X = 0L, Y = 0L
            };

            HorizontalPosition horizontalPosition1 = new HorizontalPosition()
            {
                RelativeFrom = HorizontalRelativePositionValues.Column
            };
            PositionOffset positionOffset1 = new PositionOffset();

            positionOffset1.Text = "4435475";

            horizontalPosition1.Append(positionOffset1);

            VerticalPosition verticalPosition1 = new VerticalPosition()
            {
                RelativeFrom = VerticalRelativePositionValues.Paragraph
            };
            PositionOffset positionOffset2 = new PositionOffset();

            positionOffset2.Text = "306171";

            verticalPosition1.Append(positionOffset2);
            Extent extent1 = new Extent()
            {
                Cx = 1187454L, Cy = 1486814L
            };
            EffectExtent effectExtent1 = new EffectExtent()
            {
                LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L
            };
            WrapNone      wrapNone1      = new WrapNone();
            DocProperties docProperties1 = new DocProperties()
            {
                Id = (UInt32Value)30U, Name = "Picture 30"
            };

            NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties1 = new 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)30U, Name = "aZanriba.jfif"
            };
            Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties1 = new Pic.NonVisualPictureDrawingProperties();

            nonVisualPictureProperties1.Append(nonVisualDrawingProperties1);
            nonVisualPictureProperties1.Append(nonVisualPictureDrawingProperties1);

            Pic.BlipFill blipFill1 = new Pic.BlipFill()
            {
                RotateWithShape = true
            };

            A.Blip blip1 = new A.Blip()
            {
                Embed = "rId30"
            };

            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()
            {
                Left = 13333, Right = 7334
            };
            A.Stretch stretch1 = new A.Stretch();

            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 = 1187454L, Cy = 1486814L
            };

            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.Outline outline1 = new A.Outline();
            A.NoFill  noFill1  = new A.NoFill();

            outline1.Append(noFill1);

            A.ShapePropertiesExtensionList shapePropertiesExtensionList1 = new A.ShapePropertiesExtensionList();

            A.ShapePropertiesExtension shapePropertiesExtension1 = new A.ShapePropertiesExtension()
            {
                Uri = "{53640926-AAD7-44D8-BBD7-CCE9431645EC}"
            };

            A14.ShadowObscured shadowObscured1 = new A14.ShadowObscured();
            shadowObscured1.AddNamespaceDeclaration("a14", "http://schemas.microsoft.com/office/drawing/2010/main");

            shapePropertiesExtension1.Append(shadowObscured1);

            shapePropertiesExtensionList1.Append(shapePropertiesExtension1);

            shapeProperties1.Append(transform2D1);
            shapeProperties1.Append(presetGeometry1);
            shapeProperties1.Append(outline1);
            shapeProperties1.Append(shapePropertiesExtensionList1);

            picture1.Append(nonVisualPictureProperties1);
            picture1.Append(blipFill1);
            picture1.Append(shapeProperties1);

            graphicData1.Append(picture1);

            graphic1.Append(graphicData1);

            Wp14.RelativeWidth relativeWidth1 = new Wp14.RelativeWidth()
            {
                ObjectId = Wp14.SizeRelativeHorizontallyValues.Page
            };
            Wp14.PercentageWidth percentageWidth1 = new Wp14.PercentageWidth();
            percentageWidth1.Text = "0";

            relativeWidth1.Append(percentageWidth1);

            Wp14.RelativeHeight relativeHeight1 = new Wp14.RelativeHeight()
            {
                RelativeFrom = Wp14.SizeRelativeVerticallyValues.Page
            };
            Wp14.PercentageHeight percentageHeight1 = new Wp14.PercentageHeight();
            percentageHeight1.Text = "0";

            relativeHeight1.Append(percentageHeight1);

            anchor1.Append(simplePosition1);
            anchor1.Append(horizontalPosition1);
            anchor1.Append(verticalPosition1);
            anchor1.Append(extent1);
            anchor1.Append(effectExtent1);
            anchor1.Append(wrapNone1);
            anchor1.Append(docProperties1);
            anchor1.Append(nonVisualGraphicFrameDrawingProperties1);
            anchor1.Append(graphic1);
            anchor1.Append(relativeWidth1);
            anchor1.Append(relativeHeight1);

            drawing1.Append(anchor1);

            run1.Append(runProperties1);
            run1.Append(drawing1);
            BookmarkEnd bookmarkEnd1 = new BookmarkEnd()
            {
                Id = "0"
            };

            Run run2 = new Run();

            RunProperties runProperties2 = new RunProperties();
            FontSize      fontSize1      = new FontSize()
            {
                Val = "22"
            };
            FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript()
            {
                Val = "22"
            };

            runProperties2.Append(fontSize1);
            runProperties2.Append(fontSizeComplexScript1);
            Break break1 = new Break()
            {
                Type = BreakValues.TextWrapping, Clear = BreakTextRestartLocationValues.All
            };

            run2.Append(runProperties2);
            run2.Append(break1);

            Run run3 = new Run()
            {
                RsidRunAddition = "009E39C2"
            };

            RunProperties runProperties3 = new RunProperties();
            FontSize      fontSize2      = new FontSize()
            {
                Val = "22"
            };
            FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript()
            {
                Val = "22"
            };

            runProperties3.Append(fontSize2);
            runProperties3.Append(fontSizeComplexScript2);
            Text text1 = new Text()
            {
                Space = SpaceProcessingModeValues.Preserve
            };

            text1.Text = "  ";

            run3.Append(runProperties3);
            run3.Append(text1);

            paragraph1.Append(bookmarkStart1);
            paragraph1.Append(run1);
            paragraph1.Append(bookmarkEnd1);
            paragraph1.Append(run2);
            paragraph1.Append(run3);
            return(paragraph1);
        }