public void Init() { generator = new MockDesignerGenerator(); view = new ReportDesignerView(null, new MockOpenedFile("Test.srd")); generator.Attach(view); /* * view.DesignerCodeFileContent = GetFormCode(); * loader = new DerivedPythonDesignerLoader(generator); * * // Begin load. * mockDesignerLoaderHost = new MockDesignerLoaderHost(); * mockTypeResolutionService = mockDesignerLoaderHost.TypeResolutionService; * * mockExtenderProviderService = new MockExtenderProviderService(); * mockDesignerLoaderHost.AddService(typeof(IExtenderProviderService), mockExtenderProviderService); * * mockEventBindingService = new MockEventBindingService(); * mockDesignerLoaderHost.AddService(typeof(IEventBindingService), mockEventBindingService); * * System.Console.WriteLine("Before BeginLoad"); * loader.BeginLoad(mockDesignerLoaderHost); * System.Console.WriteLine("After BeginLoad"); * rootComponent = mockDesignerLoaderHost.RootComponent; * * designedForm = new Form(); * designedForm.Name = "NewMainForm"; * mockDesignerLoaderHost.RootComponent = designedForm; * loader.CallPerformFlush(); */ }
public void Init() { generator = new MockDesignerGenerator(); view = new ReportDesignerView(null, new MockOpenedFile("Test.srd")); generator.Attach(view); /* view.DesignerCodeFileContent = GetFormCode(); loader = new DerivedPythonDesignerLoader(generator); // Begin load. mockDesignerLoaderHost = new MockDesignerLoaderHost(); mockTypeResolutionService = mockDesignerLoaderHost.TypeResolutionService; mockExtenderProviderService = new MockExtenderProviderService(); mockDesignerLoaderHost.AddService(typeof(IExtenderProviderService), mockExtenderProviderService); mockEventBindingService = new MockEventBindingService(); mockDesignerLoaderHost.AddService(typeof(IEventBindingService), mockEventBindingService); System.Console.WriteLine("Before BeginLoad"); loader.BeginLoad(mockDesignerLoaderHost); System.Console.WriteLine("After BeginLoad"); rootComponent = mockDesignerLoaderHost.RootComponent; designedForm = new Form(); designedForm.Name = "NewMainForm"; mockDesignerLoaderHost.RootComponent = designedForm; loader.CallPerformFlush(); */ }
protected AbstractCodeDomDesignerLoader(IDesignerGenerator generator) { if (generator == null) { throw new ArgumentNullException("generator", "Generator cannot be null"); } this.generator = generator; }
public ReportDesignerLoader(IDesignerGenerator generator, Stream stream) { if (stream == null) throw new ArgumentNullException("stream"); if (generator == null) { throw new ArgumentNullException("generator"); } this.generator = generator; this.stream = stream; }
/// <summary> /// Creates a new ReportDesignerView object /// </summary> public ReportDesignerView(OpenedFile openedFile, IDesignerGenerator generator):base (openedFile) { if (openedFile == null) { throw new ArgumentNullException("opendFile"); } if (generator == null) { throw new ArgumentNullException("generator"); } this.generator = generator; this.generator.Attach(this); base.TabPageText = ResourceService.GetString("SharpReport.Design"); ReportingSideTabProvider.AddViewContent(this); }
public DesignerView (OpenedFile openedFile,IDesignerGenerator generator) : base(openedFile){ if (openedFile == null) { throw new ArgumentNullException("openedFile"); } LoggingService.Info("DesignerView: Load from: " + openedFile.FileName); TabPageText = ResourceService.GetString("SharpReport.Design"); this.generator = generator; this.generator.Attach(this); //Start Toolbox ToolboxProvider.AddViewContent(this); }
public ReportDesignerLoader(IDesignerGenerator generator, Stream stream) { if (stream == null) { throw new ArgumentNullException("stream"); } if (generator == null) { throw new ArgumentNullException("generator"); } this.generator = generator; this.stream = stream; }
public InternalReportLoader(IDesignerLoaderHost host,IDesignerGenerator generator, Stream stream) { if (host == null) { throw new ArgumentNullException("host"); } if (generator == null) { throw new ArgumentNullException("generator"); } this.host = host; this.generator = generator; this.stream = stream; }
/// <summary> /// Creates a new ReportDesignerView object /// </summary> public ReportDesignerView(OpenedFile openedFile, IDesignerGenerator generator) : base(openedFile) { if (openedFile == null) { throw new ArgumentNullException("opendFile"); } if (generator == null) { throw new ArgumentNullException("generator"); } this.generator = generator; this.generator.Attach(this); base.TabPageText = ResourceService.GetString("SharpReport.Design"); ReportingSideTabProvider.AddViewContent(this); }
public InternalReportLoader(IDesignerLoaderHost host, IDesignerGenerator generator, Stream stream) { if (host == null) { throw new ArgumentNullException("host"); } if (generator == null) { throw new ArgumentNullException("generator"); } this.host = host; this.generator = generator; this.stream = stream; }
public XmlView(IDesignerGenerator generator,IViewContent content) : base(content) { if (generator == null) { throw new ArgumentNullException("generator"); } if (content == null) { throw new ArgumentNullException("content"); } this.generator = generator; this.TabPageText = "XmlView"; richTextBox.Dock = DockStyle.Fill; richTextBox.BackColor = System.Drawing.SystemColors.Desktop; richTextBox.ForeColor = System.Drawing.Color.White; }
// private Encoding defaultEncoding = Encoding.UTF8; #region Constructor /// <summary> /// Creates a new ReportDesignerView object /// </summary> public ReportDesignerView(OpenedFile openedFile, IDesignerGenerator generator):base (openedFile) { if (openedFile == null) { throw new ArgumentNullException("opendFile"); } if (generator == null) { throw new ArgumentNullException("generator"); } this.generator = generator; this.generator.Attach(this); base.TabPageText = ResourceService.GetString("SharpReport.Design"); this.panel.Dock = DockStyle.Fill; this.panel.BackColor = System.Drawing.Color.LightBlue; ReportingSideTabProvider.AddViewContent(this); }
public DesignerView(OpenedFile openedFile, IDesignerGenerator generator) : base(openedFile) { if (openedFile == null) { throw new ArgumentNullException("openedFile"); } LoggingService.Info("DesignerView: Load from: " + openedFile.FileName); TabPageText = ResourceService.GetString("SharpReport.Design"); this.generator = generator; this.generator.Attach(this); //Start Toolbox ToolboxProvider.AddViewContent(this); }
public XmlView(IDesignerGenerator generator, IViewContent content) : base(content) { if (generator == null) { throw new ArgumentNullException("generator"); } if (content == null) { throw new ArgumentNullException("content"); } this.generator = generator; this.TabPageText = "XmlView"; richTextBox.Dock = DockStyle.Fill; richTextBox.BackColor = System.Drawing.SystemColors.Desktop; richTextBox.ForeColor = System.Drawing.Color.White; }
public InternalReportLoader(IDesignerLoaderHost host,IDesignerGenerator generator, Stream stream) { if (host == null) { throw new ArgumentNullException("host"); } if (generator == null) { throw new ArgumentNullException("generator"); } if (stream == null) { throw new ArgumentNullException("stream"); } Console.WriteLine("---------InternalReportLoader------------"); this.host = host; this.generator = generator; this.stream = stream; }
// private Encoding defaultEncoding = Encoding.UTF8; #region Constructor /// <summary> /// Creates a new ReportDesignerView object /// </summary> public ReportDesignerView(OpenedFile openedFile, IDesignerGenerator generator) : base(openedFile) { if (openedFile == null) { throw new ArgumentNullException("opendFile"); } if (generator == null) { throw new ArgumentNullException("generator"); } this.generator = generator; this.generator.Attach(this); base.TabPageText = ResourceService.GetString("SharpReport.Design"); this.panel.Dock = DockStyle.Fill; this.panel.BackColor = System.Drawing.Color.LightBlue; ReportingSideTabProvider.AddViewContent(this); }
public FormsDesignerViewContent(IViewContent primaryViewContent, IDesignerLoaderProvider loaderProvider, IDesignerGenerator generator) : this(primaryViewContent) { if (loaderProvider == null) { throw new ArgumentNullException("loaderProvider"); } if (generator == null) { throw new ArgumentNullException("generator"); } this.loaderProvider = loaderProvider; this.generator = generator; this.generator.Attach(this); this.Files.Add(this.primaryViewContent.PrimaryFile); }
public FormsDesignerViewContent(IViewContent viewContent, IDesignerLoaderProvider loaderProvider, IDesignerGenerator generator) { this.p = new Panel(); this.activeTabName = "Windows Forms"; this.shouldUpdateSelectableObjects = false; this.propertyContainer = new FormsDesigner.Gui.PropertyContainer(); this.IsFormsDesignerVisible = false; this.tabOrderMode = false; if (!FormKeyHandler.inserted) { FormKeyHandler.Insert(); } this.loaderProvider = loaderProvider; this.generator = generator; this.p.BackColor = Color.White; this.p.RightToLeft = RightToLeft.No; this.p.Font = System.Windows.Forms.Control.DefaultFont; this.viewContent = viewContent; }
public InternalReportLoader(IDesignerLoaderHost host, IDesignerGenerator generator, Stream stream) { if (host == null) { throw new ArgumentNullException("host"); } if (generator == null) { throw new ArgumentNullException("generator"); } if (stream == null) { throw new ArgumentNullException("stream"); } Console.WriteLine("---------InternalReportLoader------------"); this.host = host; this.generator = generator; this.stream = stream; }
public NRefactoryDesignerLoader(SupportedLanguage language, IDesignerGenerator generator) : base(generator) { this.language = language; }
public AimDialogDesigner(IViewContent primaryViewContent, IDesignerLoaderProvider loaderProvider, IDesignerGenerator generator) : base(primaryViewContent, loaderProvider, generator) { }
public DesignerLoader CreateLoader(IDesignerGenerator generator) { return new XmlDesignerLoader(generator); }
public DesignerLoader CreateLoader(IDesignerGenerator generator) { return(new NRefactoryDesignerLoader(language, generator)); }
public DesignerLoader CreateLoader(IDesignerGenerator generator) { return new PythonDesignerLoader(generator as IScriptingDesignerGenerator); }
public DesignerLoader CreateLoader(IDesignerGenerator generator) { return(new WixDialogDesignerLoader(designer, generator as IWixDialogDesignerGenerator)); }
public DesignerLoader CreateLoader(IDesignerGenerator generator) { return(new XmlDesignerLoader(generator, this._XmlContent)); }
public DesignerLoader CreateLoader(IDesignerGenerator generator) { return(new XmlDesignerLoader(generator)); }
public FormsDesignerViewContent(IViewContent primaryViewContent, IDesignerLoaderProvider loaderProvider, IDesignerGenerator generator) : this(primaryViewContent) { if (loaderProvider == null) throw new ArgumentNullException("loaderProvider"); if (generator == null) throw new ArgumentNullException("generator"); this.loaderProvider = loaderProvider; this.generator = generator; this.generator.Attach(this); this.Files.Add(this.primaryViewContent.PrimaryFile); }
public XmlDesignerLoader(IDesignerGenerator generator) { this.generator = generator; }
public AimDialogDesigner(IViewContent primaryViewContent, IDesignerLoaderProvider loaderProvider, IDesignerGenerator generator) : base (primaryViewContent, loaderProvider, generator) { }
public System.ComponentModel.Design.Serialization.DesignerLoader CreateLoader(IDesignerGenerator generator) { return new BooDesignerLoader(generator); }
public System.ComponentModel.Design.Serialization.DesignerLoader CreateLoader(IDesignerGenerator generator) { return(new BooDesignerLoader(generator)); }
public DesignerLoader CreateLoader(IDesignerGenerator generator) { return new NRefactoryDesignerLoader(language, generator); }
public DesignerLoader CreateLoader(IDesignerGenerator generator) { return new WixDialogDesignerLoader(designer, generator as IWixDialogDesignerGenerator); }
public XmlDesignerLoader(IDesignerGenerator generator, string xmlContent) { this._XmlContent = string.Empty; this.generator = generator; this._XmlContent = xmlContent; }
public BooDesignerLoader(IDesignerGenerator generator) : base(generator) { }
public DesignerLoader CreateLoader(IDesignerGenerator generator) { return(new RubyDesignerLoader(generator as IScriptingDesignerGenerator)); }
public DesignerLoader CreateLoader(IDesignerGenerator generator) { return(new PythonDesignerLoader(generator as IPythonDesignerGenerator)); }