示例#1
0
 internal override void ConfigureMetadata(ElementMetadata.Builder builder)
 {
     base.ConfigureMetadata(builder);
     builder.SetSchema(106, "autoBuNodeInfoLst");
     builder.Availability = FileFormatVersions.Office2019;
     builder.AddChild <NumberDiagramInfo>();
     builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1)
     {
         new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Diagram11.NumberDiagramInfo), 0, 0, version: FileFormatVersions.Office2019)
     };
 }
 internal override void ConfigureMetadata(ElementMetadata.Builder builder)
 {
     base.ConfigureMetadata(builder);
     builder.SetSchema(99, "calcFeatures");
     builder.Availability = FileFormatVersions.Office2019;
     builder.AddChild <CalcFeature>();
     builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1)
     {
         new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Excel.CalcFeatures.CalcFeature), 1, 0, version: FileFormatVersions.Office2019)
     };
 }
 internal override void ConfigureMetadata(ElementMetadata.Builder builder)
 {
     base.ConfigureMetadata(builder);
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.Font>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.NumberingFormat>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.Fill>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.Alignment>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.Border>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.Protection>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.ExtensionList>();
 }
 internal override void ConfigureMetadata(ElementMetadata.Builder builder)
 {
     base.ConfigureMetadata(builder);
     builder.SetSchema("cppr:CoverPageProperties");
     builder.AddChild <DocumentFormat.OpenXml.Office.CoverPageProps.PublishDate>();
     builder.AddChild <DocumentFormat.OpenXml.Office.CoverPageProps.DocumentAbstract>();
     builder.AddChild <DocumentFormat.OpenXml.Office.CoverPageProps.CompanyAddress>();
     builder.AddChild <DocumentFormat.OpenXml.Office.CoverPageProps.CompanyPhoneNumber>();
     builder.AddChild <DocumentFormat.OpenXml.Office.CoverPageProps.CompanyFaxNumber>();
     builder.AddChild <DocumentFormat.OpenXml.Office.CoverPageProps.CompanyEmailAddress>();
     builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1)
     {
         new ElementParticle(typeof(DocumentFormat.OpenXml.Office.CoverPageProps.PublishDate), 1, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Office.CoverPageProps.DocumentAbstract), 1, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Office.CoverPageProps.CompanyAddress), 1, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Office.CoverPageProps.CompanyPhoneNumber), 1, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Office.CoverPageProps.CompanyFaxNumber), 1, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Office.CoverPageProps.CompanyEmailAddress), 1, 1)
     };
 }
 internal override void ConfigureMetadata(ElementMetadata.Builder builder)
 {
     base.ConfigureMetadata(builder);
     builder.SetSchema("xne:macrosheet");
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.AutoFilter>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.Columns>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.ConditionalFormatting>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.CustomProperties>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.CustomSheetViews>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.DataConsolidate>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.Drawing>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.DrawingHeaderFooter>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.ExtensionList>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.HeaderFooter>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.LegacyDrawing>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.LegacyDrawingHeaderFooter>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.OleObjects>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.RowBreaks>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.ColumnBreaks>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.PageMargins>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.PageSetup>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.PhoneticProperties>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.PrintOptions>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.Picture>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.SheetData>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.SheetDimension>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.SheetFormatProperties>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.SheetProperties>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.SheetProtection>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.SheetViews>();
     builder.AddChild <DocumentFormat.OpenXml.Spreadsheet.SortState>();
     builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1)
     {
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.SheetProperties), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.SheetDimension), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.SheetViews), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.SheetFormatProperties), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Columns), 0, 0),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.SheetData), 1, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.SheetProtection), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.AutoFilter), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.SortState), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.DataConsolidate), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.CustomSheetViews), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.PhoneticProperties), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.ConditionalFormatting), 0, 0),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.PrintOptions), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.PageMargins), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.PageSetup), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.HeaderFooter), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.RowBreaks), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.ColumnBreaks), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.CustomProperties), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Drawing), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.LegacyDrawing), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.LegacyDrawingHeaderFooter), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Picture), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.OleObjects), 0, 1),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.DrawingHeaderFooter), 0, 1, version: FileFormatVersions.Office2010),
         new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.ExtensionList), 0, 1)
     };
 }