Skip to content

Commit 8914a89

Browse files
authored
Merge pull request #23 from TCourtneyOwen/separate-hosts
Separate hosts
2 parents 075d02e + aaf6575 commit 8914a89

13 files changed

+576
-104
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This template is written using [TypeScript](http://www.typescriptlang.org/). For
99

1010
We'd love to get your feedback about this sample. You can send your feedback to us in the *Issues* section of this repository.
1111

12-
Questions about Microsoft Office 365 development in general should be posted to [Stack Overflow](http://stackoverflow.com/questions/tagged/office-js+API). If your question is about the Office JavaScript APIs, make sure that your questions are tagged with [office-js] and [API].
12+
Questions about Microsoft Office 365 development in general should be posted to [Stack Overflow](http://stackoverflow.com/questions/tagged/office-js+API). If your question is about the Office JavaScript APIs, make sure it's tagged with  [office-js].
1313

1414
## Additional resources
1515

manifest.excel.xml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="TaskPaneApp">
3+
<Id>05c2e1c9-3e1d-406e-9a91-e9ac64854143</Id>
4+
<Version>1.0.0.0</Version>
5+
<ProviderName>Contoso</ProviderName>
6+
<DefaultLocale>en-US</DefaultLocale>
7+
<DisplayName DefaultValue="Contoso Task Pane Add-in"/>
8+
<Description DefaultValue="A template to get started."/>
9+
<IconUrl DefaultValue="https://localhost:3000/assets/icon-32.png"/>
10+
<HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/icon-80.png"/>
11+
<SupportUrl DefaultValue="https://www.contoso.com/help"/>
12+
<AppDomains>
13+
<AppDomain>contoso.com</AppDomain>
14+
</AppDomains>
15+
<Hosts>
16+
<Host Name="Workbook"/>
17+
</Hosts>
18+
<DefaultSettings>
19+
<SourceLocation DefaultValue="https://localhost:3000/taskpane.html"/>
20+
</DefaultSettings>
21+
<Permissions>ReadWriteDocument</Permissions>
22+
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
23+
<Hosts>
24+
<Host xsi:type="Workbook">
25+
<DesktopFormFactor>
26+
<GetStarted>
27+
<Title resid="Contoso.GetStarted.Title"/>
28+
<Description resid="Contoso.GetStarted.Description"/>
29+
<LearnMoreUrl resid="Contoso.GetStarted.LearnMoreUrl"/>
30+
</GetStarted>
31+
<FunctionFile resid="Contoso.Commands.Url" />
32+
<ExtensionPoint xsi:type="PrimaryCommandSurface">
33+
<OfficeTab id="TabHome">
34+
<Group id="Contoso.Group1">
35+
<Label resid="Contoso.Group1Label" />
36+
<Icon>
37+
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
38+
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
39+
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
40+
</Icon>
41+
<Control xsi:type="Button" id="Contoso.TaskpaneButton">
42+
<Label resid="Contoso.TaskpaneButton.Label" />
43+
<Supertip>
44+
<Title resid="Contoso.TaskpaneButton.Label" />
45+
<Description resid="Contoso.TaskpaneButton.Tooltip" />
46+
</Supertip>
47+
<Icon>
48+
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
49+
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
50+
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
51+
</Icon>
52+
<Action xsi:type="ShowTaskpane">
53+
<TaskpaneId>ButtonId1</TaskpaneId>
54+
<SourceLocation resid="Contoso.Taskpane.Url" />
55+
</Action>
56+
</Control>
57+
</Group>
58+
</OfficeTab>
59+
</ExtensionPoint>
60+
</DesktopFormFactor>
61+
</Host>
62+
</Hosts>
63+
<Resources>
64+
<bt:Images>
65+
<bt:Image id="Contoso.tpicon_16x16" DefaultValue="https://localhost:3000/assets/icon-16.png"/>
66+
<bt:Image id="Contoso.tpicon_32x32" DefaultValue="https://localhost:3000/assets/icon-32.png"/>
67+
<bt:Image id="Contoso.tpicon_80x80" DefaultValue="https://localhost:3000/assets/icon-80.png"/>
68+
</bt:Images>
69+
<bt:Urls>
70+
<bt:Url id="Contoso.GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812" />
71+
<bt:Url id="Contoso.Commands.Url" DefaultValue="https://localhost:3000/commands.html" />
72+
<bt:Url id="Contoso.Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html" />
73+
</bt:Urls>
74+
<bt:ShortStrings>
75+
<bt:String id="Contoso.GetStarted.Title" DefaultValue="Get started with your sample add-in!" />
76+
<bt:String id="Contoso.Group1Label" DefaultValue="Commands Group" />
77+
<bt:String id="Contoso.TaskpaneButton.Label" DefaultValue="Show Taskpane" />
78+
</bt:ShortStrings>
79+
<bt:LongStrings>
80+
<bt:String id="Contoso.GetStarted.Description" DefaultValue="Your sample add-in loaded succesfully. Go to the HOME tab and click the 'Show Taskpane' button to get started." />
81+
<bt:String id="Contoso.TaskpaneButton.Tooltip" DefaultValue="Click to Show a Taskpane" />
82+
</bt:LongStrings>
83+
</Resources>
84+
</VersionOverrides>
85+
</OfficeApp>

manifest.onenote.xml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="TaskPaneApp">
3+
<Id>05c2e1c9-3e1d-406e-9a91-e9ac64854143</Id>
4+
<Version>1.0.0.0</Version>
5+
<ProviderName>Contoso</ProviderName>
6+
<DefaultLocale>en-US</DefaultLocale>
7+
<DisplayName DefaultValue="Contoso Task Pane Add-in"/>
8+
<Description DefaultValue="A template to get started."/>
9+
<IconUrl DefaultValue="https://localhost:3000/assets/icon-32.png"/>
10+
<HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/icon-80.png"/>
11+
<SupportUrl DefaultValue="https://www.contoso.com/help"/>
12+
<AppDomains>
13+
<AppDomain>contoso.com</AppDomain>
14+
</AppDomains>
15+
<Hosts>
16+
<Host Name="Notebook"/>
17+
</Hosts>
18+
<DefaultSettings>
19+
<SourceLocation DefaultValue="https://localhost:3000/taskpane.html"/>
20+
</DefaultSettings>
21+
<Permissions>ReadWriteDocument</Permissions>
22+
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
23+
<Hosts>
24+
<Host xsi:type="Notebook">
25+
<DesktopFormFactor>
26+
<GetStarted>
27+
<Title resid="Contoso.GetStarted.Title"/>
28+
<Description resid="Contoso.GetStarted.Description"/>
29+
<LearnMoreUrl resid="Contoso.GetStarted.LearnMoreUrl"/>
30+
</GetStarted>
31+
<FunctionFile resid="Contoso.Commands.Url" />
32+
<ExtensionPoint xsi:type="PrimaryCommandSurface">
33+
<OfficeTab id="TabHome">
34+
<Group id="Contoso.Group1">
35+
<Label resid="Contoso.Group1Label" />
36+
<Icon>
37+
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
38+
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
39+
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
40+
</Icon>
41+
<Control xsi:type="Button" id="Contoso.TaskpaneButton">
42+
<Label resid="Contoso.TaskpaneButton.Label" />
43+
<Supertip>
44+
<Title resid="Contoso.TaskpaneButton.Label" />
45+
<Description resid="Contoso.TaskpaneButton.Tooltip" />
46+
</Supertip>
47+
<Icon>
48+
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
49+
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
50+
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
51+
</Icon>
52+
<Action xsi:type="ShowTaskpane">
53+
<TaskpaneId>ButtonId1</TaskpaneId>
54+
<SourceLocation resid="Contoso.Taskpane.Url" />
55+
</Action>
56+
</Control>
57+
</Group>
58+
</OfficeTab>
59+
</ExtensionPoint>
60+
</DesktopFormFactor>
61+
</Host>
62+
</Hosts>
63+
<Resources>
64+
<bt:Images>
65+
<bt:Image id="Contoso.tpicon_16x16" DefaultValue="https://localhost:3000/assets/icon-16.png"/>
66+
<bt:Image id="Contoso.tpicon_32x32" DefaultValue="https://localhost:3000/assets/icon-32.png"/>
67+
<bt:Image id="Contoso.tpicon_80x80" DefaultValue="https://localhost:3000/assets/icon-80.png"/>
68+
</bt:Images>
69+
<bt:Urls>
70+
<bt:Url id="Contoso.GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812" />
71+
<bt:Url id="Contoso.Commands.Url" DefaultValue="https://localhost:3000/commands.html" />
72+
<bt:Url id="Contoso.Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html" />
73+
</bt:Urls>
74+
<bt:ShortStrings>
75+
<bt:String id="Contoso.GetStarted.Title" DefaultValue="Get started with your sample add-in!" />
76+
<bt:String id="Contoso.Group1Label" DefaultValue="Commands Group" />
77+
<bt:String id="Contoso.TaskpaneButton.Label" DefaultValue="Show Taskpane" />
78+
</bt:ShortStrings>
79+
<bt:LongStrings>
80+
<bt:String id="Contoso.GetStarted.Description" DefaultValue="Your sample add-in loaded succesfully. Go to the HOME tab and click the 'Show Taskpane' button to get started." />
81+
<bt:String id="Contoso.TaskpaneButton.Tooltip" DefaultValue="Click to Show a Taskpane" />
82+
</bt:LongStrings>
83+
</Resources>
84+
</VersionOverrides>
85+
</OfficeApp>

manifest.powerpoint.xml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="TaskPaneApp">
3+
<Id>05c2e1c9-3e1d-406e-9a91-e9ac64854143</Id>
4+
<Version>1.0.0.0</Version>
5+
<ProviderName>Contoso</ProviderName>
6+
<DefaultLocale>en-US</DefaultLocale>
7+
<DisplayName DefaultValue="Contoso Task Pane Add-in"/>
8+
<Description DefaultValue="A template to get started."/>
9+
<IconUrl DefaultValue="https://localhost:3000/assets/icon-32.png"/>
10+
<HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/icon-80.png"/>
11+
<SupportUrl DefaultValue="https://www.contoso.com/help"/>
12+
<AppDomains>
13+
<AppDomain>contoso.com</AppDomain>
14+
</AppDomains>
15+
<Hosts>
16+
<Host Name="Presentation"/>
17+
</Hosts>
18+
<DefaultSettings>
19+
<SourceLocation DefaultValue="https://localhost:3000/taskpane.html"/>
20+
</DefaultSettings>
21+
<Permissions>ReadWriteDocument</Permissions>
22+
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
23+
<Hosts>
24+
<Host xsi:type="Presentation">
25+
<DesktopFormFactor>
26+
<GetStarted>
27+
<Title resid="Contoso.GetStarted.Title"/>
28+
<Description resid="Contoso.GetStarted.Description"/>
29+
<LearnMoreUrl resid="Contoso.GetStarted.LearnMoreUrl"/>
30+
</GetStarted>
31+
<FunctionFile resid="Contoso.Commands.Url" />
32+
<ExtensionPoint xsi:type="PrimaryCommandSurface">
33+
<OfficeTab id="TabHome">
34+
<Group id="Contoso.Group1">
35+
<Label resid="Contoso.Group1Label" />
36+
<Icon>
37+
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
38+
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
39+
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
40+
</Icon>
41+
<Control xsi:type="Button" id="Contoso.TaskpaneButton">
42+
<Label resid="Contoso.TaskpaneButton.Label" />
43+
<Supertip>
44+
<Title resid="Contoso.TaskpaneButton.Label" />
45+
<Description resid="Contoso.TaskpaneButton.Tooltip" />
46+
</Supertip>
47+
<Icon>
48+
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
49+
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
50+
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
51+
</Icon>
52+
<Action xsi:type="ShowTaskpane">
53+
<TaskpaneId>ButtonId1</TaskpaneId>
54+
<SourceLocation resid="Contoso.Taskpane.Url" />
55+
</Action>
56+
</Control>
57+
</Group>
58+
</OfficeTab>
59+
</ExtensionPoint>
60+
</DesktopFormFactor>
61+
</Host>
62+
</Hosts>
63+
<Resources>
64+
<bt:Images>
65+
<bt:Image id="Contoso.tpicon_16x16" DefaultValue="https://localhost:3000/assets/icon-16.png"/>
66+
<bt:Image id="Contoso.tpicon_32x32" DefaultValue="https://localhost:3000/assets/icon-32.png"/>
67+
<bt:Image id="Contoso.tpicon_80x80" DefaultValue="https://localhost:3000/assets/icon-80.png"/>
68+
</bt:Images>
69+
<bt:Urls>
70+
<bt:Url id="Contoso.GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812" />
71+
<bt:Url id="Contoso.Commands.Url" DefaultValue="https://localhost:3000/commands.html" />
72+
<bt:Url id="Contoso.Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html" />
73+
</bt:Urls>
74+
<bt:ShortStrings>
75+
<bt:String id="Contoso.GetStarted.Title" DefaultValue="Get started with your sample add-in!" />
76+
<bt:String id="Contoso.Group1Label" DefaultValue="Commands Group" />
77+
<bt:String id="Contoso.TaskpaneButton.Label" DefaultValue="Show Taskpane" />
78+
</bt:ShortStrings>
79+
<bt:LongStrings>
80+
<bt:String id="Contoso.GetStarted.Description" DefaultValue="Your sample add-in loaded succesfully. Go to the HOME tab and click the 'Show Taskpane' button to get started." />
81+
<bt:String id="Contoso.TaskpaneButton.Tooltip" DefaultValue="Click to Show a Taskpane" />
82+
</bt:LongStrings>
83+
</Resources>
84+
</VersionOverrides>
85+
</OfficeApp>

manifest.project.xml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="TaskPaneApp">
3+
<Id>05c2e1c9-3e1d-406e-9a91-e9ac64854143</Id>
4+
<Version>1.0.0.0</Version>
5+
<ProviderName>Contoso</ProviderName>
6+
<DefaultLocale>en-US</DefaultLocale>
7+
<DisplayName DefaultValue="Contoso Task Pane Add-in"/>
8+
<Description DefaultValue="A template to get started."/>
9+
<IconUrl DefaultValue="https://localhost:3000/assets/icon-32.png"/>
10+
<HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/icon-80.png"/>
11+
<SupportUrl DefaultValue="https://www.contoso.com/help"/>
12+
<AppDomains>
13+
<AppDomain>contoso.com</AppDomain>
14+
</AppDomains>
15+
<Hosts>
16+
<Host Name="Project"/>
17+
</Hosts>
18+
<DefaultSettings>
19+
<SourceLocation DefaultValue="https://localhost:3000/taskpane.html"/>
20+
</DefaultSettings>
21+
<Permissions>ReadWriteDocument</Permissions>
22+
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
23+
<Hosts>
24+
<Host xsi:type="Project">
25+
<DesktopFormFactor>
26+
<GetStarted>
27+
<Title resid="Contoso.GetStarted.Title"/>
28+
<Description resid="Contoso.GetStarted.Description"/>
29+
<LearnMoreUrl resid="Contoso.GetStarted.LearnMoreUrl"/>
30+
</GetStarted>
31+
<FunctionFile resid="Contoso.Commands.Url" />
32+
<ExtensionPoint xsi:type="PrimaryCommandSurface">
33+
<OfficeTab id="TabHome">
34+
<Group id="Contoso.Group1">
35+
<Label resid="Contoso.Group1Label" />
36+
<Icon>
37+
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
38+
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
39+
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
40+
</Icon>
41+
<Control xsi:type="Button" id="Contoso.TaskpaneButton">
42+
<Label resid="Contoso.TaskpaneButton.Label" />
43+
<Supertip>
44+
<Title resid="Contoso.TaskpaneButton.Label" />
45+
<Description resid="Contoso.TaskpaneButton.Tooltip" />
46+
</Supertip>
47+
<Icon>
48+
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
49+
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
50+
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
51+
</Icon>
52+
<Action xsi:type="ShowTaskpane">
53+
<TaskpaneId>ButtonId1</TaskpaneId>
54+
<SourceLocation resid="Contoso.Taskpane.Url" />
55+
</Action>
56+
</Control>
57+
</Group>
58+
</OfficeTab>
59+
</ExtensionPoint>
60+
</DesktopFormFactor>
61+
</Host>
62+
</Hosts>
63+
<Resources>
64+
<bt:Images>
65+
<bt:Image id="Contoso.tpicon_16x16" DefaultValue="https://localhost:3000/assets/icon-16.png"/>
66+
<bt:Image id="Contoso.tpicon_32x32" DefaultValue="https://localhost:3000/assets/icon-32.png"/>
67+
<bt:Image id="Contoso.tpicon_80x80" DefaultValue="https://localhost:3000/assets/icon-80.png"/>
68+
</bt:Images>
69+
<bt:Urls>
70+
<bt:Url id="Contoso.GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812" />
71+
<bt:Url id="Contoso.Commands.Url" DefaultValue="https://localhost:3000/commands.html" />
72+
<bt:Url id="Contoso.Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html" />
73+
</bt:Urls>
74+
<bt:ShortStrings>
75+
<bt:String id="Contoso.GetStarted.Title" DefaultValue="Get started with your sample add-in!" />
76+
<bt:String id="Contoso.Group1Label" DefaultValue="Commands Group" />
77+
<bt:String id="Contoso.TaskpaneButton.Label" DefaultValue="Show Taskpane" />
78+
</bt:ShortStrings>
79+
<bt:LongStrings>
80+
<bt:String id="Contoso.GetStarted.Description" DefaultValue="Your sample add-in loaded succesfully. Go to the HOME tab and click the 'Show Taskpane' button to get started." />
81+
<bt:String id="Contoso.TaskpaneButton.Tooltip" DefaultValue="Click to Show a Taskpane" />
82+
</bt:LongStrings>
83+
</Resources>
84+
</VersionOverrides>
85+
</OfficeApp>

0 commit comments

Comments
 (0)