Browse Source

Help 2.0: small changes in the Dynamic Help browser scripting

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@895 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Mathias Simmack 20 years ago
parent
commit
30b6b7ed1e
  1. 22
      src/AddIns/Misc/HtmlHelp2/Project/src/BaseControls/DynamicHelpPad.cs

22
src/AddIns/Misc/HtmlHelp2/Project/src/BaseControls/DynamicHelpPad.cs

@ -444,10 +444,12 @@ namespace HtmlHelp2 @@ -444,10 +444,12 @@ namespace HtmlHelp2
if (!this.DoesLinkExist(contentSpan, topicName, topicUrl))
{
HtmlElement newLink = this.CreateNewLink(topicUrl, topicName);
HtmlElement br = this.CreateABreak();
if (newLink != null)
{
contentSpan.AppendChild(newLink);
contentSpan.AppendChild(this.CreateABreak());
if (br != null) contentSpan.AppendChild(br);
}
}
@ -456,8 +458,12 @@ namespace HtmlHelp2 @@ -456,8 +458,12 @@ namespace HtmlHelp2
}
}
axWebBrowser.Document.Body.InsertAdjacentElement(HtmlElementInsertionOrientation.BeforeEnd,
this.CreateABreak());
try
{
axWebBrowser.Document.Body.InsertAdjacentElement(HtmlElementInsertionOrientation.BeforeEnd,
this.CreateABreak());
}
catch {}
}
HtmlElement linkContent = null;
@ -467,9 +473,13 @@ namespace HtmlHelp2 @@ -467,9 +473,13 @@ namespace HtmlHelp2
{
axWebBrowser.Document.Body.InsertAdjacentElement(HtmlElementInsertionOrientation.BeforeEnd,
htmlSection);
linkContent.AppendChild(this.CreateNewLink(topicUrl, topicName));
linkContent.AppendChild(this.CreateABreak());
HtmlElement newLink = this.CreateNewLink(topicUrl, topicName);
HtmlElement br = this.CreateABreak();
if (newLink != null) linkContent.AppendChild(newLink);
if (br != null) linkContent.AppendChild(br);
this.internalIndex++;
}
}

Loading…
Cancel
Save