Example #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();
			 */
		}
Example #3
0
        public override void Run()
        {
            ReportDesignerView formDesigner = AbstractFormsDesignerCommand.ReportDesigner;

            if (formDesigner != null)
            {
                formDesigner.TogglePageMargin();
            }
        }
Example #4
0
        public override void Run()
        {
            ReportDesignerView formDesigner = ReportDesigner;

            if (formDesigner != null && CanExecuteCommand(formDesigner.Host))
            {
                IMenuCommandService menuCommandService = (IMenuCommandService)formDesigner.Host.GetService(typeof(IMenuCommandService));
                menuCommandService.GlobalInvoke(CommandID);
            }
        }
Example #5
0
        public override void Run()
        {
            IWorkbenchWindow window = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow;

            if (window == null)
            {
                return;
            }

            ReportDesignerView formDesigner = AbstractFormsDesignerCommand.ReportDesigner;

            if (formDesigner != null)
            {
                formDesigner.ShowSourceCode();
            }
        }
Example #6
0
		public override void Run(){
			var generator = new ReportDesignerGenerator();
			DesignerView =  new ReportDesignerView(openedFile, generator);
		}
Example #7
0
 public void Attach(ReportDesignerView viewContent)
 {
     this.view = viewContent;
 }
Example #8
0
        public override void Run()
        {
            var generator = new ReportDesignerGenerator();

            DesignerView = new ReportDesignerView(openedFile, generator);
        }