Browse Source

set core classes to public, fixed a bug in the search help URL and removed the DisplayCatalog menu command

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5841 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Mathias Simmack 15 years ago
parent
commit
a4dc802016
  1. 8
      src/AddIns/Misc/HelpViewer/HelpViewer.addin
  2. 9
      src/AddIns/Misc/HelpViewer/Source/Commands.cs
  3. 6
      src/AddIns/Misc/HelpViewer/Source/Core/DisplayHelp.cs
  4. 2
      src/AddIns/Misc/HelpViewer/Source/Core/Help3Environment.cs
  5. 2
      src/AddIns/Misc/HelpViewer/Source/Core/HelpLibraryAgent.cs
  6. 2
      src/AddIns/Misc/HelpViewer/Source/Core/HelpLibraryManager.cs

8
src/AddIns/Misc/HelpViewer/HelpViewer.addin

@ -22,12 +22,4 @@ @@ -22,12 +22,4 @@
<Path name = "/SharpDevelop/Dialogs/OptionsDialog/ToolsOptions">
<OptionPanel id = "Help3Options" label = "Microsoft Help Viewer" class = "MSHelpSystem.Help3OptionsPanel" />
</Path>
<Path name = "/SharpDevelop/Workbench/MainMenu/Help">
<MenuItem id = "Help3DisplayCatalog"
class = "MSHelpSystem.Commands.DisplayCatalogCommand"
label = "Display Help catalog"
shortcut = "Control|Alt|F1"
insertbefore = "Separator1" />
</Path>
</AddIn>

9
src/AddIns/Misc/HelpViewer/Source/Commands.cs

@ -36,13 +36,4 @@ namespace MSHelpSystem.Commands @@ -36,13 +36,4 @@ namespace MSHelpSystem.Commands
}
}
}
public class DisplayCatalogCommand : AbstractMenuCommand
{
public override void Run()
{
LoggingService.Info("Help 3.0: Calling menu command \"DisplayHelp.Catalog()\"");
DisplayHelp.Catalog();
}
}
}

6
src/AddIns/Misc/HelpViewer/Source/Core/DisplayHelp.cs

@ -10,7 +10,7 @@ using MSHelpSystem.Helper; @@ -10,7 +10,7 @@ using MSHelpSystem.Helper;
namespace MSHelpSystem.Core
{
internal sealed class DisplayHelp
public sealed class DisplayHelp
{
DisplayHelp()
{
@ -89,7 +89,7 @@ namespace MSHelpSystem.Core @@ -89,7 +89,7 @@ namespace MSHelpSystem.Core
if (catalog == null) {
throw new ArgumentNullException("c");
}
string helpSearchUrl = string.Format(@"ms-xhelp://method=search&query={3}&product={0}&productVersion={1}&locale={2}",
string helpSearchUrl = string.Format(@"ms-xhelp://?method=search&query={3}&product={0}&productVersion={1}&locale={2}",
catalog.ProductCode, catalog.ProductVersion, catalog.Locale, searchWords.Replace(" ", "+"));
LoggingService.Debug(string.Format("Help 3.0: {0}", helpSearchUrl));
DisplayLocalHelp(helpSearchUrl);
@ -121,7 +121,7 @@ namespace MSHelpSystem.Core @@ -121,7 +121,7 @@ namespace MSHelpSystem.Core
static void DisplayLocalHelp(string arguments)
{
// TODO: set "embedded" to TRUE if we have a TOC control or something similar
DisplayLocalHelp(arguments, false);
DisplayLocalHelp(arguments, true);
}
static void DisplayLocalHelp(string arguments, bool embedded)

2
src/AddIns/Misc/HelpViewer/Source/Core/Help3Environment.cs

@ -7,7 +7,7 @@ using MSHelpSystem.Helper; @@ -7,7 +7,7 @@ using MSHelpSystem.Helper;
namespace MSHelpSystem.Core
{
internal sealed class Help3Environment
public sealed class Help3Environment
{
Help3Environment()
{

2
src/AddIns/Misc/HelpViewer/Source/Core/HelpLibraryAgent.cs

@ -6,7 +6,7 @@ using ICSharpCode.Core; @@ -6,7 +6,7 @@ using ICSharpCode.Core;
namespace MSHelpSystem.Core
{
internal sealed class HelpLibraryAgent
public sealed class HelpLibraryAgent
{
HelpLibraryAgent()
{

2
src/AddIns/Misc/HelpViewer/Source/Core/HelpLibraryManager.cs

@ -7,7 +7,7 @@ using ICSharpCode.Core; @@ -7,7 +7,7 @@ using ICSharpCode.Core;
namespace MSHelpSystem.Core
{
internal sealed class HelpLibraryManager
public sealed class HelpLibraryManager
{
HelpLibraryManager()
{

Loading…
Cancel
Save