Help files

pull/10/head
David Hall 2017-11-30 14:37:28 -07:00 committed by GitHub
parent 19c55c6ad4
commit 0cce23c1a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
75 changed files with 2303 additions and 0 deletions

BIN
docs/icons/AlertCaution.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

BIN
docs/icons/AlertNote.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 503 B

BIN
docs/icons/CFW.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 588 B

BIN
docs/icons/CodeExample.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

BIN
docs/icons/Help.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
docs/icons/Search.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

BIN
docs/icons/TocClose.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 893 B

BIN
docs/icons/TocCollapsed.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 838 B

BIN
docs/icons/TocExpanded.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 837 B

BIN
docs/icons/TocOpen.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 896 B

BIN
docs/icons/Vanara48x48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
docs/icons/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
docs/icons/privclass.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

BIN
docs/icons/privdelegate.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 B

BIN
docs/icons/privevent.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 B

BIN
docs/icons/privfield.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 B

BIN
docs/icons/privmethod.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B

BIN
docs/icons/privproperty.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 630 B

BIN
docs/icons/protclass.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 B

BIN
docs/icons/protdelegate.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 B

BIN
docs/icons/protevent.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 564 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
docs/icons/protfield.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 570 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 562 B

BIN
docs/icons/protmethod.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

BIN
docs/icons/protoperator.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 547 B

BIN
docs/icons/protproperty.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 B

BIN
docs/icons/pubclass.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

BIN
docs/icons/pubdelegate.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B

BIN
docs/icons/pubevent.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

BIN
docs/icons/pubextension.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 B

BIN
docs/icons/pubfield.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 B

BIN
docs/icons/pubinterface.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

BIN
docs/icons/pubmethod.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 B

BIN
docs/icons/puboperator.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
docs/icons/pubproperty.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 609 B

BIN
docs/icons/pubstructure.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 595 B

BIN
docs/icons/slMobile.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 909 B

BIN
docs/icons/static.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 879 B

BIN
docs/icons/xna.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

View File

