diff --git a/outllook_pal_tools/outllook_pal_toolsManifest/outllook_pal_tools.xml b/outllook_pal_tools/outllook_pal_toolsManifest/outllook_pal_tools.xml index 8304efa..ab95cad 100644 --- a/outllook_pal_tools/outllook_pal_toolsManifest/outllook_pal_tools.xml +++ b/outllook_pal_tools/outllook_pal_toolsManifest/outllook_pal_tools.xml @@ -41,7 +41,7 @@
- + 250
@@ -131,7 +131,7 @@ - + diff --git a/outllook_pal_toolsWeb/Functions/Commands.html b/outllook_pal_toolsWeb/Functions/Commands.html new file mode 100644 index 0000000..136e415 --- /dev/null +++ b/outllook_pal_toolsWeb/Functions/Commands.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/outllook_pal_toolsWeb/commands.js b/outllook_pal_toolsWeb/Functions/Commands.js similarity index 100% rename from outllook_pal_toolsWeb/commands.js rename to outllook_pal_toolsWeb/Functions/Commands.js diff --git a/outllook_pal_toolsWeb/Functions/FunctionFile.html b/outllook_pal_toolsWeb/Functions/FunctionFile.html deleted file mode 100644 index 4982e80..0000000 --- a/outllook_pal_toolsWeb/Functions/FunctionFile.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/outllook_pal_toolsWeb/Functions/FunctionFile.js b/outllook_pal_toolsWeb/Functions/FunctionFile.js deleted file mode 100644 index 98b390a..0000000 --- a/outllook_pal_toolsWeb/Functions/FunctionFile.js +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. - * See LICENSE in the project root for license information. - */ - -/* global global, Office, self, window, Word */ - -Office.onReady(() => { - // If needed, Office.js is ready to be called -}); - -/** - * Writes the event source id to the document when ExecuteFunction runs. - * @param event {Office.AddinCommands.Event} - */ - -async function writeValue(event) { - Word.run(async (context) => { - // insert a paragraph at the end of the document. - const paragraph = context.document.body.insertParagraph( - "ExecuteFunction works. Button ID=" + event.source.id, - Word.InsertLocation.end - ); - - // change the paragraph color to blue. - paragraph.font.color = "blue"; - - await context.sync(); - }); - - // Calling event.completed is required. event.completed lets the platform know that processing has completed. - event.completed(); -} - -function getGlobal() { - return typeof self !== "undefined" - ? self - : typeof window !== "undefined" - ? window - : typeof global !== "undefined" - ? global - : undefined; -} - -const g = getGlobal(); - -Office.actions.associate("writeValue", writeValue); - -//Office.initialize = function () { -//} - -//// Funzione helper per aggiungere un messaggio di stato alla barra informazioni. -//function statusUpdate(icon, text) { -// Office.context.mailbox.item.notificationMessages.replaceAsync("status", { -// type: "informationalMessage", -// icon: icon, -// message: text, -// persistent: false -// }); -//} - -//function defaultStatus(event) { -// statusUpdate("icon16" , "Hello World!"); -//} \ No newline at end of file diff --git a/outllook_pal_toolsWeb/MessageRead.css b/outllook_pal_toolsWeb/MessageRead.css deleted file mode 100644 index 2f1d87b..0000000 --- a/outllook_pal_toolsWeb/MessageRead.css +++ /dev/null @@ -1,5 +0,0 @@ -/*Stile specifico della pagina */ - -.padding { - padding: 15px; -} \ No newline at end of file diff --git a/outllook_pal_toolsWeb/MessageRead.html b/outllook_pal_toolsWeb/MessageRead.html deleted file mode 100644 index 0b97a1f..0000000 --- a/outllook_pal_toolsWeb/MessageRead.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Questo esempio di add-in per Outlook visualizza le proprietà dell'elemento selezionato. Zio No No No

-
-
-

All properties

-
-
-
-
-
-

Office.context.mailbox.Item properties

-
-
-
Property
-
Value
-
-
-
dateTimeCreated
-
-
-
-
dateTimeModified
-
-
-
-
itemClass
-
-
-
-
itemId
-
-
-
-
itemType
-
-
-
-
-
- - -
- -
-
-
-
-
-
-
-
- -
-
- -
- - \ No newline at end of file diff --git a/outllook_pal_toolsWeb/MessageRead.js b/outllook_pal_toolsWeb/MessageRead.js deleted file mode 100644 index 8f1b54c..0000000 --- a/outllook_pal_toolsWeb/MessageRead.js +++ /dev/null @@ -1,90 +0,0 @@ -(function () { - "use strict"; - - var messageBanner; - - // La funzione di inizializzazione di Office deve essere eseguita ogni volta che viene caricata una nuova pagina. - Office.initialize = function (reason) { - $(document).ready(function () { - var element = document.querySelector('.MessageBanner'); - messageBanner = new components.MessageBanner(element); - messageBanner.hideBanner(); - loadProps(); - }); - }; - - // Accetta una matrice di oggetti AttachmentDetails e crea un elenco di nomi di allegato separati da un'interruzione di riga. - function buildAttachmentsString(attachments) { - if (attachments && attachments.length > 0) { - var returnString = ""; - - for (var i = 0; i < attachments.length; i++) { - if (i > 0) { - returnString = returnString + "
"; - } - returnString = returnString + attachments[i].name; - } - - return returnString; - } - - return "None"; - } - - // Consente di formattare un oggetto EmailAddressDetails come - // Nome Cognome - function buildEmailAddressString(address) { - return address.displayName + " <" + address.emailAddress + ">"; - } - - // Accetta una matrice di oggetti EmailAddressDetails e - // crea un elenco di stringhe formattate separate da un'interruzione di riga - function buildEmailAddressesString(addresses) { - if (addresses && addresses.length > 0) { - var returnString = ""; - - for (var i = 0; i < addresses.length; i++) { - if (i > 0) { - returnString = returnString + "
"; - } - returnString = returnString + buildEmailAddressString(addresses[i]); - } - - return returnString; - } - - return "None"; - } - - // Carica prima le proprietà dall'oggetto di base Item e quindi - // le proprietà specifiche del messaggio. - function loadProps() { - var item = Office.context.mailbox.item; - - $('#dateTimeCreated').text(item.dateTimeCreated.toLocaleString()); - $('#dateTimeModified').text(item.dateTimeModified.toLocaleString()); - $('#itemClass').text(item.itemClass); - $('#itemId').text(item.itemId); - $('#itemType').text(item.itemType); - - $('#message-props').show(); - - $('#attachments').html(buildAttachmentsString(item.attachments)); - $('#cc').html(buildEmailAddressesString(item.cc)); - $('#conversationId').text(item.conversationId); - $('#from').html(buildEmailAddressString(item.from)); - $('#internetMessageId').text(item.internetMessageId); - $('#normalizedSubject').text(item.normalizedSubject); - $('#sender').html(buildEmailAddressString(item.sender)); - $('#subject').text(item.subject); - $('#to').html(buildEmailAddressesString(item.to)); - } - - // Funzione helper per la visualizzazione delle notifiche - function showNotification(header, content) { - $("#notificationHeader").text(header); - $("#notificationBody").text(content); - messageBanner.showBanner(); - messageBanner.toggleExpansion(); - } -})(); \ No newline at end of file diff --git a/outllook_pal_toolsWeb/commands.html b/outllook_pal_toolsWeb/commands.html deleted file mode 100644 index 935b24d..0000000 --- a/outllook_pal_toolsWeb/commands.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/outllook_pal_toolsWeb/outllook_pal_toolsWeb.csproj b/outllook_pal_toolsWeb/outllook_pal_toolsWeb.csproj index 262875e..fe9016c 100644 --- a/outllook_pal_toolsWeb/outllook_pal_toolsWeb.csproj +++ b/outllook_pal_toolsWeb/outllook_pal_toolsWeb.csproj @@ -68,7 +68,7 @@ - + @@ -108,8 +108,6 @@ - - @@ -123,10 +121,7 @@ - - - - + @@ -573,9 +568,6 @@ - - - diff --git a/outllook_pal_toolsWeb/taskpane.css b/outllook_pal_toolsWeb/taskpane.css deleted file mode 100644 index 825b764..0000000 --- a/outllook_pal_toolsWeb/taskpane.css +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. - * See LICENSE in the project root for license information. - */ - -html, -body { - width: 100%; - height: 100%; - margin: 0; - padding: 0; -} - -ul { - margin: 0; - padding: 0; -} - -.ms-welcome__header { - padding: 20px; - padding-bottom: 30px; - padding-top: 100px; - display: -webkit-flex; - display: flex; - -webkit-flex-direction: column; - flex-direction: column; - align-items: center; -} - -.ms-welcome__main { - display: -webkit-flex; - display: flex; - -webkit-flex-direction: column; - flex-direction: column; - -webkit-flex-wrap: nowrap; - flex-wrap: nowrap; - -webkit-align-items: center; - align-items: center; - -webkit-flex: 1 0 0; - flex: 1 0 0; - padding: 10px 20px; -} - - .ms-welcome__main > h2 { - width: 100%; - text-align: center; - } - -.ms-welcome__features { - list-style-type: none; - margin-top: 20px; -} - - .ms-welcome__features.ms-List .ms-ListItem { - padding-bottom: 20px; - display: -webkit-flex; - display: flex; - } - - .ms-welcome__features.ms-List .ms-ListItem > .ms-Icon { - margin-right: 10px; - } - -.ms-welcome__action.ms-Button--hero { - margin-top: 30px; -} - -.ms-Button.ms-Button--hero .ms-Button-label { - color: #0078d7; -} - -.ms-Button.ms-Button--hero:hover .ms-Button-label, -.ms-Button.ms-Button--hero:focus .ms-Button-label { - color: #005a9e; - cursor: pointer; -} - -b { - font-weight: bold; -} \ No newline at end of file diff --git a/outllook_pal_toolsWeb/taskpane.html b/outllook_pal_toolsWeb/taskpane.html deleted file mode 100644 index 42d01c2..0000000 --- a/outllook_pal_toolsWeb/taskpane.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - - - - - - - - - - - Contoso Task Pane Add-in - - - - - - - - - - - - - - - - - - - -
- Contoso -

Welcome

-
-
-

Please sideload your add-in to see app body.

-
-
-

Choose Hello to create a new paragraph saying "Hello World".

- -

- -
- - - \ No newline at end of file diff --git a/outllook_pal_toolsWeb/taskpane.js b/outllook_pal_toolsWeb/taskpane.js deleted file mode 100644 index 78776e3..0000000 --- a/outllook_pal_toolsWeb/taskpane.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. - * See LICENSE in the project root for license information. - */ - -/* global document, Office, Word */ - -Office.onReady((info) => { - if (info.host === Office.HostType.Word) { - document.getElementById("sideload-msg").style.display = "none"; - document.getElementById("app-body").style.display = "flex"; - document.getElementById("run").onclick = run; - } -}); - -async function run() { - return Word.run(async (context) => { - /** - * Insert your Word code here - */ - - // insert a paragraph at the end of the document. - const paragraph = context.document.body.insertParagraph("Hello World", Word.InsertLocation.end); - - // change the paragraph color to blue. - paragraph.font.color = "blue"; - - await context.sync(); - }); -} \ No newline at end of file