public static void GenerateCustomXmlPropertiesPart1Content(CustomXmlPropertiesPart customXmlPropertiesPart1)
        {
            var dataStoreItem1 = new DocumentFormat.OpenXml.CustomXmlDataProperties.DataStoreItem()
            {
                ItemId = "{58BABFA7-2624-4FA3-9991-4F285D687B5F}"
            };

            dataStoreItem1.AddNamespaceDeclaration("ds", "http://schemas.openxmlformats.org/officeDocument/2006/customXml");

            var schemaReferences1 = new DocumentFormat.OpenXml.CustomXmlDataProperties.SchemaReferences();
            var schemaReference1  = new DocumentFormat.OpenXml.CustomXmlDataProperties.SchemaReference()
            {
                Uri = "http://schemas.microsoft.com/office/2006/metadata/properties"
            };
            var schemaReference2 = new DocumentFormat.OpenXml.CustomXmlDataProperties.SchemaReference()
            {
                Uri = "http://schemas.microsoft.com/office/infopath/2007/PartnerControls"
            };

            schemaReferences1.Append(schemaReference1);
            schemaReferences1.Append(schemaReference2);

            dataStoreItem1.Append(schemaReferences1);

            customXmlPropertiesPart1.DataStoreItem = dataStoreItem1;
        }
        public static void GenerateCustomXmlPropertiesPart3Content(CustomXmlPropertiesPart customXmlPropertiesPart3)
        {
            var dataStoreItem3 = new Ds.DataStoreItem {
                ItemId = "{4FC9BDEA-EA46-43A8-AA87-476FAB077CDB}"
            };

            dataStoreItem3.AddNamespaceDeclaration("ds", "http://schemas.openxmlformats.org/officeDocument/2006/customXml");

            var schemaReferences3 = new Ds.SchemaReferences();
            var schemaReference15 = new Ds.SchemaReference {
                Uri = "http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"
            };

            schemaReferences3.Append(schemaReference15);

            dataStoreItem3.Append(schemaReferences3);

            customXmlPropertiesPart3.DataStoreItem = dataStoreItem3;
        }
Beispiel #3
0
        public static void GenerateCustomXmlPropertiesPart3Content(CustomXmlPropertiesPart customXmlPropertiesPart3)
        {
            Ds.DataStoreItem dataStoreItem3 = new Ds.DataStoreItem()
            {
                ItemId = "{5804A2E3-5823-485C-929F-CC83322FF56F}"
            };
            dataStoreItem3.AddNamespaceDeclaration("ds", "http://schemas.openxmlformats.org/officeDocument/2006/customXml");

            Ds.SchemaReferences schemaReferences3 = new Ds.SchemaReferences();
            Ds.SchemaReference  schemaReference23 = new Ds.SchemaReference()
            {
                Uri = "http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"
            };

            schemaReferences3.Append(schemaReference23);

            dataStoreItem3.Append(schemaReferences3);

            customXmlPropertiesPart3.DataStoreItem = dataStoreItem3;
        }
Beispiel #4
0
        // Generates content of customXmlPropertiesPart1.
        private void GenerateCustomXmlPropertiesPart1Content(CustomXmlPropertiesPart customXmlPropertiesPart1)
        {
            Ds.DataStoreItem dataStoreItem1 = new Ds.DataStoreItem() { ItemId = "{6466247C-65A4-4A5F-A78C-10FE365F7D30}" };
            dataStoreItem1.AddNamespaceDeclaration("ds", "http://schemas.openxmlformats.org/officeDocument/2006/customXml");

            Ds.SchemaReferences schemaReferences1 = new Ds.SchemaReferences();
            Ds.SchemaReference schemaReference1 = new Ds.SchemaReference() { Uri = "http://schemas.openxmlformats.org/officeDocument/2006/bibliography" };

            schemaReferences1.Append(schemaReference1);

            dataStoreItem1.Append(schemaReferences1);

            customXmlPropertiesPart1.DataStoreItem = dataStoreItem1;
        }
 /// <summary>
 /// Generates the content of the custom XML properties part.
 /// </summary>
 /// <param name="customXmlPropertiesPart">The custom XML properties part1.</param>
 private void GenerateCustomXmlPropertiesPartContent(CustomXmlPropertiesPart customXmlPropertiesPart)
 {
     DataStoreItem dataStoreItem = new DataStoreItem() { ItemId ="{" + Guid.NewGuid().ToString() + "}" };
     dataStoreItem.AddNamespaceDeclaration("ds", "http://schemas.openxmlformats.org/officeDocument/2006/customXml");
     SchemaReferences schemaReferences = new SchemaReferences();
     SchemaReference schemaReference = new SchemaReference() { Uri = namespaceUri };
     schemaReferences.Append(schemaReference);
     dataStoreItem.Append(schemaReferences);
     customXmlPropertiesPart.DataStoreItem = dataStoreItem;
 }
