Exemple #1
0
        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;
		}
Exemple #4
0
 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);
		}
Exemple #7
0
		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;
		}
Exemple #10
0
        /// <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);
        }
Exemple #11
0
        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;
        }
Exemple #12
0
 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);
		}
Exemple #14
0
        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;
		}
Exemple #17
0
//		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);
        }
Exemple #19
0
 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;
 }
Exemple #22
0
 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 NRefactoryDesignerLoader(SupportedLanguage language, IDesignerGenerator generator)
			: base(generator)
		{
			this.language = language;
		}
 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);
		}
Exemple #37
0
 public XmlDesignerLoader(IDesignerGenerator generator, string xmlContent)
 {
     this._XmlContent = string.Empty;
     this.generator   = generator;
     this._XmlContent = xmlContent;
 }
		public XmlDesignerLoader(IDesignerGenerator generator)
		{
			this.generator = generator;
		}
 public BooDesignerLoader(IDesignerGenerator generator)
     : base(generator)
 {
 }
Exemple #40
0
 public DesignerLoader CreateLoader(IDesignerGenerator generator)
 {
     return(new RubyDesignerLoader(generator as IScriptingDesignerGenerator));
 }
		public BooDesignerLoader(IDesignerGenerator generator)
			: base(generator)
		{
		}
 public DesignerLoader CreateLoader(IDesignerGenerator generator)
 {
     return(new PythonDesignerLoader(generator as IPythonDesignerGenerator));
 }