forked from syncfusion/wpf-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DocIODemosViewModel.cs
394 lines (389 loc) · 18.7 KB
/
DocIODemosViewModel.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
#region Copyright Syncfusion Inc. 2001-2022.
// Copyright Syncfusion Inc. 2001-2022. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// [email protected]. Any infringement will be prosecuted under
// applicable laws.
#endregion
using syncfusion.demoscommon.wpf;
using System.Collections.Generic;
namespace syncfusion.dociodemos.wpf
{
public class DocIODemosViewModel : DemoBrowserViewModel
{
public override List<ProductDemo> GetDemosDetails()
{
var productdemos = new List<ProductDemo>();
productdemos.Add(new DocIOProductDemos());
return productdemos;
}
}
public class DocIOProductDemos : ProductDemo
{
public DocIOProductDemos()
{
this.Product = "DocIO";
this.ProductCategory = "FILE FORMAT";
this.Tag = Tag.Updated;
this.Demos = new List<DemoInfo>();
this.Demos.Add(new DemoInfo()
{
SampleName = "Update Fields",
GroupName = "PRODUCT SHOWCASE",
Description = "This sample demonstrates how to update the fields available in the Word document using Essential DocIO. Here, in the example, merge fields and formula fields are used together to populate the net profit or loss.",
DemoViewType = typeof(UpdateFields)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Hello World",
GroupName = "GETTING STARTED",
Description = "This sample demonstrates how to create a simple Word document with text, image and table using Essential DocIO.",
DemoViewType = typeof(HelloWorld)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Image Insertion",
GroupName = "INSERT CONTENT",
Description = "This sample demonstrates how to insert images into the Word document using Essential DocIO.",
DemoViewType = typeof(ImageInsertion)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Table Insertion",
GroupName = "INSERT CONTENT",
Description = "This sample demonstrates how to insert tables into the Word document using Essential DocIO.",
DemoViewType = typeof(TableInsertion)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Hyperlink",
GroupName = "INSERT CONTENT",
Description = "This sample demonstrates how to create a template document that contains different kinds of Hyperlinks, and lets the user to modify the content of those Hyperlinks and save the result into a new document using Essential DocIO.",
DemoViewType = typeof(Hyperlink)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Bookmarks",
GroupName = "INSERT CONTENT",
Description = "This sample demonstrates how to insert bookmarks into the Word document using Essential DocIO.",
DemoViewType = typeof(Bookmarks)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Header and Footer",
GroupName = "INSERT CONTENT",
Description = "This sample demonstrates how to insert headers and footers to the Word document using DocIO.",
DemoViewType = typeof(HeaderandFooter)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Clone and Merge",
GroupName = "INSERT CONTENT",
Description = "This sample demonstrates how to clone and merge Word documents using Essential DocIO.",
DemoViewType = typeof(CloneandMerge)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "OLE Object",
GroupName = "INSERT CONTENT",
Description = "This sample demonstrates how to insert OLE Object into the Word document using Essential DocIO.",
DemoViewType = typeof(InsertOLEObject)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Format Text",
GroupName = "FORMATTING",
Description = "This sample demonstrates how to format the text in the Word document using Essential DocIO.",
DemoViewType = typeof(FormatText)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Format Table",
GroupName = "FORMATTING",
Description = "This sample demonstrates how to format the tables in the Word document using Essential DocIO.",
DemoViewType = typeof(FormatTable)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Styles",
GroupName = "FORMATTING",
Description = "This sample demonstrates how to apply built-in and custom styles to the contents of the Word document using Essential DocIO.",
DemoViewType = typeof(Styles)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "RTL Support",
GroupName = "FORMATTING",
Description = "This sample demonstrates how to create a Word document with Right-To-Left language text using Essential DocIO.",
DemoViewType = typeof(RTL)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Table Styles",
GroupName = "FORMATTING",
Description = "This sample demonstrates how to apply built-in and custom styles to the tables of the Word document using Essential DocIO.",
DemoViewType = typeof(TableStyles)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Insert Break",
GroupName = "PAGE LAYOUT",
Description = "This sample demonstrates how to insert breaks to the Word document using Essential DocIO.",
DemoViewType = typeof(InsertBreak)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Watermark",
GroupName = "PAGE LAYOUT",
Description = "This sample demonstrates how to insert text and picture watermark into the Word document using Essential DocIO.",
DemoViewType = typeof(Watermark)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Footnotes and Endnotes",
GroupName = "REFERENCE",
Description = "This sample demonstrates how to insert footnotes and endnotes in a Word document using Essential DocIO.",
DemoViewType = typeof(FootnotesandEndnotes)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Table of Contents",
GroupName = "REFERENCE",
Description = "This sample demonstrates how to insert and update the Table of Contents (TOC) in a Word document using Essential DocIO.",
DemoViewType = typeof(TableofContent)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Find and Replace",
GroupName = "EDITING",
Description = "This sample demonstrates how to find a text and replacing it with a new text using Essential DocIO.",
DemoViewType = typeof(FindAndReplace)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Advanced Replace",
GroupName = "EDITING",
Description = "This sample demonstrates how to replace a specific content in the Word document with another document using the Find and Replace functionality of Essential DocIO.",
DemoViewType = typeof(AdvancedReplace)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Bookmark Navigation",
GroupName = "EDITING",
Description = "This sample demonstrates how to navigate between the bookmarks in a Word document and edit its content using Bookmark Navigation functionality of Essential DocIO.",
DemoViewType = typeof(BookmarkNavigation)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Forms",
GroupName = "EDITING",
Description = "This sample demonstrates how to create a simple job application form and fill the form using Essential DocIO.",
DemoViewType = typeof(Forms)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Form Filling and Protection",
GroupName = "CONTENT CONTROL",
Description = "This sample demonstrates how to fill a form and protect the content controls in an existing Word document using Essential DocIO.",
DemoViewType = typeof(FormFillingandProtection)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "XML Mapping",
GroupName = "CONTENT CONTROL",
Description = "This sample demonstrates how to map custom XML parts to content controls in the Word document using Essential DocIO.",
DemoViewType = typeof(XMLMapping)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Create Equation",
GroupName = "MATHEMATICAL EQUATION",
Description = "This sample demonstrates how to create a Word document with mathematical equations using Essential DocIO.",
DemoViewType = typeof(CreateEquation)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Edit Equation",
GroupName = "MATHEMATICAL EQUATION",
Description = "This sample demonstrates how to modify a mathematical equation in a Word document using Essential DocIO.",
DemoViewType = typeof(EditEquation)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Employee Report",
GroupName = "MAIL MERGE",
Description = "This sample demonstrates how to generate an employee report using Mail merge functionality of Essential DocIO.",
DemoViewType = typeof(EmployeeReport)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Letter Format",
GroupName = "MAIL MERGE",
Description = "This sample demonstrates how to generate a letter using Mail merge functionality of Essential DocIO.",
DemoViewType = typeof(LetterFormat)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Mail Merge Event",
GroupName = "MAIL MERGE",
Description = "This sample demonstrates how to format the Mail merged data using Mail merge events of Essential DocIO.",
DemoViewType = typeof(MailMergeEvent)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Nested Mail Merge",
GroupName = "MAIL MERGE",
Description = "This sample demonstrates how to perform Mail merge for nested groups in Word document using Essential DocIO.",
DemoViewType = typeof(NestedMailMerge)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Sales Invoice",
GroupName = "MAIL MERGE",
Description = "This sample demonstrates how to generate sales invoice using Mail merge functionality of Essential DocIO.",
DemoViewType = typeof(SalesInvoice)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Document Settings",
GroupName = "VIEW",
Description = "This sample demonstrates how to apply various document settings to the Word document using Essential DocIO.",
DemoViewType = typeof(DocumentSettings)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Macro Preservation",
GroupName = "VIEW",
Description = "This sample demonstrates preservation of macros in macro-enabled documents (DOCM and DOTM) using Essential DocIO.",
DemoViewType = typeof(MacroPreservation)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Document Protection",
GroupName = "SECURITY",
Description = "This sample demonstrates how to protect the Word document from editing using Essential DocIO.",
DemoViewType = typeof(DocumentProtection)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Encrypt and Decrypt",
GroupName = "SECURITY",
Description = "This sample demonstrates how to encrypt and decrypt the Word document using Essential DocIO.",
DemoViewType = typeof(EncryptandDecrypt)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Word to EPUB",
GroupName = "IMPORT AND EXPORT",
Description = "This sample demonstrates how to convert Word document to EPUB using Essential DocIO.",
DemoViewType = typeof(WordToEPUB)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Word to HTML",
GroupName = "IMPORT AND EXPORT",
Description = "This sample demonstrates how to convert the Word document to HTML file using Essential DocIO.",
DemoViewType = typeof(WordToHTML)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Word to PDF",
GroupName = "IMPORT AND EXPORT",
Description = "This sample demonstrates how to convert Word document to PDF using Essential DocIO and PDF.",
Tag = Tag.Updated,
DemoViewType = typeof(WordToPDF)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Word to RTF",
GroupName = "IMPORT AND EXPORT",
Description = "This sample demonstrates how to convert the Word document to RTF file using Essential DocIO.",
DemoViewType = typeof(WordToRTF)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Word to ODT",
GroupName = "IMPORT AND EXPORT",
Description = "This sample demonstrates how to convert the Word document to ODT file using Essential DocIO.",
DemoViewType = typeof(WordToODT)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Word to WordML",
GroupName = "IMPORT AND EXPORT",
Description = "This sample demonstrates how to convert the Word document to Word processing XML using Essential DocIO.",
DemoViewType = typeof(WordToWordML)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "HTML to Word",
GroupName = "IMPORT AND EXPORT",
Description = "This sample demonstrates how to convert the HTML file to Word document using Essential DocIO.",
DemoViewType = typeof(HTMLToWord)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "RTF to Word",
GroupName = "IMPORT AND EXPORT",
Description = "This sample demonstrates how to convert the RTF file to Word document using Essential DocIO..",
DemoViewType = typeof(RTFToWord)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "WordML to Word",
GroupName = "IMPORT AND EXPORT",
Description = "This sample demonstrates how to convert the Word processing XML to Word document using Essential DocIO.",
DemoViewType = typeof(WordMLToWord)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Word to Image",
GroupName = "IMPORT AND EXPORT",
Description = "This sample demonstrates how to convert Word document to Image using Essential DocIO.",
DemoViewType = typeof(WordToImage)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Auto Shapes",
GroupName = "SHAPES",
Description = "This sample demonstrates how to create a Word document with Auto shapes using Essential DocIO.",
DemoViewType = typeof(AutoShapes)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Group Shapes",
GroupName = "SHAPES",
Description = "This sample demonstrates how to create a Word document with Group shapes using Essential DocIO.",
DemoViewType = typeof(GroupShapes)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Print",
GroupName = "PRINT",
Description = "This sample demonstrates how to print a Word document using Essential DocIO.",
DemoViewType = typeof(Print)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Pie Chart",
GroupName = "CHARTS",
Description = "This sample demonstrates how to insert a pie chart into the Word document using Essential DocIO.",
DemoViewType = typeof(PieChart)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Bar Chart",
GroupName = "CHARTS",
Description = "This sample demonstrates how to insert a bar chart into the Word document using Essential DocIO.",
DemoViewType = typeof(BarChart)
});
this.Demos.Add(new DemoInfo()
{
SampleName = "Track Changes",
GroupName = "REVIEW",
Description = "This sample demonstrates how to accept or reject the tracked changes in the Word document using Essential DocIO.",
DemoViewType = typeof(TrackChanges)
});
}
}
}