Beispiel #6
0
        // Generates content of customXmlPropertiesPart1.
        private static void GenerateCustomXmlPropertiesPart1Content(CustomXmlPropertiesPart customXmlPropertiesPart1)
        {
            Ds.DataStoreItem dataStoreItem1 = new Ds.DataStoreItem() { ItemId = "{800F6B51-3B4A-4D99-AD37-14BD73E3FA9E}" };
            dataStoreItem1.AddNamespaceDeclaration("ds", "http://schemas.openxmlformats.org/officeDocument/2006/customXml");

            Ds.SchemaReferences schemaReferences1 = new Ds.SchemaReferences();
            Ds.SchemaReference schemaReference1 = new Ds.SchemaReference() { Uri = "http://schemas.openxmlformats.org/officeDocument/2006/bibliography" };

            schemaReferences1.Append(schemaReference1);

            dataStoreItem1.Append(schemaReferences1);

            customXmlPropertiesPart1.DataStoreItem = dataStoreItem1;
        }
Beispiel #7
0
        // Generates content of customXmlPropertiesPart4.
        private void GenerateCustomXmlPropertiesPart4Content(CustomXmlPropertiesPart customXmlPropertiesPart4)
        {
            Ds.DataStoreItem dataStoreItem4 = new Ds.DataStoreItem() { ItemId = "{60AD0EAE-0645-46EE-9BE1-485FA035BCFA}" };
            dataStoreItem4.AddNamespaceDeclaration("ds", "http://schemas.openxmlformats.org/officeDocument/2006/customXml");

            Ds.SchemaReferences schemaReferences4 = new Ds.SchemaReferences();
            Ds.SchemaReference schemaReference11 = new Ds.SchemaReference() { Uri = "http://schemas.openxmlformats.org/officeDocument/2006/bibliography" };

            schemaReferences4.Append(schemaReference11);

            dataStoreItem4.Append(schemaReferences4);

            customXmlPropertiesPart4.DataStoreItem = dataStoreItem4;
        }
Beispiel #8
0
        // Generates content of customXmlPropertiesPart3.
        private void GenerateCustomXmlPropertiesPart3Content(CustomXmlPropertiesPart customXmlPropertiesPart3)
        {
            Ds.DataStoreItem dataStoreItem3 = new Ds.DataStoreItem() { ItemId = "{E1B0D733-9D62-4BCF-8D06-5126DC8F908F}" };
            dataStoreItem3.AddNamespaceDeclaration("ds", "http://schemas.openxmlformats.org/officeDocument/2006/customXml");

            Ds.SchemaReferences schemaReferences3 = new Ds.SchemaReferences();
            Ds.SchemaReference schemaReference10 = new Ds.SchemaReference() { Uri = "http://schemas.microsoft.com/sharepoint/v3/contenttype/forms" };

            schemaReferences3.Append(schemaReference10);

            dataStoreItem3.Append(schemaReferences3);

            customXmlPropertiesPart3.DataStoreItem = dataStoreItem3;
        }
        // Generates content of customXmlPropertiesPart1.
        private void GenerateCustomXmlPropertiesPart1Content(CustomXmlPropertiesPart customXmlPropertiesPart1)
        {
            Ds.DataStoreItem dataStoreItem1 = new Ds.DataStoreItem() { ItemId = "{6B9B7BF9-5595-41CB-905D-59F7AC15337C}" };
            dataStoreItem1.AddNamespaceDeclaration("ds", "http://schemas.openxmlformats.org/officeDocument/2006/customXml");

            Ds.SchemaReferences schemaReferences1 = new Ds.SchemaReferences();
            Ds.SchemaReference schemaReference1 = new Ds.SchemaReference() { Uri = "http://schemas.openxmlformats.org/officeDocument/2006/bibliography" };

            schemaReferences1.Append(schemaReference1);

            dataStoreItem1.Append(schemaReferences1);

            customXmlPropertiesPart1.DataStoreItem = dataStoreItem1;
        }
