diff --git a/Reports.Viewer/Reports.Viewer/PluginResources.Designer.cs b/Reports.Viewer/Reports.Viewer/PluginResources.Designer.cs index 3325772182..de444ff1bd 100644 --- a/Reports.Viewer/Reports.Viewer/PluginResources.Designer.cs +++ b/Reports.Viewer/Reports.Viewer/PluginResources.Designer.cs @@ -19,7 +19,7 @@ namespace Reports.Viewer.Plus { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class PluginResources { @@ -80,6 +80,16 @@ internal static System.Drawing.Icon Delete { } } + /// + /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + /// + internal static System.Drawing.Icon Download { + get { + object obj = ResourceManager.GetObject("Download", resourceCulture); + return ((System.Drawing.Icon)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// @@ -99,6 +109,16 @@ internal static string ErrorMessage_UnableToLocateXmlFile { } } + /// + /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + /// + internal static System.Drawing.Icon ForumIcon { + get { + object obj = ResourceManager.GetObject("ForumIcon", resourceCulture); + return ((System.Drawing.Icon)(obj)); + } + } + /// /// Looks up a localized string similar to Group Name. /// @@ -255,6 +275,16 @@ internal static System.Drawing.Icon PrintPreview { } } + /// + /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + /// + internal static System.Drawing.Icon Question { + get { + object obj = ResourceManager.GetObject("Question", resourceCulture); + return ((System.Drawing.Icon)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// @@ -539,6 +569,24 @@ internal static string StatusLabel_ReportsSelected { } } + /// + /// Looks up a localized string similar to {0} TellMe provider. + /// + internal static string TellMe_Provider { + get { + return ResourceManager.GetString("TellMe_Provider", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} results. + /// + internal static string TellMe_Provider_Results { + get { + return ResourceManager.GetString("TellMe_Provider_Results", resourceCulture); + } + } + /// /// Looks up a localized string similar to All. /// diff --git a/Reports.Viewer/Reports.Viewer/PluginResources.resx b/Reports.Viewer/Reports.Viewer/PluginResources.resx index a0b257ac22..c2836c2501 100644 --- a/Reports.Viewer/Reports.Viewer/PluginResources.resx +++ b/Reports.Viewer/Reports.Viewer/PluginResources.resx @@ -301,4 +301,19 @@ Unable to locate report {0} + + resources\download.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + resources\forumicon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + resources\question.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + {0} TellMe provider + + + {0} results + \ No newline at end of file diff --git a/Reports.Viewer/Reports.Viewer/Properties/AssemblyInfo.cs b/Reports.Viewer/Reports.Viewer/Properties/AssemblyInfo.cs index 3a930aabe6..86fb50ba21 100644 --- a/Reports.Viewer/Reports.Viewer/Properties/AssemblyInfo.cs +++ b/Reports.Viewer/Reports.Viewer/Properties/AssemblyInfo.cs @@ -28,4 +28,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("3.0.0.0")] -[assembly: AssemblyFileVersion("3.0.0.3")] +[assembly: AssemblyFileVersion("3.0.1.0")] diff --git a/Reports.Viewer/Reports.Viewer/Reports.Viewer.csproj b/Reports.Viewer/Reports.Viewer/Reports.Viewer.csproj index b3148202a0..811af6d50f 100644 --- a/Reports.Viewer/Reports.Viewer/Reports.Viewer.csproj +++ b/Reports.Viewer/Reports.Viewer/Reports.Viewer.csproj @@ -42,10 +42,10 @@ - $(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.Desktop.Platform.Styles.dll + $(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.Desktop.Platform.Styles.dll - $(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.MultiSelectComboBox.dll + $(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.MultiSelectComboBox.dll @@ -107,6 +107,10 @@ + + + + @@ -137,44 +141,49 @@ - $(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.ProjectAutomation.Core.dll + $(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.ProjectAutomation.Core.dll - $(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.ProjectAutomation.FileBased.dll + $(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.ProjectAutomation.FileBased.dll - $(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.ProjectAutomation.Settings.dll + $(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.ProjectAutomation.Settings.dll - $(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.TranslationStudioAutomation.IntegrationApi.dll + $(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.TranslationStudioAutomation.IntegrationApi.dll - $(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.TranslationStudioAutomation.IntegrationApi.Extensions.dll + $(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.TranslationStudioAutomation.IntegrationApi.Extensions.dll - $(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.Core.Globalization.dll + $(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.Core.Globalization.dll - $(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.Core.Settings.dll + $(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.Core.Settings.dll - $(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.Desktop.IntegrationApi.dll + $(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.Desktop.IntegrationApi.dll - $(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.Desktop.IntegrationApi.Extensions.dll + $(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.Desktop.IntegrationApi.Extensions.dll - $(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.Desktop.Platform.Controls.dll + $(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.Desktop.Platform.Controls.dll - $(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.ProjectAutomation.AutomaticTasks.dll + $(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.ProjectAutomation.AutomaticTasks.dll - $(ProgramFiles)\Trados\Trados Studio\Studio17\Newtonsoft.Json.dll + $(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Newtonsoft.Json.dll + + + $(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.TellMe.ProviderApi.dll + + diff --git a/Reports.Viewer/Reports.Viewer/Resources/Download.ico b/Reports.Viewer/Reports.Viewer/Resources/Download.ico new file mode 100644 index 0000000000..e46190b941 Binary files /dev/null and b/Reports.Viewer/Reports.Viewer/Resources/Download.ico differ diff --git a/Reports.Viewer/Reports.Viewer/Resources/ForumIcon.ico b/Reports.Viewer/Reports.Viewer/Resources/ForumIcon.ico new file mode 100644 index 0000000000..7dde85663c Binary files /dev/null and b/Reports.Viewer/Reports.Viewer/Resources/ForumIcon.ico differ diff --git a/Reports.Viewer/Reports.Viewer/TellMe/AppStoreDownloadAction.cs b/Reports.Viewer/Reports.Viewer/TellMe/AppStoreDownloadAction.cs new file mode 100644 index 0000000000..34728d9161 --- /dev/null +++ b/Reports.Viewer/Reports.Viewer/TellMe/AppStoreDownloadAction.cs @@ -0,0 +1,25 @@ +using System.Diagnostics; +using System.Drawing; +using Sdl.TellMe.ProviderApi; + +namespace Reports.Viewer.Plus.TellMe +{ + public class AppStoreDownloadAction : AbstractTellMeAction + { + public override bool IsAvailable => true; + + public override string Category => string.Format(PluginResources.TellMe_Provider_Results, PluginResources.Plugin_Name); + + public override Icon Icon => PluginResources.Download; + + public AppStoreDownloadAction() + { + Name = string.Format("Download {0} from the AppStore", PluginResources.Plugin_Name); + } + + public override void Execute() + { + Process.Start("https://appstore.rws.com/Plugin/37"); + } + } +} diff --git a/Reports.Viewer/Reports.Viewer/TellMe/AppStoreForumAction.cs b/Reports.Viewer/Reports.Viewer/TellMe/AppStoreForumAction.cs new file mode 100644 index 0000000000..c31aacc196 --- /dev/null +++ b/Reports.Viewer/Reports.Viewer/TellMe/AppStoreForumAction.cs @@ -0,0 +1,25 @@ +using System.Diagnostics; +using System.Drawing; +using Sdl.TellMe.ProviderApi; + +namespace Reports.Viewer.Plus.TellMe +{ + public class AppStoreForumAction : AbstractTellMeAction + { + public override bool IsAvailable => true; + + public override string Category => string.Format(PluginResources.TellMe_Provider_Results, PluginResources.Plugin_Name); + + public override Icon Icon => PluginResources.ForumIcon; + + public AppStoreForumAction() + { + Name = "RWS Community AppStore Forum"; + } + + public override void Execute() + { + Process.Start("https://community.rws.com/product-groups/trados-portfolio/rws-appstore/f"); + } + } +} diff --git a/Reports.Viewer/Reports.Viewer/TellMe/CommunityWikiAction.cs b/Reports.Viewer/Reports.Viewer/TellMe/CommunityWikiAction.cs new file mode 100644 index 0000000000..44e1c2ef64 --- /dev/null +++ b/Reports.Viewer/Reports.Viewer/TellMe/CommunityWikiAction.cs @@ -0,0 +1,25 @@ +using System.Diagnostics; +using System.Drawing; +using Sdl.TellMe.ProviderApi; + +namespace Reports.Viewer.Plus.TellMe +{ + public class CommunityWikiAction : AbstractTellMeAction + { + public override bool IsAvailable => true; + + public override string Category => string.Format(PluginResources.TellMe_Provider_Results, PluginResources.Plugin_Name); + + public override Icon Icon => PluginResources.Question; + + public CommunityWikiAction() + { + Name = string.Format("{0} plugin wiki", PluginResources.Plugin_Name); + } + + public override void Execute() + { + Process.Start("https://community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/5519/reports-viewer-plus"); + } + } +} diff --git a/Reports.Viewer/Reports.Viewer/TellMe/TellMeProvider.cs b/Reports.Viewer/Reports.Viewer/TellMe/TellMeProvider.cs new file mode 100644 index 0000000000..6a6ef6a0fd --- /dev/null +++ b/Reports.Viewer/Reports.Viewer/TellMe/TellMeProvider.cs @@ -0,0 +1,25 @@ +using Sdl.TellMe.ProviderApi; + +namespace Reports.Viewer.Plus.TellMe +{ + [TellMeProvider] + public class TellMeProvider: ITellMeProvider + { + public string Name => string.Format(PluginResources.TellMe_Provider, PluginResources.Plugin_Name); + + public AbstractTellMeAction[] ProviderActions => new AbstractTellMeAction[] + { + new CommunityWikiAction + { + Keywords = new[] { "reports", "viewer", "plus", "community", "support", "wiki" } + }, + new AppStoreForumAction + { + Keywords = new[] { "reports", "viewer", "plus", "support", "forum" } + }, + new AppStoreDownloadAction + { + Keywords = new[] { "reports", "viewer", "plus", "store", "download", "appstore" }} + }; + } +} diff --git a/Reports.Viewer/Reports.Viewer/pluginpackage.manifest.xml b/Reports.Viewer/Reports.Viewer/pluginpackage.manifest.xml index 9632bbcfa7..ab2a2ff750 100644 --- a/Reports.Viewer/Reports.Viewer/pluginpackage.manifest.xml +++ b/Reports.Viewer/Reports.Viewer/pluginpackage.manifest.xml @@ -1,7 +1,7 @@  Reports Viewer Plus - 3.0.0.3 + 3.0.1.0 Reports Viewer Plus Trados AppStore Team