@ -0,0 +1,624 @@
//===============================================================================================================
// System : Sandcastle Help File Builder
// File : branding-Website.js
// Author : Eric Woodruff (Eric@EWoodruff.us)
// Updated : 03/04/2015
// Note : Copyright 2014-2015, Eric Woodruff, All rights reserved
// Portions Copyright 2014 Sam Harwell, All rights reserved
//
// This file contains the methods necessary to implement the lightweight TOC and search functionality.
//
// This code is published under the Microsoft Public License (Ms-PL). A copy of the license should be
// distributed with the code. It can also be found at the project website: https://GitHub.com/EWSoftware/SHFB. This
// notice, the author's name, and all copyright notices must remain intact in all applications, documentation,
// and source files.
//
// Date Who Comments
// ==============================================================================================================
// 05/04/2014 EFW Created the code based on a combination of the lightweight TOC code from Sam Harwell and
// the existing search code from SHFB.
//===============================================================================================================
// Width of the TOC
var tocWidth;
// Search method (0 = To be determined, 1 = ASPX, 2 = PHP, anything else = client-side script
var searchMethod = 0;
// Table of contents script
// Initialize the TOC by restoring its width from the cookie if present
function InitializeToc()
{
tocWidth = parseInt(GetCookie("TocWidth", "280"));
ResizeToc();
$(window).resize(SetNavHeight)
}
function SetNavHeight()
{
$leftNav = $("#leftNav")
$topicContent = $("#TopicContent")
leftNavPadding = $leftNav.outerHeight() - $leftNav.height()
contentPadding = $topicContent.outerHeight() - $topicContent.height()
// want outer height of left navigation div to match outer height of content
leftNavHeight = $topicContent.outerHeight() - leftNavPadding
$leftNav.css("min-height", leftNavHeight + "px")
}
// Increase the TOC width
function OnIncreaseToc()
{
if(tocWidth < 1)
tocWidth = 280;
else
tocWidth += 100;
if(tocWidth > 680)
tocWidth = 0;
ResizeToc();
SetCookie("TocWidth", tocWidth);
}
// Reset the TOC to its default width
function OnResetToc()
{
tocWidth = 0;
ResizeToc();
SetCookie("TocWidth", tocWidth);
}
// Resize the TOC width
function ResizeToc()
{
var toc = document.getElementById("leftNav");
if(toc)
{
// Set TOC width
toc.style.width = tocWidth + "px";
var leftNavPadding = 10;
document.getElementById("TopicContent").style.marginLeft = (tocWidth + leftNavPadding) + "px";
// Position images
document.getElementById("TocResize").style.left = (tocWidth + leftNavPadding) + "px";
// Hide/show increase TOC width image
document.getElementById("ResizeImageIncrease").style.display = (tocWidth >= 680) ? "none" : "";
// Hide/show reset TOC width image
document.getElementById("ResizeImageReset").style.display = (tocWidth < 680) ? "none" : "";
}
SetNavHeight()
}
// Toggle a TOC entry between its collapsed and expanded state
function Toggle(item)
{
var isExpanded = $(item).hasClass("tocExpanded");
$(item).toggleClass("tocExpanded tocCollapsed");
if(isExpanded)
{
Collapse($(item).parent());
}
else
{
var childrenLoaded = $(item).parent().attr("data-childrenloaded");
if(childrenLoaded)
{
Expand($(item).parent());
}
else
{
var tocid = $(item).next().attr("tocid");
$.ajax({
url: "../toc/" + tocid + ".xml",
async: true,
dataType: "xml",
success: function(data)
{
BuildChildren($(item).parent(), data);
}
});
}
}
}
// HTML encode a value for use on the page
function HtmlEncode(value)
{
// Create an in-memory div, set it's inner text (which jQuery automatically encodes) then grab the encoded
// contents back out. The div never exists on the page.
return $('<div/>').text(value).html();
}
// Build the child entries of a TOC entry
function BuildChildren(tocDiv, data)
{
var childLevel = +tocDiv.attr("data-toclevel") + 1;
var childTocLevel = childLevel >= 10 ? 10 : childLevel;
var elements = data.getElementsByTagName("HelpTOCNode");
var isRoot = true;
if(data.getElementsByTagName("HelpTOC").length == 0)
{
// The first node is the root node of this group, don't show it again
isRoot = false;
}
for(var i = elements.length - 1; i > 0 || (isRoot && i == 0); i--)
{
var childHRef, childId = elements[i].getAttribute("Url");
if(childId != null && childId.length > 5)
{
// The Url attribute has the form "html/{childId}.htm"
childHRef = childId.substring(5, childId.length);
childId = childId.substring(5, childId.lastIndexOf("."));
}
else
{
// The Id attribute is in raw form. There is no URL (empty container node). In this case, we'll
// just ignore it and go nowhere. It's a rare case that isn't worth trying to get the first child.
// Instead, we'll just expand the node (see below).
childHRef = "#";
childId = elements[i].getAttribute("Id");
}
var existingItem = null;
tocDiv.nextAll().each(function()
{
if(!existingItem && $(this).children().last("a").attr("tocid") == childId)
{
existingItem = $(this);
}
});
if(existingItem != null)
{
// First move the children of the existing item
var existingChildLevel = +existingItem.attr("data-toclevel");
var doneMoving = false;
var inserter = tocDiv;
existingItem.nextAll().each(function()
{
if(!doneMoving && +$(this).attr("data-toclevel") > existingChildLevel)
{
inserter.after($(this));
inserter = $(this);
$(this).attr("data-toclevel", +$(this).attr("data-toclevel") + childLevel - existingChildLevel);
if($(this).hasClass("current"))
$(this).attr("class", "toclevel" + (+$(this).attr("data-toclevel") + " current"));
else
$(this).attr("class", "toclevel" + (+$(this).attr("data-toclevel")));
}
else
{
doneMoving = true;
}
});
// Now move the existing item itself
tocDiv.after(existingItem);
existingItem.attr("data-toclevel", childLevel);
existingItem.attr("class", "toclevel" + childLevel);
}
else
{
var hasChildren = elements[i].getAttribute("HasChildren");
var childTitle = HtmlEncode(elements[i].getAttribute("Title"));
var expander = "";
if(hasChildren)
expander = "<a class=\"tocCollapsed\" onclick=\"javascript: Toggle(this);\" href=\"#!\"></a>";
var text = "<div class=\"toclevel" + childTocLevel + "\" data-toclevel=\"" + childLevel + "\">" +
expander + "<a data-tochassubtree=\"" + hasChildren + "\" href=\"" + childHRef + "\" title=\"" +
childTitle + "\" tocid=\"" + childId + "\"" +
(childHRef == "#" ? " onclick=\"javascript: Toggle(this.previousSibling);\"" : "") + ">" +
childTitle + "</a></div>";
tocDiv.after(text);
}
}
tocDiv.attr("data-childrenloaded", true);
}
// Collapse a TOC entry
function Collapse(tocDiv)
{
// Hide all the TOC elements after item, until we reach one with a data-toclevel less than or equal to the
// current item's value.
var tocLevel = +tocDiv.attr("data-toclevel");
var done = false;
tocDiv.nextAll().each(function()
{
if(!done && +$(this).attr("data-toclevel") > tocLevel)
{
$(this).hide();
}
else
{
done = true;
}
});
}
// Expand a TOC entry
function Expand(tocDiv)
{
// Show all the TOC elements after item, until we reach one with a data-toclevel less than or equal to the
// current item's value
var tocLevel = +tocDiv.attr("data-toclevel");
var done = false;
tocDiv.nextAll().each(function()
{
if(done)
{
return;
}
var childTocLevel = +$(this).attr("data-toclevel");
if(childTocLevel == tocLevel + 1)
{
$(this).show();
if($(this).children("a").first().hasClass("tocExpanded"))
{
Expand($(this));
}
}
else if(childTocLevel > tocLevel + 1)
{
// Ignore this node, handled by recursive calls
}
else
{
done = true;
}
});
}
// This is called to prepare for dragging the sizer div
function OnMouseDown(event)
{
document.addEventListener("mousemove", OnMouseMove, true);
document.addEventListener("mouseup", OnMouseUp, true);
event.preventDefault();
}
// Resize the TOC as the sizer is dragged
function OnMouseMove(event)
{
tocWidth = (event.clientX > 700) ? 700 : (event.clientX < 100) ? 100 : event.clientX;
ResizeToc();
}
// Finish the drag operation when the mouse button is released
function OnMouseUp(event)
{
document.removeEventListener("mousemove", OnMouseMove, true);
document.removeEventListener("mouseup", OnMouseUp, true);
SetCookie("TocWidth", tocWidth);
}
// Search functions
// Transfer to the search page from a topic
function TransferToSearchPage()
{
var searchText = document.getElementById("SearchTextBox").value.trim();
if(searchText.length != 0)
document.location.replace(encodeURI("../search.html?SearchText=" + searchText));
}
// Initiate a search when the search page loads
function OnSearchPageLoad()
{
var queryString = decodeURI(document.location.search);
if(queryString != "")
{
var idx, options = queryString.split(/[\?\=\&]/);
for(idx = 0; idx < options.length; idx++)
if(options[idx] == "SearchText" && idx + 1 < options.length)
{
document.getElementById("txtSearchText").value = options[idx + 1];
PerformSearch();
break;
}
}
}
// Perform a search using the best available method
function PerformSearch()
{
var searchText = document.getElementById("txtSearchText").value;
var sortByTitle = document.getElementById("chkSortByTitle").checked;
var searchResults = document.getElementById("searchResults");
if(searchText.length == 0)
{
searchResults.innerHTML = "<strong>Nothing found</strong>";
return;
}
searchResults.innerHTML = "Searching...";
// Determine the search method if not done already. The ASPX and PHP searches are more efficient as they
// run asynchronously server-side. If they can't be used, it defaults to the client-side script below which
// will work but has to download the index files. For large help sites, this can be inefficient.
if(searchMethod == 0)
searchMethod = DetermineSearchMethod();
if(searchMethod == 1)
{
$.ajax({
type: "GET",
url: encodeURI("SearchHelp.aspx?Keywords=" + searchText + "&SortByTitle=" + sortByTitle),
success: function(html)
{
searchResults.innerHTML = html;
}
});
return;
}
if(searchMethod == 2)
{
$.ajax({
type: "GET",
url: encodeURI("SearchHelp.php?Keywords=" + searchText + "&SortByTitle=" + sortByTitle),
success: function(html)
{
searchResults.innerHTML = html;
}
});
return;
}
// Parse the keywords
var keywords = ParseKeywords(searchText);
// Get the list of files. We'll be getting multiple files so we need to do this synchronously.
var fileList = [];
$.ajax({
type: "GET",
url: "fti/FTI_Files.json",
dataType: "json",
async: false,
success: function(data)
{
$.each(data, function(key, val)
{
fileList[key] = val;
});
}
});
var letters = [];
var wordDictionary = {};
var wordNotFound = false;
// Load the keyword files for each keyword starting letter
for(var idx = 0; idx < keywords.length && !wordNotFound; idx++)
{
var letter = keywords[idx].substring(0, 1);
if($.inArray(letter, letters) == -1)
{
letters.push(letter);
$.ajax({
type: "GET",
url: "fti/FTI_" + letter.charCodeAt(0) + ".json",
dataType: "json",
async: false,
success: function(data)
{
var wordCount = 0;
$.each(data, function(key, val)
{
wordDictionary[key] = val;
wordCount++;
});
if(wordCount == 0)
wordNotFound = true;
}
});
}
}
if(wordNotFound)
searchResults.innerHTML = "<strong>Nothing found</strong>";
else
searchResults.innerHTML = SearchForKeywords(keywords, fileList, wordDictionary, sortByTitle);
}
// Determine the search method by seeing if the ASPX or PHP search pages are present and working
function DetermineSearchMethod()
{
var method = 3;
try
{
$.ajax({
type: "GET",
url: "SearchHelp.aspx",
async: false,
success: function(html)
{
if(html.substring(0, 8) == "<strong>")
method = 1;
}
});
if(method == 3)
$.ajax({
type: "GET",
url: "SearchHelp.php",
async: false,
success: function(html)
{
if(html.substring(0, 8) == "<strong>")
method = 2;
}
});
}
catch(e)
{
}
return method;
}
// Split the search text up into keywords
function ParseKeywords(keywords)
{
var keywordList = [];
var checkWord;
var words = keywords.split(/[\s!@#$%^&*()\-=+\[\]{}\\|<>;:'",.<>/?`~]+/);
for(var idx = 0; idx < words.length; idx++)
{
checkWord = words[idx].toLowerCase();
if(checkWord.length > 2)
{
var charCode = checkWord.charCodeAt(0);
if((charCode < 48 || charCode > 57) && $.inArray(checkWord, keywordList) == -1)
keywordList.push(checkWord);
}
}
return keywordList;
}
// Search for keywords and generate a block of HTML containing the results
function SearchForKeywords(keywords, fileInfo, wordDictionary, sortByTitle)
{
var matches = [], matchingFileIndices = [], rankings = [];
var isFirst = true;
for(var idx = 0; idx < keywords.length; idx++)
{
var word = keywords[idx];
var occurrences = wordDictionary[word];
// All keywords must be found
if(occurrences == null)
return "<strong>Nothing found</strong>";
matches[word] = occurrences;
var occurrenceIndices = [];
// Get a list of the file indices for this match. These are 64-bit numbers but JavaScript only does
// bit shifts on 32-bit values so we divide by 2^16 to get the same effect as ">> 16" and use floor()
// to truncate the result.
for(var ind in occurrences)
occurrenceIndices.push(Math.floor(occurrences[ind] / Math.pow(2, 16)));
if(isFirst)
{
isFirst = false;
for(var matchInd in occurrenceIndices)
matchingFileIndices.push(occurrenceIndices[matchInd]);
}
else
{
// After the first match, remove files that do not appear for all found keywords
for(var checkIdx = 0; checkIdx < matchingFileIndices.length; checkIdx++)
if($.inArray(matchingFileIndices[checkIdx], occurrenceIndices) == -1)
{
matchingFileIndices.splice(checkIdx, 1);
checkIdx--;
}
}
}
if(matchingFileIndices.length == 0)
return "<strong>Nothing found</strong>";
// Rank the files based on the number of times the words occurs
for(var fileIdx = 0; fileIdx < matchingFileIndices.length; fileIdx++)
{
// Split out the title, filename, and word count
var matchingIdx = matchingFileIndices[fileIdx];
var fileIndex = fileInfo[matchingIdx].split(/\0/);
var title = fileIndex[0];
var filename = fileIndex[1];
var wordCount = parseInt(fileIndex[2]);
var matchCount = 0;
for(var idx = 0; idx < keywords.length; idx++)
{
occurrences = matches[keywords[idx]];
for(var ind in occurrences)
{
var entry = occurrences[ind];
// These are 64-bit numbers but JavaScript only does bit shifts on 32-bit values so we divide
// by 2^16 to get the same effect as ">> 16" and use floor() to truncate the result.
if(Math.floor(entry / Math.pow(2, 16)) == matchingIdx)
matchCount += (entry & 0xFFFF);
}
}
rankings.push({ Filename: filename, PageTitle: title, Rank: matchCount * 1000 / wordCount });
if(rankings.length > 99)
break;
}
rankings.sort(function(x, y)
{
if(!sortByTitle)
return y.Rank - x.Rank;
return x.PageTitle.localeCompare(y.PageTitle);
});
// Format and return the results
var content = "<ol>";
for(var r in rankings)
content += "<li><a href=\"" + rankings[r].Filename + "\" target=\"_blank\">" +
rankings[r].PageTitle + "</a></li>";
content += "</ol>";
if(rankings.length < matchingFileIndices.length)
content += "<p>Omitted " + (matchingFileIndices.length - rankings.length) + " more results</p>";
return content;
}

562
docs/scripts/branding.js Normal file
View File

@ -0,0 +1,562 @@
//===============================================================================================================
// System : Sandcastle Help File Builder
// File : branding.js
// Author : Eric Woodruff (Eric@EWoodruff.us)
// Updated : 10/08/2015
// Note : Copyright 2014-2015, Eric Woodruff, All rights reserved
// Portions Copyright 2010-2014 Microsoft, All rights reserved
//
// This file contains the methods necessary to implement the language filtering, collapsible section, and
// copy to clipboard options.
//
// This code is published under the Microsoft Public License (Ms-PL). A copy of the license should be
// distributed with the code and can be found at the project website: https://GitHub.com/EWSoftware/SHFB. This
// notice, the author's name, and all copyright notices must remain intact in all applications, documentation,
// and source files.
//
// Date Who Comments
// ==============================================================================================================
// 05/04/2014 EFW Created the code based on the MS Help Viewer script
//===============================================================================================================
// The IDs of all code snippet sets on the same page are stored so that we can keep them in synch when a tab is
// selected.
var allTabSetIds = new Array();
// The IDs of language-specific text (LST) spans are used as dictionary keys so that we can get access to the
// spans and update them when the user changes to a different language tab. The values of the dictionary
// objects are pipe separated language-specific attributes (lang1=value|lang2=value|lang3=value). The language
// ID can be specific (cs, vb, cpp, etc.) or may be a neutral entry (nu) which specifies text common to multiple
// languages. If a language is not present and there is no neutral entry, the span is hidden for all languages
// to which it does not apply.
var allLSTSetIds = new Object();
// Help 1 persistence support. This code must appear inline.
var isHelp1;
var curLoc = document.location + ".";
if(curLoc.indexOf("mk:@MSITStore") == 0)
{
isHelp1 = true;
curLoc = "ms-its:" + curLoc.substring(14, curLoc.length - 1);
document.location.replace(curLoc);
}
else
if(curLoc.indexOf("ms-its:") == 0)
isHelp1 = true;
else
isHelp1 = false;
// The OnLoad method
function OnLoad(defaultLanguage)
{
var defLang;
if(typeof (defaultLanguage) == "undefined" || defaultLanguage == null || defaultLanguage == "")
defLang = "vb";
else
defLang = defaultLanguage;
// In MS Help Viewer, the transform the topic is ran through can move the footer. Move it back where it
// belongs if necessary.
try
{
var footer = document.getElementById("pageFooter")
if(footer)
{
var footerParent = document.body;
if(footer.parentElement != footerParent)
{
footer.parentElement.removeChild(footer);
footerParent.appendChild(footer);
}
}
}
catch(e)
{
}
var language = GetCookie("CodeSnippetContainerLanguage", defLang);
// If LST exists on the page, set the LST to show the user selected programming language
UpdateLST(language);
// If code snippet groups exist, set the current language for them
if(allTabSetIds.length > 0)
{
var i = 0;
while(i < allTabSetIds.length)
{
var tabCount = 1;
// The tab count may vary so find the last one in this set
while(document.getElementById(allTabSetIds[i] + "_tab" + tabCount) != null)
tabCount++;
tabCount--;
// If not grouped, skip it
if(tabCount > 1)
SetCurrentLanguage(allTabSetIds[i], language, tabCount);
i++;
}
}
InitializeToc();
}
// This is just a place holder. The website script implements this function to initialize it's in-page TOC pane
function InitializeToc()
{
}
// This function executes in the OnLoad event and ChangeTab action on code snippets. The function parameter
// is the user chosen programming language. This function iterates through the "allLSTSetIds" dictionary object
// to update the node value of the LST span tag per the user's chosen programming language.
function UpdateLST(language)
{
for(var lstMember in allLSTSetIds)
{
var devLangSpan = document.getElementById(lstMember);
if(devLangSpan != null)
{
// There may be a carriage return before the LST span in the content so the replace function below
// is used to trim the whitespace at the end of the previous node of the current LST node.
if(devLangSpan.previousSibling != null && devLangSpan.previousSibling.nodeValue != null)
devLangSpan.previousSibling.nodeValue = devLangSpan.previousSibling.nodeValue.replace(/\s+$/, "");
var langs = allLSTSetIds[lstMember].split("|");
var k = 0;
var keyValue;
while(k < langs.length)
{
keyValue = langs[k].split("=");
if(keyValue[0] == language)
{
devLangSpan.innerHTML = keyValue[1];
// Help 1 and MS Help Viewer workaround. Add a space if the following text element starts
// with a space to prevent things running together.
if(devLangSpan.parentNode != null && devLangSpan.parentNode.nextSibling != null)
{
if(devLangSpan.parentNode.nextSibling.nodeValue != null &&
!devLangSpan.parentNode.nextSibling.nodeValue.substring(0, 1).match(/[.,);:!/?]/) &&
(devLangSpan.innerHTML == '&gt;' || devLangSpan.innerHTML == ')'))
{
devLangSpan.innerHTML = keyValue[1] + " ";
}
}
break;
}
k++;
}
// If not found, default to the neutral language. If there is no neutral language entry, clear the
// content to hide it.
if(k >= langs.length)
{
if(language != "nu")
{
k = 0;
while(k < langs.length)
{
keyValue = langs[k].split("=");
if(keyValue[0] == "nu")
{
devLangSpan.innerHTML = keyValue[1];
// Help 1 and MS Help Viewer workaround. Add a space if the following text element
// starts with a space to prevent things running together.
if(devLangSpan.parentNode != null && devLangSpan.parentNode.nextSibling != null)
{
if(devLangSpan.parentNode.nextSibling.nodeValue != null &&
!devLangSpan.parentNode.nextSibling.nodeValue.substring(0, 1).match(/[.,);:!/?]/) &&
(devLangSpan.innerHTML == '&gt;' || devLangSpan.innerHTML == ')'))
{
devLangSpan.innerHTML = keyValue[1] + " ";
}
}
break;
}
k++;
}
}
if(k >= langs.length)
devLangSpan.innerHTML = "";
}
}
}
}
// Get the specified cookie. If not found, return the specified default value.
function GetCookie(cookieName, defaultValue)
{
if(isHelp1)
{
try
{
var globals = Help1Globals;
var value = globals.Load(cookieName);
if(value == null)
value = defaultValue;
return value;
}
catch(e)
{
return defaultValue;
}
}
var cookie = document.cookie.split("; ");
for(var i = 0; i < cookie.length; i++)
{
var crumb = cookie[i].split("=");
if(cookieName == crumb[0])
return unescape(crumb[1])
}
return defaultValue;
}
// Set the specified cookie to the specified value
function SetCookie(name, value)
{
if(isHelp1)
{
try
{
var globals = Help1Globals;
globals.Save(name, value);
}
catch(e)
{
}
return;
}
var today = new Date();
today.setTime(today.getTime());
// Set the expiration time to be 60 days from now (in milliseconds)
var expires_date = new Date(today.getTime() + (60 * 1000 * 60 * 60 * 24));
document.cookie = name + "=" + escape(value) + ";expires=" + expires_date.toGMTString() + ";path=/";
}
// Add a language-specific text ID
function AddLanguageSpecificTextSet(lstId)
{
var keyValue = lstId.split("?")
allLSTSetIds[keyValue[0]] = keyValue[1];
}
var clipboardHandler;
// Add a language tab set ID
function AddLanguageTabSet(tabSetId)
{
allTabSetIds.push(tabSetId);
// Create the clipboard handler on first use
if(clipboardHandler == null && typeof (Clipboard) == "function")
{
clipboardHandler = new Clipboard('.copyCodeSnippet',
{
text: function (trigger)
{
// Get the code to copy to the clipboard from the active tab of the given tab set
var i = 1, tabSetId = trigger.id;
var pos = tabSetId.indexOf('_');
if(pos == -1)
return "";
tabSetId = tabSetId.substring(0, pos);
do
{
contentId = tabSetId + "_code_Div" + i;
tabTemp = document.getElementById(contentId);
if(tabTemp != null && tabTemp.style.display != "none")
break;
i++;
} while(tabTemp != null);
if(tabTemp == null)
return "";
return document.getElementById(contentId).innerText;
}
});
}
}
// Switch the active tab for all of other code snippets
function ChangeTab(tabSetId, language, snippetIdx, snippetCount)
{
SetCookie("CodeSnippetContainerLanguage", language);
SetActiveTab(tabSetId, snippetIdx, snippetCount);
// If LST exists on the page, set the LST to show the user selected programming language
UpdateLST(language);
var i = 0;
while(i < allTabSetIds.length)
{
// We just care about other snippets
if(allTabSetIds[i] != tabSetId)
{
// Other tab sets may not have the same number of tabs
var tabCount = 1;
while(document.getElementById(allTabSetIds[i] + "_tab" + tabCount) != null)
tabCount++;
tabCount--;
// If not grouped, skip it
if(tabCount > 1)
SetCurrentLanguage(allTabSetIds[i], language, tabCount);
}
i++;
}
}
// Sets the current language in the specified tab set
function SetCurrentLanguage(tabSetId, language, tabCount)
{
var tabIndex = 1;
while(tabIndex <= tabCount)
{
var tabTemp = document.getElementById(tabSetId + "_tab" + tabIndex);
if(tabTemp != null && tabTemp.innerHTML.indexOf("'" + language + "'") != -1)
break;
tabIndex++;
}
if(tabIndex > tabCount)
{
// Select the first non-disabled tab
tabIndex = 1;
if(document.getElementById(tabSetId + "_tab1").className == "codeSnippetContainerTabPhantom")
{
tabIndex++;
while(tabIndex <= tabCount)
{
var tab = document.getElementById(tabSetId + "_tab" + tabIndex);
if(tab.className != "codeSnippetContainerTabPhantom")
{
tab.className = "codeSnippetContainerTabActive";
document.getElementById(tabSetId + "_code_Div" + j).style.display = "block";
break;
}
tabIndex++;
}
}
}
SetActiveTab(tabSetId, tabIndex, tabCount);
}
// Set the active tab within a tab set
function SetActiveTab(tabSetId, tabIndex, tabCount)
{
var i = 1;
while(i <= tabCount)
{
var tabTemp = document.getElementById(tabSetId + "_tab" + i);
if (tabTemp != null)
{
if(tabTemp.className == "codeSnippetContainerTabActive")
tabTemp.className = "codeSnippetContainerTab";
else
if(tabTemp.className == "codeSnippetContainerTabPhantom")
tabTemp.style.display = "none";
var codeTemp = document.getElementById(tabSetId + "_code_Div" + i);
if(codeTemp.style.display != "none")
codeTemp.style.display = "none";
}
i++;
}
// Phantom tabs are shown or hidden as needed
if(document.getElementById(tabSetId + "_tab" + tabIndex).className != "codeSnippetContainerTabPhantom")
document.getElementById(tabSetId + "_tab" + tabIndex).className = "codeSnippetContainerTabActive";
else
document.getElementById(tabSetId + "_tab" + tabIndex).style.display = "block";
document.getElementById(tabSetId + "_code_Div" + tabIndex).style.display = "block";
}
// Copy the code from the active tab of the given tab set to the clipboard
function CopyToClipboard(tabSetId)
{
var tabTemp, contentId;
var i = 1;
if(typeof (Clipboard) == "function")
return;
do
{
contentId = tabSetId + "_code_Div" + i;
tabTemp = document.getElementById(contentId);
if(tabTemp != null && tabTemp.style.display != "none")
break;
i++;
} while(tabTemp != null);
if(tabTemp == null)
return;
if(window.clipboardData)
{
try
{
window.clipboardData.setData("Text", document.getElementById(contentId).innerText);
}
catch(e)
{
alert("Permission denied. Enable copying to the clipboard.");
}
}
else if(window.netscape)
{
try
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var clip = Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(
Components.interfaces.nsIClipboard);
if(!clip)
return;
var trans = Components.classes["@mozilla.org/widget/transferable;1"].createInstance(
Components.interfaces.nsITransferable);
if(!trans)
return;
trans.addDataFlavor("text/unicode");
var str = new Object();
var len = new Object();
var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(
Components.interfaces.nsISupportsString);
var copytext = document.getElementById(contentId).textContent;
str.data = copytext;
trans.setTransferData("text/unicode", str, copytext.length * 2);
var clipid = Components.interfaces.nsIClipboard;
clip.setData(trans, null, clipid.kGlobalClipboard);
}
catch(e)
{
alert("Permission denied. Enter \"about:config\" in the address bar and double-click the \"signed.applets.codebase_principal_support\" setting to enable copying to the clipboard.");
}
}
}
// Expand or collapse a section
function SectionExpandCollapse(togglePrefix)
{
var image = document.getElementById(togglePrefix + "Toggle");
var section = document.getElementById(togglePrefix + "Section");
if(image != null && section != null)
if(section.style.display == "")
{
image.src = image.src.replace("SectionExpanded.png", "SectionCollapsed.png");
section.style.display = "none";
}
else
{
image.src = image.src.replace("SectionCollapsed.png", "SectionExpanded.png");
section.style.display = "";
}
}
// Expand or collapse a section when it has the focus and Enter is hit
function SectionExpandCollapse_CheckKey(togglePrefix, eventArgs)
{
if(eventArgs.keyCode == 13)
SectionExpandCollapse(togglePrefix);
}
// Help 1 persistence object. This requires a hidden input element on the page with a class of "userDataStyle"
// defined in the style sheet that implements the user data binary behavior:
// <input type="hidden" id="userDataCache" class="userDataStyle" />
var Help1Globals =
{
UserDataCache: function()
{
var userData = document.getElementById("userDataCache");
return userData;
},
Load: function(key)
{
var userData = this.UserDataCache();
userData.load("userDataSettings");
var value = userData.getAttribute(key);
return value;
},
Save: function(key, value)
{
var userData = this.UserDataCache();
userData.setAttribute(key, value);
userData.save("userDataSettings");
}
};