Beispiel #10
0
        // Generates content of customXmlPropertiesPart1.
        private void GenerateCustomXmlPropertiesPart1Content(CustomXmlPropertiesPart customXmlPropertiesPart1)
        {
            Ds.DataStoreItem dataStoreItem1 = new Ds.DataStoreItem() { ItemId = "{777BBFA9-36BE-427F-935F-8DB13A585EB0}" };
            dataStoreItem1.AddNamespaceDeclaration("ds", "http://schemas.openxmlformats.org/officeDocument/2006/customXml");

            Ds.SchemaReferences schemaReferences1 = new Ds.SchemaReferences();
            Ds.SchemaReference schemaReference1 = new Ds.SchemaReference() { Uri = "http://schemas.microsoft.com/office/2006/metadata/contentType" };
            Ds.SchemaReference schemaReference2 = new Ds.SchemaReference() { Uri = "http://schemas.microsoft.com/office/2006/metadata/properties/metaAttributes" };
            Ds.SchemaReference schemaReference3 = new Ds.SchemaReference() { Uri = "http://www.w3.org/2001/XMLSchema" };
            Ds.SchemaReference schemaReference4 = new Ds.SchemaReference() { Uri = "http://schemas.microsoft.com/office/2006/metadata/properties" };
            Ds.SchemaReference schemaReference5 = new Ds.SchemaReference() { Uri = "http://schemas.openxmlformats.org/package/2006/metadata/core-properties" };
            Ds.SchemaReference schemaReference6 = new Ds.SchemaReference() { Uri = "http://purl.org/dc/elements/1.1/" };
            Ds.SchemaReference schemaReference7 = new Ds.SchemaReference() { Uri = "http://purl.org/dc/terms/" };
            Ds.SchemaReference schemaReference8 = new Ds.SchemaReference() { Uri = "http://schemas.microsoft.com/office/internal/2005/internalDocumentation" };

            schemaReferences1.Append(schemaReference1);
            schemaReferences1.Append(schemaReference2);
            schemaReferences1.Append(schemaReference3);
            schemaReferences1.Append(schemaReference4);
            schemaReferences1.Append(schemaReference5);
            schemaReferences1.Append(schemaReference6);
            schemaReferences1.Append(schemaReference7);
            schemaReferences1.Append(schemaReference8);

            dataStoreItem1.Append(schemaReferences1);

            customXmlPropertiesPart1.DataStoreItem = dataStoreItem1;
        }
        public static void GenerateCustomXmlPropertiesPart2Content(CustomXmlPropertiesPart customXmlPropertiesPart2)
        {
            var dataStoreItem2 = new Ds.DataStoreItem {
                ItemId = "{F775187F-6448-4D29-88AA-E6D4EE8DAECF}"
            };

            dataStoreItem2.AddNamespaceDeclaration("ds", "http://schemas.openxmlformats.org/officeDocument/2006/customXml");

            var schemaReferences2 = new Ds.SchemaReferences();
            var schemaReference3  = new Ds.SchemaReference {
                Uri = "http://schemas.microsoft.com/office/2006/metadata/contentType"
            };
            var schemaReference4 = new Ds.SchemaReference {
                Uri = "http://schemas.microsoft.com/office/2006/metadata/properties/metaAttributes"
            };
            var schemaReference5 = new Ds.SchemaReference {
                Uri = "http://www.w3.org/2001/XMLSchema"
            };
            var schemaReference6 = new Ds.SchemaReference {
                Uri = "http://schemas.microsoft.com/office/2006/metadata/properties"
            };
            var schemaReference7 = new Ds.SchemaReference {
                Uri = "4fc81810-4f98-4e7e-b20e-7b2a690091c4"
            };
            var schemaReference8 = new Ds.SchemaReference {
                Uri = "067d236f-0129-4702-b692-531fc2f871d2"
            };
            var schemaReference9 = new Ds.SchemaReference {
                Uri = "http://schemas.microsoft.com/office/2006/documentManagement/types"
            };
            var schemaReference10 = new Ds.SchemaReference {
                Uri = "http://schemas.microsoft.com/office/infopath/2007/PartnerControls"
            };
            var schemaReference11 = new Ds.SchemaReference {
                Uri = "http://schemas.openxmlformats.org/package/2006/metadata/core-properties"
            };
            var schemaReference12 = new Ds.SchemaReference {
                Uri = "http://purl.org/dc/elements/1.1/"
            };
            var schemaReference13 = new Ds.SchemaReference {
                Uri = "http://purl.org/dc/terms/"
            };
            var schemaReference14 = new Ds.SchemaReference {
                Uri = "http://schemas.microsoft.com/internal/obd"
            };

            schemaReferences2.Append(schemaReference3);
            schemaReferences2.Append(schemaReference4);
            schemaReferences2.Append(schemaReference5);
            schemaReferences2.Append(schemaReference6);
            schemaReferences2.Append(schemaReference7);
            schemaReferences2.Append(schemaReference8);
            schemaReferences2.Append(schemaReference9);
            schemaReferences2.Append(schemaReference10);
            schemaReferences2.Append(schemaReference11);
            schemaReferences2.Append(schemaReference12);
            schemaReferences2.Append(schemaReference13);
            schemaReferences2.Append(schemaReference14);

            dataStoreItem2.Append(schemaReferences2);

            customXmlPropertiesPart2.DataStoreItem = dataStoreItem2;
        }
