12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- using FastReport.Data;
- using FastReport.Dialog;
- using FastReport.Utils;
- using FastReport.Wizards;
- using System;
- namespace FastReport
- {
- /// <summary>
- /// The FastReport.dll assembly initializer.
- /// </summary>
- public sealed class AssemblyInitializerDesignExt : AssemblyInitializerBase
- {
- #region Public Constructors
- /// <summary>
- /// Registers all standard objects, wizards, export filters.
- /// </summary>
- public AssemblyInitializerDesignExt()
- {
- RegisterObjects();
- RegisterMethods();
- }
- #endregion Public Constructors
- #region Private Methods
- private void RegisterObjects()
- {
- // data connections
- #if !COMMUNITY
- #if !MONO || WPF
- RegisteredObjects.InternalAddConnection(typeof(MsAccessDataConnection));
- RegisteredObjects.InternalAddConnection(typeof(OleDbDataConnection));
- RegisteredObjects.InternalAddConnection(typeof(OdbcDataConnection));
- #endif
- #endif
- RegisteredObjects.InternalAddConnection(typeof(MsSqlDataConnection));
- // extended dialog controls
- #if !COMMUNITY
- RegisteredObjects.AddCategory("DialogPage,Others", 74, "Objects,OtherDialogControls");
- RegisteredObjects.InternalAdd(typeof(MaskedTextBoxControl), "DialogPage,Others", 147, 13);
- RegisteredObjects.InternalAdd(typeof(NumericUpDownControl), "DialogPage,Others", 146, 14);
- RegisteredObjects.InternalAdd(typeof(PanelControl), "DialogPage,Others", 144, 15);
- RegisteredObjects.InternalAdd(typeof(GridControl), "DialogPage,Others", 122, 16);
- RegisteredObjects.InternalAdd(typeof(DataSelectorControl), "DialogPage,Others", 128, 17);
- RegisteredObjects.InternalAdd(typeof(ListViewControl), "DialogPage,Others", 203, 18);
- #if !AVALONIA
- RegisteredObjects.InternalAdd(typeof(RichTextBoxControl), "DialogPage,Others", 205, 19);
- #endif
- RegisteredObjects.InternalAdd(typeof(TreeViewControl), "DialogPage,Others", 204, 20);
- #endif
- // wizards
- RegisteredObjects.AddWizard(typeof(BlankReportWizard), 134, "Wizards,BlankReport", ItemWizardEnum.Report);
- RegisteredObjects.AddWizard(typeof(InheritedReportWizard), 134, "Wizards,InheritedReport", ItemWizardEnum.Report);
- RegisteredObjects.AddWizard(typeof(StandardReportWizard), 133, "Wizards,StandardReport", ItemWizardEnum.Report);
- RegisteredObjects.AddWizard(typeof(LabelWizard), 133, "Wizards,Label", ItemWizardEnum.Report);
- RegisteredObjects.AddWizard(typeof(NewPageWizard), 135, "Wizards,NewPage", ItemWizardEnum.ReportItem);
- #if !COMMUNITY
- RegisteredObjects.AddWizard(typeof(NewDialogWizard), 136, "Wizards,NewDialog", ItemWizardEnum.ReportItem);
- #endif
- RegisteredObjects.AddWizard(typeof(NewDataSourceWizard), 137, "Wizards,NewDataSource", ItemWizardEnum.ReportItem);
- RegisteredObjects.AddWizard(typeof(FastM1nesweeperWizard), 250, "Wizards,FastM1nesweeper", ItemWizardEnum.Game);
- }
- private void RegisterMethods()
- {
- // Does nothing
- }
- #endregion Private Methods
- }
- }
|