~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Test/Designer/MockViewContend.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)
 
3
 
 
4
using System;
 
5
using System.Collections.Generic;
 
6
using System.Windows.Forms;
 
7
using ICSharpCode.Core;
 
8
using ICSharpCode.SharpDevelop;
 
9
using ICSharpCode.SharpDevelop.Gui;
 
10
 
 
11
namespace ICSharpCode.Reports.Addin.Test.Designer
 
12
{
 
13
        /// <summary>
 
14
        /// Description of MockViewContend.
 
15
        /// </summary>
 
16
        public class MockViewContent:IViewContent
 
17
        {
 
18
                
 
19
                FileName fileName = null;
 
20
                List<IViewContent> secondaryViewContents = new List<IViewContent>();
 
21
                
 
22
                public MockViewContent()
 
23
                {
 
24
                }
 
25
                
 
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;
 
31
                
 
32
                public object Control
 
33
                {
 
34
                        get {return null;}
 
35
                }
 
36
                
 
37
                public string TitleName {
 
38
                        get {
 
39
                                throw new NotImplementedException();
 
40
                        }
 
41
                }
 
42
                
 
43
                public string InfoTip {
 
44
                        get {
 
45
                                throw new NotImplementedException();
 
46
                        }
 
47
                }
 
48
                
 
49
                public bool IsReadOnly {
 
50
                        get {
 
51
                                throw new NotImplementedException();
 
52
                        }
 
53
                }
 
54
                
 
55
                public bool IsViewOnly {
 
56
                        get {
 
57
                                throw new NotImplementedException();
 
58
                        }
 
59
                }
 
60
                
 
61
                public bool CloseWithSolution {
 
62
                        get { throw new NotImplementedException(); }
 
63
                }
 
64
                
 
65
                public ICollection<IViewContent> SecondaryViewContents {
 
66
                        get { return secondaryViewContents;     }
 
67
                }
 
68
                
 
69
                public IWorkbenchWindow WorkbenchWindow {
 
70
                        get {
 
71
                                throw new NotImplementedException();
 
72
                        }
 
73
                        set {
 
74
                                throw new NotImplementedException();
 
75
                        }
 
76
                }
 
77
                
 
78
                public string TabPageText {
 
79
                        get {
 
80
                                throw new NotImplementedException();
 
81
                        }
 
82
                }
 
83
                
 
84
                public bool IsDirty {
 
85
                        get {
 
86
                                throw new NotImplementedException();
 
87
                        }
 
88
                        set {
 
89
                                throw new NotImplementedException();
 
90
                        }
 
91
                }
 
92
                
 
93
                public void Save()
 
94
                {
 
95
                        throw new NotImplementedException();
 
96
                }
 
97
                
 
98
                public void Save(string fileName)
 
99
                {
 
100
                        throw new NotImplementedException();
 
101
                }
 
102
                
 
103
                public void Load(string fileName)
 
104
                {
 
105
                        throw new NotImplementedException();
 
106
                }
 
107
                
 
108
                public INavigationPoint BuildNavPoint()
 
109
                {
 
110
                        throw new NotImplementedException();
 
111
                }
 
112
                
 
113
                public void SwitchedTo()
 
114
                {
 
115
                        throw new NotImplementedException();
 
116
                }
 
117
                
 
118
                public void Selected()
 
119
                {
 
120
                        throw new NotImplementedException();
 
121
                }
 
122
                
 
123
                public void Deselecting()
 
124
                {
 
125
                        throw new NotImplementedException();
 
126
                }
 
127
                
 
128
                public void Deselected()
 
129
                {
 
130
                        throw new NotImplementedException();
 
131
                }
 
132
                
 
133
                public void RedrawContent()
 
134
                {
 
135
                        throw new NotImplementedException();
 
136
                }
 
137
                
 
138
                public void Dispose()
 
139
                {
 
140
                        throw new NotImplementedException();
 
141
                }
 
142
                
 
143
                public IList<OpenedFile> Files {
 
144
                        get {
 
145
                                throw new NotImplementedException();
 
146
                        }
 
147
                }
 
148
                
 
149
                public OpenedFile PrimaryFile {
 
150
                        get {
 
151
                                MockOpenedFile file = new MockOpenedFile();
 
152
                                //file.FileName = fileName;
 
153
                                return file;
 
154
                        }
 
155
                }
 
156
                
 
157
                public FileName PrimaryFileName {
 
158
                        get { return fileName; }
 
159
                        set { fileName = value; }
 
160
                }
 
161
                
 
162
                public bool IsDisposed {
 
163
                        get {
 
164
                                throw new NotImplementedException();
 
165
                        }
 
166
                }
 
167
                
 
168
                public void Save(OpenedFile file, System.IO.Stream stream)
 
169
                {
 
170
                        throw new NotImplementedException();
 
171
                }
 
172
                
 
173
                public void Load(OpenedFile file, System.IO.Stream stream)
 
174
                {
 
175
                        throw new NotImplementedException();
 
176
                }
 
177
                
 
178
                public bool SupportsSwitchFromThisWithoutSaveLoad(OpenedFile file, IViewContent newView)
 
179
                {
 
180
                        throw new NotImplementedException();
 
181
                }
 
182
                
 
183
                public bool SupportsSwitchToThisWithoutSaveLoad(OpenedFile file, IViewContent oldView)
 
184
                {
 
185
                        throw new NotImplementedException();
 
186
                }
 
187
                
 
188
                public void SwitchFromThisWithoutSaveLoad(OpenedFile file, IViewContent newView)
 
189
                {
 
190
                        throw new NotImplementedException();
 
191
                }
 
192
                
 
193
                public void SwitchToThisWithoutSaveLoad(OpenedFile file, IViewContent oldView)
 
194
                {
 
195
                        throw new NotImplementedException();
 
196
                }
 
197
                
 
198
                protected virtual void OnTitleNameChanged(EventArgs e)
 
199
                {
 
200
                        if (TitleNameChanged != null) {
 
201
                                TitleNameChanged(this, e);
 
202
                        }
 
203
                }
 
204
                
 
205
                protected virtual void OnInfoTipChanged(EventArgs e)
 
206
                {
 
207
                        if (InfoTipChanged != null) {
 
208
                                InfoTipChanged(this, e);
 
209
                        }
 
210
                }
 
211
                
 
212
                protected virtual void OnTabPageTextChanged(EventArgs e)
 
213
                {
 
214
                        if (TabPageTextChanged != null) {
 
215
                                TabPageTextChanged(this, e);
 
216
                        }
 
217
                }
 
218
                
 
219
                protected virtual void OnDisposed(EventArgs e)
 
220
                {
 
221
                        if (Disposed != null) {
 
222
                                Disposed(this, e);
 
223
                        }
 
224
                }
 
225
 
 
226
                protected virtual void OnIsDirtyChanged(EventArgs e)
 
227
                {
 
228
                        if (IsDirtyChanged != null) {
 
229
                                IsDirtyChanged(this, e);
 
230
                        }
 
231
                }
 
232
                
 
233
                public object InitiallyFocusedControl {
 
234
                        get {
 
235
                                throw new NotImplementedException();
 
236
                        }
 
237
                }
 
238
                
 
239
                public object GetService(Type serviceType)
 
240
                {
 
241
                        return null;
 
242
                }
 
243
        }
 
244
}