Beispiel #12
0
        // Generates content of customXmlPropertiesPart1.
        private void GenerateCustomXmlPropertiesPart1Content(CustomXmlPropertiesPart customXmlPropertiesPart1)
        {
            Ds.DataStoreItem dataStoreItem1 = new Ds.DataStoreItem(){ ItemId = "{E0559BA5-AE33-452D-AB3B-E5254B956AF4}" };
            dataStoreItem1.AddNamespaceDeclaration("ds", "http://schemas.openxmlformats.org/officeDocument/2006/customXml");

            Ds.SchemaReferences schemaReferences1 = new Ds.SchemaReferences();
            Ds.SchemaReference schemaReference1 = new Ds.SchemaReference(){ Uri = "http://schemas.openxmlformats.org/officeDocument/2006/bibliography" };

            schemaReferences1.Append(schemaReference1);

            dataStoreItem1.Append(schemaReferences1);

            customXmlPropertiesPart1.DataStoreItem = dataStoreItem1;
        }
Beispiel #13
0
        // Generates content of customXmlPropertiesPart1.
        private void GenerateCustomXmlPropertiesPart1Content(CustomXmlPropertiesPart customXmlPropertiesPart1)
        {
            Ds.DataStoreItem dataStoreItem1 = new Ds.DataStoreItem() {ItemId = "{12C84303-DA55-4352-970A-110622CFBA37}"};
            dataStoreItem1.AddNamespaceDeclaration("ds", "http://schemas.openxmlformats.org/officeDocument/2006/customXml");

            Ds.SchemaReferences schemaReferences1 = new Ds.SchemaReferences();
            Ds.SchemaReference schemaReference1 = new Ds.SchemaReference()
                                                  {Uri = "http://schemas.openxmlformats.org/officeDocument/2006/bibliography"};

            schemaReferences1.Append(schemaReference1);

            dataStoreItem1.Append(schemaReferences1);

            customXmlPropertiesPart1.DataStoreItem = dataStoreItem1;
        }