7
docs/scripts/clipboard.min.js vendored Normal file

File diff suppressed because one or more lines are too long

148
docs/scripts/highlight.js Normal file
View File

@ -0,0 +1,148 @@
//===============================================================================================================
// System : Color Syntax Highlighter
// File : Highlight.js
// Author : Eric Woodruff (Eric@EWoodruff.us)
// Updated : 10/21/2012
// Note : Copyright 2006-2012, Eric Woodruff, All rights reserved
//
// This contains the script to expand and collapse the regions in the syntax highlighted code.
//
// This is a customized version for the Sandcastle Help File Builder. It overrides the CopyCode() function
// from the Hana, Prototype, and VS2005 presentation styles to remove the line numbering and collapsible
// region elements. The VS2010 style does not currently use the CopyCode() function in here as it has its own
// version for copying the code.
//===============================================================================================================
// Expand/collapse a region
function HighlightExpandCollapse(showId, hideId)
{
var showSpan = document.getElementById(showId), hideSpan = document.getElementById(hideId);
showSpan.style.display = "inline";
hideSpan.style.display = "none";
}
// Copy the code from a colorized code block to the clipboard.
function CopyCode(key)
{
var idx, line, block, htmlLines, lines, codeText, hasLineNos, hasRegions, clip, trans,
copyObject, clipID;
var reLineNo = /^\s*\d{1,4}/;
var reRegion = /^\s*\d{1,4}\+.*?\d{1,4}-/;
var reRegionText = /^\+.*?\-/;
// Find the table row element containing the code
var trElements = document.getElementsByTagName("tr");
for(idx = 0; idx < trElements.length; idx++)
if(key.parentNode.parentNode.parentNode == trElements[idx].parentNode)
{
block = trElements[idx].nextSibling;
break;
}
if(block.innerText != undefined)
codeText = block.innerText;
else
codeText = block.textContent;
hasLineNos = block.innerHTML.indexOf("highlight-lineno");
hasRegions = block.innerHTML.indexOf("highlight-collapsebox");
htmlLines = block.innerHTML.split("\n");
lines = codeText.split("\n");
// Remove the line numbering and collapsible regions if present
if(hasLineNos != -1 || hasRegions != -1)
{
codeText = "";
for(idx = 0; idx < lines.length; idx++)
{
line = lines[idx];
if(hasRegions && reRegion.test(line))
line = line.replace(reRegion, "");
else
{
line = line.replace(reLineNo, "");
// Lines in expanded blocks have an extra space
if(htmlLines[idx].indexOf("highlight-expanded") != -1 ||
htmlLines[idx].indexOf("highlight-endblock") != -1)
line = line.substr(1);
}
if(hasRegions && reRegionText.test(line))
line = line.replace(reRegionText, "");
codeText += line;
// Not all browsers keep the line feed when split
if(line[line.length - 1] != "\n")
codeText += "\n";
}
}
// IE or FireFox/Netscape?
if(window.clipboardData)
window.clipboardData.setData("Text", codeText);
else
if(window.netscape)
{
// Give unrestricted access to browser APIs using XPConnect
try
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
}
catch(e)
{
alert("Universal Connect was refused, cannot copy to clipboard. Go to about:config and set " +
"signed.applets.codebase_principal_support to true to enable clipboard support.");
return;
}
// Creates an instance of nsIClipboard
clip = Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(
Components.interfaces.nsIClipboard);
// Creates an instance of nsITransferable
if(clip)
trans = Components.classes["@mozilla.org/widget/transferable;1"].createInstance(
Components.interfaces.nsITransferable);
if(!trans)
{
alert("Copy to Clipboard is not supported by this browser");
return;
}
// Register the data flavor
trans.addDataFlavor("text/unicode");
// Create object to hold the data
copyObject = new Object();
// Creates an instance of nsISupportsString
copyObject = Components.classes["@mozilla.org/supports-string;1"].createInstance(
Components.interfaces.nsISupportsString);
// Assign the data to be copied
copyObject.data = codeText;
// Add data objects to transferable
trans.setTransferData("text/unicode", copyObject, codeText.length * 2);
clipID = Components.interfaces.nsIClipboard;
if(!clipID)
{
alert("Copy to Clipboard is not supported by this browser");
return;
}
// Transfer the data to the clipboard
clip.setData(trans, null, clipID.kGlobalClipboard);
}
else
alert("Copy to Clipboard is not supported by this browser");
}

