AssemblyInitializerBaseExt.cs 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. using FastReport.Utils;
  2. using FastReport.Data;
  3. using FastReport.Table;
  4. using FastReport.Export.Image;
  5. using FastReport.Export.RichText;
  6. using FastReport.Export.Xml;
  7. using FastReport.Export.Html;
  8. using FastReport.Export.Mht;
  9. using FastReport.Export.Odf;
  10. using FastReport.Export.Pdf;
  11. using FastReport.Export.Csv;
  12. using FastReport.Export.Dbf;
  13. using FastReport.Export.Dxf;
  14. using FastReport.Export.XAML;
  15. using FastReport.Export.Svg;
  16. using FastReport.Export.Ppml;
  17. using FastReport.Export.PS;
  18. using FastReport.Export.BIFF8;
  19. using FastReport.Export.OoXML;
  20. using FastReport.Export.Json;
  21. using FastReport.Export.LaTeX;
  22. using FastReport.Export.Text;
  23. using FastReport.Export.Zpl;
  24. using FastReport.Barcode;
  25. using FastReport.Matrix;
  26. using FastReport.CrossView;
  27. using FastReport.Format;
  28. using FastReport.Functions;
  29. using FastReport.Map;
  30. using FastReport.Gauge.Linear;
  31. using FastReport.Gauge.Simple;
  32. using FastReport.Gauge.Radial;
  33. using FastReport.Gauge.Simple.Progress;
  34. using System.Collections.Generic;
  35. using FastReport.Dialog;
  36. namespace FastReport
  37. {
  38. /// <summary>
  39. /// The FastReport.dll assembly initializer.
  40. /// </summary>
  41. public sealed class AssemblyInitializerBaseExt : AssemblyInitializerBase
  42. {
  43. /// <summary>
  44. /// Registers all core objects, wizards, export filters.
  45. /// </summary>
  46. public AssemblyInitializerBaseExt()
  47. {
  48. #if !COMMUNITY
  49. // exports
  50. //RegisteredObjects.AddExport(typeof(PDFExport), "Uncategorized", "Export,Pdf,File", 201);
  51. //RegisteredObjects.AddExport(typeof(RTFExport), "Office", "Export,RichText,File", 190);
  52. //RegisteredObjects.AddExport(typeof(HTMLExport), "Web", "Export,Html,File");
  53. //RegisteredObjects.AddExport(typeof(MHTExport), "Web", "Export,Mht,File");
  54. //RegisteredObjects.AddExport(typeof(XMLExport), "XML", "Export,Xml,File", 191);
  55. //RegisteredObjects.AddExport(typeof(Excel2007Export), "Office", "Export,Xlsx,File", 191);
  56. //RegisteredObjects.AddExport(typeof(Excel2003Document), "Office", "Export,Xls,File", 191);
  57. //RegisteredObjects.AddExport(typeof(Word2007Export), "Office", "Export,Docx,File", 190);
  58. //RegisteredObjects.AddExport(typeof(PowerPoint2007Export), "Office", "Export,Pptx,File");
  59. //RegisteredObjects.AddExport(typeof(ODSExport), "Office", "Export,Ods,File");
  60. //RegisteredObjects.AddExport(typeof(ODTExport), "Office", "Export,Odt,File");
  61. //RegisteredObjects.AddExport(typeof(XPSExport), "Other", "Export,Xps,File");
  62. //RegisteredObjects.AddExport(typeof(CSVExport), "DataBase", "Export,Csv,File");
  63. //RegisteredObjects.AddExport(typeof(DBFExport), "DataBase", "Export,Dbf,File");
  64. //RegisteredObjects.AddExport(typeof(DxfExport), "Other", "Export,Dxf,File");
  65. //RegisteredObjects.AddExport(typeof(TextExport), "Print", "Export,Text,File");
  66. //RegisteredObjects.AddExport(typeof(ZplExport), "Print", "Export,Zpl,File");
  67. //RegisteredObjects.AddExport(typeof(XAMLExport), "XML", "Export,Xaml,File");
  68. //RegisteredObjects.AddExport(typeof(SVGExport), "Image", "Export,Svg,File");
  69. //RegisteredObjects.AddExport(typeof(PPMLExport), "Print", "Export,Ppml,File");
  70. //RegisteredObjects.AddExport(typeof(PSExport), "Print", "Export,PS,File");
  71. //RegisteredObjects.AddExport(typeof(JsonExport), "DataBase", "Export,Json,File");
  72. //RegisteredObjects.AddExport(typeof(LaTeXExport), "Other", "Export,LaTeX,File");
  73. ExportsOptions.GetInstance().RegisterExports();
  74. // Objects
  75. RegisteredObjects.InternalAdd(typeof(MapObject), "ReportPage", 153, 16);
  76. RegisteredObjects.InternalAdd(typeof(MapLayer), "", 169);
  77. RegisteredObjects.InternalAdd(typeof(ShapePoint), "", 103);
  78. RegisteredObjects.InternalAdd(typeof(ShapePolyLine), "", 103);
  79. RegisteredObjects.InternalAdd(typeof(ShapePolygon), "", 103);
  80. RegisteredObjects.InternalAdd(typeof(DigitalSignatureObject), "ReportPage", 251, 19);
  81. RegisteredObjects.InternalAdd(typeof(AdvMatrix.AdvMatrixObject), "ReportPage,Matrix", 142, 1);
  82. RegisteredObjects.Add(typeof(AdvMatrix.MatrixCollapseButton), "", 69);
  83. RegisteredObjects.Add(typeof(AdvMatrix.MatrixSortButton), "", 67);
  84. // report objects
  85. #if MSCHART
  86. RegisteredObjects.InternalAdd(typeof(MSChart.MSChartObject), "ReportPage", 125, 12);
  87. RegisteredObjects.InternalAdd(typeof(MSChart.MSChartSeries), "", 130);
  88. RegisteredObjects.InternalAdd(typeof(MSChart.SparklineObject), "ReportPage", 130, 13);
  89. #endif
  90. #if !COMMUNITY
  91. // dialog controls
  92. RegisteredObjects.InternalAdd(typeof(ButtonControl), "DialogPage", 115, 1);
  93. RegisteredObjects.InternalAdd(typeof(CheckBoxControl), "DialogPage", 116, 2);
  94. RegisteredObjects.InternalAdd(typeof(CheckedListBoxControl), "DialogPage", 148, 3);
  95. RegisteredObjects.InternalAdd(typeof(ComboBoxControl), "DialogPage", 119, 4);
  96. RegisteredObjects.InternalAdd(typeof(DateTimePickerControl), "DialogPage", 120, 5);
  97. RegisteredObjects.InternalAdd(typeof(LabelControl), "DialogPage", 112, 6);
  98. RegisteredObjects.InternalAdd(typeof(ListBoxControl), "DialogPage", 118, 7);
  99. RegisteredObjects.InternalAdd(typeof(MonthCalendarControl), "DialogPage", 145, 8);
  100. RegisteredObjects.InternalAdd(typeof(RadioButtonControl), "DialogPage", 117, 9);
  101. RegisteredObjects.InternalAdd(typeof(TextBoxControl), "DialogPage", 113, 10);
  102. RegisteredObjects.InternalAdd(typeof(GroupBoxControl), "DialogPage", 143, 11);
  103. RegisteredObjects.InternalAdd(typeof(PictureBoxControl), "DialogPage", 103, 12);
  104. // pages
  105. RegisteredObjects.AddPage(typeof(DialogPage), "DialogPage", 136);
  106. #endif
  107. #if DOTNET_4
  108. RegisteredObjects.InternalAdd(typeof(SVG.SVGObject), "ReportPage", 249, 3);
  109. #endif
  110. RegisteredObjects.InternalAdd(typeof(RichObject), "ReportPage", 126, 11);
  111. #endif
  112. }
  113. }
  114. }