Beispiel #14
0
        public static void GenerateCustomXmlPropertiesPart1Content(CustomXmlPropertiesPart customXmlPropertiesPart1)
        {
            Ds.DataStoreItem dataStoreItem1 = new Ds.DataStoreItem()
            {
                ItemId = "{64AC9C18-D41E-498F-B0D7-25FEAA2ECF4F}"
            };
            dataStoreItem1.AddNamespaceDeclaration("ds", "http://schemas.openxmlformats.org/officeDocument/2006/customXml");

            Ds.SchemaReferences schemaReferences1 = new Ds.SchemaReferences();
            Ds.SchemaReference  schemaReference1  = new Ds.SchemaReference()
            {
                Uri = "http://purl.org/dc/terms/"
            };
            Ds.SchemaReference schemaReference2 = new Ds.SchemaReference()
            {
                Uri = "4fc81810-4f98-4e7e-b20e-7b2a690091c4"
            };
            Ds.SchemaReference schemaReference3 = new Ds.SchemaReference()
            {
                Uri = "http://schemas.microsoft.com/office/2006/documentManagement/types"
            };
            Ds.SchemaReference schemaReference4 = new Ds.SchemaReference()
            {
                Uri = "http://schemas.microsoft.com/office/infopath/2007/PartnerControls"
            };
            Ds.SchemaReference schemaReference5 = new Ds.SchemaReference()
            {
                Uri = "http://purl.org/dc/elements/1.1/"
            };
            Ds.SchemaReference schemaReference6 = new Ds.SchemaReference()
            {
                Uri = "http://schemas.microsoft.com/office/2006/metadata/properties"
            };
            Ds.SchemaReference schemaReference7 = new Ds.SchemaReference()
            {
                Uri = "067d236f-0129-4702-b692-531fc2f871d2"
            };
            Ds.SchemaReference schemaReference8 = new Ds.SchemaReference()
            {
                Uri = "http://schemas.openxmlformats.org/package/2006/metadata/core-properties"
            };
            Ds.SchemaReference schemaReference9 = new Ds.SchemaReference()
            {
                Uri = "http://www.w3.org/XML/1998/namespace"
            };
            Ds.SchemaReference schemaReference10 = new Ds.SchemaReference()
            {
                Uri = "http://purl.org/dc/dcmitype/"
            };

            schemaReferences1.Append(schemaReference1);
            schemaReferences1.Append(schemaReference2);
            schemaReferences1.Append(schemaReference3);
            schemaReferences1.Append(schemaReference4);
            schemaReferences1.Append(schemaReference5);
            schemaReferences1.Append(schemaReference6);
            schemaReferences1.Append(schemaReference7);
            schemaReferences1.Append(schemaReference8);
            schemaReferences1.Append(schemaReference9);
            schemaReferences1.Append(schemaReference10);

            dataStoreItem1.Append(schemaReferences1);

            customXmlPropertiesPart1.DataStoreItem = dataStoreItem1;
        }
Beispiel #15
0
        // Generates content of customXmlPropertiesPart2.
        private void GenerateCustomXmlPropertiesPart2Content(CustomXmlPropertiesPart customXmlPropertiesPart2)
        {
            Ds.DataStoreItem dataStoreItem2 = new Ds.DataStoreItem() { ItemId = "{74FC71F6-D7D7-41F2-8CEB-1414A88DBC4D}" };
            dataStoreItem2.AddNamespaceDeclaration("ds", "http://schemas.openxmlformats.org/officeDocument/2006/customXml");

            Ds.SchemaReferences schemaReferences2 = new Ds.SchemaReferences();
            Ds.SchemaReference schemaReference9 = new Ds.SchemaReference() { Uri = "http://schemas.microsoft.com/office/2006/metadata/properties" };

            schemaReferences2.Append(schemaReference9);

            dataStoreItem2.Append(schemaReferences2);

            customXmlPropertiesPart2.DataStoreItem = dataStoreItem2;
        }