4
docs/scripts/jquery-1.11.0.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,40 @@
/* Define the userData cache persistence mechanism for Help 1 files */
.userDataStyle {
behavior: url(#default#userdata);
}
/* Style adjustments for Help 1 */
.pageBody {
padding-top: 0px 20px 0px 0px;
}
table {
width: 95%;
padding-right: 20px;
}
table.members {
width: 95%;
padding-right: 20px;
}
th p {
padding-bottom: 0px;
}
td p {
padding-bottom: 5px;
}
.codeSnippetContainerTabs {
top: 1px;
}
.codeSnippetToolBarText {
top: -13px;
}
.codeSnippetContainerTabSingle {
padding: 2px 15px 0px 15px;
height: 22px;
}

View File

@ -0,0 +1,48 @@
/* Style adjustments for Help Viewer */
.pageBody {
padding-top: 0px 20px 0px 0px;
}
table {
width: 95%;
padding-right: 20px;
}
table.members {
width: 95%;
padding-right: 20px;
}
th p {
padding-bottom: 0px;
}
td p {
padding-bottom: 5px;
}
.codeSnippetContainerTabs {
top: 1px;
}
.codeSnippetToolBarText {
top: -13px;
}
.codeSnippetContainerTabSingle {
padding: 2px 15px 0px 15px;
height: 22px;
}
.codeSnippetContainerTab a:visited {
color: #000000;
}
.codeSnippetContainerTabActive a:visited {
color: #000000;
}
span.keyword {
color: #0000ff;
font-weight: normal;
}

View File

@ -0,0 +1,156 @@
/* Style adjustments for websites */
.pageBody {
padding: 0px 20px 0px 0px;
}
.topicContent {
margin-left: 280px;
}
/* Lightweight TOC */
.tocCollapsed {
background: url('../icons/TocCollapsed.gif') no-repeat scroll center;
width: 17px;
height: 20px;
overflow: hidden;
}
.tocExpanded {
background: url('../icons/TocExpanded.gif') no-repeat scroll center;
width: 17px;
height: 20px;
overflow: hidden;
}
.tocResize {
position: absolute;
top: 90px;
left: 300px;
width: 5px;
height: 20px;
padding-right: 5px;
}
.tocResize img {
border: none;
cursor: pointer;
}
div#leftNav {
float: left;
margin: 0px -1px 0 0;
width: 280px;
min-height: 10px;
position: relative;
border-right: 1px solid #b6b6b6;
padding-left: 10px;
padding-top: 15px;
}
div#tocNav {
font-family: 'Segoe UI' ,Verdana,Arial;
overflow-x: hidden;
line-height: normal;
margin: -20px 0 0 -4px;
}
div#tocNav > div {
overflow-x: hidden;
white-space: normal;
width: auto;
margin-bottom: 5px;
}
div#leftNav a, div#leftNav a:link, div#leftNav a:visited {
color: #1364c4;
text-decoration: none;
}
div#leftNav a:hover {
color: #3390b1;
}
div#tocNav > div > a, div#tocNav > div > a:link, div#tocNav > div > a:visited {
display: block;
margin-left: 18px;
overflow: hidden;
}
div#tocNav > div.current > a, div#tocNav > div.current > a:link, div#tocNav > div.current > a:visited {
color: #000;
font-weight: bold;
text-decoration: none;
}
div#tocNav > div > a.tocExpanded, div#tocNav > div > a.tocCollapsed {
float: left;
display: inline-block;
margin-left: 0;
vertical-align: top;
}
div#tocResizableEW {
cursor: e-resize;
width: 15px;
top: 0;
height: 100%;
position: absolute;
display: block;
font-size: 0.5px;
right: -7px;
}
.toclevel0:first-child {
margin-top: 16px;
}
div#tocNav > div.toclevel1 {
padding-left: 17px;
}
div#tocNav > div.toclevel2 {
padding-left: 34px;
}
div#tocNav > div.toclevel3 {
padding-left: 51px;
}
div#tocNav > div.toclevel4 {
padding-left: 68px;
}
div#tocNav > div.toclevel5 {
padding-left: 85px;
}
div#tocNav > div.toclevel6 {
padding-left: 102px;
}
div#tocNav > div.toclevel7 {
padding-left: 119px;
}
div#tocNav > div.toclevel8 {
padding-left: 136px;
}
div#tocNav > div.toclevel9 {
padding-left: 153px;
}
div#tocNav > div.toclevel10 {
padding-left: 170px;
}
/* Search form */
form#SearchForm {
float: right;
background-color: #eee;
width: 280px;
}
form#SearchForm input {
background-color: #eee;
border: 0;
height: 22px;
width: 230px;
color: #3b3b3b;
display: inline-block;
margin: 1px 0 0 0;
padding: 1px 4px 1px 10px;
}
form#SearchForm button {
background: url('../icons/Search.png') no-repeat scroll center;
background-color: #eee;
float: right;
border: 0;
margin: 3px 2px 0 0;
cursor: pointer;
color: #3b3b3b;
width: 19px;
height: 18px;
overflow: hidden;
}
.searchContainer {
width: 700px;
margin-top: 50px;
margin-left: auto;
margin-right: auto;
}

