using FastReport.Data;
using FastReport.Dialog;
using FastReport.Utils;
using FastReport.Wizards;
using System;
namespace FastReport
{
///
/// The FastReport.dll assembly initializer.
///
public sealed class AssemblyInitializerDesignExt : AssemblyInitializerBase
{
#region Public Constructors
///
/// Registers all standard objects, wizards, export filters.
///
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
}
}