Пример #1
0
        // Generates content of documentSettingsPart2.
        private void GenerateDocumentSettingsPart2Content(DocumentSettingsPart documentSettingsPart2)
        {
            Settings settings2 = new Settings(){ MCAttributes = new MarkupCompatibilityAttributes(){ Ignorable = "w14 w15" }  };
            settings2.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
            settings2.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
            settings2.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
            settings2.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
            settings2.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
            settings2.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
            settings2.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
            settings2.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml");
            settings2.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2010/11/wordml");
            settings2.AddNamespaceDeclaration("sl", "http://schemas.openxmlformats.org/schemaLibrary/2006/main");
            Zoom zoom1 = new Zoom(){ Percent = "100" };
            BordersDoNotSurroundHeader bordersDoNotSurroundHeader2 = new BordersDoNotSurroundHeader();
            BordersDoNotSurroundFooter bordersDoNotSurroundFooter2 = new BordersDoNotSurroundFooter();
            ProofState proofState1 = new ProofState(){ Spelling = ProofingStateValues.Clean, Grammar = ProofingStateValues.Clean };
            DefaultTabStop defaultTabStop2 = new DefaultTabStop(){ Val = 840 };
            DisplayHorizontalDrawingGrid displayHorizontalDrawingGrid2 = new DisplayHorizontalDrawingGrid(){ Val = 0 };
            DisplayVerticalDrawingGrid displayVerticalDrawingGrid2 = new DisplayVerticalDrawingGrid(){ Val = 2 };
            CharacterSpacingControl characterSpacingControl2 = new CharacterSpacingControl(){ Val = CharacterSpacingValues.CompressPunctuation };

            HeaderShapeDefaults headerShapeDefaults1 = new HeaderShapeDefaults();

            Ovml.ShapeDefaults shapeDefaults1 = new Ovml.ShapeDefaults(){ Extension = V.ExtensionHandlingBehaviorValues.Edit, MaxShapeId = 2049 };
            V.TextBox textBox1 = new V.TextBox(){ Inset = "5.85pt,.7pt,5.85pt,.7pt" };

            shapeDefaults1.Append(textBox1);

            headerShapeDefaults1.Append(shapeDefaults1);

            FootnoteDocumentWideProperties footnoteDocumentWideProperties1 = new FootnoteDocumentWideProperties();
            FootnoteSpecialReference footnoteSpecialReference1 = new FootnoteSpecialReference(){ Id = -1 };
            FootnoteSpecialReference footnoteSpecialReference2 = new FootnoteSpecialReference(){ Id = 0 };

            footnoteDocumentWideProperties1.Append(footnoteSpecialReference1);
            footnoteDocumentWideProperties1.Append(footnoteSpecialReference2);

            EndnoteDocumentWideProperties endnoteDocumentWideProperties1 = new EndnoteDocumentWideProperties();
            EndnoteSpecialReference endnoteSpecialReference1 = new EndnoteSpecialReference(){ Id = -1 };
            EndnoteSpecialReference endnoteSpecialReference2 = new EndnoteSpecialReference(){ Id = 0 };

            endnoteDocumentWideProperties1.Append(endnoteSpecialReference1);
            endnoteDocumentWideProperties1.Append(endnoteSpecialReference2);

            Compatibility compatibility2 = new Compatibility();
            SpaceForUnderline spaceForUnderline2 = new SpaceForUnderline();
            BalanceSingleByteDoubleByteWidth balanceSingleByteDoubleByteWidth2 = new BalanceSingleByteDoubleByteWidth();
            DoNotLeaveBackslashAlone doNotLeaveBackslashAlone2 = new DoNotLeaveBackslashAlone();
            UnderlineTrailingSpaces underlineTrailingSpaces2 = new UnderlineTrailingSpaces();
            DoNotExpandShiftReturn doNotExpandShiftReturn2 = new DoNotExpandShiftReturn();
            AdjustLineHeightInTable adjustLineHeightInTable2 = new AdjustLineHeightInTable();
            UseFarEastLayout useFarEastLayout2 = new UseFarEastLayout();
            CompatibilitySetting compatibilitySetting6 = new CompatibilitySetting(){ Name = CompatSettingNameValues.CompatibilityMode, Uri = "http://schemas.microsoft.com/office/word", Val = "15" };
            CompatibilitySetting compatibilitySetting7 = new CompatibilitySetting(){ Name = CompatSettingNameValues.OverrideTableStyleFontSizeAndJustification, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting8 = new CompatibilitySetting(){ Name = CompatSettingNameValues.EnableOpenTypeFeatures, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting9 = new CompatibilitySetting(){ Name = CompatSettingNameValues.DoNotFlipMirrorIndents, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting10 = new CompatibilitySetting(){ Name = CompatSettingNameValues.DifferentiateMultirowTableHeaders, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };

            compatibility2.Append(spaceForUnderline2);
            compatibility2.Append(balanceSingleByteDoubleByteWidth2);
            compatibility2.Append(doNotLeaveBackslashAlone2);
            compatibility2.Append(underlineTrailingSpaces2);
            compatibility2.Append(doNotExpandShiftReturn2);
            compatibility2.Append(adjustLineHeightInTable2);
            compatibility2.Append(useFarEastLayout2);
            compatibility2.Append(compatibilitySetting6);
            compatibility2.Append(compatibilitySetting7);
            compatibility2.Append(compatibilitySetting8);
            compatibility2.Append(compatibilitySetting9);
            compatibility2.Append(compatibilitySetting10);

            Rsids rsids2 = new Rsids();
            RsidRoot rsidRoot2 = new RsidRoot(){ Val = "000010BA" };
            Rsid rsid21 = new Rsid(){ Val = "000010BA" };
            Rsid rsid22 = new Rsid(){ Val = "000C1702" };
            Rsid rsid23 = new Rsid(){ Val = "00221A5E" };
            Rsid rsid24 = new Rsid(){ Val = "00535C5E" };
            Rsid rsid25 = new Rsid(){ Val = "005A792B" };
            Rsid rsid26 = new Rsid(){ Val = "006D4DFB" };
            Rsid rsid27 = new Rsid(){ Val = "009651D6" };
            Rsid rsid28 = new Rsid(){ Val = "00A215C1" };
            Rsid rsid29 = new Rsid(){ Val = "00CC7467" };
            Rsid rsid30 = new Rsid(){ Val = "00DC649D" };
            Rsid rsid31 = new Rsid(){ Val = "00E86739" };
            Rsid rsid32 = new Rsid(){ Val = "00E90381" };
            Rsid rsid33 = new Rsid(){ Val = "00E930A2" };

            rsids2.Append(rsidRoot2);
            rsids2.Append(rsid21);
            rsids2.Append(rsid22);
            rsids2.Append(rsid23);
            rsids2.Append(rsid24);
            rsids2.Append(rsid25);
            rsids2.Append(rsid26);
            rsids2.Append(rsid27);
            rsids2.Append(rsid28);
            rsids2.Append(rsid29);
            rsids2.Append(rsid30);
            rsids2.Append(rsid31);
            rsids2.Append(rsid32);
            rsids2.Append(rsid33);

            M.MathProperties mathProperties2 = new M.MathProperties();
            M.MathFont mathFont2 = new M.MathFont(){ Val = "Cambria Math" };
            M.BreakBinary breakBinary2 = new M.BreakBinary(){ Val = M.BreakBinaryOperatorValues.Before };
            M.BreakBinarySubtraction breakBinarySubtraction2 = new M.BreakBinarySubtraction(){ Val = M.BreakBinarySubtractionValues.MinusMinus };
            M.SmallFraction smallFraction2 = new M.SmallFraction(){ Val = M.BooleanValues.Zero };
            M.DisplayDefaults displayDefaults2 = new M.DisplayDefaults();
            M.LeftMargin leftMargin2 = new M.LeftMargin(){ Val = (UInt32Value)0U };
            M.RightMargin rightMargin2 = new M.RightMargin(){ Val = (UInt32Value)0U };
            M.DefaultJustification defaultJustification2 = new M.DefaultJustification(){ Val = M.JustificationValues.CenterGroup };
            M.WrapIndent wrapIndent2 = new M.WrapIndent(){ Val = (UInt32Value)1440U };
            M.IntegralLimitLocation integralLimitLocation2 = new M.IntegralLimitLocation(){ Val = M.LimitLocationValues.SubscriptSuperscript };
            M.NaryLimitLocation naryLimitLocation2 = new M.NaryLimitLocation(){ Val = M.LimitLocationValues.UnderOver };

            mathProperties2.Append(mathFont2);
            mathProperties2.Append(breakBinary2);
            mathProperties2.Append(breakBinarySubtraction2);
            mathProperties2.Append(smallFraction2);
            mathProperties2.Append(displayDefaults2);
            mathProperties2.Append(leftMargin2);
            mathProperties2.Append(rightMargin2);
            mathProperties2.Append(defaultJustification2);
            mathProperties2.Append(wrapIndent2);
            mathProperties2.Append(integralLimitLocation2);
            mathProperties2.Append(naryLimitLocation2);
            ThemeFontLanguages themeFontLanguages2 = new ThemeFontLanguages(){ Val = "en-US", EastAsia = "ja-JP" };
            ColorSchemeMapping colorSchemeMapping2 = new ColorSchemeMapping(){ Background1 = ColorSchemeIndexValues.Light1, Text1 = ColorSchemeIndexValues.Dark1, Background2 = ColorSchemeIndexValues.Light2, Text2 = ColorSchemeIndexValues.Dark2, Accent1 = ColorSchemeIndexValues.Accent1, Accent2 = ColorSchemeIndexValues.Accent2, Accent3 = ColorSchemeIndexValues.Accent3, Accent4 = ColorSchemeIndexValues.Accent4, Accent5 = ColorSchemeIndexValues.Accent5, Accent6 = ColorSchemeIndexValues.Accent6, Hyperlink = ColorSchemeIndexValues.Hyperlink, FollowedHyperlink = ColorSchemeIndexValues.FollowedHyperlink };

            ShapeDefaults shapeDefaults2 = new ShapeDefaults();

            Ovml.ShapeDefaults shapeDefaults3 = new Ovml.ShapeDefaults(){ Extension = V.ExtensionHandlingBehaviorValues.Edit, MaxShapeId = 2049 };
            V.TextBox textBox2 = new V.TextBox(){ Inset = "5.85pt,.7pt,5.85pt,.7pt" };

            shapeDefaults3.Append(textBox2);

            Ovml.ShapeLayout shapeLayout1 = new Ovml.ShapeLayout(){ Extension = V.ExtensionHandlingBehaviorValues.Edit };
            Ovml.ShapeIdMap shapeIdMap1 = new Ovml.ShapeIdMap(){ Extension = V.ExtensionHandlingBehaviorValues.Edit, Data = "1" };

            shapeLayout1.Append(shapeIdMap1);

            shapeDefaults2.Append(shapeDefaults3);
            shapeDefaults2.Append(shapeLayout1);
            DecimalSymbol decimalSymbol2 = new DecimalSymbol(){ Val = "." };
            ListSeparator listSeparator2 = new ListSeparator(){ Val = "," };
            W15.ChartTrackingRefBased chartTrackingRefBased2 = new W15.ChartTrackingRefBased();
            W15.PersistentDocumentId persistentDocumentId1 = new W15.PersistentDocumentId(){ Val = "{855411F9-778F-4476-A693-CE4F6511E7CE}" };

            settings2.Append(zoom1);
            settings2.Append(bordersDoNotSurroundHeader2);
            settings2.Append(bordersDoNotSurroundFooter2);
            settings2.Append(proofState1);
            settings2.Append(defaultTabStop2);
            settings2.Append(displayHorizontalDrawingGrid2);
            settings2.Append(displayVerticalDrawingGrid2);
            settings2.Append(characterSpacingControl2);
            settings2.Append(headerShapeDefaults1);
            settings2.Append(footnoteDocumentWideProperties1);
            settings2.Append(endnoteDocumentWideProperties1);
            settings2.Append(compatibility2);
            settings2.Append(rsids2);
            settings2.Append(mathProperties2);
            settings2.Append(themeFontLanguages2);
            settings2.Append(colorSchemeMapping2);
            settings2.Append(shapeDefaults2);
            settings2.Append(decimalSymbol2);
            settings2.Append(listSeparator2);
            settings2.Append(chartTrackingRefBased2);
            settings2.Append(persistentDocumentId1);

            documentSettingsPart2.Settings = settings2;
        }
Пример #2
0
        // Generates content of documentSettingsPart1.
        private void GenerateDocumentSettingsPart1Content(DocumentSettingsPart documentSettingsPart1)
        {
            Settings settings1 = new Settings(){ MCAttributes = new MarkupCompatibilityAttributes(){ Ignorable = "w14 w15" }  };
            settings1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
            settings1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
            settings1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
            settings1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
            settings1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
            settings1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
            settings1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
            settings1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml");
            settings1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2010/11/wordml");
            settings1.AddNamespaceDeclaration("sl", "http://schemas.openxmlformats.org/schemaLibrary/2006/main");
            View view1 = new View(){ Val = ViewValues.Normal };
            BordersDoNotSurroundHeader bordersDoNotSurroundHeader1 = new BordersDoNotSurroundHeader();
            BordersDoNotSurroundFooter bordersDoNotSurroundFooter1 = new BordersDoNotSurroundFooter();
            DefaultTabStop defaultTabStop1 = new DefaultTabStop(){ Val = 840 };
            DisplayHorizontalDrawingGrid displayHorizontalDrawingGrid1 = new DisplayHorizontalDrawingGrid(){ Val = 0 };
            DisplayVerticalDrawingGrid displayVerticalDrawingGrid1 = new DisplayVerticalDrawingGrid(){ Val = 2 };
            CharacterSpacingControl characterSpacingControl1 = new CharacterSpacingControl(){ Val = CharacterSpacingValues.CompressPunctuation };

            Compatibility compatibility1 = new Compatibility();
            SpaceForUnderline spaceForUnderline1 = new SpaceForUnderline();
            BalanceSingleByteDoubleByteWidth balanceSingleByteDoubleByteWidth1 = new BalanceSingleByteDoubleByteWidth();
            DoNotLeaveBackslashAlone doNotLeaveBackslashAlone1 = new DoNotLeaveBackslashAlone();
            UnderlineTrailingSpaces underlineTrailingSpaces1 = new UnderlineTrailingSpaces();
            DoNotExpandShiftReturn doNotExpandShiftReturn1 = new DoNotExpandShiftReturn();
            AdjustLineHeightInTable adjustLineHeightInTable1 = new AdjustLineHeightInTable();
            UseFarEastLayout useFarEastLayout1 = new UseFarEastLayout();
            CompatibilitySetting compatibilitySetting1 = new CompatibilitySetting(){ Name = CompatSettingNameValues.CompatibilityMode, Uri = "http://schemas.microsoft.com/office/word", Val = "15" };
            CompatibilitySetting compatibilitySetting2 = new CompatibilitySetting(){ Name = CompatSettingNameValues.OverrideTableStyleFontSizeAndJustification, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting3 = new CompatibilitySetting(){ Name = CompatSettingNameValues.EnableOpenTypeFeatures, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting4 = new CompatibilitySetting(){ Name = CompatSettingNameValues.DoNotFlipMirrorIndents, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting5 = new CompatibilitySetting(){ Name = CompatSettingNameValues.DifferentiateMultirowTableHeaders, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };

            compatibility1.Append(spaceForUnderline1);
            compatibility1.Append(balanceSingleByteDoubleByteWidth1);
            compatibility1.Append(doNotLeaveBackslashAlone1);
            compatibility1.Append(underlineTrailingSpaces1);
            compatibility1.Append(doNotExpandShiftReturn1);
            compatibility1.Append(adjustLineHeightInTable1);
            compatibility1.Append(useFarEastLayout1);
            compatibility1.Append(compatibilitySetting1);
            compatibility1.Append(compatibilitySetting2);
            compatibility1.Append(compatibilitySetting3);
            compatibility1.Append(compatibilitySetting4);
            compatibility1.Append(compatibilitySetting5);

            Rsids rsids1 = new Rsids();
            RsidRoot rsidRoot1 = new RsidRoot(){ Val = "00B75576" };
            Rsid rsid1 = new Rsid(){ Val = "00307267" };
            Rsid rsid2 = new Rsid(){ Val = "005E156B" };
            Rsid rsid3 = new Rsid(){ Val = "006415BA" };
            Rsid rsid4 = new Rsid(){ Val = "0066476A" };
            Rsid rsid5 = new Rsid(){ Val = "00930812" };
            Rsid rsid6 = new Rsid(){ Val = "00B75576" };
            Rsid rsid7 = new Rsid(){ Val = "00BA303C" };
            Rsid rsid8 = new Rsid(){ Val = "00EF189C" };

            rsids1.Append(rsidRoot1);
            rsids1.Append(rsid1);
            rsids1.Append(rsid2);
            rsids1.Append(rsid3);
            rsids1.Append(rsid4);
            rsids1.Append(rsid5);
            rsids1.Append(rsid6);
            rsids1.Append(rsid7);
            rsids1.Append(rsid8);

            M.MathProperties mathProperties1 = new M.MathProperties();
            M.MathFont mathFont1 = new M.MathFont(){ Val = "Cambria Math" };
            M.BreakBinary breakBinary1 = new M.BreakBinary(){ Val = M.BreakBinaryOperatorValues.Before };
            M.BreakBinarySubtraction breakBinarySubtraction1 = new M.BreakBinarySubtraction(){ Val = M.BreakBinarySubtractionValues.MinusMinus };
            M.SmallFraction smallFraction1 = new M.SmallFraction(){ Val = M.BooleanValues.Zero };
            M.DisplayDefaults displayDefaults1 = new M.DisplayDefaults();
            M.LeftMargin leftMargin1 = new M.LeftMargin(){ Val = (UInt32Value)0U };
            M.RightMargin rightMargin1 = new M.RightMargin(){ Val = (UInt32Value)0U };
            M.DefaultJustification defaultJustification1 = new M.DefaultJustification(){ Val = M.JustificationValues.CenterGroup };
            M.WrapIndent wrapIndent1 = new M.WrapIndent(){ Val = (UInt32Value)1440U };
            M.IntegralLimitLocation integralLimitLocation1 = new M.IntegralLimitLocation(){ Val = M.LimitLocationValues.SubscriptSuperscript };
            M.NaryLimitLocation naryLimitLocation1 = new M.NaryLimitLocation(){ Val = M.LimitLocationValues.UnderOver };

            mathProperties1.Append(mathFont1);
            mathProperties1.Append(breakBinary1);
            mathProperties1.Append(breakBinarySubtraction1);
            mathProperties1.Append(smallFraction1);
            mathProperties1.Append(displayDefaults1);
            mathProperties1.Append(leftMargin1);
            mathProperties1.Append(rightMargin1);
            mathProperties1.Append(defaultJustification1);
            mathProperties1.Append(wrapIndent1);
            mathProperties1.Append(integralLimitLocation1);
            mathProperties1.Append(naryLimitLocation1);
            ThemeFontLanguages themeFontLanguages1 = new ThemeFontLanguages(){ Val = "en-US", EastAsia = "ja-JP" };
            ColorSchemeMapping colorSchemeMapping1 = new ColorSchemeMapping(){ Background1 = ColorSchemeIndexValues.Light1, Text1 = ColorSchemeIndexValues.Dark1, Background2 = ColorSchemeIndexValues.Light2, Text2 = ColorSchemeIndexValues.Dark2, Accent1 = ColorSchemeIndexValues.Accent1, Accent2 = ColorSchemeIndexValues.Accent2, Accent3 = ColorSchemeIndexValues.Accent3, Accent4 = ColorSchemeIndexValues.Accent4, Accent5 = ColorSchemeIndexValues.Accent5, Accent6 = ColorSchemeIndexValues.Accent6, Hyperlink = ColorSchemeIndexValues.Hyperlink, FollowedHyperlink = ColorSchemeIndexValues.FollowedHyperlink };
            DecimalSymbol decimalSymbol1 = new DecimalSymbol(){ Val = "." };
            ListSeparator listSeparator1 = new ListSeparator(){ Val = "," };
            W15.ChartTrackingRefBased chartTrackingRefBased1 = new W15.ChartTrackingRefBased();

            settings1.Append(view1);
            settings1.Append(bordersDoNotSurroundHeader1);
            settings1.Append(bordersDoNotSurroundFooter1);
            settings1.Append(defaultTabStop1);
            settings1.Append(displayHorizontalDrawingGrid1);
            settings1.Append(displayVerticalDrawingGrid1);
            settings1.Append(characterSpacingControl1);
            settings1.Append(compatibility1);
            settings1.Append(rsids1);
            settings1.Append(mathProperties1);
            settings1.Append(themeFontLanguages1);
            settings1.Append(colorSchemeMapping1);
            settings1.Append(decimalSymbol1);
            settings1.Append(listSeparator1);
            settings1.Append(chartTrackingRefBased1);

            documentSettingsPart1.Settings = settings1;
        }
Пример #3
0
        // Generates content of documentSettingsPart1.
        private static void GenerateDocumentSettingsPart1Content(DocumentSettingsPart documentSettingsPart1)
        {
            Settings settings1 = new Settings() { MCAttributes = new MarkupCompatibilityAttributes() { Ignorable = "w14 w15" } };
            settings1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
            settings1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
            settings1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
            settings1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
            settings1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
            settings1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
            settings1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
            settings1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml");
            settings1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2012/wordml");
            settings1.AddNamespaceDeclaration("sl", "http://schemas.openxmlformats.org/schemaLibrary/2006/main");
            Zoom zoom1 = new Zoom() { Percent = "100" };
            BordersDoNotSurroundHeader bordersDoNotSurroundHeader1 = new BordersDoNotSurroundHeader();
            BordersDoNotSurroundFooter bordersDoNotSurroundFooter1 = new BordersDoNotSurroundFooter();
            AttachedTemplate attachedTemplate1 = new AttachedTemplate() { Id = "rId1" };
            DefaultTabStop defaultTabStop1 = new DefaultTabStop() { Val = 420 };
            DrawingGridVerticalSpacing drawingGridVerticalSpacing1 = new DrawingGridVerticalSpacing() { Val = "156" };
            DisplayHorizontalDrawingGrid displayHorizontalDrawingGrid1 = new DisplayHorizontalDrawingGrid() { Val = 0 };
            DisplayVerticalDrawingGrid displayVerticalDrawingGrid1 = new DisplayVerticalDrawingGrid() { Val = 2 };
            CharacterSpacingControl characterSpacingControl1 = new CharacterSpacingControl() { Val = CharacterSpacingValues.CompressPunctuation };

            HeaderShapeDefaults headerShapeDefaults1 = new HeaderShapeDefaults();
            Ovml.ShapeDefaults shapeDefaults1 = new Ovml.ShapeDefaults() { Extension = V.ExtensionHandlingBehaviorValues.Edit, MaxShapeId = 2049 };

            headerShapeDefaults1.Append(shapeDefaults1);

            FootnoteDocumentWideProperties footnoteDocumentWideProperties1 = new FootnoteDocumentWideProperties();
            FootnoteSpecialReference footnoteSpecialReference1 = new FootnoteSpecialReference() { Id = -1 };
            FootnoteSpecialReference footnoteSpecialReference2 = new FootnoteSpecialReference() { Id = 0 };

            footnoteDocumentWideProperties1.Append(footnoteSpecialReference1);
            footnoteDocumentWideProperties1.Append(footnoteSpecialReference2);

            EndnoteDocumentWideProperties endnoteDocumentWideProperties1 = new EndnoteDocumentWideProperties();
            EndnoteSpecialReference endnoteSpecialReference1 = new EndnoteSpecialReference() { Id = -1 };
            EndnoteSpecialReference endnoteSpecialReference2 = new EndnoteSpecialReference() { Id = 0 };

            endnoteDocumentWideProperties1.Append(endnoteSpecialReference1);
            endnoteDocumentWideProperties1.Append(endnoteSpecialReference2);

            Compatibility compatibility1 = new Compatibility();
            SpaceForUnderline spaceForUnderline1 = new SpaceForUnderline();
            BalanceSingleByteDoubleByteWidth balanceSingleByteDoubleByteWidth1 = new BalanceSingleByteDoubleByteWidth();
            DoNotLeaveBackslashAlone doNotLeaveBackslashAlone1 = new DoNotLeaveBackslashAlone();
            UnderlineTrailingSpaces underlineTrailingSpaces1 = new UnderlineTrailingSpaces();
            DoNotExpandShiftReturn doNotExpandShiftReturn1 = new DoNotExpandShiftReturn();
            AdjustLineHeightInTable adjustLineHeightInTable1 = new AdjustLineHeightInTable();
            UseFarEastLayout useFarEastLayout1 = new UseFarEastLayout();
            CompatibilitySetting compatibilitySetting1 = new CompatibilitySetting() { Name = CompatSettingNameValues.CompatibilityMode, Uri = "http://schemas.microsoft.com/office/word", Val = "15" };
            CompatibilitySetting compatibilitySetting2 = new CompatibilitySetting() { Name = CompatSettingNameValues.OverrideTableStyleFontSizeAndJustification, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting3 = new CompatibilitySetting() { Name = CompatSettingNameValues.EnableOpenTypeFeatures, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting4 = new CompatibilitySetting() { Name = CompatSettingNameValues.DoNotFlipMirrorIndents, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting5 = new CompatibilitySetting() { Name = CompatSettingNameValues.DifferentiateMultirowTableHeaders, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };

            compatibility1.Append(spaceForUnderline1);
            compatibility1.Append(balanceSingleByteDoubleByteWidth1);
            compatibility1.Append(doNotLeaveBackslashAlone1);
            compatibility1.Append(underlineTrailingSpaces1);
            compatibility1.Append(doNotExpandShiftReturn1);
            compatibility1.Append(adjustLineHeightInTable1);
            compatibility1.Append(useFarEastLayout1);
            compatibility1.Append(compatibilitySetting1);
            compatibility1.Append(compatibilitySetting2);
            compatibility1.Append(compatibilitySetting3);
            compatibility1.Append(compatibilitySetting4);
            compatibility1.Append(compatibilitySetting5);

            Rsids rsids1 = new Rsids();
            RsidRoot rsidRoot1 = new RsidRoot() { Val = "009446D8" };
            Rsid rsid1 = new Rsid() { Val = "00000E1C" };
            Rsid rsid2 = new Rsid() { Val = "00003DC0" };
            Rsid rsid3 = new Rsid() { Val = "000275B2" };
            Rsid rsid4 = new Rsid() { Val = "00046D2C" };
            Rsid rsid5 = new Rsid() { Val = "000A213E" };
            Rsid rsid6 = new Rsid() { Val = "000B5BB8" };
            Rsid rsid7 = new Rsid() { Val = "000C5029" };
            Rsid rsid8 = new Rsid() { Val = "00124526" };
            Rsid rsid9 = new Rsid() { Val = "00127314" };
            Rsid rsid10 = new Rsid() { Val = "00134DB2" };
            Rsid rsid11 = new Rsid() { Val = "00156B7C" };
            Rsid rsid12 = new Rsid() { Val = "00165201" };
            Rsid rsid13 = new Rsid() { Val = "001743C8" };
            Rsid rsid14 = new Rsid() { Val = "001A11E4" };
            Rsid rsid15 = new Rsid() { Val = "001B238C" };
            Rsid rsid16 = new Rsid() { Val = "001D24A4" };
            Rsid rsid17 = new Rsid() { Val = "001E6C69" };
            Rsid rsid18 = new Rsid() { Val = "001F241C" };
            Rsid rsid19 = new Rsid() { Val = "00232EBB" };
            Rsid rsid20 = new Rsid() { Val = "0026480F" };
            Rsid rsid21 = new Rsid() { Val = "00267990" };
            Rsid rsid22 = new Rsid() { Val = "00277666" };
            Rsid rsid23 = new Rsid() { Val = "002836B8" };
            Rsid rsid24 = new Rsid() { Val = "00292599" };
            Rsid rsid25 = new Rsid() { Val = "002B0FD9" };
            Rsid rsid26 = new Rsid() { Val = "002C0C4A" };
            Rsid rsid27 = new Rsid() { Val = "002D3691" };
            Rsid rsid28 = new Rsid() { Val = "002E137D" };
            Rsid rsid29 = new Rsid() { Val = "002E1C1B" };
            Rsid rsid30 = new Rsid() { Val = "002F3A0D" };
            Rsid rsid31 = new Rsid() { Val = "00305AC1" };
            Rsid rsid32 = new Rsid() { Val = "00310F8D" };
            Rsid rsid33 = new Rsid() { Val = "003177A3" };
            Rsid rsid34 = new Rsid() { Val = "003823CD" };
            Rsid rsid35 = new Rsid() { Val = "003B02D4" };
            Rsid rsid36 = new Rsid() { Val = "003C4A95" };
            Rsid rsid37 = new Rsid() { Val = "003D3708" };
            Rsid rsid38 = new Rsid() { Val = "003E1B97" };
            Rsid rsid39 = new Rsid() { Val = "003F6860" };
            Rsid rsid40 = new Rsid() { Val = "003F7A75" };
            Rsid rsid41 = new Rsid() { Val = "00403E77" };
            Rsid rsid42 = new Rsid() { Val = "00417E2C" };
            Rsid rsid43 = new Rsid() { Val = "00434ADB" };
            Rsid rsid44 = new Rsid() { Val = "004518E0" };
            Rsid rsid45 = new Rsid() { Val = "00467DE2" };
            Rsid rsid46 = new Rsid() { Val = "0047548B" };
            Rsid rsid47 = new Rsid() { Val = "004C6AA7" };
            Rsid rsid48 = new Rsid() { Val = "004D2615" };
            Rsid rsid49 = new Rsid() { Val = "004D60B6" };
            Rsid rsid50 = new Rsid() { Val = "004D67C7" };
            Rsid rsid51 = new Rsid() { Val = "004E6F28" };
            Rsid rsid52 = new Rsid() { Val = "00506664" };
            Rsid rsid53 = new Rsid() { Val = "005118E8" };
            Rsid rsid54 = new Rsid() { Val = "0052122E" };
            Rsid rsid55 = new Rsid() { Val = "0054564C" };
            Rsid rsid56 = new Rsid() { Val = "0054593E" };
            Rsid rsid57 = new Rsid() { Val = "00550AA0" };
            Rsid rsid58 = new Rsid() { Val = "005601D7" };
            Rsid rsid59 = new Rsid() { Val = "0059148C" };
            Rsid rsid60 = new Rsid() { Val = "00594F7D" };
            Rsid rsid61 = new Rsid() { Val = "005A08D0" };
            Rsid rsid62 = new Rsid() { Val = "005B004F" };
            Rsid rsid63 = new Rsid() { Val = "005B5260" };
            Rsid rsid64 = new Rsid() { Val = "005C21DB" };
            Rsid rsid65 = new Rsid() { Val = "0063728F" };
            Rsid rsid66 = new Rsid() { Val = "00665E6B" };
            Rsid rsid67 = new Rsid() { Val = "00692A94" };
            Rsid rsid68 = new Rsid() { Val = "006B0FE7" };
            Rsid rsid69 = new Rsid() { Val = "006B2C44" };
            Rsid rsid70 = new Rsid() { Val = "006D233C" };
            Rsid rsid71 = new Rsid() { Val = "006D4248" };
            Rsid rsid72 = new Rsid() { Val = "006E017B" };
            Rsid rsid73 = new Rsid() { Val = "00701985" };
            Rsid rsid74 = new Rsid() { Val = "00715E68" };
            Rsid rsid75 = new Rsid() { Val = "00744157" };
            Rsid rsid76 = new Rsid() { Val = "00754BC3" };
            Rsid rsid77 = new Rsid() { Val = "007561BE" };
            Rsid rsid78 = new Rsid() { Val = "007663F0" };
            Rsid rsid79 = new Rsid() { Val = "00783011" };
            Rsid rsid80 = new Rsid() { Val = "00783ADE" };
            Rsid rsid81 = new Rsid() { Val = "00787C9A" };
            Rsid rsid82 = new Rsid() { Val = "007A678A" };
            Rsid rsid83 = new Rsid() { Val = "007E5337" };
            Rsid rsid84 = new Rsid() { Val = "00800A7E" };
            Rsid rsid85 = new Rsid() { Val = "0081551B" };
            Rsid rsid86 = new Rsid() { Val = "0084537D" };
            Rsid rsid87 = new Rsid() { Val = "008468F5" };
            Rsid rsid88 = new Rsid() { Val = "008570E8" };
            Rsid rsid89 = new Rsid() { Val = "00862279" };
            Rsid rsid90 = new Rsid() { Val = "0086416E" };
            Rsid rsid91 = new Rsid() { Val = "00870446" };
            Rsid rsid92 = new Rsid() { Val = "00883479" };
            Rsid rsid93 = new Rsid() { Val = "008A3667" };
            Rsid rsid94 = new Rsid() { Val = "008C59FA" };
            Rsid rsid95 = new Rsid() { Val = "008D7654" };
            Rsid rsid96 = new Rsid() { Val = "00933D40" };
            Rsid rsid97 = new Rsid() { Val = "00942281" };
            Rsid rsid98 = new Rsid() { Val = "009446D8" };
            Rsid rsid99 = new Rsid() { Val = "009732CB" };
            Rsid rsid100 = new Rsid() { Val = "00996BFB" };
            Rsid rsid101 = new Rsid() { Val = "00A219D4" };
            Rsid rsid102 = new Rsid() { Val = "00A30087" };
            Rsid rsid103 = new Rsid() { Val = "00A80B81" };
            Rsid rsid104 = new Rsid() { Val = "00A90780" };
            Rsid rsid105 = new Rsid() { Val = "00AD59C4" };
            Rsid rsid106 = new Rsid() { Val = "00AD64CE" };
            Rsid rsid107 = new Rsid() { Val = "00AE2E8A" };
            Rsid rsid108 = new Rsid() { Val = "00AE4558" };
            Rsid rsid109 = new Rsid() { Val = "00B1006B" };
            Rsid rsid110 = new Rsid() { Val = "00B12841" };
            Rsid rsid111 = new Rsid() { Val = "00B3150E" };
            Rsid rsid112 = new Rsid() { Val = "00B929C4" };
            Rsid rsid113 = new Rsid() { Val = "00BA6070" };
            Rsid rsid114 = new Rsid() { Val = "00BE1EF6" };
            Rsid rsid115 = new Rsid() { Val = "00BE7A30" };
            Rsid rsid116 = new Rsid() { Val = "00C20112" };
            Rsid rsid117 = new Rsid() { Val = "00C47143" };
            Rsid rsid118 = new Rsid() { Val = "00C72E09" };
            Rsid rsid119 = new Rsid() { Val = "00C761FE" };
            Rsid rsid120 = new Rsid() { Val = "00CA0A9D" };
            Rsid rsid121 = new Rsid() { Val = "00CA517A" };
            Rsid rsid122 = new Rsid() { Val = "00CD5A1A" };
            Rsid rsid123 = new Rsid() { Val = "00CF6585" };
            Rsid rsid124 = new Rsid() { Val = "00D513DA" };
            Rsid rsid125 = new Rsid() { Val = "00D928C5" };
            Rsid rsid126 = new Rsid() { Val = "00D96872" };
            Rsid rsid127 = new Rsid() { Val = "00DC4F59" };
            Rsid rsid128 = new Rsid() { Val = "00DC52C8" };
            Rsid rsid129 = new Rsid() { Val = "00DC6850" };
            Rsid rsid130 = new Rsid() { Val = "00E002CE" };
            Rsid rsid131 = new Rsid() { Val = "00E12065" };
            Rsid rsid132 = new Rsid() { Val = "00E1522A" };
            Rsid rsid133 = new Rsid() { Val = "00E4316D" };
            Rsid rsid134 = new Rsid() { Val = "00E433B6" };
            Rsid rsid135 = new Rsid() { Val = "00E6492E" };
            Rsid rsid136 = new Rsid() { Val = "00E65437" };
            Rsid rsid137 = new Rsid() { Val = "00E87F0F" };
            Rsid rsid138 = new Rsid() { Val = "00E94E4C" };
            Rsid rsid139 = new Rsid() { Val = "00EB28F3" };
            Rsid rsid140 = new Rsid() { Val = "00EB66F4" };
            Rsid rsid141 = new Rsid() { Val = "00EC0F7F" };
            Rsid rsid142 = new Rsid() { Val = "00EC5804" };
            Rsid rsid143 = new Rsid() { Val = "00ED7D92" };
            Rsid rsid144 = new Rsid() { Val = "00EF2164" };
            Rsid rsid145 = new Rsid() { Val = "00F1537C" };
            Rsid rsid146 = new Rsid() { Val = "00F17360" };
            Rsid rsid147 = new Rsid() { Val = "00F23CC8" };
            Rsid rsid148 = new Rsid() { Val = "00F30C5C" };
            Rsid rsid149 = new Rsid() { Val = "00F6304E" };
            Rsid rsid150 = new Rsid() { Val = "00F95246" };
            Rsid rsid151 = new Rsid() { Val = "00FA1A5C" };
            Rsid rsid152 = new Rsid() { Val = "00FA1EA6" };
            Rsid rsid153 = new Rsid() { Val = "00FA77B7" };
            Rsid rsid154 = new Rsid() { Val = "00FE6413" };
            Rsid rsid155 = new Rsid() { Val = "00FF0129" };
            Rsid rsid156 = new Rsid() { Val = "00FF14A8" };

            rsids1.Append(rsidRoot1);
            rsids1.Append(rsid1);
            rsids1.Append(rsid2);
            rsids1.Append(rsid3);
            rsids1.Append(rsid4);
            rsids1.Append(rsid5);
            rsids1.Append(rsid6);
            rsids1.Append(rsid7);
            rsids1.Append(rsid8);
            rsids1.Append(rsid9);
            rsids1.Append(rsid10);
            rsids1.Append(rsid11);
            rsids1.Append(rsid12);
            rsids1.Append(rsid13);
            rsids1.Append(rsid14);
            rsids1.Append(rsid15);
            rsids1.Append(rsid16);
            rsids1.Append(rsid17);
            rsids1.Append(rsid18);
            rsids1.Append(rsid19);
            rsids1.Append(rsid20);
            rsids1.Append(rsid21);
            rsids1.Append(rsid22);
            rsids1.Append(rsid23);
            rsids1.Append(rsid24);
            rsids1.Append(rsid25);
            rsids1.Append(rsid26);
            rsids1.Append(rsid27);
            rsids1.Append(rsid28);
            rsids1.Append(rsid29);
            rsids1.Append(rsid30);
            rsids1.Append(rsid31);
            rsids1.Append(rsid32);
            rsids1.Append(rsid33);
            rsids1.Append(rsid34);
            rsids1.Append(rsid35);
            rsids1.Append(rsid36);
            rsids1.Append(rsid37);
            rsids1.Append(rsid38);
            rsids1.Append(rsid39);
            rsids1.Append(rsid40);
            rsids1.Append(rsid41);
            rsids1.Append(rsid42);
            rsids1.Append(rsid43);
            rsids1.Append(rsid44);
            rsids1.Append(rsid45);
            rsids1.Append(rsid46);
            rsids1.Append(rsid47);
            rsids1.Append(rsid48);
            rsids1.Append(rsid49);
            rsids1.Append(rsid50);
            rsids1.Append(rsid51);
            rsids1.Append(rsid52);
            rsids1.Append(rsid53);
            rsids1.Append(rsid54);
            rsids1.Append(rsid55);
            rsids1.Append(rsid56);
            rsids1.Append(rsid57);
            rsids1.Append(rsid58);
            rsids1.Append(rsid59);
            rsids1.Append(rsid60);
            rsids1.Append(rsid61);
            rsids1.Append(rsid62);
            rsids1.Append(rsid63);
            rsids1.Append(rsid64);
            rsids1.Append(rsid65);
            rsids1.Append(rsid66);
            rsids1.Append(rsid67);
            rsids1.Append(rsid68);
            rsids1.Append(rsid69);
            rsids1.Append(rsid70);
            rsids1.Append(rsid71);
            rsids1.Append(rsid72);
            rsids1.Append(rsid73);
            rsids1.Append(rsid74);
            rsids1.Append(rsid75);
            rsids1.Append(rsid76);
            rsids1.Append(rsid77);
            rsids1.Append(rsid78);
            rsids1.Append(rsid79);
            rsids1.Append(rsid80);
            rsids1.Append(rsid81);
            rsids1.Append(rsid82);
            rsids1.Append(rsid83);
            rsids1.Append(rsid84);
            rsids1.Append(rsid85);
            rsids1.Append(rsid86);
            rsids1.Append(rsid87);
            rsids1.Append(rsid88);
            rsids1.Append(rsid89);
            rsids1.Append(rsid90);
            rsids1.Append(rsid91);
            rsids1.Append(rsid92);
            rsids1.Append(rsid93);
            rsids1.Append(rsid94);
            rsids1.Append(rsid95);
            rsids1.Append(rsid96);
            rsids1.Append(rsid97);
            rsids1.Append(rsid98);
            rsids1.Append(rsid99);
            rsids1.Append(rsid100);
            rsids1.Append(rsid101);
            rsids1.Append(rsid102);
            rsids1.Append(rsid103);
            rsids1.Append(rsid104);
            rsids1.Append(rsid105);
            rsids1.Append(rsid106);
            rsids1.Append(rsid107);
            rsids1.Append(rsid108);
            rsids1.Append(rsid109);
            rsids1.Append(rsid110);
            rsids1.Append(rsid111);
            rsids1.Append(rsid112);
            rsids1.Append(rsid113);
            rsids1.Append(rsid114);
            rsids1.Append(rsid115);
            rsids1.Append(rsid116);
            rsids1.Append(rsid117);
            rsids1.Append(rsid118);
            rsids1.Append(rsid119);
            rsids1.Append(rsid120);
            rsids1.Append(rsid121);
            rsids1.Append(rsid122);
            rsids1.Append(rsid123);
            rsids1.Append(rsid124);
            rsids1.Append(rsid125);
            rsids1.Append(rsid126);
            rsids1.Append(rsid127);
            rsids1.Append(rsid128);
            rsids1.Append(rsid129);
            rsids1.Append(rsid130);
            rsids1.Append(rsid131);
            rsids1.Append(rsid132);
            rsids1.Append(rsid133);
            rsids1.Append(rsid134);
            rsids1.Append(rsid135);
            rsids1.Append(rsid136);
            rsids1.Append(rsid137);
            rsids1.Append(rsid138);
            rsids1.Append(rsid139);
            rsids1.Append(rsid140);
            rsids1.Append(rsid141);
            rsids1.Append(rsid142);
            rsids1.Append(rsid143);
            rsids1.Append(rsid144);
            rsids1.Append(rsid145);
            rsids1.Append(rsid146);
            rsids1.Append(rsid147);
            rsids1.Append(rsid148);
            rsids1.Append(rsid149);
            rsids1.Append(rsid150);
            rsids1.Append(rsid151);
            rsids1.Append(rsid152);
            rsids1.Append(rsid153);
            rsids1.Append(rsid154);
            rsids1.Append(rsid155);
            rsids1.Append(rsid156);

            M.MathProperties mathProperties1 = new M.MathProperties();
            M.MathFont mathFont1 = new M.MathFont() { Val = "Cambria Math" };
            M.BreakBinary breakBinary1 = new M.BreakBinary() { Val = M.BreakBinaryOperatorValues.Before };
            M.BreakBinarySubtraction breakBinarySubtraction1 = new M.BreakBinarySubtraction() { Val = M.BreakBinarySubtractionValues.MinusMinus };
            M.SmallFraction smallFraction1 = new M.SmallFraction() { Val = M.BooleanValues.Zero };
            M.DisplayDefaults displayDefaults1 = new M.DisplayDefaults();
            M.LeftMargin leftMargin1 = new M.LeftMargin() { Val = (UInt32Value)0U };
            M.RightMargin rightMargin1 = new M.RightMargin() { Val = (UInt32Value)0U };
            M.DefaultJustification defaultJustification1 = new M.DefaultJustification() { Val = M.JustificationValues.CenterGroup };
            M.WrapIndent wrapIndent1 = new M.WrapIndent() { Val = (UInt32Value)1440U };
            M.IntegralLimitLocation integralLimitLocation1 = new M.IntegralLimitLocation() { Val = M.LimitLocationValues.SubscriptSuperscript };
            M.NaryLimitLocation naryLimitLocation1 = new M.NaryLimitLocation() { Val = M.LimitLocationValues.UnderOver };

            mathProperties1.Append(mathFont1);
            mathProperties1.Append(breakBinary1);
            mathProperties1.Append(breakBinarySubtraction1);
            mathProperties1.Append(smallFraction1);
            mathProperties1.Append(displayDefaults1);
            mathProperties1.Append(leftMargin1);
            mathProperties1.Append(rightMargin1);
            mathProperties1.Append(defaultJustification1);
            mathProperties1.Append(wrapIndent1);
            mathProperties1.Append(integralLimitLocation1);
            mathProperties1.Append(naryLimitLocation1);
            ThemeFontLanguages themeFontLanguages1 = new ThemeFontLanguages() { Val = "en-US", EastAsia = "zh-CN" };
            ColorSchemeMapping colorSchemeMapping1 = new ColorSchemeMapping() { Background1 = ColorSchemeIndexValues.Light1, Text1 = ColorSchemeIndexValues.Dark1, Background2 = ColorSchemeIndexValues.Light2, Text2 = ColorSchemeIndexValues.Dark2, Accent1 = ColorSchemeIndexValues.Accent1, Accent2 = ColorSchemeIndexValues.Accent2, Accent3 = ColorSchemeIndexValues.Accent3, Accent4 = ColorSchemeIndexValues.Accent4, Accent5 = ColorSchemeIndexValues.Accent5, Accent6 = ColorSchemeIndexValues.Accent6, Hyperlink = ColorSchemeIndexValues.Hyperlink, FollowedHyperlink = ColorSchemeIndexValues.FollowedHyperlink };

            ShapeDefaults shapeDefaults2 = new ShapeDefaults();
            Ovml.ShapeDefaults shapeDefaults3 = new Ovml.ShapeDefaults() { Extension = V.ExtensionHandlingBehaviorValues.Edit, MaxShapeId = 2049 };

            Ovml.ShapeLayout shapeLayout1 = new Ovml.ShapeLayout() { Extension = V.ExtensionHandlingBehaviorValues.Edit };
            Ovml.ShapeIdMap shapeIdMap1 = new Ovml.ShapeIdMap() { Extension = V.ExtensionHandlingBehaviorValues.Edit, Data = "1" };

            shapeLayout1.Append(shapeIdMap1);

            shapeDefaults2.Append(shapeDefaults3);
            shapeDefaults2.Append(shapeLayout1);
            DecimalSymbol decimalSymbol1 = new DecimalSymbol() { Val = "." };
            ListSeparator listSeparator1 = new ListSeparator() { Val = "," };
            W15.ChartTrackingRefBased chartTrackingRefBased1 = new W15.ChartTrackingRefBased();
            W15.PersistentDocumentId persistentDocumentId1 = new W15.PersistentDocumentId() { Val = "{FBB28D33-AE74-477E-BB4F-B17128D70046}" };

            settings1.Append(zoom1);
            settings1.Append(bordersDoNotSurroundHeader1);
            settings1.Append(bordersDoNotSurroundFooter1);
            settings1.Append(attachedTemplate1);
            settings1.Append(defaultTabStop1);
            settings1.Append(drawingGridVerticalSpacing1);
            settings1.Append(displayHorizontalDrawingGrid1);
            settings1.Append(displayVerticalDrawingGrid1);
            settings1.Append(characterSpacingControl1);
            settings1.Append(headerShapeDefaults1);
            settings1.Append(footnoteDocumentWideProperties1);
            settings1.Append(endnoteDocumentWideProperties1);
            settings1.Append(compatibility1);
            settings1.Append(rsids1);
            settings1.Append(mathProperties1);
            settings1.Append(themeFontLanguages1);
            settings1.Append(colorSchemeMapping1);
            settings1.Append(shapeDefaults2);
            settings1.Append(decimalSymbol1);
            settings1.Append(listSeparator1);
            settings1.Append(chartTrackingRefBased1);
            settings1.Append(persistentDocumentId1);

            documentSettingsPart1.Settings = settings1;
        }
Пример #4
0
        // Generates content of documentSettingsPart1.
        private void GenerateDocumentSettingsPart1Content(DocumentSettingsPart documentSettingsPart1)
        {
            Settings settings1 = new Settings(){ MCAttributes = new MarkupCompatibilityAttributes(){ Ignorable = "w14 w15" }  };
            settings1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
            settings1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
            settings1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
            settings1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
            settings1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
            settings1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
            settings1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
            settings1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml");
            settings1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2012/wordml");
            settings1.AddNamespaceDeclaration("sl", "http://schemas.openxmlformats.org/schemaLibrary/2006/main");
            Zoom zoom1 = new Zoom(){ Percent = "120" };
            DoNotDisplayPageBoundaries doNotDisplayPageBoundaries1 = new DoNotDisplayPageBoundaries();
            BordersDoNotSurroundHeader bordersDoNotSurroundHeader1 = new BordersDoNotSurroundHeader();
            BordersDoNotSurroundFooter bordersDoNotSurroundFooter1 = new BordersDoNotSurroundFooter();
            ProofState proofState1 = new ProofState(){ Spelling = ProofingStateValues.Clean, Grammar = ProofingStateValues.Clean };
            DefaultTabStop defaultTabStop1 = new DefaultTabStop(){ Val = 840 };
            DisplayHorizontalDrawingGrid displayHorizontalDrawingGrid1 = new DisplayHorizontalDrawingGrid(){ Val = 0 };
            DisplayVerticalDrawingGrid displayVerticalDrawingGrid1 = new DisplayVerticalDrawingGrid(){ Val = 2 };
            CharacterSpacingControl characterSpacingControl1 = new CharacterSpacingControl(){ Val = CharacterSpacingValues.CompressPunctuation };

            Compatibility compatibility1 = new Compatibility();
            SpaceForUnderline spaceForUnderline1 = new SpaceForUnderline();
            BalanceSingleByteDoubleByteWidth balanceSingleByteDoubleByteWidth1 = new BalanceSingleByteDoubleByteWidth();
            DoNotLeaveBackslashAlone doNotLeaveBackslashAlone1 = new DoNotLeaveBackslashAlone();
            UnderlineTrailingSpaces underlineTrailingSpaces1 = new UnderlineTrailingSpaces();
            DoNotExpandShiftReturn doNotExpandShiftReturn1 = new DoNotExpandShiftReturn();
            AdjustLineHeightInTable adjustLineHeightInTable1 = new AdjustLineHeightInTable();
            UseFarEastLayout useFarEastLayout1 = new UseFarEastLayout();
            CompatibilitySetting compatibilitySetting1 = new CompatibilitySetting(){ Name = CompatSettingNameValues.CompatibilityMode, Uri = "http://schemas.microsoft.com/office/word", Val = "15" };
            CompatibilitySetting compatibilitySetting2 = new CompatibilitySetting(){ Name = CompatSettingNameValues.OverrideTableStyleFontSizeAndJustification, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting3 = new CompatibilitySetting(){ Name = CompatSettingNameValues.EnableOpenTypeFeatures, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting4 = new CompatibilitySetting(){ Name = CompatSettingNameValues.DoNotFlipMirrorIndents, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting5 = new CompatibilitySetting(){ Name = CompatSettingNameValues.DifferentiateMultirowTableHeaders, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };

            compatibility1.Append(spaceForUnderline1);
            compatibility1.Append(balanceSingleByteDoubleByteWidth1);
            compatibility1.Append(doNotLeaveBackslashAlone1);
            compatibility1.Append(underlineTrailingSpaces1);
            compatibility1.Append(doNotExpandShiftReturn1);
            compatibility1.Append(adjustLineHeightInTable1);
            compatibility1.Append(useFarEastLayout1);
            compatibility1.Append(compatibilitySetting1);
            compatibility1.Append(compatibilitySetting2);
            compatibility1.Append(compatibilitySetting3);
            compatibility1.Append(compatibilitySetting4);
            compatibility1.Append(compatibilitySetting5);

            Rsids rsids1 = new Rsids();
            RsidRoot rsidRoot1 = new RsidRoot(){ Val = "009423EF" };
            Rsid rsid1 = new Rsid(){ Val = "0008591D" };
            Rsid rsid2 = new Rsid(){ Val = "000F6BB9" };
            Rsid rsid3 = new Rsid(){ Val = "009423EF" };

            rsids1.Append(rsidRoot1);
            rsids1.Append(rsid1);
            rsids1.Append(rsid2);
            rsids1.Append(rsid3);

            M.MathProperties mathProperties1 = new M.MathProperties();
            M.MathFont mathFont1 = new M.MathFont(){ Val = "Cambria Math" };
            M.BreakBinary breakBinary1 = new M.BreakBinary(){ Val = M.BreakBinaryOperatorValues.Before };
            M.BreakBinarySubtraction breakBinarySubtraction1 = new M.BreakBinarySubtraction(){ Val = M.BreakBinarySubtractionValues.MinusMinus };
            M.SmallFraction smallFraction1 = new M.SmallFraction(){ Val = M.BooleanValues.Zero };
            M.DisplayDefaults displayDefaults1 = new M.DisplayDefaults();
            M.LeftMargin leftMargin1 = new M.LeftMargin(){ Val = (UInt32Value)0U };
            M.RightMargin rightMargin1 = new M.RightMargin(){ Val = (UInt32Value)0U };
            M.DefaultJustification defaultJustification1 = new M.DefaultJustification(){ Val = M.JustificationValues.CenterGroup };
            M.WrapIndent wrapIndent1 = new M.WrapIndent(){ Val = (UInt32Value)1440U };
            M.IntegralLimitLocation integralLimitLocation1 = new M.IntegralLimitLocation(){ Val = M.LimitLocationValues.SubscriptSuperscript };
            M.NaryLimitLocation naryLimitLocation1 = new M.NaryLimitLocation(){ Val = M.LimitLocationValues.UnderOver };

            mathProperties1.Append(mathFont1);
            mathProperties1.Append(breakBinary1);
            mathProperties1.Append(breakBinarySubtraction1);
            mathProperties1.Append(smallFraction1);
            mathProperties1.Append(displayDefaults1);
            mathProperties1.Append(leftMargin1);
            mathProperties1.Append(rightMargin1);
            mathProperties1.Append(defaultJustification1);
            mathProperties1.Append(wrapIndent1);
            mathProperties1.Append(integralLimitLocation1);
            mathProperties1.Append(naryLimitLocation1);
            ThemeFontLanguages themeFontLanguages1 = new ThemeFontLanguages(){ Val = "en-US", EastAsia = "ja-JP" };
            ColorSchemeMapping colorSchemeMapping1 = new ColorSchemeMapping(){ Background1 = ColorSchemeIndexValues.Light1, Text1 = ColorSchemeIndexValues.Dark1, Background2 = ColorSchemeIndexValues.Light2, Text2 = ColorSchemeIndexValues.Dark2, Accent1 = ColorSchemeIndexValues.Accent1, Accent2 = ColorSchemeIndexValues.Accent2, Accent3 = ColorSchemeIndexValues.Accent3, Accent4 = ColorSchemeIndexValues.Accent4, Accent5 = ColorSchemeIndexValues.Accent5, Accent6 = ColorSchemeIndexValues.Accent6, Hyperlink = ColorSchemeIndexValues.Hyperlink, FollowedHyperlink = ColorSchemeIndexValues.FollowedHyperlink };

            ShapeDefaults shapeDefaults1 = new ShapeDefaults();

            Ovml.ShapeDefaults shapeDefaults2 = new Ovml.ShapeDefaults(){ Extension = V.ExtensionHandlingBehaviorValues.Edit, MaxShapeId = 1026 };
            V.TextBox textBox1 = new V.TextBox(){ Inset = "5.85pt,.7pt,5.85pt,.7pt" };

            shapeDefaults2.Append(textBox1);

            Ovml.ShapeLayout shapeLayout1 = new Ovml.ShapeLayout(){ Extension = V.ExtensionHandlingBehaviorValues.Edit };
            Ovml.ShapeIdMap shapeIdMap1 = new Ovml.ShapeIdMap(){ Extension = V.ExtensionHandlingBehaviorValues.Edit, Data = "1" };

            shapeLayout1.Append(shapeIdMap1);

            shapeDefaults1.Append(shapeDefaults2);
            shapeDefaults1.Append(shapeLayout1);
            DecimalSymbol decimalSymbol1 = new DecimalSymbol(){ Val = "." };
            ListSeparator listSeparator1 = new ListSeparator(){ Val = "," };
            W14.DocumentId documentId1 = new W14.DocumentId(){ Val = "5F9C04B8" };
            W15.ChartTrackingRefBased chartTrackingRefBased1 = new W15.ChartTrackingRefBased();
            W15.PersistentDocumentId persistentDocumentId1 = new W15.PersistentDocumentId(){ Val = "{F93C67B3-65D9-4EFC-B3C8-42982111CA48}" };

            settings1.Append(zoom1);
            settings1.Append(doNotDisplayPageBoundaries1);
            settings1.Append(bordersDoNotSurroundHeader1);
            settings1.Append(bordersDoNotSurroundFooter1);
            settings1.Append(proofState1);
            settings1.Append(defaultTabStop1);
            settings1.Append(displayHorizontalDrawingGrid1);
            settings1.Append(displayVerticalDrawingGrid1);
            settings1.Append(characterSpacingControl1);
            settings1.Append(compatibility1);
            settings1.Append(rsids1);
            settings1.Append(mathProperties1);
            settings1.Append(themeFontLanguages1);
            settings1.Append(colorSchemeMapping1);
            settings1.Append(shapeDefaults1);
            settings1.Append(decimalSymbol1);
            settings1.Append(listSeparator1);
            settings1.Append(documentId1);
            settings1.Append(chartTrackingRefBased1);
            settings1.Append(persistentDocumentId1);

            documentSettingsPart1.Settings = settings1;
        }
Пример #5
0
        // Generates content of documentSettingsPart1.
        private void GenerateDocumentSettingsPart1Content(DocumentSettingsPart documentSettingsPart1)
        {
            Settings settings1 = new Settings(){ MCAttributes = new MarkupCompatibilityAttributes(){ Ignorable = "w14 w15" }  };
            settings1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
            settings1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
            settings1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
            settings1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
            settings1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
            settings1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
            settings1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
            settings1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml");
            settings1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2010/11/wordml");
            settings1.AddNamespaceDeclaration("sl", "http://schemas.openxmlformats.org/schemaLibrary/2006/main");
            Zoom zoom1 = new Zoom(){ Percent = "120" };
            BordersDoNotSurroundHeader bordersDoNotSurroundHeader1 = new BordersDoNotSurroundHeader();
            BordersDoNotSurroundFooter bordersDoNotSurroundFooter1 = new BordersDoNotSurroundFooter();
            DefaultTabStop defaultTabStop1 = new DefaultTabStop(){ Val = 840 };
            DisplayHorizontalDrawingGrid displayHorizontalDrawingGrid1 = new DisplayHorizontalDrawingGrid(){ Val = 0 };
            DisplayVerticalDrawingGrid displayVerticalDrawingGrid1 = new DisplayVerticalDrawingGrid(){ Val = 2 };
            CharacterSpacingControl characterSpacingControl1 = new CharacterSpacingControl(){ Val = CharacterSpacingValues.CompressPunctuation };

            HeaderShapeDefaults headerShapeDefaults1 = new HeaderShapeDefaults();

            Ovml.ShapeDefaults shapeDefaults1 = new Ovml.ShapeDefaults(){ Extension = V.ExtensionHandlingBehaviorValues.Edit, MaxShapeId = 2049 };
            V.TextBox textBox1 = new V.TextBox(){ Inset = "5.85pt,.7pt,5.85pt,.7pt" };

            shapeDefaults1.Append(textBox1);

            headerShapeDefaults1.Append(shapeDefaults1);

            FootnoteDocumentWideProperties footnoteDocumentWideProperties1 = new FootnoteDocumentWideProperties();
            FootnotePosition footnotePosition2 = new FootnotePosition(){ Val = FootnotePositionValues.BeneathText };
            FootnoteSpecialReference footnoteSpecialReference1 = new FootnoteSpecialReference(){ Id = -1 };
            FootnoteSpecialReference footnoteSpecialReference2 = new FootnoteSpecialReference(){ Id = 0 };

            footnoteDocumentWideProperties1.Append(footnotePosition2);
            footnoteDocumentWideProperties1.Append(footnoteSpecialReference1);
            footnoteDocumentWideProperties1.Append(footnoteSpecialReference2);

            EndnoteDocumentWideProperties endnoteDocumentWideProperties1 = new EndnoteDocumentWideProperties();
            EndnoteSpecialReference endnoteSpecialReference1 = new EndnoteSpecialReference(){ Id = -1 };
            EndnoteSpecialReference endnoteSpecialReference2 = new EndnoteSpecialReference(){ Id = 0 };

            endnoteDocumentWideProperties1.Append(endnoteSpecialReference1);
            endnoteDocumentWideProperties1.Append(endnoteSpecialReference2);

            Compatibility compatibility1 = new Compatibility();
            SpaceForUnderline spaceForUnderline1 = new SpaceForUnderline();
            BalanceSingleByteDoubleByteWidth balanceSingleByteDoubleByteWidth1 = new BalanceSingleByteDoubleByteWidth();
            DoNotLeaveBackslashAlone doNotLeaveBackslashAlone1 = new DoNotLeaveBackslashAlone();
            UnderlineTrailingSpaces underlineTrailingSpaces1 = new UnderlineTrailingSpaces();
            DoNotExpandShiftReturn doNotExpandShiftReturn1 = new DoNotExpandShiftReturn();
            AdjustLineHeightInTable adjustLineHeightInTable1 = new AdjustLineHeightInTable();
            UseFarEastLayout useFarEastLayout1 = new UseFarEastLayout();
            CompatibilitySetting compatibilitySetting1 = new CompatibilitySetting(){ Name = CompatSettingNameValues.CompatibilityMode, Uri = "http://schemas.microsoft.com/office/word", Val = "15" };
            CompatibilitySetting compatibilitySetting2 = new CompatibilitySetting(){ Name = CompatSettingNameValues.OverrideTableStyleFontSizeAndJustification, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting3 = new CompatibilitySetting(){ Name = CompatSettingNameValues.EnableOpenTypeFeatures, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting4 = new CompatibilitySetting(){ Name = CompatSettingNameValues.DoNotFlipMirrorIndents, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };
            CompatibilitySetting compatibilitySetting5 = new CompatibilitySetting(){ Name = CompatSettingNameValues.DifferentiateMultirowTableHeaders, Uri = "http://schemas.microsoft.com/office/word", Val = "1" };

            compatibility1.Append(spaceForUnderline1);
            compatibility1.Append(balanceSingleByteDoubleByteWidth1);
            compatibility1.Append(doNotLeaveBackslashAlone1);
            compatibility1.Append(underlineTrailingSpaces1);
            compatibility1.Append(doNotExpandShiftReturn1);
            compatibility1.Append(adjustLineHeightInTable1);
            compatibility1.Append(useFarEastLayout1);
            compatibility1.Append(compatibilitySetting1);
            compatibility1.Append(compatibilitySetting2);
            compatibility1.Append(compatibilitySetting3);
            compatibility1.Append(compatibilitySetting4);
            compatibility1.Append(compatibilitySetting5);

            Rsids rsids1 = new Rsids();
            RsidRoot rsidRoot1 = new RsidRoot(){ Val = "0065051C" };
            Rsid rsid1 = new Rsid(){ Val = "00023006" };
            Rsid rsid2 = new Rsid(){ Val = "000375B4" };
            Rsid rsid3 = new Rsid(){ Val = "000B3CD4" };
            Rsid rsid4 = new Rsid(){ Val = "000D444D" };
            Rsid rsid5 = new Rsid(){ Val = "00155FE4" };
            Rsid rsid6 = new Rsid(){ Val = "00157205" };
            Rsid rsid7 = new Rsid(){ Val = "00184FE2" };
            Rsid rsid8 = new Rsid(){ Val = "0021780B" };
            Rsid rsid9 = new Rsid(){ Val = "00246099" };
            Rsid rsid10 = new Rsid(){ Val = "002630CE" };
            Rsid rsid11 = new Rsid(){ Val = "002822D5" };
            Rsid rsid12 = new Rsid(){ Val = "002B1150" };
            Rsid rsid13 = new Rsid(){ Val = "00312F55" };
            Rsid rsid14 = new Rsid(){ Val = "003164B1" };
            Rsid rsid15 = new Rsid(){ Val = "003E3E28" };
            Rsid rsid16 = new Rsid(){ Val = "003E4104" };
            Rsid rsid17 = new Rsid(){ Val = "003F4155" };
            Rsid rsid18 = new Rsid(){ Val = "00432250" };
            Rsid rsid19 = new Rsid(){ Val = "00442213" };
            Rsid rsid20 = new Rsid(){ Val = "0046772B" };
            Rsid rsid21 = new Rsid(){ Val = "004E1BAE" };
            Rsid rsid22 = new Rsid(){ Val = "005168C8" };
            Rsid rsid23 = new Rsid(){ Val = "00554C36" };
            Rsid rsid24 = new Rsid(){ Val = "0056510B" };
            Rsid rsid25 = new Rsid(){ Val = "005812F7" };
            Rsid rsid26 = new Rsid(){ Val = "00591DB3" };
            Rsid rsid27 = new Rsid(){ Val = "005C5F46" };
            Rsid rsid28 = new Rsid(){ Val = "006150B3" };
            Rsid rsid29 = new Rsid(){ Val = "0065051C" };
            Rsid rsid30 = new Rsid(){ Val = "006529C4" };
            Rsid rsid31 = new Rsid(){ Val = "00654EDD" };
            Rsid rsid32 = new Rsid(){ Val = "006617B0" };
            Rsid rsid33 = new Rsid(){ Val = "00673762" };
            Rsid rsid34 = new Rsid(){ Val = "006811F2" };
            Rsid rsid35 = new Rsid(){ Val = "006905DC" };
            Rsid rsid36 = new Rsid(){ Val = "00717274" };
            Rsid rsid37 = new Rsid(){ Val = "00726D63" };
            Rsid rsid38 = new Rsid(){ Val = "00735B16" };
            Rsid rsid39 = new Rsid(){ Val = "0078395F" };
            Rsid rsid40 = new Rsid(){ Val = "007C5C36" };
            Rsid rsid41 = new Rsid(){ Val = "007E083A" };
            Rsid rsid42 = new Rsid(){ Val = "00802542" };
            Rsid rsid43 = new Rsid(){ Val = "00815205" };
            Rsid rsid44 = new Rsid(){ Val = "008601D0" };
            Rsid rsid45 = new Rsid(){ Val = "008A3AEB" };
            Rsid rsid46 = new Rsid(){ Val = "00A0620B" };
            Rsid rsid47 = new Rsid(){ Val = "00A85C79" };
            Rsid rsid48 = new Rsid(){ Val = "00A97EF2" };
            Rsid rsid49 = new Rsid(){ Val = "00B02BB2" };
            Rsid rsid50 = new Rsid(){ Val = "00B226C3" };
            Rsid rsid51 = new Rsid(){ Val = "00B242C6" };
            Rsid rsid52 = new Rsid(){ Val = "00B65CCF" };
            Rsid rsid53 = new Rsid(){ Val = "00BE0751" };
            Rsid rsid54 = new Rsid(){ Val = "00C746AE" };
            Rsid rsid55 = new Rsid(){ Val = "00CA03FE" };
            Rsid rsid56 = new Rsid(){ Val = "00CA6E11" };
            Rsid rsid57 = new Rsid(){ Val = "00D15121" };
            Rsid rsid58 = new Rsid(){ Val = "00D70034" };
            Rsid rsid59 = new Rsid(){ Val = "00D71FEB" };
            Rsid rsid60 = new Rsid(){ Val = "00DC4725" };
            Rsid rsid61 = new Rsid(){ Val = "00DD0BFF" };
            Rsid rsid62 = new Rsid(){ Val = "00E1398B" };
            Rsid rsid63 = new Rsid(){ Val = "00EC4B3C" };
            Rsid rsid64 = new Rsid(){ Val = "00F35C24" };
            Rsid rsid65 = new Rsid(){ Val = "00F9059B" };
            Rsid rsid66 = new Rsid(){ Val = "00F90D0E" };
            Rsid rsid67 = new Rsid(){ Val = "00FC0551" };
            Rsid rsid68 = new Rsid(){ Val = "00FD7597" };
            Rsid rsid69 = new Rsid(){ Val = "00FE4421" };
            Rsid rsid70 = new Rsid(){ Val = "00FF4163" };

            rsids1.Append(rsidRoot1);
            rsids1.Append(rsid1);
            rsids1.Append(rsid2);
            rsids1.Append(rsid3);
            rsids1.Append(rsid4);
            rsids1.Append(rsid5);
            rsids1.Append(rsid6);
            rsids1.Append(rsid7);
            rsids1.Append(rsid8);
            rsids1.Append(rsid9);
            rsids1.Append(rsid10);
            rsids1.Append(rsid11);
            rsids1.Append(rsid12);
            rsids1.Append(rsid13);
            rsids1.Append(rsid14);
            rsids1.Append(rsid15);
            rsids1.Append(rsid16);
            rsids1.Append(rsid17);
            rsids1.Append(rsid18);
            rsids1.Append(rsid19);
            rsids1.Append(rsid20);
            rsids1.Append(rsid21);
            rsids1.Append(rsid22);
            rsids1.Append(rsid23);
            rsids1.Append(rsid24);
            rsids1.Append(rsid25);
            rsids1.Append(rsid26);
            rsids1.Append(rsid27);
            rsids1.Append(rsid28);
            rsids1.Append(rsid29);
            rsids1.Append(rsid30);
            rsids1.Append(rsid31);
            rsids1.Append(rsid32);
            rsids1.Append(rsid33);
            rsids1.Append(rsid34);
            rsids1.Append(rsid35);
            rsids1.Append(rsid36);
            rsids1.Append(rsid37);
            rsids1.Append(rsid38);
            rsids1.Append(rsid39);
            rsids1.Append(rsid40);
            rsids1.Append(rsid41);
            rsids1.Append(rsid42);
            rsids1.Append(rsid43);
            rsids1.Append(rsid44);
            rsids1.Append(rsid45);
            rsids1.Append(rsid46);
            rsids1.Append(rsid47);
            rsids1.Append(rsid48);
            rsids1.Append(rsid49);
            rsids1.Append(rsid50);
            rsids1.Append(rsid51);
            rsids1.Append(rsid52);
            rsids1.Append(rsid53);
            rsids1.Append(rsid54);
            rsids1.Append(rsid55);
            rsids1.Append(rsid56);
            rsids1.Append(rsid57);
            rsids1.Append(rsid58);
            rsids1.Append(rsid59);
            rsids1.Append(rsid60);
            rsids1.Append(rsid61);
            rsids1.Append(rsid62);
            rsids1.Append(rsid63);
            rsids1.Append(rsid64);
            rsids1.Append(rsid65);
            rsids1.Append(rsid66);
            rsids1.Append(rsid67);
            rsids1.Append(rsid68);
            rsids1.Append(rsid69);
            rsids1.Append(rsid70);

            M.MathProperties mathProperties1 = new M.MathProperties();
            M.MathFont mathFont1 = new M.MathFont(){ Val = "Cambria Math" };
            M.BreakBinary breakBinary1 = new M.BreakBinary(){ Val = M.BreakBinaryOperatorValues.Before };
            M.BreakBinarySubtraction breakBinarySubtraction1 = new M.BreakBinarySubtraction(){ Val = M.BreakBinarySubtractionValues.MinusMinus };
            M.SmallFraction smallFraction1 = new M.SmallFraction(){ Val = M.BooleanValues.Zero };
            M.DisplayDefaults displayDefaults1 = new M.DisplayDefaults();
            M.LeftMargin leftMargin1 = new M.LeftMargin(){ Val = (UInt32Value)0U };
            M.RightMargin rightMargin1 = new M.RightMargin(){ Val = (UInt32Value)0U };
            M.DefaultJustification defaultJustification1 = new M.DefaultJustification(){ Val = M.JustificationValues.CenterGroup };
            M.WrapIndent wrapIndent1 = new M.WrapIndent(){ Val = (UInt32Value)1440U };
            M.IntegralLimitLocation integralLimitLocation1 = new M.IntegralLimitLocation(){ Val = M.LimitLocationValues.SubscriptSuperscript };
            M.NaryLimitLocation naryLimitLocation1 = new M.NaryLimitLocation(){ Val = M.LimitLocationValues.UnderOver };

            mathProperties1.Append(mathFont1);
            mathProperties1.Append(breakBinary1);
            mathProperties1.Append(breakBinarySubtraction1);
            mathProperties1.Append(smallFraction1);
            mathProperties1.Append(displayDefaults1);
            mathProperties1.Append(leftMargin1);
            mathProperties1.Append(rightMargin1);
            mathProperties1.Append(defaultJustification1);
            mathProperties1.Append(wrapIndent1);
            mathProperties1.Append(integralLimitLocation1);
            mathProperties1.Append(naryLimitLocation1);
            ThemeFontLanguages themeFontLanguages1 = new ThemeFontLanguages(){ Val = "en-US", EastAsia = "ja-JP" };
            ColorSchemeMapping colorSchemeMapping1 = new ColorSchemeMapping(){ Background1 = ColorSchemeIndexValues.Light1, Text1 = ColorSchemeIndexValues.Dark1, Background2 = ColorSchemeIndexValues.Light2, Text2 = ColorSchemeIndexValues.Dark2, Accent1 = ColorSchemeIndexValues.Accent1, Accent2 = ColorSchemeIndexValues.Accent2, Accent3 = ColorSchemeIndexValues.Accent3, Accent4 = ColorSchemeIndexValues.Accent4, Accent5 = ColorSchemeIndexValues.Accent5, Accent6 = ColorSchemeIndexValues.Accent6, Hyperlink = ColorSchemeIndexValues.Hyperlink, FollowedHyperlink = ColorSchemeIndexValues.FollowedHyperlink };

            ShapeDefaults shapeDefaults2 = new ShapeDefaults();

            Ovml.ShapeDefaults shapeDefaults3 = new Ovml.ShapeDefaults(){ Extension = V.ExtensionHandlingBehaviorValues.Edit, MaxShapeId = 2049 };
            V.TextBox textBox2 = new V.TextBox(){ Inset = "5.85pt,.7pt,5.85pt,.7pt" };

            shapeDefaults3.Append(textBox2);

            Ovml.ShapeLayout shapeLayout1 = new Ovml.ShapeLayout(){ Extension = V.ExtensionHandlingBehaviorValues.Edit };
            Ovml.ShapeIdMap shapeIdMap1 = new Ovml.ShapeIdMap(){ Extension = V.ExtensionHandlingBehaviorValues.Edit, Data = "1" };

            shapeLayout1.Append(shapeIdMap1);

            shapeDefaults2.Append(shapeDefaults3);
            shapeDefaults2.Append(shapeLayout1);
            DecimalSymbol decimalSymbol1 = new DecimalSymbol(){ Val = "." };
            ListSeparator listSeparator1 = new ListSeparator(){ Val = "," };
            W15.ChartTrackingRefBased chartTrackingRefBased1 = new W15.ChartTrackingRefBased();
            W15.PersistentDocumentId persistentDocumentId1 = new W15.PersistentDocumentId(){ Val = "{57C27CDA-3B4C-42CA-80EF-A200C26DFF13}" };

            settings1.Append(zoom1);
            settings1.Append(bordersDoNotSurroundHeader1);
            settings1.Append(bordersDoNotSurroundFooter1);
            settings1.Append(defaultTabStop1);
            settings1.Append(displayHorizontalDrawingGrid1);
            settings1.Append(displayVerticalDrawingGrid1);
            settings1.Append(characterSpacingControl1);
            settings1.Append(headerShapeDefaults1);
            settings1.Append(footnoteDocumentWideProperties1);
            settings1.Append(endnoteDocumentWideProperties1);
            settings1.Append(compatibility1);
            settings1.Append(rsids1);
            settings1.Append(mathProperties1);
            settings1.Append(themeFontLanguages1);
            settings1.Append(colorSchemeMapping1);
            settings1.Append(shapeDefaults2);
            settings1.Append(decimalSymbol1);
            settings1.Append(listSeparator1);
            settings1.Append(chartTrackingRefBased1);
            settings1.Append(persistentDocumentId1);

            documentSettingsPart1.Settings = settings1;
        }
Пример #6
0
        //.....................................................................
        /// <summary>
        /// Generates content of settingsPART.
        /// </summary>
        /// <param name="settingsPART"></param>
        private void GenerateSettingsPart(DocumentSettingsPart settingsPART)
        {
            Settings settings1 = new Settings( )
            {
                MCAttributes = new MarkupCompatibilityAttributes( )
                {
                    Ignorable = "w14"
                }
            };

            settings1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
            settings1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
            settings1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
            settings1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
            settings1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
            settings1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
            settings1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
            settings1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml");
            settings1.AddNamespaceDeclaration("sl", "http://schemas.openxmlformats.org/schemaLibrary/2006/main");

            Zoom zoom1 = new Zoom( )
            {
                Percent = "130"
            };
            BordersDoNotSurroundHeader bordersDoNotSurroundHeader1 = new BordersDoNotSurroundHeader( );
            BordersDoNotSurroundFooter bordersDoNotSurroundFooter1 = new BordersDoNotSurroundFooter( );
            ProofState proofState1 = new ProofState( )
            {
                Spelling = ProofingStateValues.Clean, Grammar = ProofingStateValues.Clean
            };
            DefaultTabStop defaultTabStop1 = new DefaultTabStop( )
            {
                Val = 420
            };
            DrawingGridVerticalSpacing drawingGridVerticalSpacing1 = new DrawingGridVerticalSpacing( )
            {
                Val = "156"
            };
            DisplayHorizontalDrawingGrid displayHorizontalDrawingGrid1 = new DisplayHorizontalDrawingGrid( )
            {
                Val = 0
            };
            DisplayVerticalDrawingGrid displayVerticalDrawingGrid1 = new DisplayVerticalDrawingGrid( )
            {
                Val = 2
            };
            CharacterSpacingControl characterSpacingControl1 = new CharacterSpacingControl( )
            {
                Val = CharacterSpacingValues.CompressPunctuation
            };

            Compatibility     compatibility1     = new Compatibility( );
            SpaceForUnderline spaceForUnderline1 = new SpaceForUnderline( );
            BalanceSingleByteDoubleByteWidth balanceSingleByteDoubleByteWidth1 = new BalanceSingleByteDoubleByteWidth( );
            DoNotLeaveBackslashAlone         doNotLeaveBackslashAlone1         = new DoNotLeaveBackslashAlone( );
            UnderlineTrailingSpaces          underlineTrailingSpaces1          = new UnderlineTrailingSpaces( );
            DoNotExpandShiftReturn           doNotExpandShiftReturn1           = new DoNotExpandShiftReturn( );
            AdjustLineHeightInTable          adjustLineHeightInTable1          = new AdjustLineHeightInTable( );
            UseFarEastLayout     useFarEastLayout1     = new UseFarEastLayout( );
            CompatibilitySetting compatibilitySetting1 = new CompatibilitySetting( )
            {
                Name = CompatSettingNameValues.CompatibilityMode, Uri = "http://schemas.microsoft.com/office/word", Val = "14"
            };
            CompatibilitySetting compatibilitySetting2 = new CompatibilitySetting( )
            {
                Name = CompatSettingNameValues.OverrideTableStyleFontSizeAndJustification, Uri = "http://schemas.microsoft.com/office/word", Val = "1"
            };
            CompatibilitySetting compatibilitySetting3 = new CompatibilitySetting( )
            {
                Name = CompatSettingNameValues.EnableOpenTypeFeatures, Uri = "http://schemas.microsoft.com/office/word", Val = "1"
            };
            CompatibilitySetting compatibilitySetting4 = new CompatibilitySetting( )
            {
                Name = CompatSettingNameValues.DoNotFlipMirrorIndents, Uri = "http://schemas.microsoft.com/office/word", Val = "1"
            };

            compatibility1.Append(spaceForUnderline1);
            compatibility1.Append(balanceSingleByteDoubleByteWidth1);
            compatibility1.Append(doNotLeaveBackslashAlone1);
            compatibility1.Append(underlineTrailingSpaces1);
            compatibility1.Append(doNotExpandShiftReturn1);
            compatibility1.Append(adjustLineHeightInTable1);
            compatibility1.Append(useFarEastLayout1);
            compatibility1.Append(compatibilitySetting1);
            compatibility1.Append(compatibilitySetting2);
            compatibility1.Append(compatibilitySetting3);
            compatibility1.Append(compatibilitySetting4);

            Rsids    rsids1    = new Rsids( );
            RsidRoot rsidRoot1 = new RsidRoot( )
            {
                Val = "006F111A"
            };
            Rsid rsid1 = new Rsid( )
            {
                Val = "006F111A"
            };
            Rsid rsid2 = new Rsid( )
            {
                Val = "00C5114C"
            };

            rsids1.Append(rsidRoot1);
            rsids1.Append(rsid1);
            rsids1.Append(rsid2);

            M.MathProperties mathProperties1 = new M.MathProperties( );

            M.MathFont mathFont1 = new M.MathFont( )
            {
                Val = "Cambria Math"
            };
            M.BreakBinary breakBinary1 = new M.BreakBinary( )
            {
                Val = M.BreakBinaryOperatorValues.Before
            };
            M.BreakBinarySubtraction breakBinarySubtraction1 = new M.BreakBinarySubtraction( )
            {
                Val = M.BreakBinarySubtractionValues.MinusMinus
            };
            M.SmallFraction smallFraction1 = new M.SmallFraction( )
            {
                Val = M.BooleanValues.Zero
            };
            M.DisplayDefaults displayDefaults1 = new M.DisplayDefaults( );
            M.LeftMargin      leftMargin1      = new M.LeftMargin( )
            {
                Val = ( UInt32Value )0U
            };
            M.RightMargin rightMargin1 = new M.RightMargin( )
            {
                Val = ( UInt32Value )0U
            };
            M.DefaultJustification defaultJustification1 = new M.DefaultJustification( )
            {
                Val = M.JustificationValues.CenterGroup
            };
            M.WrapIndent wrapIndent1 = new M.WrapIndent( )
            {
                Val = ( UInt32Value )1440U
            };
            M.IntegralLimitLocation integralLimitLocation1 = new M.IntegralLimitLocation( )
            {
                Val = M.LimitLocationValues.SubscriptSuperscript
            };
            M.NaryLimitLocation naryLimitLocation1 = new M.NaryLimitLocation( )
            {
                Val = M.LimitLocationValues.UnderOver
            };

            mathProperties1.Append(mathFont1);
            mathProperties1.Append(breakBinary1);
            mathProperties1.Append(breakBinarySubtraction1);
            mathProperties1.Append(smallFraction1);
            mathProperties1.Append(displayDefaults1);
            mathProperties1.Append(leftMargin1);
            mathProperties1.Append(rightMargin1);
            mathProperties1.Append(defaultJustification1);
            mathProperties1.Append(wrapIndent1);
            mathProperties1.Append(integralLimitLocation1);
            mathProperties1.Append(naryLimitLocation1);

            ThemeFontLanguages themeFontLanguages1 = new ThemeFontLanguages( )
            {
                Val = "en-US", EastAsia = "zh-CN"
            };
            ColorSchemeMapping colorSchemeMapping1 = new ColorSchemeMapping( )
            {
                Background1 = ColorSchemeIndexValues.Light1, Text1 = ColorSchemeIndexValues.Dark1, Background2 = ColorSchemeIndexValues.Light2, Text2 = ColorSchemeIndexValues.Dark2, Accent1 = ColorSchemeIndexValues.Accent1, Accent2 = ColorSchemeIndexValues.Accent2, Accent3 = ColorSchemeIndexValues.Accent3, Accent4 = ColorSchemeIndexValues.Accent4, Accent5 = ColorSchemeIndexValues.Accent5, Accent6 = ColorSchemeIndexValues.Accent6, Hyperlink = ColorSchemeIndexValues.Hyperlink, FollowedHyperlink = ColorSchemeIndexValues.FollowedHyperlink
            };

            ShapeDefaults shapeDefaults1 = new ShapeDefaults( );

            Ovml.ShapeDefaults shapeDefaults2 = new Ovml.ShapeDefaults( )
            {
                Extension = V.ExtensionHandlingBehaviorValues.Edit, MaxShapeId = 1026
            };

            Ovml.ShapeLayout shapeLayout1 = new Ovml.ShapeLayout( )
            {
                Extension = V.ExtensionHandlingBehaviorValues.Edit
            };
            Ovml.ShapeIdMap shapeIdMap1 = new Ovml.ShapeIdMap( )
            {
                Extension = V.ExtensionHandlingBehaviorValues.Edit, Data = "1"
            };

            shapeLayout1.Append(shapeIdMap1);

            shapeDefaults1.Append(shapeDefaults2);
            shapeDefaults1.Append(shapeLayout1);

            DecimalSymbol decimalSymbol1 = new DecimalSymbol( )
            {
                Val = "."
            };
            ListSeparator listSeparator1 = new ListSeparator( )
            {
                Val = ","
            };

            settings1.Append(zoom1);
            settings1.Append(bordersDoNotSurroundHeader1);
            settings1.Append(bordersDoNotSurroundFooter1);
            settings1.Append(proofState1);
            settings1.Append(defaultTabStop1);
            settings1.Append(drawingGridVerticalSpacing1);
            settings1.Append(displayHorizontalDrawingGrid1);
            settings1.Append(displayVerticalDrawingGrid1);
            settings1.Append(characterSpacingControl1);
            settings1.Append(compatibility1);
            settings1.Append(rsids1);
            settings1.Append(mathProperties1);
            settings1.Append(themeFontLanguages1);
            settings1.Append(colorSchemeMapping1);
            settings1.Append(shapeDefaults1);
            settings1.Append(decimalSymbol1);
            settings1.Append(listSeparator1);

            settingsPART.Settings = settings1;

            return;
        }