View File

@ -0,0 +1,3 @@
/* Start CS-CZ locale-specific CSS */
/* End locale-specific CSS */

View File

@ -0,0 +1,3 @@
/* Start DE-DE locale-specific CSS */
/* End locale-specific CSS */

View File

@ -0,0 +1,3 @@
/* Start EN-US locale-specific CSS */
/* End locale-specific CSS */

View File

@ -0,0 +1,3 @@
/* Start ES-ES locale-specific CSS */
/* End locale-specific CSS */

View File

@ -0,0 +1,3 @@
/* Start FR-FR locale-specific CSS */
/* End locale-specific CSS */

View File

@ -0,0 +1,3 @@
/* Start IT-IT locale-specific CSS */
/* End locale-specific CSS */

View File

@ -0,0 +1,18 @@
/* Start JA-JP locale-specific CSS */
body
{
font-family: Segoe UI, Verdana, Arial, ;
}
pre
{
font-family: Consolas, Courier, monospace, ;
}
span.tt
{
font-family: Consolas, Courier, monospace, ;
}
span.code
{
font-family: Consolas, Courier, monospace, ;
}
/* End locale-specific CSS */

View File

@ -0,0 +1,19 @@
/* Start KO-KR locale-specific CSS */
body
{
font-family: Malgun Gothic, Segoe UI, Verdana, Arial;
font-size: 0.75em; /*9pt*/
}
pre
{
font-family: Consolas, Courier, monospace, ;
}
span.tt
{
font-family: Consolas, Courier, monospace, ;
}
span.code
{
font-family: Consolas, Courier, monospace, ;
}
/* End locale-specific CSS */

