AssemblyInitializerBaseExt.cs 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using FastReport.Dialog;
  2. using FastReport.Map;
  3. using FastReport.Utils;
  4. namespace FastReport
  5. {
  6. /// <summary>
  7. /// The FastReport dll assembly initializer.
  8. /// </summary>
  9. public sealed class AssemblyInitializerBaseExt : AssemblyInitializerBase
  10. {
  11. /// <summary>
  12. /// Registers all core objects, wizards, export filters.
  13. /// </summary>
  14. public AssemblyInitializerBaseExt()
  15. {
  16. #if !COMMUNITY
  17. // objects
  18. RegisteredObjects.InternalAdd(typeof(MapObject), "ReportPage", 153, 16);
  19. RegisteredObjects.InternalAdd(typeof(MapLayer), "", 169);
  20. RegisteredObjects.InternalAdd(typeof(ShapePoint), "", 103);
  21. RegisteredObjects.InternalAdd(typeof(ShapePolyLine), "", 103);
  22. RegisteredObjects.InternalAdd(typeof(ShapePolygon), "", 103);
  23. RegisteredObjects.InternalAdd(typeof(DigitalSignatureObject), "ReportPage", 251, 19);
  24. RegisteredObjects.InternalAdd(typeof(AdvMatrix.AdvMatrixObject), "ReportPage,Matrix", 142, 1);
  25. RegisteredObjects.Add(typeof(AdvMatrix.MatrixCollapseButton), "", 69);
  26. RegisteredObjects.Add(typeof(AdvMatrix.MatrixSortButton), "", 67);
  27. #if MSCHART
  28. RegisteredObjects.InternalAdd(typeof(MSChart.MSChartObject), "ReportPage", 125, 12);
  29. RegisteredObjects.InternalAdd(typeof(MSChart.MSChartSeries), "", 130);
  30. RegisteredObjects.InternalAdd(typeof(MSChart.SparklineObject), "ReportPage", 130, 13);
  31. #endif
  32. #if DOTNET_4
  33. RegisteredObjects.InternalAdd(typeof(SVG.SVGObject), "ReportPage", 249, 3);
  34. #endif
  35. RegisteredObjects.InternalAdd(typeof(RichObject), "ReportPage", 126, 11);
  36. // dialog controls
  37. RegisteredObjects.InternalAdd(typeof(ButtonControl), "DialogPage", 115, 1);
  38. RegisteredObjects.InternalAdd(typeof(CheckBoxControl), "DialogPage", 116, 2);
  39. RegisteredObjects.InternalAdd(typeof(CheckedListBoxControl), "DialogPage", 148, 3);
  40. RegisteredObjects.InternalAdd(typeof(ComboBoxControl), "DialogPage", 119, 4);
  41. RegisteredObjects.InternalAdd(typeof(DateTimePickerControl), "DialogPage", 120, 5);
  42. RegisteredObjects.InternalAdd(typeof(LabelControl), "DialogPage", 112, 6);
  43. RegisteredObjects.InternalAdd(typeof(ListBoxControl), "DialogPage", 118, 7);
  44. RegisteredObjects.InternalAdd(typeof(MonthCalendarControl), "DialogPage", 145, 8);
  45. RegisteredObjects.InternalAdd(typeof(RadioButtonControl), "DialogPage", 117, 9);
  46. RegisteredObjects.InternalAdd(typeof(TextBoxControl), "DialogPage", 113, 10);
  47. RegisteredObjects.InternalAdd(typeof(GroupBoxControl), "DialogPage", 143, 11);
  48. RegisteredObjects.InternalAdd(typeof(PictureBoxControl), "DialogPage", 103, 12);
  49. // pages
  50. RegisteredObjects.AddPage(typeof(DialogPage), "DialogPage", 136);
  51. #endif
  52. }
  53. }
  54. }