1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.Collections.Generic;
6
using System.Windows.Forms;
7
using ICSharpCode.Core;
8
using ICSharpCode.SharpDevelop;
9
using ICSharpCode.SharpDevelop.Gui;
11
namespace ICSharpCode.Reports.Addin.Test.Designer
14
/// Description of MockViewContend.
16
public class MockViewContent:IViewContent
19
FileName fileName = null;
20
List<IViewContent> secondaryViewContents = new List<IViewContent>();
22
public MockViewContent()
26
public event EventHandler InfoTipChanged;
27
public event EventHandler TitleNameChanged;
28
public event EventHandler TabPageTextChanged;
29
public event EventHandler Disposed;
30
public event EventHandler IsDirtyChanged;
37
public string TitleName {
39
throw new NotImplementedException();
43
public string InfoTip {
45
throw new NotImplementedException();
49
public bool IsReadOnly {
51
throw new NotImplementedException();
55
public bool IsViewOnly {
57
throw new NotImplementedException();
61
public bool CloseWithSolution {
62
get { throw new NotImplementedException(); }
65
public ICollection<IViewContent> SecondaryViewContents {
66
get { return secondaryViewContents; }
69
public IWorkbenchWindow WorkbenchWindow {
71
throw new NotImplementedException();
74
throw new NotImplementedException();
78
public string TabPageText {
80
throw new NotImplementedException();
86
throw new NotImplementedException();
89
throw new NotImplementedException();
95
throw new NotImplementedException();
98
public void Save(string fileName)
100
throw new NotImplementedException();
103
public void Load(string fileName)
105
throw new NotImplementedException();
108
public INavigationPoint BuildNavPoint()
110
throw new NotImplementedException();
113
public void SwitchedTo()
115
throw new NotImplementedException();
118
public void Selected()
120
throw new NotImplementedException();
123
public void Deselecting()
125
throw new NotImplementedException();
128
public void Deselected()
130
throw new NotImplementedException();
133
public void RedrawContent()
135
throw new NotImplementedException();
138
public void Dispose()
140
throw new NotImplementedException();
143
public IList<OpenedFile> Files {
145
throw new NotImplementedException();
149
public OpenedFile PrimaryFile {
151
MockOpenedFile file = new MockOpenedFile();
152
//file.FileName = fileName;
157
public FileName PrimaryFileName {
158
get { return fileName; }
159
set { fileName = value; }
162
public bool IsDisposed {
164
throw new NotImplementedException();
168
public void Save(OpenedFile file, System.IO.Stream stream)
170
throw new NotImplementedException();
173
public void Load(OpenedFile file, System.IO.Stream stream)
175
throw new NotImplementedException();
178
public bool SupportsSwitchFromThisWithoutSaveLoad(OpenedFile file, IViewContent newView)
180
throw new NotImplementedException();
183
public bool SupportsSwitchToThisWithoutSaveLoad(OpenedFile file, IViewContent oldView)
185
throw new NotImplementedException();
188
public void SwitchFromThisWithoutSaveLoad(OpenedFile file, IViewContent newView)
190
throw new NotImplementedException();
193
public void SwitchToThisWithoutSaveLoad(OpenedFile file, IViewContent oldView)
195
throw new NotImplementedException();
198
protected virtual void OnTitleNameChanged(EventArgs e)
200
if (TitleNameChanged != null) {
201
TitleNameChanged(this, e);
205
protected virtual void OnInfoTipChanged(EventArgs e)
207
if (InfoTipChanged != null) {
208
InfoTipChanged(this, e);
212
protected virtual void OnTabPageTextChanged(EventArgs e)
214
if (TabPageTextChanged != null) {
215
TabPageTextChanged(this, e);
219
protected virtual void OnDisposed(EventArgs e)
221
if (Disposed != null) {
226
protected virtual void OnIsDirtyChanged(EventArgs e)
228
if (IsDirtyChanged != null) {
229
IsDirtyChanged(this, e);
233
public object InitiallyFocusedControl {
235
throw new NotImplementedException();
239
public object GetService(Type serviceType)