View File

@ -0,0 +1,3 @@
/* Start PL-PL locale-specific CSS */
/* End locale-specific CSS */

View File

@ -0,0 +1,3 @@
/* Start PT-BR locale-specific CSS */
/* End locale-specific CSS */

View File

@ -0,0 +1,3 @@
/* Start RU-RU locale-specific CSS */
/* End locale-specific CSS */

View File

@ -0,0 +1,3 @@
/* Start TR-TR locale-specific CSS */
/* End locale-specific CSS */

View File

@ -0,0 +1,18 @@
/* Start ZH-CN locale-specific CSS */
body
{
font-family: "Microsoft YaHei UI","Microsoft YaHei","SimSun","Segoe UI","Lucida Grande",Verdana,Arial,Helvetica,sans-serif
}
pre
{
font-family: Consolas, Courier, monospace!important;
}
span.tt
{
font-family: Consolas, Courier, monospace;
}
span.code
{
font-family: Consolas, Courier, monospace;
}
/* End locale-specific CSS */

View File

@ -0,0 +1,18 @@
/* Start ZH-TW locale-specific CSS */
body
{
font-family: MS JhengHei, MingLiU, Segoe UI, Verdana, Arial;
}
pre
{
font-family: Consolas, Courier, monospace, ;
}
span.tt
{
font-family: Consolas, Courier, monospace, ;
}
span.code
{
font-family: Consolas, Courier, monospace, ;
}
/* End locale-specific CSS */

