-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.xsd
1288 lines (1234 loc) · 54.6 KB
/
manifest.xsd
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
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="OfficeAppManifest" elementFormDefault="qualified" version="1.1"
targetNamespace="http://schemas.microsoft.com/office/appforoffice/1.1"
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
xmlns:ver="http://schemas.microsoft.com/office/appforoffice/1.1"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="NonEmptyString">
<xs:annotation>
<xs:documentation>
Defines a string that cannot be empty and can be unbounded.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ShortString">
<xs:annotation>
<xs:documentation>
Defines a string that must contain between 1 and 125 characters.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="125"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="LongString">
<xs:annotation>
<xs:documentation>
Defines a string that must contain between 1 and 250 characters.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="250"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="URL">
<xs:annotation>
<xs:documentation>
Defines a string that holds a Uniform Resource Locator and that must contain between 1 and 2048 characters.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:anyURI">
<xs:minLength value="1"/>
<xs:maxLength value="2048"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="LocaleOverride">
<xs:annotation>
<xs:documentation>
Defines the support for multiple locales for unbounded strings.
</xs:documentation>
</xs:annotation>
<xs:attribute name="Locale" type="CultureName" use="required">
<xs:annotation>
<xs:documentation>Specifies the culture name of the locale for this override.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Value" type="NonEmptyString" use="required">
<xs:annotation>
<xs:documentation>Specifies value of the setting expressed for the specified locale.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="ShortLocaleOverride">
<xs:annotation>
<xs:documentation>
Defines the support for multiple locales for short strings.
</xs:documentation>
</xs:annotation>
<xs:attribute name="Locale" type="CultureName" use="required">
<xs:annotation>
<xs:documentation>Specifies the culture name of the locale for this override.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Value" type="ShortString" use="required">
<xs:annotation>
<xs:documentation>Specifies value of the setting expressed for the specified locale.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="LongLocaleOverride">
<xs:annotation>
<xs:documentation>
Defines the support for multiple locales for long strings.
</xs:documentation>
</xs:annotation>
<xs:attribute name="Locale" type="CultureName" use="required">
<xs:annotation>
<xs:documentation>Specifies the culture name of the locale for this override.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Value" type="LongString" use="required">
<xs:annotation>
<xs:documentation>Specifies value of the setting expressed for the specified locale.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="URLLocaleOverride">
<xs:annotation>
<xs:documentation>
Defines the support for multiple locales for URL strings.
</xs:documentation>
</xs:annotation>
<xs:attribute name="Locale" type="CultureName" use="required">
<xs:annotation>
<xs:documentation>Specifies the culture name of the locale for this override.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Value" type="URL" use="required">
<xs:annotation>
<xs:documentation>Specifies value of the setting expressed for the specified locale.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="LocaleAwareSetting">
<xs:annotation>
<xs:documentation>
Defines a setting that is unbounded, locale-aware, and that can be specified for a locale different than the default.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Override" type="LocaleOverride" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Provides a way to specify the value of this setting for an additional locale.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="DefaultValue" type="NonEmptyString" use="required">
<xs:annotation>
<xs:documentation>
Specifies the default value for this setting, expressed for the locale specified in the <b>DefaultLocale</b> element.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="ShortLocaleAwareSetting">
<xs:annotation>
<xs:documentation>
Defines a setting that is a short string, locale-aware, and that can be specified for a locale different than the default.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Override" type="ShortLocaleOverride" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Provides a way to specify the value of this setting for an additional locale.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="DefaultValue" type="ShortString" use="required">
<xs:annotation>
<xs:documentation>
Specifies the default value for this setting, expressed for the locale specified in the <b>DefaultLocale</b> element.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="LongLocaleAwareSetting">
<xs:annotation>
<xs:documentation>
Defines a setting that is a long string, locale-aware, and that can be specified for a locale different than the default.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Override" type="LongLocaleOverride" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Provides a way to specify the value of this setting for an additional locale.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="DefaultValue" type="LongString" use="required">
<xs:annotation>
<xs:documentation>
Specifies the default value for this setting, expressed for the locale specified in the <b>DefaultLocale</b> element.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="URLLocaleAwareSetting">
<xs:annotation>
<xs:documentation>
Defines a URL setting that is locale-aware and that can be specified for a locale different than the default.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Override" type="URLLocaleOverride" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Provides a way to specify the value of this setting for an additional locale.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="DefaultValue" type="URL" use="required">
<xs:annotation>
<xs:documentation>
Specifies the default value for this setting, expressed for the locale specified in the <b>DefaultLocale</b> element.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:simpleType name="UUID">
<xs:annotation>
<xs:documentation>The supported representations of a URN UUID or GUID.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="(urn:uuid:)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}|\{[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="AlternateId">
<xs:annotation>
<xs:documentation>Defines an alternate ID type as defined by the Office Store.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value=".{5,12}\\WA[0-9]{9}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="CultureName">
<xs:annotation>
<xs:documentation>Represents the culture name of the language used in the string that it is qualifying.</xs:documentation>
</xs:annotation>
<!-- The culture names follow the BCP 47 standard. -->
<xs:restriction base="xs:string">
<xs:pattern value="[a-zA-Z]{2,3}-[a-zA-Z0-9]{3,8}(-[a-zA-Z]{2,3})?|[a-zA-Z]{2,3}(-[a-zA-Z]{2,3}(_tradnl|\.pseudo|-[a-zA-Z]{4,8})?)?"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Version">
<xs:annotation>
<xs:documentation>
Defines the format for the <b>Version</b> element.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="([0-9]{1,5})(\.[0-9]{1,5}){0,3}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ShortVersion">
<xs:annotation>
<xs:documentation>
Defines the format for the Short Version element.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="([0-9]{1,5})\.([0-9]{1,5})"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ContentAppSettings">
<xs:annotation>
<xs:documentation>
Defines the settings applicable to a content app.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="SourceLocation" type="URLLocaleAwareSetting" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the list of source file locations for this content app.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="RequestedWidth" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the desired width in pixels for the initial content placeholder, which should be between 32 and 1000.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="32"/>
<xs:maxInclusive value="1000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="RequestedHeight" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the desired height in pixels for the initial content placeholder, which should be between 32 and 1000.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="32"/>
<xs:maxInclusive value="1000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TaskPaneAppSettings">
<xs:annotation>
<xs:documentation>
Defines the settings applicable to a task pane app.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="SourceLocation" type="URLLocaleAwareSetting" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the list of source file locations for this task pane app.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ItemReadDesktopMailAppSettings">
<xs:annotation>
<xs:documentation>
Defines the form factor-aware settings applicable to mail apps when running on a desktop computer.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="SourceLocation" type="URLLocaleAwareSetting" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the list of source file locations for this desktop mail app.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="RequestedHeight" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the desired height, in pixels, of this mail app when running on a desktop computer, which is a value between 32 and 450.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="32"/>
<xs:maxInclusive value="450"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ItemReadTabletMailAppSettings">
<xs:annotation>
<xs:documentation>
Defines the form factor-aware settings applicable to mail apps when running on a tablet computer.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="SourceLocation" type="URLLocaleAwareSetting" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the list of source file locations for this tablet mail app.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="RequestedHeight" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the desired height, in pixels, of this mail app when running on a tablet computer, which is a value between 32 and 450.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="32"/>
<xs:maxInclusive value="450"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ItemReadPhoneMailAppSettings">
<xs:annotation>
<xs:documentation>
Defines the form factor-aware settings applicable to mail apps when running on a smartphone.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="SourceLocation" type="URLLocaleAwareSetting" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the list of source file locations for this phone mail app.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ItemEditMailAppSettings">
<xs:annotation>
<xs:documentation>
Defines the form factor-aware settings applicable to mail apps when running in a compose form.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="SourceLocation" type="URLLocaleAwareSetting" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the list of source file locations for this desktop mail app.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="FormType" abstract="true">
<xs:annotation>
<xs:documentation>
Generic type for specifying UX settings in different forms.
</xs:documentation>
</xs:annotation>
</xs:complexType>
<xs:complexType name="ItemRead">
<xs:annotation>
<xs:documentation>
UX settings for the read form type.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="FormType">
<xs:sequence>
<xs:element name="DesktopSettings" type="ItemReadDesktopMailAppSettings" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>
Specifies control settings that apply when this mail app is used on a desktop computer.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TabletSettings" type="ItemReadTabletMailAppSettings" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies control settings that apply when this mail app is used on a tablet.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PhoneSettings" type="ItemReadPhoneMailAppSettings" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies control settings that apply when this mail app is used on a phone.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="ItemEdit">
<xs:annotation>
<xs:documentation>UX settings for the compose and edit form types.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="FormType">
<xs:sequence>
<xs:element name="DesktopSettings" type="ItemEditMailAppSettings" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>
Specifies control settings that apply when this mail app is used on a desktop computer.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TabletSettings" type="ItemEditMailAppSettings" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies control settings that apply when this mail app is used on a tablet.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PhoneSettings" type="ItemEditMailAppSettings" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies control settings that apply when this mail app is used on a phone.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="FormSettings">
<xs:annotation>
<xs:documentation>
Defines the UX settings for the app, such as source location, points of integration and app pane size.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Form" type="FormType" minOccurs="1" maxOccurs="2">
<xs:annotation>
<xs:documentation>
UX settings for a specific form type.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Rule" abstract="true">
<xs:annotation>
<xs:documentation>
An abstract type that specifies the conditions for the host application to activate this mail app.
</xs:documentation>
</xs:annotation>
</xs:complexType>
<xs:simpleType name="ItemFormType">
<xs:annotation>
<xs:documentation>
Defines the form type to activate the app in.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Read">
<xs:annotation>
<xs:documentation>
Specifies that the app should activate in read forms.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Edit">
<xs:annotation>
<xs:documentation>
Specifies that the app should activate in compose forms.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="ReadOrEdit">
<xs:annotation>
<xs:documentation>
Specifies that the app should activate in read and compose forms.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ItemIs">
<xs:annotation>
<xs:documentation>
Defines a rule that evaluates to true if the selected item is of the specified type.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="Rule">
<xs:attribute name="ItemType" type="ItemType" use="required">
<xs:annotation>
<xs:documentation>Specifies the item type to match.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="FormType" type="ItemFormType" use="required">
<xs:annotation>
<xs:documentation>Specifies whether the app should appear in read or edit form for the item.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ItemClass" type="NonEmptyString" use="optional">
<xs:annotation>
<xs:documentation>Specifies the item message class to match.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IncludeSubClasses" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies whether the rule should evaluate to true if the item is of a subclass of the specified message class; the default is false.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="ItemType">
<xs:annotation>
<xs:documentation>
Defines the different types of items that are used in <b>ItemIs</b> rules.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Message">
<xs:annotation>
<xs:documentation>
Defines the mail message item type.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Appointment">
<xs:annotation>
<xs:documentation>
Defines the appointment item type.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="KnownEntityType">
<xs:annotation>
<xs:documentation>
Defines names for the text patterns that can be recognized and extracted from the item subject and body, or that can be used in <b>ItemHasKnownEntity</b> rules.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="MeetingSuggestion">
<xs:annotation>
<xs:documentation>
Text that is identified by pattern recognition to reference an event or a meeting.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="TaskSuggestion">
<xs:annotation>
<xs:documentation>
Text that is identified by pattern recognition to contain an actionable phrase.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Address">
<xs:annotation>
<xs:documentation>
Text that is identified by pattern recognition to reference a postal address in the United States.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Url">
<xs:annotation>
<xs:documentation>
Text that is identified by pattern recognition to contain a file name or web address URL.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="PhoneNumber">
<xs:annotation>
<xs:documentation>
A series of digits that is identified by pattern recognition as a telephone number in North America.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="EmailAddress">
<xs:annotation>
<xs:documentation>
Text that is identified by pattern recognition to contain an SMTP format email address.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Contact">
<xs:annotation>
<xs:documentation>
Text that is identified by pattern recognition to contain contact information.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ItemHasKnownEntity">
<xs:annotation>
<xs:documentation>
Defines a rule that evaluates to true if the item contains text of the specified entity type in its subject or body.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="Rule">
<xs:attribute name="EntityType" type="KnownEntityType" use="required">
<xs:annotation>
<xs:documentation>Specifies the type of entity that must be found for the rule to evaluate to true.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="RegExFilter" type="NonEmptyString" use="optional">
<xs:annotation>
<xs:documentation>Specifies a regular expression to run against this entity for activation.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="FilterName" type="NonEmptyString" use="optional">
<xs:annotation>
<xs:documentation>Specifies the name of the regular expression filter, so that it is subsequently possible to refer to it by code.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IgnoreCase" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>
Specifies to ignore case when running the regular expression specified by the <b>RegExFilter</b> attribute.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="PropertyName">
<xs:annotation>
<xs:documentation>
Defines property names that can be used with the <b>ItemHasRegularExpressionMatch</b> rule.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Subject">
<xs:annotation>
<xs:documentation>
Evaluates the regular expression against the item subject.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="BodyAsPlaintext">
<xs:annotation>
<xs:documentation>
Evaluates the regular expression against the item body in plain text.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="BodyAsHTML">
<xs:annotation>
<xs:documentation>
Evaluates the regular expression against the item body if the body is available in HTML.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="SenderSMTPAddress">
<xs:annotation>
<xs:documentation>
Evaluates the regular expression against the SMTP address of the item sender.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ItemHasRegularExpressionMatch">
<xs:annotation>
<xs:documentation>
Defines a rule that evaluates to true if a match for the specified regular expression can be found in the specified property of the item.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="Rule">
<xs:attribute name="RegExName" type="NonEmptyString" use="required">
<xs:annotation>
<xs:documentation>Specifies the name of the regular expression, so that it is subsequently possible to refer to it by code.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="RegExValue" type="NonEmptyString" use="required">
<xs:annotation>
<xs:documentation>Specifies the regular expression to match.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="PropertyName" type="PropertyName" use="required">
<xs:annotation>
<xs:documentation>Specifies the name of the property in which to look for matches.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IgnoreCase" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies to ignore the case when executing the regular expression.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="ItemHasAttachment">
<xs:annotation>
<xs:documentation>
Defines a rule that evaluates to true if the item contains an attachment.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="Rule">
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="LogicalOperator">
<xs:annotation>
<xs:documentation>
Defines logical operators that allow combining multiple rules into a rule collection.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="And">
<xs:annotation>
<xs:documentation>
The binary logical operator that returns true if both operands are true, and returns false otherwise.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Or">
<xs:annotation>
<xs:documentation>
The binary logical operator that returns true if one or both operands are true, and returns false otherwise.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="RuleCollection">
<xs:annotation>
<xs:documentation>
Defines a collection of rules and the logical operator to use when evaluating them.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="Rule">
<xs:sequence>
<xs:element name="Rule" type="Rule" minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Specifies the list of rules that this collection contains.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="Mode" type="LogicalOperator" use="required">
<xs:annotation>
<xs:documentation>Specifies the logical operator to use when evaluating this rule collection.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="AppDomains">
<xs:annotation>
<xs:documentation>
Defines additional domains that the app may use to load its pages.
</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="AppDomain" type="LongString">
<xs:annotation>
<xs:documentation>
Defines a domain that will be used to load one or more app pages.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="OfficeApp" abstract="true">
<xs:annotation>
<xs:documentation>
An abstract type that defines an app for Office.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Id" type="UUID" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the unique ID of the app.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AlternateId" type="AlternateId" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the alternate ID for the app as issued by the Office Store.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Version" type="Version" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the version of the app.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ProviderName" type="ShortString" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the name of the individual or company that developed the app.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DefaultLocale" type="CultureName" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the default culture name of the locale used by strings in this manifest.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DisplayName" type="ShortLocaleAwareSetting" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies a short name for the app.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Description" type="LongLocaleAwareSetting" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies a more verbose description of the app.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="IconUrl" type="URLLocaleAwareSetting" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the URL of the image that is used to represent the app.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="HighResolutionIconUrl" type="URLLocaleAwareSetting" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the URL of the image that is used to represent the app on high dpi screens.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="SupportUrl" type="URLLocaleAwareSetting" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the URL of a page that provides support information for the app.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AppDomains" type="AppDomains" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies additional domains that this app will use to load pages.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Hosts" type="Hosts" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the Office client application where the app for Office will activate.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Host">
<xs:attribute name="Name" type="ShortString" use="required"/>
</xs:complexType>
<xs:complexType name="Hosts">
<xs:annotation>
<xs:documentation>
Specifies the Office client Host type where an app for Office will be activated.
</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="Host" type="Host">
<xs:annotation>
<xs:documentation>
Specifies an individual Office application type where the app should activate, such as "document", "workbook", "presentation", "project", "mailbox".
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Requirements">
<xs:annotation>
<xs:documentation>
Specifies the minimum named subsets of the JavaScript API for Office that the app for Office requires in order to activate.
</xs:documentation>
</xs:annotation>
<xs:choice minOccurs="1" maxOccurs="1">
<xs:sequence>
<xs:element name="Sets" type="Sets" minOccurs="1" maxOccurs="1"/>
<xs:element name="Methods" type="Methods" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:sequence>
<xs:element name="Methods" type="Methods" minOccurs="1" maxOccurs="1"/>
<xs:element name="Sets" type="Sets" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:choice>
</xs:complexType>
<xs:complexType name="Sets">
<xs:annotation>
<xs:documentation>
Specifies the list of required API sets of the JavaScript API for Office that the app for Office requires in order to activate.
Default version is inherited in child elements unless overriten by said child elements.
</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="Set" type="VersionedRequirement">
<xs:annotation>
<xs:documentation>
Specifies an individual set from the JavaScript API for Office that the app requires in order to activate.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="DefaultMinVersion" type="ShortVersion" default="1.1"/>
</xs:complexType>
<xs:complexType name="VersionedRequirement">
<xs:attribute name="MinVersion" type="ShortVersion" use="optional"/>
<xs:attribute name="Name" type="ShortString" use="required"/>
</xs:complexType>
<xs:complexType name="Methods">
<xs:annotation>
<xs:documentation>
Specifies the list of required APIs of the JavaScript API for Office that the app for Office requires in order to activate.
</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="Method" type="Requirement">
<xs:annotation>
<xs:documentation>
Specifies an individual method from the JavaScript API for Office that the app requires in order to activate.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Requirement">
<xs:attribute name="Name" type="LongString" use="required"/>
</xs:complexType>
<xs:complexType name="MailAppRequirements">
<xs:annotation>
<xs:documentation>
Specifies the minimum named subsets of the JavaScript API for Office that the Mail App requires in order to activate.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Sets" type="Sets" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ContentApp">
<xs:annotation>
<xs:documentation>
Defines a content app that is placed in-line with document content to provide a richer web-based experience.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="OfficeApp">
<xs:sequence>
<xs:element name="Requirements" type="Requirements" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies the minimum set of JavaScript API for Office requirements that the app for Office needs to activate</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DefaultSettings" type="ContentAppSettings" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies control settings that are applied whenever the content app is used.</xs:documentation>