Beispiel #16
0
        public static void GenerateCustomXmlPropertiesPart2Content(CustomXmlPropertiesPart customXmlPropertiesPart2)
        {
            Ds.DataStoreItem dataStoreItem2 = new Ds.DataStoreItem()
            {
                ItemId = "{712D5C48-63A0-44E3-B76A-BF5D263C6E7E}"
            };
            dataStoreItem2.AddNamespaceDeclaration("ds", "http://schemas.openxmlformats.org/officeDocument/2006/customXml");

            Ds.SchemaReferences schemaReferences2 = new Ds.SchemaReferences();
            Ds.SchemaReference  schemaReference11 = new Ds.SchemaReference()
            {
                Uri = "http://schemas.microsoft.com/office/2006/metadata/contentType"
            };
            Ds.SchemaReference schemaReference12 = new Ds.SchemaReference()
            {
                Uri = "http://schemas.microsoft.com/office/2006/metadata/properties/metaAttributes"
            };
            Ds.SchemaReference schemaReference13 = new Ds.SchemaReference()
            {
                Uri = "http://www.w3.org/2001/XMLSchema"
            };
            Ds.SchemaReference schemaReference14 = new Ds.SchemaReference()
            {
                Uri = "http://schemas.microsoft.com/office/2006/metadata/properties"
            };
            Ds.SchemaReference schemaReference15 = new Ds.SchemaReference()
            {
                Uri = "4fc81810-4f98-4e7e-b20e-7b2a690091c4"
            };
            Ds.SchemaReference schemaReference16 = new Ds.SchemaReference()
            {
                Uri = "067d236f-0129-4702-b692-531fc2f871d2"
            };
            Ds.SchemaReference schemaReference17 = new Ds.SchemaReference()
            {
                Uri = "http://schemas.microsoft.com/office/2006/documentManagement/types"
            };
            Ds.SchemaReference schemaReference18 = new Ds.SchemaReference()
            {
                Uri = "http://schemas.microsoft.com/office/infopath/2007/PartnerControls"
            };
            Ds.SchemaReference schemaReference19 = new Ds.SchemaReference()
            {
                Uri = "http://schemas.openxmlformats.org/package/2006/metadata/core-properties"
            };
            Ds.SchemaReference schemaReference20 = new Ds.SchemaReference()
            {
                Uri = "http://purl.org/dc/elements/1.1/"
            };
            Ds.SchemaReference schemaReference21 = new Ds.SchemaReference()
            {
                Uri = "http://purl.org/dc/terms/"
            };
            Ds.SchemaReference schemaReference22 = new Ds.SchemaReference()
            {
                Uri = "http://schemas.microsoft.com/internal/obd"
            };

            schemaReferences2.Append(schemaReference11);
            schemaReferences2.Append(schemaReference12);
            schemaReferences2.Append(schemaReference13);
            schemaReferences2.Append(schemaReference14);
            schemaReferences2.Append(schemaReference15);
            schemaReferences2.Append(schemaReference16);
            schemaReferences2.Append(schemaReference17);
            schemaReferences2.Append(schemaReference18);
            schemaReferences2.Append(schemaReference19);
            schemaReferences2.Append(schemaReference20);
            schemaReferences2.Append(schemaReference21);
            schemaReferences2.Append(schemaReference22);

            dataStoreItem2.Append(schemaReferences2);

            customXmlPropertiesPart2.DataStoreItem = dataStoreItem2;
        }
        // Generates content of customXmlPropertiesPart1.
        private void GenerateCustomXmlPropertiesPart1Content(CustomXmlPropertiesPart customXmlPropertiesPart1)
        {
            Ds.DataStoreItem dataStoreItem1 = new Ds.DataStoreItem(){ ItemId = "{1D2F5147-EC4D-44A2-96EF-C7B0FEF84898}" };
            dataStoreItem1.AddNamespaceDeclaration("ds", "http://schemas.openxmlformats.org/officeDocument/2006/customXml");

            Ds.SchemaReferences schemaReferences1 = new Ds.SchemaReferences();
            Ds.SchemaReference schemaReference1 = new Ds.SchemaReference(){ Uri = "http://schemas.openxmlformats.org/officeDocument/2006/bibliography" };

            schemaReferences1.Append(schemaReference1);

            dataStoreItem1.Append(schemaReferences1);

            customXmlPropertiesPart1.DataStoreItem = dataStoreItem1;
        }