583
docs/styles/branding.css Normal file
View File

@ -0,0 +1,583 @@
/* General styles */
body {
font-family: 'Segoe UI' , 'Lucida Grande' , Verdana, Arial, Helvetica, sans-serif;
font-size: 15px;
padding: 0;
margin: 0;
margin-left: auto;
margin-right: auto;
color: #000;
}
h1 {
font-family: 'Segoe UI' , 'Lucida Grande' , Verdana, Arial, Helvetica, sans-serif;
font-size: 2.5em;
font-weight: normal;
margin-top: 0;
color: #000;
}
h2, h3 {
font-family: 'Segoe UI Semibold' , 'Segoe UI' , 'Lucida Grande' , Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
margin: 0;
padding-bottom: 5px;
padding-top: 5px;
color: #000;
}
h2 {
font-size: 1.769em;
}
h3 {
font-size: 1.231em;
}
h4, .subHeading {
font-family: 'Segoe UI Semibold' , 'Segoe UI' , 'Lucida Grande' , Verdana, Arial, Helvetica, sans-serif;
font-size: 1.077em;
font-weight: normal;
margin: 0;
color: #000;
}
.subHeading {
margin-top: 5px;
}
h5, h6 {
font-family: 'Segoe UI Semibold' , 'Segoe UI' , 'Lucida Grande' , Verdana, Arial, Helvetica, sans-serif;
font-size: 1em;
font-weight: normal;
line-height: 130%;
margin: 0;
color: #000;
}
a, a:link {
text-decoration: none;
color: #1364c4;
}
a:visited, a:active {
text-decoration: none;
color: #03697a;
}
a:hover {
text-decoration: none;
color: #3390b1;
}
a.button, a.button:active, a.button:hover {
float: right;
background-color: #0080c0;
color: white;
padding: 6px 12px;
font-size: 14px;
border: 1px solid transparent;
border-radius: 4px;
margin-left: 6px;
}
a.button:link, a.button:visited {
color: white;
}
img {
border: 0;
}
p {
margin-top: 0;
margin-bottom: 0;
padding-bottom: 15px;
line-height: 18px;
}
q {
font-style: italic;
}
blockquote {
margin-top: 0px;
}
table {
border-collapse: collapse;
padding: 0;
margin-bottom: 15px;
font-size: 15px;
width: 100%;
}
td, th {
border-bottom: 1px solid #dbdbdb;
margin: 10px;
padding-top: 10px;
padding-bottom: 10px;
padding-right: 8px;
padding-left: 8px;
}
th {
background-color: #ededed;
color: #636363;
text-align: left;
padding-top: 5px;
padding-bottom: 5px;
}
td {
color: #2a2a2a;
vertical-align: top;
}
table p:last-child {
padding-bottom: 0;
}
table.members {
width: 100%;
}
table.members td {
min-width: 72px;
}
table.members img {
padding-right: 5px;
}
div.alert img {
padding-right: 5px;
}
ol {
margin-top: 0px;
margin-bottom: 10px;
}
ol ol {
list-style-type: lower-alpha;
}
ol ol ol {
list-style-type: lower-roman;
}
ul {
margin-top: 0px;
margin-bottom: 10px;
}
.noBullet {
list-style-type: none;
padding-left: 20px;
}
ul ul {
list-style-type: circle;
}
ul ul ul {
list-style-type: square;
}
dt {
font-weight: 600;
}
pre {
font-family: Consolas, Courier, monospace;
overflow: hidden;
}
.pageHeader {
font-family: 'Segoe UI' , Tahoma, Helvetica, Sans-Serif;
background-color: #333333;
color: #d0d0d0;
padding: 5px 10px;
vertical-align: middle;
height: 25px;
}
.pageBody {
padding: 0px;
}
.topicContent {
padding: 10px 10px 15px 10px;
overflow: visible;
border-left: 1px solid #bbb;
}
.pageFooter {
clear: both;
border-top: solid 1px #bbb;
padding: 10px;
}
.feedbackLink {
}
.iconColumn {
width: 100px;
}
.seeAlsoStyle {
}
table.titleTable td {
padding-top: 0px;
border-width: 0px;
}
td.titleColumn {
margin-top: 0px;
padding-left: 0px;
vertical-align: middle;
}
td.logoColumn {
padding-left: 0px;
padding-right: 10px;
vertical-align: middle;
width: 1px;
}
td.logoColumnAbove {
padding: 0px 10px 0px 0px;
vertical-align: middle;
}
span.selflink {
color: #000066;
}
div.preliminary {
margin-top: 1em;
margin-bottom: 1em;
font-weight: bold;
color: #333333;
}
div.caption {
font-weight: bold;
font-size: 1em; /*12pt*/
color: #003399;
padding-top: 5px;
padding-bottom: 5px;
}
.procedureSubHeading {
font-size: 1.1em; /*13.5pt*/
font-weight: bold;
}
.summary {
}
/* Collapsible region styles */
.collapsibleAreaRegion {
margin-top: 15px;
margin-bottom: 15px;
}
.collapseToggle {
padding-right: 5px;
}
.collapsibleRegionTitle {
font-family: 'Segoe UI Semibold' , 'Segoe UI' , 'Lucida Grande' , Verdana, Arial, Helvetica, sans-serif !important;
font-style: normal !important;
font-size: 1.769em;
margin-top: 9px;
margin-bottom: 19px;
padding-top: 20px;
padding-bottom: 5px;
cursor: pointer;
}
.collapsibleSection {
padding: 0 0 0 20px;
}
/* Syntax and code snippet styles */
.codeSnippetContainer {
min-width: 260px;
margin-top: 10px;
}
.codeSnippetContainerTabs {
height: 23px;
vertical-align: middle;
position: relative;
z-index: 1;
}
.codeSnippetContainerTab {
padding: 0px 15px;
width: auto;
height: 22px;
color: #2a2a2a;
font-family: "Segoe UI" , "Lucida Grande" , Verdana, Arial, Helvetica, sans-serif !important;
font-size: 12px;
font-style: normal !important;
vertical-align: baseline;
float: left;
}
.codeSnippetContainerTabActive {
background: #f8f8f8;
padding: 0px 15px;
width: auto;
height: 22px;
color: #000000;
font-family: "Segoe UI" , "Lucida Grande" , Verdana, Arial, Helvetica, sans-serif !important;
font-size: 12px;
font-style: normal !important;
vertical-align: baseline;
border-top-color: #939393;
border-right-color: #939393;
border-left-color: #939393;
border-top-width: 1px;
border-right-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-left-style: solid;
float: left;
}
.codeSnippetContainerTabPhantom {
background: #f8f8f8;
padding: 0px 15px;
width: auto;
height: 22px;
color: #000000;
font-family: "Segoe UI" , "Lucida Grande" , Verdana, Arial, Helvetica, sans-serif !important;
font-size: 12px;
font-style: normal !important;
vertical-align: baseline;
border-top-color: #939393;
border-right-color: #939393;
border-left-color: #939393;
border-top-width: 1px;
border-right-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-left-style: solid;
float: left;
display: none;
}
.codeSnippetContainerTabSingle {
background: #f8f8f8;
padding: 2px 15px 0px 15px;
width: auto;
height: 20px;
color: #000000;
font-family: "Segoe UI" , "Lucida Grande" , Verdana, Arial, Helvetica, sans-serif !important;
font-size: 12px;
font-weight: bold;
font-style: normal !important;
vertical-align: baseline;
border-top-color: #939393;
border-right-color: #939393;
border-left-color: #939393;
border-top-width: 1px;
border-right-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-left-style: solid;
float: left;
}
.codeSnippetContainerTab a {
top: 2px;
color: #000000;
font-weight: bold;
text-decoration: none;
position: relative;
}
.codeSnippetContainerTab a:link {
color: #000000;
}
.codeSnippetContainerTab a:hover {
color: #136460;
}
.codeSnippetContainerTabActive a {
top: 2px;
color: #000000;
font-weight: bold;
text-decoration: none;
position: relative;
cursor: default;
}
.codeSnippetContainerTabActive a:link {
color: #000000;
}
.codeSnippetContainerTabActive a:hover {
color: #000000;
}
.codeSnippetContainerTabPhantom a {
top: 2px;
color: #000000;
font-weight: bold;
text-decoration: none;
position: relative;
cursor: default;
}
.codeSnippetContainerTabPhantom a:link {
color: #000000;
}
.codeSnippetContainerCodeContainer {
border: 1px solid #939393;
top: -1px;
margin-bottom: 12px;
position: relative;
}
.codeSnippetToolBar {
width: auto;
height: auto;
}
.codeSnippetToolBarText {
top: -8px;
width: auto;
height: 0px;
padding-right: 0px;
padding-left: 0px;
vertical-align: top;
float: right;
position: relative;
}
.codeSnippetToolBarText a {
color: #1364c4;
text-decoration: none;
padding-left: 8px;
padding-right: 8px;
font-family: "Segoe UI" , "Lucida Grande" , Verdana, Arial, Helvetica, sans-serif !important;
font-size: 10px;
font-style: normal !important;
text-decoration: none;
margin-right: 10px;
margin-left: 0px;
background-color: #ffffff;
}
.codeSnippetToolBarText a:link {
color: #1364c4;
}
.codeSnippetContainerCode {
margin: 0px;
padding: 10px;
width: auto;
}
.codeSnippetContainerCode div {
margin: 0px;
padding: 0px;
}
.codeSnippetContainerCode pre {
margin: 0px;
padding: 5px;
overflow: auto;
font-family: Consolas, Courier, monospace !important;
font-style: normal;
font-weight: normal;
-ms-word-wrap: normal;
}
.codeSnippetContainerCode .keyword {
color: #0000ff;
font-weight: normal;
}
.copyCodeSnippet {
}
/* Keyword and phrase styles */
span.code, span.command {
font-family: Consolas, Courier, monospace;
color: #000066;
background-color: #f4f4f4;
}
span.ui {
font-weight: bold;
}
span.math {
font-style: italic;
}
span.input {
font-weight: bold;
}
span.term {
font-style: italic;
}
span.label {
font-weight: bold;
}
span.foreignPhrase, span.phrase {
font-style: italic;
}
span.placeholder {
font-style: italic;
}
span.typeparameter {
font-style: italic;
}
span.identifier {
}
span.keyword {
font-weight: bold;
}
span.parameter {
font-style: italic;
}
dt span.parameter {
font-weight: normal;
}
span.literal, span.literalValue {
color: #cc0000;
}
span.comment {
color: #006633;
}
span.introStyle {
color: #a9a9a9;
}
span.nolink {
font-weight: bold;
}
/* Auto-outline styles */
ul.autoOutline {
}
li.outlineSectionEntry {
}
div.outlineSectionEntrySummary {
}
/* Media styles */
div.mediaNear {
text-align: left;
margin-top: 1em;
margin-bottom: 1em;
}
div.mediaFar {
text-align: right;
margin-top: 1em;
margin-bottom: 1em;
}
div.mediaCenter {
text-align: center;
margin-top: 1em;
margin-bottom: 1em;
}
span.captionLead {
font-weight: bold;
margin-right: .5em;
}
span.media img {
vertical-align: top;
}
/* Glossary styles */
div.glossaryDiv {
}
div.glossaryLetterBar {
}
hr.glossaryRule {
}
h3.glossaryGroupHeading {
color: #808080;
}
div.glossaryGroup {
}
dl.glossaryGroupList {
margin: 0;
color: Black;
}
dt.glossaryEntry {
margin-left: 2em;
}
dd.glossaryEntry {
margin-left: 2em;
margin-bottom: 2em;
}
div.relatedEntry {
margin-bottom: 4px;
}
/* Bibliography styles */
div.bibliographStyle {
padding-top: 5px;
}
span.bibliographyNumber {
}
span.bibliographyAuthor {
font-weight: bold;
}
span.bibliographyTitle {
font-style: italic;
}
span.bibliographyPublisher {
}
sup.citation a:link a:visited a:active {
text-decoration: none;
}
/* Placeholder for the Help 1 user data style class */
.userDataStyle {
}
.missing
{
color: #dc143c;
font-size: 8.5pt;
font-weight: bold;
}

28
docs/styles/highlight.css Normal file
View File

@ -0,0 +1,28 @@
.highlight-inline { color: #000066; font-size: 9pt; font-family: Consolas, "Courier New", Courier, monospace; }
.highlight-pre { clear: both; width: 99.5%; background-color: #EFEFF7; padding: 0.4em; font-size: 9pt; font-family: Consolas, "Courier New", Courier, monospace; margin-top: 0px; margin-bottom: 1em; }
.highlight-comment { color: #006633; }
.highlight-literal { color: #CC0000; }
.highlight-number { color: #009966; }
.highlight-keyword { color: #0000FF; }
.highlight-preprocessor { color: #996666; }
.highlight-xml-tag { color: #AA4400 }
.highlight-xml-bracket { color: #0000FF }
.highlight-xml-bracket-inline { background: #FFFF66 }
.highlight-xml-comment { color: #006633 }
.highlight-xml-cdata { color: #AA0088 }
.highlight-xml-attribute-name { color: #0000FF }
.highlight-xml-attribute-equal { color: #000000 }
.highlight-xml-attribute-value {color: #CC0000 }
.highlight-title { font-weight: bold; margin-top: 1em; margin-bottom: 2px; border-bottom: gray 1px solid; padding-bottom: 3px; }
.highlight-copycode { float: right; padding-right: 10px; font-weight: normal; cursor: pointer; }
.highlight-copycode_h { float: right; padding-right: 10px; font-weight: normal; cursor: pointer; text-decoration: underline}
.highlight-lineno { font-size: 80%; color: black }
.highlight-lnborder { border-right-style: solid; border-right-width: 1px; border-color: gray; padding-right: 4px; margin-right: 4px; width: 4px;}
.highlight-spacer { padding-right: 20px; }
.highlight-spacerShort { padding-right: 5px; }
.highlight-collapsebox { cursor: pointer; color: black; text-align: center; border-style: solid; border-width: 1px; border-color: gray; margin-left: 2px; margin-right: 5px; }
.highlight-collapsed { border-style: solid; border-width: 1px; border-color: gray; margin: 2px; color: gray; }
.highlight-expanded { border-left-style: solid; border-left-width: 1px; border-color: gray; margin-left: 2px; margin-right: 10px; }
.highlight-endblock { border-left-style: solid; border-left-width: 1px; border-bottom-style: solid; border-bottom-width: 1px; border-color: gray; margin-left: 2px; margin-right: 10px; }
.highlight-pshell-cmdlet { color: #5A9EA5; font-weight: bold; }
.highlight-namespace { color: #008284; }