This commit is contained in:
Maciej Mieszczyński 2018-11-21 15:30:21 +01:00
parent 7e59bf5878
commit 3ad11efda6
49 changed files with 14356 additions and 0 deletions

780
WirtualnaUczelnia.htm Normal file
View File

@ -0,0 +1,780 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="Title" content=""/>
<meta name="Subject" content=""/>
<meta name="Category" content=""/>
<meta name="Keywords" content=""/>
<meta name="Description" content=""/>
<meta name="Author" content="Maciej Mieszczyński"/>
<meta name="Manager" content=""/>
<meta name="Company" content=""/>
<title>Drawing2</title>
<script src="WirtualnaUczelnia_files/frameset.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript" >
function FileEntry (pageIndex, pageID, pageName, priImage, secImage)
{
this.PageIndex = pageIndex;
this.PageID = pageID;
this.PageName = pageName;
this.PriImage = priImage;
this.SecImage = secImage;
}
var viewMgr = null;
var g_FileList = new Array(
new FileEntry (1, 0, "Page-1", "xaml_1.htm", "png_1.htm"),
new FileEntry (2, 4, "Page-2", "xaml_2.htm", "png_2.htm"),
new FileEntry (3, 5, "Page-3", "xaml_3.htm", "png_3.htm"),
new FileEntry (4, 7, "Page-5", "xaml_4.htm", "png_4.htm"),
new FileEntry (5, 6, "Page-4", "xaml_5.htm", "png_5.htm")
);
var g_CurPageIndex = 0;
var g_ZoomLoaded = false;
var g_WidgetsLoaded = false;
var g_FileProtocol = "file://";
var g_HLMenuEntry = "menuEntry";
var g_HLMenuEntryDiv = "menuEntryDiv";
var g_LoadingWidgets = false;
var isSVG = g_FileList[g_CurPageIndex].PriImage.indexOf("svg") >= 0;
var isVML = g_FileList[g_CurPageIndex].PriImage.indexOf("vml") >= 0;
var isXAML = g_FileList[g_CurPageIndex].PriImage.indexOf("xaml") >= 0;
function CViewMgr(convertedImgID, highlightDivID)
{
this.onResize = null;
this.ApplyZoom = null;
this.ChangingView = false;
this.put_Location = ViewMgrDefaultFind;
this.Zoom = ViewMgrDefaultResize;
this.PostZoomProcessing = null;
this.setView = null;
this.PostSetViewProcessing = null;
this.viewChanged = null;
this.SupportsDetails = false;
this.SupportsSearch = false;
this.visBBoxLeft = 0.0;
this.visBBoxRight = 0.0;
this.visBBoxBottom = 0.0;
this.visBBoxTop = 0.0;
this.highlightDiv = null;
this.stepWidth = 10;
this.id = convertedImgID;
this.zoomFactor = -1;
this.zoomLast = -1;
this.origWH = 1;
this.origWidth = 100;
this.aspectRatio = 1;
this.docDrawing = null;
var docDrawing = frmDrawing.document;
if(docDrawing)
{
this.docDrawing = docDrawing;
var docEl = docDrawing.getElementById(this.id);
if (!docEl)
docEl = docDrawing.childNodes[0];
this.s = docEl.style;
this.origWidth = this.s.pixelWidth;
this.origWH = this.s.pixelWidth / this.s.pixelHeight;
this.highlightDiv = docDrawing.getElementById(highlightDivID);
}
this.loadPage = DefPageLoad;
this.getPNZ = null;
}
function DefPageLoad (pageIndex)
{
if (pageIndex >= 0)
{
var curPath = frmDrawing.location.href;
var fileDelim = curPath.lastIndexOf ('/');
if (fileDelim == -1)
fileDelim = curPath.lastIndexOf ('\\');
var newPath = curPath.substring (0, fileDelim + 1);
newPath += g_FileList[pageIndex].PriImage;
frmDrawing.location.href = newPath;
SetPNZDisplay (pageIndex);
}
}
function CurPageUpdate (pageIndex)
{
if (pageIndex >= 0)
{
g_CurPageIndex = pageIndex;
SetCurPageInGoto (pageIndex);
var divDetails = frmToolbar.document.getElementById("divDetails");
if (divDetails)
{
var displayStatus = "block";
if (!viewMgr || !viewMgr.SupportsDetails)
{
displayStatus = "none";
}
divDetails.style.display = displayStatus;
}
var divSearch = frmToolbar.document.getElementById("divSearch");
if (divSearch)
{
var displayStatus = "block";
if (!viewMgr || !viewMgr.SupportsSearch)
{
displayStatus = "none";
}
divSearch.style.display = displayStatus;
}
SetPNZDisplay (pageIndex);
LoadZoom ();
}
}
function FramePageLoaded ()
{
if (isUpLevel && viewMgr == null)
{
var curPath = frmDrawing.location.href;
var fileDelim = curPath.lastIndexOf ('/');
if (fileDelim >= 0)
{
var fileName = curPath.substring (fileDelim + 1, curPath.length);
var pageIndex = PageIndexFromFileName (fileName);
SetCurPageInGoto (pageIndex);
SetPNZDisplay (pageIndex);
}
}
}
function LoadZoom ()
{
var zoomWidget = frmToolbar.frames["ifrmPNZ"];
if (zoomWidget)
{
if (g_ZoomLoaded)
{
zoomWidget.findContent();
PageLoadedDoCallback ();
}
else
{
window.setTimeout("LoadZoom()", 500);
}
}
else
{
PageLoadedDoCallback ();
}
}
function SetCurPageInGoto (pageIndex)
{
var gotoPageSelect = frmToolbar.document.getElementById("Select1");
if (gotoPageSelect != null)
{
gotoPageSelect.value = pageIndex;
}
}
function SetPNZDisplay (pageIndex)
{
var divPNZ = frmToolbar.document.getElementById("divPNZ");
if (divPNZ)
{
var displayStatus = "block";
if (g_FileList[pageIndex].PageID < 0)
{
displayStatus = "none";
}
divPNZ.style.display = displayStatus;
}
}
function ViewMgrDefaultFind()
{
return;
}
function ViewMgrDefaultResize(size)
{
return;
}
g_callBackFunctionArray = new Array();
function PageLoadedDoCallback()
{
if (g_WidgetsLoaded)
{
for( var i=0; i < g_callBackFunctionArray.length; i++ )
{
g_callBackFunctionArray[i]();
}
g_callBackFunctionArray = new Array();
}
else
{
window.setTimeout("PageLoadedDoCallback()", 500);
}
}
function ParseParams (strRawParams)
{
if ( strRawParams != null && strRawParams.length > 0 )
{
strRawParams = strRawParams.substring(1);
var arrayParamTokens = strRawParams.split('&');
for (var count = 0; count < arrayParamTokens.length; count++)
{
arrayParamTokens[count] = unescape(arrayParamTokens[count]);
this[count] = arrayParamTokens[count].substring(0, arrayParamTokens[count].indexOf('='));
this[this[count]] = arrayParamTokens[count].substring(arrayParamTokens[count].indexOf('=') + 1);
}
}
else
{
this[0] = null;
}
return this;
}
var gParams = ParseParams (location.search);
var g_PageParamValue = gParams['page'];
if (g_PageParamValue != null &&
g_PageParamValue.length > 0)
{
var pageIndex = PageIndexFromName (g_PageParamValue);
if (pageIndex > 0 && pageIndex < g_FileList.length)
{
g_CurPageIndex = pageIndex;
}
}
else
{
g_PageParamValue = null;
}
var g_FirstPageToLoad = g_PageParamValue;
var g_ZoomParamValue = gParams['zoom'];
if (g_ZoomParamValue != null && g_ZoomParamValue.length > 0)
{
g_ZoomParamValue = 1.0 * g_ZoomParamValue;
if (g_ZoomParamValue >= 10 && g_ZoomParamValue <= 500)
{
g_callBackFunctionArray[g_callBackFunctionArray.length] = function () { if (viewMgr && viewMgr.Zoom) { viewMgr.Zoom(g_ZoomParamValue); } };
}
}
var g_ShapeParamValue = gParams['shape'];
if (g_ShapeParamValue != null && g_ShapeParamValue.length > 0)
{
if (g_PageParamValue != null && g_PageParamValue.length > 0)
{
g_callBackFunctionArray[g_callBackFunctionArray.length] = function () { var shapeNode = FindShapeXMLByName (g_PageParamValue, g_ShapeParamValue); if (shapeNode) { frmToolbar.TreeSelect (g_FileList[g_CurPageIndex].PageID, shapeNode.attributes.getNamedItem ("ID").text); } };
}
else
{
g_ShapeParamValue = null;
}
}
var g_SearchParamValue = gParams['search'];
if (g_SearchParamValue != null && g_SearchParamValue.length > 0)
{
g_callBackFunctionArray[g_callBackFunctionArray.length] = function () { if (frmToolbar.theForm) { frmToolbar.theForm.findString.value = g_SearchParamValue; } };
g_callBackFunctionArray[g_callBackFunctionArray.length] = function () { var goButton = frmToolbar.document.getElementById('GoButton'); if(goButton) { goButton.click(); } };
}
var strHLTooltipText = "Click to follow hyperlink.";
var strPropsTooltipText = "Ctrl + Click to view details.";
var strFocusHLTooltipText = "Enter to follow hyperlink.";
var strFocusPropsTooltipText = "Ctrl + Enter to view details.";
function UpdateTooltip (element, pageID, shapeID)
{
if (isUpLevel)
{
var strHL, strProps;
if(frmDrawing.event.type == "focus")
{
strHL = strFocusHLTooltipText;
strProps = strFocusPropsTooltipText;
}
else
{
strHL = strHLTooltipText;
strProps = strPropsTooltipText;
}
var strTooltip = "";
if (element.origTitle)
{
strTooltip = element.origTitle.toString();
}
var shapeNode = FindShapeXML (pageID, shapeID);
if( shapeNode != null )
{
var propColl = SelectNodes(shapeNode, "Prop");
if (propColl != null && propColl.length > 0)
{
if (strTooltip.length > 0)
{
strTooltip += "\n";
}
strTooltip += strProps;
}
}
var hlObj = GetHLAction (shapeNode, pageID, shapeID);
if (hlObj != null && (hlObj.DoFunction.length > 0 || hlObj.Hyperlink.length > 0))
{
if (strTooltip.length > 0)
{
strTooltip += "\n";
}
strTooltip += strHL;
}
element.title = strTooltip;
if (element.alt != null)
{
element.alt = strTooltip;
}
}
}
function GetHLAction (shapeNode, pageID, shapeID)
{
var hlObj = new HLObj ("", "", "", false);
if (shapeNode != null)
{
try
{
var hlColl = SelectNodes(shapeNode, "Scratch/B/SolutionXML/HLURL:Hyperlinks/HLURL:Hyperlink");
}
catch(err)
{
var hlColl = [];
}
if (hlColl.length > 1)
{
if(window.frmDrawing.event)
{
hlObj.DoFunction = "showMenu(" + pageID + ", " + shapeID + ");"
}
else // XAML
{
// Use default hyperlink to set the action
var fFoundDefault = false;
for (var count = 0; count < hlColl.length; ++count)
{
var hlDefault = SelectSingleNode(hlColl[count], "HLURL:Default/text()");
if (hlDefault != null && hlDefault.nodeValue.length > 0 &&
hlDefault.nodeValue == "1" /*Indicates that this is the default hyperlink <HLURL:Default>1</HLURL:Default>*/)
{
hlObj = CreateHLObj(hlColl[count]);
fFoundDefault = true;
break;
}
}
if (!fFoundDefault)
hlObj = CreateHLObj(hlColl[0]);
}
}
else if (hlColl.length == 1)
{
hlObj = CreateHLObj (hlColl[0]);
}
}
return hlObj;
}
function HLObj (strHyperlink, strDoFunction, strDesc, newWindow)
{
this.Hyperlink = strHyperlink;
this.DoFunction = strDoFunction;
this.Desc = strDesc;
this.NewWindow = newWindow;
}
function clickMenu()
{
var e = window.frmDrawing.event;
var menu = frmDrawing.document.getElementById("menu1")
if (menu != null && menu.style.display != "none")
{
menu.style.display="none";
if (e && e.srcElement && e.srcElement.doFunction != null)
{
eval(e.srcElement.doFunction);
}
}
}
function toggleMenuDiv(el, highlight)
{
var divEl = el;
var aEl = null;
var ID = el.id.substring (g_HLMenuEntryDiv.length, el.id.length) * 1.0;
aEl = frmDrawing.document.getElementById(g_HLMenuEntry + ID);
toggleMenu(divEl, aEl, highlight);
}
function toggleMenuLink(el, highlight)
{
var divEl = null;
var aEl = el;
var ID = el.id.substring (g_HLMenuEntry.length, el.id.length) * 1.0;
divEl = frmDrawing.document.getElementById(g_HLMenuEntryDiv + ID);
toggleMenu(divEl, aEl, highlight);
}
function toggleMenu(divEl, aEl, highlight)
{
if (highlight)
{
divEl.className="highlightItem";
aEl.className="highlightItem";
}
else
{
divEl.className="menuItem";
aEl.className="menuItem";
}
}
function showMenu(pageID, shapeID)
{
var shapeXML = FindShapeXML (pageID, shapeID);
if (shapeXML != null)
{
CreateHLMenu (shapeXML);
var menu = frmDrawing.document.getElementById("menu1");
if (menu != null)
{
menu.style.visibility = "hidden";
menu.style.display = "inline";
var clientWidth = frmDrawing.document.body.clientWidth;
var clientHeight = frmDrawing.document.body.clientHeight;
var menuWidth = menu.clientWidth;
var menuHeight = menu.clientHeight;
var doc = frmDrawing.document;
var e = window.frmDrawing.event;
if(e)
{
var elem = e.srcElement;
var menuLeft = e.x;
var menuTop = e.y;
var img = doc.getElementById("ConvertedImage");
if( (menuLeft + doc.body.scrollLeft < elem.offsetLeft) || (menuLeft + doc.body.scrollLeft > elem.offsetLeft + elem.offsetWidth + img.offsetLeft) )
{
menuLeft = elem.offsetLeft + img.offsetLeft + elem.offsetWidth/2;
}
if( (menuTop + doc.body.scrollTop < elem.offsetTop) || (menuTop + doc.body.scrollTop > elem.offsetTop + elem.offsetHeight + img.offsetTop) )
{
menuTop = elem.offsetTop + img.offsetTop + elem.offsetHeight/2;
}
var scrollBarSize = 20;
if (menuLeft + menuWidth > clientWidth - scrollBarSize)
{
menuLeft = clientWidth - menuWidth - scrollBarSize;
}
if (menuTop + menuHeight > clientHeight - scrollBarSize)
{
menuTop = clientHeight - menuHeight - scrollBarSize;
}
menu.style.posLeft = menuLeft + frmDrawing.document.body.scrollLeft;
menu.style.posTop = menuTop + frmDrawing.document.body.scrollTop;
menu.style.visibility = "visible";
var firstLink = frmDrawing.document.getElementById(g_HLMenuEntry + "0");
firstLink.focus ();
if (e.keyCode == 13)
{
toggleMenuLink(firstLink, true);
}
e.cancelBubble = true;
}
}
}
}
function MenuKeyDown ()
{
var e = window.frmDrawing.event;
var el = e.srcElement;
if (e.keyCode == 27) // 27 == ESC
{
clickMenu();
e.cancelBubble = true;
return;
}
var curSelID = el.id.substring (g_HLMenuEntry.length, el.id.length) * 1.0;
var newSelID = -1;
if (e.keyCode == 40) // 40 == down arrow
{
newSelID = curSelID + 1;
}
else if (e.keyCode == 38) // 38 == up arrow
{
newSelID = curSelID - 1;
}
var newSelEntry = frmDrawing.document.getElementById(g_HLMenuEntry + newSelID);
if (newSelEntry)
{
newSelEntry.focus();
var curSelEntry = frmDrawing.document.getElementById(g_HLMenuEntry + curSelID);
toggleMenuLink (curSelEntry, false);
toggleMenuLink (newSelEntry, true);
}
e.cancelBubble = true;
}
function CreateHLMenu (shapeNode)
{
var strHLMenuHTML = "";
if (shapeNode != null)
{
var hlColl = SelectNodes(shapeNode, "Scratch/B/SolutionXML/HLURL:Hyperlinks/HLURL:Hyperlink");
strHLMenuHTML = "<div class='innerhlMenu'>";
var hlCount = hlColl.length;
for (var count = 0; count < hlCount; count++)
{
var hlObj = CreateHLObj (hlColl[count]);
if (hlObj != null)
{
if (hlObj.Desc.length > 0)
{
strHLMenuHTML += "<div id='" + (g_HLMenuEntryDiv + count) + "' class='menuItem' onmouseover='toggleMenuDiv(this, true)' onmouseout='toggleMenuDiv(this, false)' onclick='" + (g_HLMenuEntry + count) + ".click()'>";
strHLMenuHTML += "<a href=";
if (hlObj.DoFunction.length > 0)
{
strHLMenuHTML += "'javascript:" + hlObj.DoFunction + "'";
}
else
{
var targetVal = "_top";
if (hlObj.NewWindow)
{
targetVal = "_blank";
}
strHLMenuHTML += "'" + hlObj.Hyperlink + "' target='" + targetVal + "'";
}
strHLMenuHTML += " class='menuItem' id='" + (g_HLMenuEntry + count) + "' onkeydown='parent.MenuKeyDown();' onmouseover='toggleMenuLink(this, true)' onmouseout='toggleMenuLink(this, false)'>";
strHLMenuHTML += hlObj.Desc + "</a></div>";
}
}
}
strHLMenuHTML += "</div>";
}
var menu = frmDrawing.document.getElementById("menu1")
menu.innerHTML = strHLMenuHTML;
}
function CreateHLObj (hlNode)
{
var strAddress = "";
var hlObj = new HLObj ("", "", "", false);
if (hlNode != null)
{
var hlAddress = SelectSingleNode(hlNode,"HLURL:Address/text()");
if (hlAddress != null && hlAddress.nodeValue.length > 0)
{
// Get AbsoluteURL
var absoluteURL = SelectSingleNode(hlNode,"HLURL:AbsoluteURL/text()");
var strAbsURL = "";
if (absoluteURL != null && absoluteURL.nodeValue.length > 0)
strAbsURL = absoluteURL.nodeValue;
// Get Address
var strAddr = hlAddress.nodeValue;
// Use relative address if AbsoluteURL is missing
if (strAbsURL == "")
{
strAddress = strAddr;
}
else if (strAbsURL.indexOf (g_FileProtocol) == 0)
{
var strAbsPath = strAbsURL.substring (g_FileProtocol.length, strAbsURL.length);
strAbsPath.toLowerCase ();
strAddr.toLowerCase ();
if (strAbsPath == strAddr)
{
strAddress = strAbsPath;
}
else
{
strAddress = strAddr;
var hlSubAddress = SelectSingleNode(hlNode,"HLURL:SubAddress/text()");
if (hlSubAddress != null && hlSubAddress.nodeValue.length > 0)
{
strAddress += '#';
strAddress += hlSubAddress.nodeValue;
}
var hlExtraInfo = SelectSingleNode(hlNode,"HLURL:ExtraInfo/text()");
if (hlExtraInfo != null && hlExtraInfo.nodeValue.length > 0)
{
strAddress += '?';
strAddress += hlExtraInfo.nodeValue;
}
}
}
else
{
strAddress = strAbsURL;
}
strAddress = HTMLEscape (strAddress);
hlObj.Hyperlink += strAddress;
}
else
{
hlAddress = SelectSingleNode(hlNode,"HLURL:SubAddress/text()");
if (hlAddress != null && hlAddress.nodeValue.length > 0)
{
strAddress = hlAddress.nodeValue;
var pageShapeSep = strAddress.lastIndexOf ('/');
if (pageShapeSep > 0)
{
if (PageIndexFromName (strAddress) < 0)
{
strAddress = unescape (strAddress);
if (PageIndexFromName (strAddress) < 0)
{
strAddress = strAddress.substring (0, strAddress.lastIndexOf ('/'));
}
}
}
var pageIndex = PageIndexFromName (strAddress);
hlObj.DoFunction = "GoToPage (" + pageIndex + ");";
strAddress = HTMLEscape (strAddress);
hlObj.Desc = strAddress;
}
}
hlDesc = SelectSingleNode(hlNode,"HLURL:Description/text()");
if (hlDesc != null && hlDesc.nodeValue.length > 0)
{
hlObj.Desc = HTMLEscape (hlDesc.nodeValue);
}
else
{
hlObj.Desc = strAddress;
}
var hlNewWindow = SelectSingleNode(hlNode,"HLURL:NewWindow/text()");
if (hlNewWindow != null && hlNewWindow.nodeValue.length > 0)
{
hlObj.NewWindow = (hlNewWindow.nodeValue == "1");
}
}
return hlObj;
}
</script>
</head>
<frameset id="frmstOuter" cols="237,*">
<frame src="WirtualnaUczelnia_files/toolbar.htm" name="frmToolbar" id="frmToolbar" title="This frame contains tools for manipulating your drawing." frameborder="6" bordercolor="#999999" scrolling="no" marginheight="0" marginwidth="0" >
<frame src="WirtualnaUczelnia_files/png_1.htm" name="frmDrawing" title="This frame contains the pages of your drawing." marginheight="10" marginwidth="10" onload="if (parent.isUpLevel) FramePageLoaded()" >
<noframes>
<body>
<h1>Drawing2</h1>
<ul>
<li><a href="WirtualnaUczelnia_files/png_1.htm">Page-1</a></li>
<li><a href="WirtualnaUczelnia_files/png_2.htm">Page-2</a></li>
<li><a href="WirtualnaUczelnia_files/png_3.htm">Page-3</a></li>
<li><a href="WirtualnaUczelnia_files/png_4.htm">Page-5</a></li>
<li><a href="WirtualnaUczelnia_files/png_5.htm">Page-4</a></li>
</ul>
</body>
</noframes>
</frameset>
</html>

View File

@ -0,0 +1,891 @@
///////////////////////////////////////////////////////////////////////////////
//
// Silverlight.js version 2.0.31030.0
//
// This file is provided by Microsoft as a helper file for websites that
// incorporate Silverlight Objects. This file is provided under the Microsoft
// Public License available at
// http://code.msdn.microsoft.com/silverlightjs/Project/License.aspx.
// You may not use or distribute this file or the code in this file except as
// expressly permitted under that license.
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
///////////////////////////////////////////////////////////////////////////////
if (!window.Silverlight)
{
window.Silverlight = { };
}
//////////////////////////////////////////////////////////////////
//
// _silverlightCount:
//
// Counter of globalized event handlers
//
//////////////////////////////////////////////////////////////////
Silverlight._silverlightCount = 0;
//////////////////////////////////////////////////////////////////
//
// __onSilverlightInstalledCalled:
//
// Prevents onSilverlightInstalled from being called multiple
// times
//
//////////////////////////////////////////////////////////////////
Silverlight.__onSilverlightInstalledCalled = false;
//////////////////////////////////////////////////////////////////
//
// fwlinkRoot:
//
// Prefix for fwlink URL's
//
//////////////////////////////////////////////////////////////////
Silverlight.fwlinkRoot='http://go2.microsoft.com/fwlink/?LinkID=';
//////////////////////////////////////////////////////////////////
//
// __installationEventFired:
//
// Ensures that only one Installation State event is fired.
//
//////////////////////////////////////////////////////////////////
Silverlight.__installationEventFired = false;
//////////////////////////////////////////////////////////////////
//
// onGetSilverlight:
//
// Called by Silverlight.GetSilverlight to notify the page that a user
// has requested the Silverlight installer
//
//////////////////////////////////////////////////////////////////
Silverlight.onGetSilverlight = null;
//////////////////////////////////////////////////////////////////
//
// onSilverlightInstalled:
//
// Called by Silverlight.WaitForInstallCompletion when the page detects
// that Silverlight has been installed. The event handler is not called
// in upgrade scenarios.
//
//////////////////////////////////////////////////////////////////
Silverlight.onSilverlightInstalled = function () {window.location.reload(false);};
//////////////////////////////////////////////////////////////////
//
// isInstalled:
//
// Checks to see if the correct version is installed
//
//////////////////////////////////////////////////////////////////
Silverlight.isInstalled = function(version)
{
if (version == undefined)
version = null;
var isVersionSupported = false;
var container = null;
try
{
var control = null;
var tryNS = false;
if (window.ActiveXObject)
{
try
{
control = new ActiveXObject('AgControl.AgControl');
if (version === null)
{
isVersionSupported = true;
}
else if (control.IsVersionSupported(version))
{
isVersionSupported = true;
}
control = null;
}
catch (e)
{
tryNS = true;
}
}
else
{
tryNS = true;
}
if (tryNS)
{
var plugin = navigator.plugins["Silverlight Plug-In"];
if (plugin)
{
if (version === null)
{
isVersionSupported = true;
}
else
{
var actualVer = plugin.description;
if (actualVer === "1.0.30226.2")
actualVer = "2.0.30226.2";
var actualVerArray = actualVer.split(".");
while (actualVerArray.length > 3)
{
actualVerArray.pop();
}
while (actualVerArray.length < 4)
{
actualVerArray.push(0);
}
var reqVerArray = version.split(".");
while (reqVerArray.length > 4)
{
reqVerArray.pop();
}
var requiredVersionPart;
var actualVersionPart;
var index = 0;
do
{
requiredVersionPart = parseInt(reqVerArray[index]);
actualVersionPart = parseInt(actualVerArray[index]);
index++;
}
while (index < reqVerArray.length && requiredVersionPart === actualVersionPart);
if (requiredVersionPart <= actualVersionPart && !isNaN(requiredVersionPart))
{
isVersionSupported = true;
}
}
}
}
}
catch (e)
{
isVersionSupported = false;
}
return isVersionSupported;
};
//////////////////////////////////////////////////////////////////
//
// WaitForInstallCompletion:
//
// Occasionally checks for Silverlight installation status. If it
// detects that Silverlight has been installed then it calls
// Silverlight.onSilverlightInstalled();. This is only supported
// if Silverlight was not previously installed on this computer.
//
//////////////////////////////////////////////////////////////////
Silverlight.WaitForInstallCompletion = function()
{
if ( ! Silverlight.isBrowserRestartRequired && Silverlight.onSilverlightInstalled )
{
try
{
navigator.plugins.refresh();
}
catch(e)
{
}
if (Silverlight.isInstalled(null) && !Silverlight.__onSilverlightInstalledCalled)
{
Silverlight.onSilverlightInstalled();
Silverlight.__onSilverlightInstalledCalled = true;
}
else
{
setTimeout(Silverlight.WaitForInstallCompletion, 3000);
}
}
};
//////////////////////////////////////////////////////////////////
//
// __startup:
//
// Performs startup tasks.
//////////////////////////////////////////////////////////////////
Silverlight.__startup = function()
{
navigator.plugins.refresh();
Silverlight.isBrowserRestartRequired = Silverlight.isInstalled(null);
if (!Silverlight.isBrowserRestartRequired)
{
Silverlight.WaitForInstallCompletion();
if (!Silverlight.__installationEventFired)
{
Silverlight.onInstallRequired();
Silverlight.__installationEventFired = true;
}
}
else if (window.navigator.mimeTypes)
{
var mimeSL2 = navigator.mimeTypes["application/x-silverlight-2"];
var mimeSL2b2 = navigator.mimeTypes["application/x-silverlight-2-b2"];
var mimeSL2b1 = navigator.mimeTypes["application/x-silverlight-2-b1"];
var mimeHighestBeta = mimeSL2b1;
if (mimeSL2b2)
mimeHighestBeta = mimeSL2b2;
if (!mimeSL2 && (mimeSL2b1 || mimeSL2b2))
{
if (!Silverlight.__installationEventFired)
{
Silverlight.onUpgradeRequired();
Silverlight.__installationEventFired = true;
}
}
else if (mimeSL2 && mimeHighestBeta)
{
if (mimeSL2.enabledPlugin &&
mimeHighestBeta.enabledPlugin)
{
if (mimeSL2.enabledPlugin.description !=
mimeHighestBeta.enabledPlugin.description)
{
if (!Silverlight.__installationEventFired)
{
Silverlight.onRestartRequired();
Silverlight.__installationEventFired = true;
}
}
}
}
}
if (!Silverlight.disableAutoStartup)
{
if (window.removeEventListener)
{
window.removeEventListener('load', Silverlight.__startup, false);
}
else
{
window.detachEvent('onload', Silverlight.__startup);
}
}
};
///////////////////////////////////////////////////////////////////////////////
//
// This block wires up Silverlight.__startup to be executed once the page
// loads. This is the desired behavior for most sites. If, however, a site
// prefers to control the timing of the Silverlight.__startup call then it should
// put the following block of javascript into the webpage before this file is
// included:
//
// <script type="text/javascript">
// if (!window.Silverlight)
// {
// window.Silverlight = {};
// }
// Silverlight.disableAutoStartup = true;
// </script>
//
/////////////////////////////////////////////////////////////////////////////////
if (!Silverlight.disableAutoStartup)
{
if (window.addEventListener)
{
window.addEventListener('load', Silverlight.__startup, false);
}
else
{
window.attachEvent('onload', Silverlight.__startup);
}
}
///////////////////////////////////////////////////////////////////////////////
// createObject:
//
// Inserts a Silverlight <object> tag or installation experience into the HTML
// DOM based on the current installed state of Silverlight.
//
/////////////////////////////////////////////////////////////////////////////////
Silverlight.createObject = function(source, parentElement, id, properties, events, initParams, userContext)
{
var slPluginHelper = new Object();
var slProperties = properties;
var slEvents = events;
slPluginHelper.version = slProperties.version;
slProperties.source = source;
slPluginHelper.alt = slProperties.alt;
//rename properties to their tag property names. For bacwards compatibility
//with Silverlight.js version 1.0
if ( initParams )
slProperties.initParams = initParams;
if ( slProperties.isWindowless && !slProperties.windowless)
slProperties.windowless = slProperties.isWindowless;
if ( slProperties.framerate && !slProperties.maxFramerate)
slProperties.maxFramerate = slProperties.framerate;
if ( id && !slProperties.id)
slProperties.id = id;
// remove elements which are not to be added to the instantiation tag
delete slProperties.ignoreBrowserVer;
delete slProperties.inplaceInstallPrompt;
delete slProperties.version;
delete slProperties.isWindowless;
delete slProperties.framerate;
delete slProperties.data;
delete slProperties.src;
delete slProperties.alt;
// detect that the correct version of Silverlight is installed, else display install
if (Silverlight.isInstalled(slPluginHelper.version))
{
//move unknown events to the slProperties array
for (var name in slEvents)
{
if ( slEvents[name])
{
if ( name == "onLoad" && typeof slEvents[name] == "function" && slEvents[name].length != 1 )
{
var onLoadHandler = slEvents[name];
slEvents[name]=function (sender){ return onLoadHandler(document.getElementById(id), userContext, sender)};
}
var handlerName = Silverlight.__getHandlerName(slEvents[name]);
if ( handlerName != null )
{
slProperties[name] = handlerName;
slEvents[name] = null;
}
else
{
throw "typeof events."+name+" must be 'function' or 'string'";
}
}
}
slPluginHTML = Silverlight.buildHTML(slProperties);
}
//The control could not be instantiated. Show the installation prompt
else
{
slPluginHTML = Silverlight.buildPromptHTML(slPluginHelper);
}
// insert or return the HTML
if(parentElement)
{
parentElement.innerHTML = slPluginHTML;
}
else
{
return slPluginHTML;
}
};
///////////////////////////////////////////////////////////////////////////////
//
// buildHTML:
//
// create HTML that instantiates the control
//
///////////////////////////////////////////////////////////////////////////////
Silverlight.buildHTML = function( slProperties)
{
var htmlBuilder = [];
htmlBuilder.push('<object type=\"application/x-silverlight\" data="data:application/x-silverlight,"');
if ( slProperties.id != null )
{
htmlBuilder.push(' id="' + Silverlight.HtmlAttributeEncode(slProperties.id) + '"');
}
if ( slProperties.width != null )
{
htmlBuilder.push(' width="' + slProperties.width+ '"');
}
if ( slProperties.height != null )
{
htmlBuilder.push(' height="' + slProperties.height + '"');
}
htmlBuilder.push(' >');
delete slProperties.id;
delete slProperties.width;
delete slProperties.height;
for (var name in slProperties)
{
if (slProperties[name])
{
htmlBuilder.push('<param name="'+Silverlight.HtmlAttributeEncode(name)+'" value="'+Silverlight.HtmlAttributeEncode(slProperties[name])+'" />');
}
}
htmlBuilder.push('<\/object>');
return htmlBuilder.join('');
};
//////////////////////////////////////////////////////////////////
//
// createObjectEx:
//
// takes a single parameter of all createObject
// parameters enclosed in {}
//
//////////////////////////////////////////////////////////////////
Silverlight.createObjectEx = function(params)
{
var parameters = params;
var html = Silverlight.createObject(parameters.source, parameters.parentElement, parameters.id, parameters.properties, parameters.events, parameters.initParams, parameters.context);
if (parameters.parentElement == null)
{
return html;
}
};
///////////////////////////////////////////////////////////////////////////////////////////////
//
// buildPromptHTML
//
// Builds the HTML to prompt the user to download and install Silverlight
//
///////////////////////////////////////////////////////////////////////////////////////////////
Silverlight.buildPromptHTML = function(slPluginHelper)
{
var slPluginHTML = "";
var urlRoot = Silverlight.fwlinkRoot;
var version = slPluginHelper.version ;
if ( slPluginHelper.alt )
{
slPluginHTML = slPluginHelper.alt;
}
else
{
if (! version)
{
version="";
}
slPluginHTML = "<a href='javascript:Silverlight.getSilverlight(\"{1}\");' style='text-decoration: none;'><img src='{2}' alt='Get Microsoft Silverlight' style='border-style: none'/></a>";
slPluginHTML = slPluginHTML.replace('{1}', version);
slPluginHTML = slPluginHTML.replace('{2}', urlRoot + '108181');
}
return slPluginHTML;
};
///////////////////////////////////////////////////////////////////////////////////////////////
//
// getSilverlight:
//
// Navigates the browser to the appropriate Silverlight installer
//
///////////////////////////////////////////////////////////////////////////////////////////////
Silverlight.getSilverlight = function(version)
{
if (Silverlight.onGetSilverlight )
{
Silverlight.onGetSilverlight();
}
var shortVer = "";
var reqVerArray = String(version).split(".");
if (reqVerArray.length > 1)
{
var majorNum = parseInt(reqVerArray[0] );
if ( isNaN(majorNum) || majorNum < 2 )
{
shortVer = "1.0";
}
else
{
shortVer = reqVerArray[0]+'.'+reqVerArray[1];
}
}
var verArg = "";
if (shortVer.match(/^\d+\056\d+$/) )
{
verArg = "&v="+shortVer;
}
Silverlight.followFWLink("114576" + verArg);
};
///////////////////////////////////////////////////////////////////////////////////////////////
//
// followFWLink:
//
// Navigates to a url based on fwlinkid
//
///////////////////////////////////////////////////////////////////////////////////////////////
Silverlight.followFWLink = function(linkid)
{
top.location=Silverlight.fwlinkRoot+String(linkid);
};
///////////////////////////////////////////////////////////////////////////////////////////////
//
// HtmlAttributeEncode:
//
// Encodes special characters in input strings as charcodes
//
///////////////////////////////////////////////////////////////////////////////////////////////
Silverlight.HtmlAttributeEncode = function( strInput )
{
var c;
var retVal = '';
if(strInput == null)
{
return null;
}
for(var cnt = 0; cnt < strInput.length; cnt++)
{
c = strInput.charCodeAt(cnt);
if (( ( c > 96 ) && ( c < 123 ) ) ||
( ( c > 64 ) && ( c < 91 ) ) ||
( ( c > 43 ) && ( c < 58 ) && (c!=47)) ||
( c == 95 ))
{
retVal = retVal + String.fromCharCode(c);
}
else
{
retVal = retVal + '&#' + c + ';';
}
}
return retVal;
};
///////////////////////////////////////////////////////////////////////////////
//
// default_error_handler:
//
// Default error handling function
//
///////////////////////////////////////////////////////////////////////////////
Silverlight.default_error_handler = function (sender, args)
{
var iErrorCode;
var errorType = args.ErrorType;
iErrorCode = args.ErrorCode;
var errMsg = "\nSilverlight error message \n" ;
errMsg += "ErrorCode: "+ iErrorCode + "\n";
errMsg += "ErrorType: " + errorType + " \n";
errMsg += "Message: " + args.ErrorMessage + " \n";
if (errorType == "ParserError")
{
errMsg += "XamlFile: " + args.xamlFile + " \n";
errMsg += "Line: " + args.lineNumber + " \n";
errMsg += "Position: " + args.charPosition + " \n";
}
else if (errorType == "RuntimeError")
{
if (args.lineNumber != 0)
{
errMsg += "Line: " + args.lineNumber + " \n";
errMsg += "Position: " + args.charPosition + " \n";
}
errMsg += "MethodName: " + args.methodName + " \n";
}
alert (errMsg);
};
///////////////////////////////////////////////////////////////////////////////////////////////
//
// __cleanup:
//
// Releases event handler resources when the page is unloaded
//
///////////////////////////////////////////////////////////////////////////////////////////////
Silverlight.__cleanup = function ()
{
for (var i = Silverlight._silverlightCount - 1; i >= 0; i--) {
window['__slEvent' + i] = null;
}
Silverlight._silverlightCount = 0;
if (window.removeEventListener) {
window.removeEventListener('unload', Silverlight.__cleanup , false);
}
else {
window.detachEvent('onunload', Silverlight.__cleanup );
}
};
///////////////////////////////////////////////////////////////////////////////////////////////
//
// __getHandlerName:
//
// Generates named event handlers for delegates.
//
///////////////////////////////////////////////////////////////////////////////////////////////
Silverlight.__getHandlerName = function (handler)
{
var handlerName = "";
if ( typeof handler == "string")
{
handlerName = handler;
}
else if ( typeof handler == "function" )
{
if (Silverlight._silverlightCount == 0)
{
if (window.addEventListener)
{
window.addEventListener('onunload', Silverlight.__cleanup , false);
}
else
{
window.attachEvent('onunload', Silverlight.__cleanup );
}
}
var count = Silverlight._silverlightCount++;
handlerName = "__slEvent"+count;
window[handlerName]=handler;
}
else
{
handlerName = null;
}
return handlerName;
};
//////////////////////////////////////////////////////////////////
//
// onRequiredVersionAvailable:
//
// Called by version verification control to notify the page that
// an appropriate build of Silverlight is available. The page
// should respond by injecting the appropriate Silverlight control
//
//////////////////////////////////////////////////////////////////
Silverlight.onRequiredVersionAvailable = function()
{
};
//////////////////////////////////////////////////////////////////
//
// onRestartRequired:
//
// Called by version verification control to notify the page that
// an appropriate build of Silverlight is installed but not loaded.
// The page should respond by injecting a clear and visible
// "Thanks for installing. Please restart your browser and return
// to mysite.com" or equivalent into the browser DOM
//
//////////////////////////////////////////////////////////////////
Silverlight.onRestartRequired = function()
{
};
//////////////////////////////////////////////////////////////////
//
// onUpgradeRequired:
//
// Called by version verification control to notify the page that
// Silverlight must be upgraded. The page should respond by
// injecting a clear, visible, and actionable upgrade message into
// the DOM. The message must inform the user that they need to
// upgrade Silverlight to use the page. They are already somewhat
// familiar with the Silverlight product when they encounter this.
// Silverlight should be mentioned so the user expects to see that
// string in the installer UI. However, the Silverlight-powered
// application should be the focus of the solicitation. The user
// wants the app. Silverlight is a means to the app.
//
// The upgrade solicitation will have a button that directs
// the user to the Silverlight installer. Upon click the button
// should both kick off a download of the installer URL and replace
// the Upgrade text with "Thanks for downloading. When the upgarde
// is complete please restart your browser and return to
// mysite.com" or equivalent.
//
// Note: For a more interesting upgrade UX we can use Silverlight
// 1.0-style XAML for this upgrade experience. Contact PiotrP for
// details.
//
//////////////////////////////////////////////////////////////////
Silverlight.onUpgradeRequired = function()
{
};
//////////////////////////////////////////////////////////////////
//
// onInstallRequired:
//
// Called by Silverlight.checkInstallStatus to notify the page
// that Silverlight has not been installed by this user.
// The page should respond by
// injecting a clear, visible, and actionable upgrade message into
// the DOM. The message must inform the user that they need to
// download and install components needed to use the page.
// Silverlight should be mentioned so the user expects to see that
// string in the installer UI. However, the Silverlight-powered
// application should be the focus of the solicitation. The user
// wants the app. Silverlight is a means to the app.
//
// The installation solicitation will have a button that directs
// the user to the Silverlight installer. Upon click the button
// should both kick off a download of the installer URL and replace
// the Upgrade text with "Thanks for downloading. When installation
// is complete you may need to refresh the page to view this
// content" or equivalent.
//
//////////////////////////////////////////////////////////////////
Silverlight.onInstallRequired = function()
{
};
//////////////////////////////////////////////////////////////////
//
// IsVersionAvailableOnError:
//
// This function should be called at the beginning of a web page's
// Silverlight error handler. It will determine if the required
// version of Silverlight is installed and available in the
// current process.
//
// During its execution the function will trigger one of the
// Silverlight installation state events, if appropriate.
//
// Sender and Args should be passed through from the calling
// onError handler's parameters.
//
// The associated Sivlerlight <object> tag must have
// minRuntimeVersion set and should have autoUpgrade set to false.
//
//////////////////////////////////////////////////////////////////
Silverlight.IsVersionAvailableOnError = function(sender, args)
{
var retVal = false;
try
{
if (args.ErrorCode == 8001 && !Silverlight.__installationEventFired)
{
Silverlight.onUpgradeRequired();
Silverlight.__installationEventFired = true;
}
else if (args.ErrorCode == 8002 && !Silverlight.__installationEventFired)
{
Silverlight.onRestartRequired();
Silverlight.__installationEventFired = true;
}
// this handles upgrades from 1.0. That control did not
// understand the minRuntimeVerison parameter. It also
// did not know how to parse XAP files, so would throw
// Parse Error (5014). A Beta 2 control may throw 2106
else if (args.ErrorCode == 5014 || args.ErrorCode == 2106)
{
if (Silverlight.__verifySilverlight2UpgradeSuccess(args.getHost()))
{
retVal = true;
}
}
else
{
retVal = true;
}
}
catch (e)
{
}
return retVal;
};
//////////////////////////////////////////////////////////////////
//
// IsVersionAvailableOnLoad:
//
// This function should be called at the beginning of a web page's
// Silverlight onLoad handler. It will determine if the required
// version of Silverlight is installed and available in the
// current process.
//
// During its execution the function will trigger one of the
// Silverlight installation state events, if appropriate.
//
// Sender should be passed through from the calling
// onError handler's parameters.
//
// The associated Sivlerlight <object> tag must have
// minRuntimeVersion set and should have autoUpgrade set to false.
//
//////////////////////////////////////////////////////////////////
Silverlight.IsVersionAvailableOnLoad = function(sender)
{
var retVal = false;
try
{
if (Silverlight.__verifySilverlight2UpgradeSuccess(sender.getHost()))
{
retVal = true;
}
}
catch (e)
{
}
return retVal;
};
//////////////////////////////////////////////////////////////////
//
// __verifySilverlight2UpgradeSuccess:
//
// This internal function helps identify installation state by
// taking advantage of behavioral differences between the
// 1.0 and 2.0 releases of Silverlight.
//
//////////////////////////////////////////////////////////////////
Silverlight.__verifySilverlight2UpgradeSuccess = function(host)
{
var retVal = false;
var version = "2.0.31005";
var installationEvent = null;
try
{
if (host.IsVersionSupported(version + ".99"))
{
installationEvent = Silverlight.onRequiredVersionAvailable;
retVal = true;
}
else if (host.IsVersionSupported(version + ".0"))
{
installationEvent = Silverlight.onRestartRequired;
}
else
{
installationEvent = Silverlight.onUpgradeRequired;
}
if (installationEvent && !Silverlight.__installationEventFired)
{
installationEvent();
Silverlight.__installationEventFired = true;
}
}
catch (e)
{
}
return retVal;
};

View File

@ -0,0 +1,127 @@
///////////////////////////////////////////////////////////////////////////////
//
// Silverlight.supportedUserAgent.js version 2.0.30822.0
//
// This file is provided by Microsoft as a helper file for websites that
// incorporate Silverlight Objects. This file is provided under the Microsoft
// Public License available at
// http://code.msdn.microsoft.com/SLsupportedUA/Project/License.aspx.
// You may not use or distribute this file or the code in this file except as
// expressly permitted under that license.
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
///////////////////////////////////////////////////////////////////////////////
if (!window.Silverlight)
{
window.Silverlight = { };
}
///////////////////////////////////////////////////////////////////////////////
//
// supportedUserAgent:
//
// NOTE: This function is strongly tied to current implementations of web
// browsers. The implementation of this function will change over time to
// account for new Web browser developments. Visit
// http://code.msdn.microsoft.com/SLsupportedUA often to ensure that you have
// the latest version.
//
// Determines if the client browser is supported by Silverlight.
//
// params:
// version [string]
// determines if a particular version of Silverlight supports
// this browser. Acceptable values are "1.0" and "2.0"
// userAgent [string]
// optional. User Agent string to be analized. If null then the
// current browsers user agent string will be used.
//
// return value: boolean
//
///////////////////////////////////////////////////////////////////////////////
Silverlight.supportedUserAgent = function(version, userAgent)
{
try
{
var ua = null;
if ( userAgent)
{
ua = userAgent;
}
else
{
ua = window.navigator.userAgent;
}
var slua = {OS:'Unsupported',Browser:'Unsupported'};
//Silverlight does not support pre-Windows NT platforms
if (ua.indexOf('Windows NT') >= 0 || ua.indexOf('Mozilla/4.0 (compatible; MSIE 6.0)')>=0) {
slua.OS = 'Windows';
}
else if (ua.indexOf('PPC Mac OS X') >= 0) {
slua.OS = 'MacPPC';
}
else if (ua.indexOf('Intel Mac OS X') >= 0) {
slua.OS = 'MacIntel';
}
if ( slua.OS != 'Unsupported' )
{
if (ua.indexOf('MSIE') >= 0) {
if (navigator.userAgent.indexOf('Win64') == -1)
{
if (parseInt(ua.split('MSIE')[1]) >= 6) {
slua.Browser = 'MSIE';
}
}
}
else if (ua.indexOf('Firefox') >= 0) {
var versionArr = ua.split('Firefox/')[1].split('.');
var major = parseInt(versionArr[0]);
if (major >= 2) {
slua.Browser = 'Firefox';
}
else {
var minor = parseInt(versionArr[1]);
if ((major == 1) && (minor >= 5)) {
slua.Browser = 'Firefox';
}
}
}
else if (ua.indexOf('Safari') >= 0) {
slua.Browser = 'Safari';
}
}
//detect all unsupported platform combinations (IE on Mac, Safari on Win)
var supUA = (!( slua.OS == 'Unsupported' || //Unsupported OS
slua.Browser == 'Unsupported' || //Unsupported Browser
(slua.OS == 'Windows' && slua.Browser == 'Safari') || //Safari is not supported on Windows
(slua.OS.indexOf('Mac') >= 0 && slua.Browser == 'MSIE') //IE is not supported on Mac
));
if (version=='2.0')
{
//add PPC to unsupported list
return (supUA && (slua.OS != 'MacPPC' ));
}
else if (version == '1.0')
{
//add win2k to unsupported list
return (supUA && ( ua.indexOf('Windows NT 5.0') < 0));
}
else
{
return (supUA);
}
}
catch (e)
{
return false;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,51 @@
<xml xmlns:o="urn:schemas-microsoft-com:office:office">
<o:File HRef="minimize.gif"/>
<o:File HRef="maximize.gif"/>
<o:File HRef="go.gif"/>
<o:File HRef="fullpage.gif"/>
<o:File HRef="plus.gif"/>
<o:File HRef="minus.gif"/>
<o:File HRef="panminus.gif"/>
<o:File HRef="panplus.gif"/>
<o:File HRef="tick-foc.gif"/>
<o:File HRef="tick-off.gif"/>
<o:File HRef="tick-on.gif"/>
<o:File HRef="toc.gif"/>
<o:File HRef="toc2.gif"/>
<o:File HRef="arrow.png"/>
<o:File HRef="data.xml"/>
<o:File HRef="frameset.js"/>
<o:File HRef="keys.js"/>
<o:File HRef="visio.css"/>
<o:File HRef="xaml_1.xaml"/>
<o:File HRef="png_1.png"/>
<o:File HRef="xaml_1.js"/>
<o:File HRef="Silverlight.js"/>
<o:File HRef="Silverlight.supportedUserAgent.js"/>
<o:File HRef="xaml_1.htm"/>
<o:File HRef="png_1.js"/>
<o:File HRef="png_1.htm"/>
<o:File HRef="xaml_2.xaml"/>
<o:File HRef="png_2.png"/>
<o:File HRef="xaml_2.htm"/>
<o:File HRef="png_2.htm"/>
<o:File HRef="xaml_3.xaml"/>
<o:File HRef="png_3.png"/>
<o:File HRef="xaml_3.htm"/>
<o:File HRef="png_3.htm"/>
<o:File HRef="xaml_4.xaml"/>
<o:File HRef="png_4.png"/>
<o:File HRef="xaml_4.htm"/>
<o:File HRef="png_4.htm"/>
<o:File HRef="xaml_5.xaml"/>
<o:File HRef="png_5.png"/>
<o:File HRef="xaml_5.htm"/>
<o:File HRef="png_5.htm"/>
<o:File HRef="67BB045E-7089-4AE1-4275-D1423A492E29.odttf"/>
<o:File HRef="zoom.htm"/>
<o:File HRef="find.js"/>
<o:File HRef="widgets.htm"/>
<o:File HRef="toolbar.htm"/>
<o:MainFile HRef="../WirtualnaUczelnia.htm"/>
<o:File HRef="filelist.xml"/>
</xml>

View File

@ -0,0 +1,541 @@
var SelectSingleNode = parent.SelectSingleNode;
var SelectNodes = parent.SelectNodes;
var MSIE = parent.MSIE
var strShapeName = "Shape Name";
var strShapeText = "Shape Text";
var strProps = "Shape Data";
var strResults = "Search results for:";
var strShape = "Shape Name:";
var strNoCustomPropertiesToDisplayText = "CTRL+click a shape in the drawing to view details.";
var FindShapeXML = parent.FindShapeXML;
var Unquote = parent.Unquote;
var put_Location = parent.put_Location;
var strChkBox = "Chkbox";
var strPropChkBox = "PropChkbox";
function doExpando(xxx,yyy){
if (xxx.style.display=="none"){
xxx.style.display = ""
yyy.src = up.src;
}else{
xxx.style.display = "none"
yyy.src = down.src;
}
}
function doExp(xxx,yyy){
if (xxx.style.display=="none"){
xxx.style.display = ""
yyy.src = "minus.gif";
}else{
xxx.style.display = "none"
yyy.src = "plus.gif";
}
}
function FindOnClick()
{
var count, indexOfString;
var fieldsToSearchArray = new Array();
if (parent.xmlData != null && document.theForm[strProps + strChkBox].checked)
{
for( count=0; count < document.theForm.length; count++ )
{
indexOfString = document.theForm[count].name.indexOf(strPropChkBox);
if( -1 != indexOfString && document.theForm[count].checked )
{
fieldsToSearchArray[ fieldsToSearchArray.length ] = document.theForm[count].name.slice(0, indexOfString);
}
}
}
var searchTokensArray = CreateSearchTokens (document.theForm.findString.value);
if (searchTokensArray.length > 0)
{
var findArray = Find(searchTokensArray, fieldsToSearchArray);
var ArrayLength = findArray.length;
var strResultsHTML = "No matches found.";
var lastPageID = null;
var shapeID;
if(ArrayLength > 0)
{
strResultsHTML = strResults + ' <b>'+ parent.HTMLEscape(document.theForm.findString.value) +'</b>';
for ( count = 0; count < ArrayLength; count++)
{
if( lastPageID != findArray[count].PageID )
{
lastPageID = findArray[count].PageID;
}
shapeID = findArray[count].ShapeID;
strResultsHTML += '<p class="results"><a href="javascript:populateSearchResultDetails(\'results_'+ lastPageID +'_'+ shapeID +'\', '+ lastPageID +','+ shapeID +'); TogglePlus(\'results_' + lastPageID + '_' + shapeID + '\',\'img_' + lastPageID + '_' + shapeID + '\', hideResults)"><img src="plus.gif" style="padding-left:13px" alt="Shows/hides shape details" width="13" height="9" border="0" id="img_'+ lastPageID +'_'+ shapeID +'"></a>\n'
strResultsHTML += '<a class="blu1" href="JavaScript:FindQuerySelect(';
strResultsHTML += findArray[count].PageID + ",";
strResultsHTML += findArray[count].ShapeID + ",";
strResultsHTML += findArray[count].PinX + ",";
strResultsHTML += findArray[count].PinY;
strResultsHTML += ')">'+ findArray[count].Title +'</a></p>\n'
strResultsHTML += '</div>\n';
strResultsHTML += '<div class="indent" id="results_'+ lastPageID +'_'+ shapeID +'" style="display:none;width:90%;"></div>\n'
}
}
var divAdvSrch = document.getElementById("hideAdvSrch");
var imgAS0 = document.getElementById("as0");
var tmpObj = document.getElementById("hideResults");
if( tmpObj != null )
{
tmpObj.innerHTML = strResultsHTML;
tmpObj.open = "true";
tmpObj.style.display = "block";
}
}
}
function CreateSearchTokens (strUserString)
{
var searchTokensArray = new Array();
var strToken = "";
var chCurChar;
for (var count = 0; count < strUserString.length; count++)
{
chCurChar = strUserString.charAt(count);
if (chCurChar == '"')
{
var nNextQuote = strUserString.indexOf('"', count + 1);
if (nNextQuote >= 0)
{
strToken = strUserString.slice(count + 1, nNextQuote);
searchTokensArray[searchTokensArray.length] = strToken;
strToken = "";
count = nNextQuote;
}
}
else if (chCurChar == ' ')
{
if (strToken.length > 0)
{
searchTokensArray[searchTokensArray.length] = strToken;
}
strToken = "";
}
else
{
strToken += chCurChar;
}
}
if (strToken.length > 0)
{
searchTokensArray[searchTokensArray.length] = strToken;
}
return searchTokensArray;
}
function populateSearchResultDetails( divID, pageID, shapeID )
{
var tmpShape = FindShapeXML (pageID, shapeID);
var strOutput = CreatePropTable( tmpShape );
var tmpObj = document.getElementById(divID);
if( tmpObj != null )
{
tmpObj.innerHTML = strOutput;
}
}
function makeAdvancedFindCheckboxes(div)
{
if (parent.xmlData)
{
var strOutput = "";
strOutput += "<INPUT type='checkbox' name='" + strShapeName + strChkBox + "' id='" + strShapeName + strChkBox + "' checked><label for='" + strShapeName + strChkBox + "'>" + strShapeName + "</label><br>\n";
strOutput += "<INPUT type='checkbox' name='" + strShapeText + strChkBox + "' id='" + strShapeText + strChkBox + "' checked><label for='" + strShapeText + strChkBox + "'>" + strShapeText + "</label><br>\n";
strOutput += "<INPUT type='checkbox' name='" + strProps + strChkBox + "' id='" + strProps + strChkBox + "' onclick='AdvSearchCustomPropCheck ()'checked ><label for='" + strProps + strChkBox + "'>" + strProps +"</label><br>\n";
strOutput += "<div id='divCPBoxes' style='margin-left:1em;'>";
var objNodes = SelectNodes(parent.xmlData, ".//Shape/Prop/Label");
var filter = "";
var boolFirstPass = true;
var tmpPropName;
while( objNodes.length > 0)
{
if (objNodes[0].text)
tmpPropName = objNodes[0].text;
else
tmpPropName = objNodes[0].textContent;
if(null == tmpPropName)
tmpPropName = "";
var escapedPropName = parent.EscapeString(tmpPropName);
if( true == boolFirstPass )
{
filter = ". != '" + escapedPropName + "'";
boolFirstPass = false;
}
else
{
filter += " and . != '" + escapedPropName + "'";
}
tmpPropName = parent.HTMLEscape (tmpPropName);
strOutput += "<INPUT type='checkbox' name='" + tmpPropName + strPropChkBox + "' id='"+ tmpPropName + strPropChkBox + "' checked><label for='"+ tmpPropName + strPropChkBox + "'>" + tmpPropName +"</label><br>\n";
objNodes = SelectNodes(parent.xmlData, ".//Shape/Prop/Label/text()[" + filter + "]");
}
strOutput += "</div>"
div.innerHTML = strOutput;
}
}
function AdvSearchCustomPropCheck ()
{
for( count=0; count < document.theForm.length; count++ )
{
indexOfString = document.theForm[count].name.indexOf(strPropChkBox);
if( -1 != indexOfString )
{
document.theForm[count].disabled = !document.theForm[strProps + strChkBox].checked;
}
}
}
function CResultItem(title, pageID, shapeID, pinX, pinY)
{
this["Title"] = title;
this["PageID"] = pageID;
this["ShapeID"] = shapeID;
this["PinX"] = pinX;
this["PinY"] = pinY;
}
function FindParentPage(nodeObject)
{
if(nodeObject == null)
{
return null;
}
if(nodeObject.nodeName == "Page")
return nodeObject;
else
return FindParentPage(nodeObject.parentNode);
}
function QueryStringForMatch(shapeNode, regTextForFind, filterString)
{
if (filterString.length > 0)
{
var nodesToCheck = SelectNodes(shapeNode, filterString);
var nodeCount = nodesToCheck.length;
var stringToParse;
for(var ncount = 0; ncount < nodeCount; ncount++)
{
stringToParse = nodesToCheck[ncount].nodeValue;
stringToParse = stringToParse.toLowerCase ();
if(stringToParse.indexOf(regTextForFind) > -1)
{
return true;
}
}
}
return false;
}
function GetShapeTitle(shapeNode)
{
var objTempTextElement = SelectSingleNode(shapeNode, "./Text/text()");
if(objTempTextElement != null)
{
var objText = objTempTextElement.nodeValue;
if (objText)
{
return parent.HTMLEscape(objText);
}
}
var objTempName = SelectSingleNode(shapeNode, "./@Name");
if(objTempName && objTempName.nodeValue)
{
return parent.HTMLEscape(objTempName.nodeValue);
}
return "";
}
function GetPageTitle(pageID)
{
var pagesObj = SelectSingleNode(parent.xmlData, "VisioDocument/Pages");
if(!pagesObj)
{
return "";
}
var pageQuerryString = './/Page[@ID = "' + pageID + '"]';
var pageObj = SelectSingleNode(pagesObj, pageQuerryString);
if(!pageObj)
{
return "";
}
var pageNameNode = SelectSingleNode(pageObj, "@Name");
if(!pageNameNode)
{
return "";
}
return pageNameNode.text;
}
function Find(searchTokensArray, propsToSearchArray)
{
var bXMLNotValid = false;
var findArray = new Array();
var findIndex = 0;
if (parent.xmlData != null && searchTokensArray.length > 0)
{
var fieldsToSearchArray = new Array();
var filterString = "";
if( null != propsToSearchArray &&
propsToSearchArray.length > 0 )
{
var propFilterString = "";
for( var count=0; count< propsToSearchArray.length; count++ )
{
if( count == 0 )
{
propFilterString = "[. = '" + parent.EscapeString (propsToSearchArray[count]) + "'";
}
else
{
propFilterString += " or . = '"+ parent.EscapeString (propsToSearchArray[count]) + "'";
}
}
propFilterString += "]";
fieldsToSearchArray[fieldsToSearchArray.length] = "Prop[Label"+ propFilterString +"]/Value";
}
if (document.theForm[strShapeText + strChkBox].checked)
{
fieldsToSearchArray[fieldsToSearchArray.length] = "Text";
}
if (fieldsToSearchArray.length > 0)
{
filterString = ".//";
for (var fieldCount = 0; fieldCount < fieldsToSearchArray.length; fieldCount++)
{
if (fieldCount != 0)
{
filterString += "/text() | .//";
}
filterString += fieldsToSearchArray[fieldCount];
}
filterString += "/text()";
}
var objShapeNodes;
if (document.theForm[strShapeName + strChkBox].checked)
{
if (filterString.length > 0)
{
filterString += " | ";
}
filterString += "@Name";
objShapeNodes = SelectNodes(parent.xmlData, ".//Shape");
}
else
{
objShapeNodes = SelectNodes(parent.xmlData, ".//Shape[(Prop/Value | Prop/Label | Text)]");
}
var shapeCount = objShapeNodes.length;
var objTempData = new CResultItem("A Label","PageID","ShapeID","PinX","PinY");
var objTempShape = null;
for (count = 0; count < shapeCount; count++)
{
objTempShape = objShapeNodes[count];
var objParentPageNode = FindParentPage(objTempShape);
if (objParentPageNode == null)
{
continue;
}
//Find out the drawing scale of the page in which the shape belongs
var pageDrawScale = FindPageDrawingScale(objParentPageNode);
var pageID = SelectSingleNode(objParentPageNode, "@ID").nodeValue;
var pageIndex = parent.PageIndexFromID (pageID);
if (pageIndex < 0)
{
continue;
}
// Verifies that the shape is inside at least one visible layer, otherwise skip it
var objLayerMember = SelectSingleNode(objTempShape, "LayerMem/LayerMember");
if (objLayerMember != null)
{
if (objLayerMember.text)
var layerText = objLayerMember.text;
else
var layerText = objLayerMember.textContent;
if (layerText && layerText.length > 0)
{
var layerArray = layerText.split (';');
var visibleLayer = false;
for (var layerCount = 0; (layerCount < layerArray.length) && !visibleLayer; layerCount++)
{
var objLayerVisible = SelectSingleNode(objParentPageNode, "Layer[@IX=" + layerArray[layerCount] + "]/Visible");
if (objLayerVisible != null)
{
if (objLayerVisible.text)
visibleLayer = (objLayerVisible.text != 0);
else
visibleLayer = (objLayerVisible.textContent != 0);
if (visibleLayer)
break;
}
}
if (!visibleLayer)
{
continue;
}
}
}
for (var tokenCount = 0; tokenCount < searchTokensArray.length; tokenCount++)
{
var textToFind = searchTokensArray[tokenCount].toLowerCase ();
if (QueryStringForMatch(objTempShape, textToFind, filterString))
{
objTempData.Title = GetShapeTitle(objTempShape);
objTempData.PageID = pageID;
objTempData.ShapeID = SelectSingleNode(objTempShape, "@ID").nodeValue;
objPinXNode = SelectSingleNode(objTempShape, "XForm/PinX/text()");
if(objPinXNode == null)
{
bXMLNotValid = true;
break;
}
objTempData.PinX = objPinXNode.nodeValue;
objPinYNode = SelectSingleNode(objTempShape, "XForm/PinY/text()");
if(objPinYNode == null)
{
bXMLNotValid = true;
break;
}
objTempData.PinY = objPinYNode.nodeValue;
// the pinX and pinY values that we are passing here are transofrmed according to the drawing scale
findArray[findIndex] = new CResultItem(objTempData.Title, objTempData.PageID, objTempData.ShapeID, objTempData.PinX * pageDrawScale, objTempData.PinY * pageDrawScale);
findIndex++;
break;
}
}
}
if(bXMLNotValid)
{
findArray.length = 0;
}
}
return findArray;
}
function FindQuerySelect(pageID, shapeID, pinX, pinY)
{
if ((!widgets.GoTo && parent.g_FileList.length > 1) || (widgets.GoTo && parent.g_FileList[document.getElementById("Select1").value].PageID != pageID))
{
parent.g_callBackFunctionArray[parent.g_callBackFunctionArray.length] = function () { parent.viewMgr.put_Location (pageID, shapeID, pinX, pinY); };
parent.GoToPageByID(pageID);
}
else
{
if (parent.viewMgr != null)
{
parent.viewMgr.put_Location (pageID, shapeID, pinX, pinY);
}
}
}
function TreeSelect(pageID, shapeID)
{
var shapeNode = FindShapeXML (pageID, shapeID);
if (shapeNode != null)
{
var pinXNode = SelectSingleNode(shapeNode, "XForm/PinX/text()");
var pinYNode = SelectSingleNode(shapeNode, "XForm/PinY/text()");
if (pinXNode != null && pinYNode != null)
{
var parentPageNode = FindParentPage(shapeNode);
var pageDrawScale = FindPageDrawingScale(parentPageNode);
var pinX = pinXNode.nodeValue * pageDrawScale;//Scale both pinX and pinY values as per the drawing scale used for the page
var pinY = pinYNode.nodeValue * pageDrawScale;
FindQuerySelect (pageID, shapeID, pinX, pinY);
}
}
}
// Takes page node and returns drawing scale of the page
function FindPageDrawingScale(pageNode)
{
var pageDrawScale = 1;
if(pageNode != null)
{
var drawingScaleNode = SelectSingleNode(pageNode,"PageProps/DrawingScale/text()");
var pageScaleNode = SelectSingleNode(pageNode,"PageProps/PageScale/text()");
if(drawingScaleNode != null && pageScaleNode != null)
{
var drawingScale = drawingScaleNode.nodeValue;
var pageScale = pageScaleNode.nodeValue;
if(drawingScale != null && pageScale != null && pageScale != 0 && drawingScale != 0)
{
pageDrawScale = pageScale/drawingScale;
}
}
}
return pageDrawScale;
}
var g_RowStyleList = parent.g_RowStyleList;
var FillPropPane = parent.FillPropPane;
var CreatePropTable = parent.CreatePropTable;

View File

@ -0,0 +1,785 @@
var MSIE = false;
var ver = 0;
var indexOfMSIE = navigator.userAgent.indexOf("MSIE");
var indexOfTrident = navigator.userAgent.indexOf("Trident");
if(indexOfMSIE != -1)
{
MSIE = true;
ver = parseFloat(navigator.userAgent.substring(indexOfMSIE + 5, navigator.userAgent.indexOf(";", indexOfMSIE)));
}
// Internet Explorer, from IE11 onwards will no longer supports the user Agent MSIE.
// Alternative is to query the UA string for "Trident".
// More information at : http://msdn.microsoft.com/en-us/library/ms537503(v=vs.85).aspx
// Trident userAgent mapping:
// Trident/7.0 IE11
// Trident/6.0 Internet Explorer 10
// Trident/5.0 Internet Explorer 9
// Trident/4.0 Internet Explorer 8
else if(indexOfTrident != -1)
{
MSIE = true;
// UserAgent Trident can end with a ';' or a ')'
ver = parseFloat(navigator.userAgent.substring(indexOfTrident + 8, navigator.userAgent.indexOf(";", indexOfTrident)));
if(ver == NaN)
{
ver = parseFloat(navigator.userAgent.substring(indexOfTrident + 8, navigator.userAgent.indexOf(")", indexOfTrident)));
}
ver += 4; // version of trident is 4 less to IE version number
}
var slInstalled = false;
try
{
var b = null;
if (MSIE)
{
b = new ActiveXObject("AgControl.AgControl");
slInstalled = true;
}
else
{
var plugin = navigator.plugins["Silverlight Plug-In"];
if (plugin)
{
var version = plugin.description.split(".")
if (parseInt(version[0]) >= 2)
slInstalled = true;
}
}
}
catch(e) {}
var isFirefox = navigator.userAgent.indexOf("Firefox") >= 0;
var isMac = (navigator.appVersion.indexOf("Macintosh") >= 0);
var vmlSupported = MSIE;
var slSupported = (MSIE && ver >= 5 && !isMac) || isFirefox;
var isUpLevel = vmlSupported || (slSupported && slInstalled);
var fShowWidgets = (MSIE && ver >= 5 && !isMac) || isFirefox;
var xmlData = XMLData("WirtualnaUczelnia_files/data.xml");
var g_RowStyleList = new Array(
"propViewerEvenRow",
"propViewerOddRow"
);
var strShape = "Shape Name:";
// START ----- cross-browser event manipulation helpers ---------------------------
function getEvent(event)
{
// Retrieve the event in IE
if (!event)
return window.event;
// Return the passed event for everything else
return event;
}
function getSrcElem(event)
{
var event = getEvent(event);
// Reference the element howeaver this browser can
var elem;
if (event.target) // For Firefox
elem = event.target;
else if (event.srcElement) // For IE
elem = event.srcElement;
if (elem.nodeType == 3) // For Safari
elem = elem.parentNode;
return elem
}
function GetNSResolver(xml, xpath, xpathEval)
{
var nsResolver = null;
try
{
// Check for HLURL namespace in xpath
//
if (xpath.indexOf("HLURL:") != -1)
{
// Build the temp document whose document element binds the prefix HLURL
var namespaceHolder = document.implementation.createDocument(
"urn:schemas-microsoft-com:office:visio:dghlinkext",
"HLURL:namespaceMapping", null);
// Get the root element of the document and set the namespace
var root = namespaceHolder.documentElement;
root.setAttributeNS(
"http://www.w3.org/2000/xmlns/",
"xmlns:HLURL", "urn:schemas-microsoft-com:office:visio:dghlinkext");
// Create the namespace resolver using the root element to do the namespace bindings
nsResolver = xpathEval.createNSResolver(root);
}
else
nsResolver = xpathEval.createNSResolver(xml.ownerDocument == null ? xml.documentElement : xml.ownerDocument.documentElement);
}
catch (e) { }
return nsResolver;
}
// END ----------------------------------------------------------------------------
// START cross-browser xpath manipulation helpers ---------------------------------
if (document.implementation.hasFeature("XPath", "3.0"))
{
Element.prototype.selectNodes = function (xpath) {
var oEvaluator = new XPathEvaluator();
var nsResolver = GetNSResolver(this, xpath, oEvaluator);
var oResult = oEvaluator.evaluate(xpath, this, nsResolver, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
var aResult = [];
for( var i = 0; i < oResult.snapshotLength; i++)
aResult[i] = oResult.snapshotItem(i);
return aResult;
};
Document.prototype.selectNodes = function(xpath)
{
return this.documentElement.selectNodes(xpath);
}
}
function SelectSingleNode(xml, xpath)
{
if (MSIE)
return xml.selectSingleNode(xpath);
else
{
var xpe = new XPathEvaluator();
var nsResolver = GetNSResolver(this, xpath, xpe);
var results = xpe.evaluate(xpath,xml,nsResolver,XPathResult.FIRST_ORDERED_NODE_TYPE, null);
return results.singleNodeValue;
}
}
function SelectNodes(xml, xpath)
{
return xml.selectNodes(xpath);
}
// END ----------------------------------------------------------------------------
function XMLData(file)
{
var temp = null;
if(isUpLevel)
{
// for IE
if (MSIE)
{
temp = CreateObject("Microsoft.XMLDOM");
if (temp == null)
temp = CreateObject("Msxml2.DOMDocument.6.0");
}
// for everything else
else
{
try
{
temp = document.implementation.createDocument("", "", null);
}
catch(e) {}
}
if (temp != null)
{
temp.async = false;
temp.load(file);
if (MSIE && temp.parseError.errorCode != 0)
temp = null;
}
}
return temp;
}
function CreateObject (strObj)
{
var obj = null;
eval ("try { obj = new ActiveXObject(strObj); } catch (e) {}");
return obj;
}
function doVersion()
{
if(isUpLevel)
{
frmToolbar.divDownLevel.innerHTML = "";
frmToolbar.divUpLevel.innerHTML = frmWidgets.divData.innerHTML;
}
}
function FindShapeXML (pageID, shapeID)
{
var shapeObj = null;
if (xmlData != null)
{
var pagesObj = SelectSingleNode(xmlData, "VisioDocument/Pages");
if(!pagesObj)
{
return null;
}
var pageQuerryString = './/Page[@ID = "' + pageID + '"]';
var pageObj = SelectSingleNode(pagesObj, pageQuerryString);
if(pageObj == null)
{
return null;
}
var shapeQuerryString = './/Shape[@ID = "' + shapeID + '"]';
shapeObj = SelectSingleNode(pageObj, shapeQuerryString);
}
return shapeObj;
}
function OnShapeKey(pageID, shapeID, event)
{
var e = event;
if (MSIE)
e = window.frmDrawing.event;
if(e.keyCode == 13 && e.ctrlKey) //ctrl + enter
{
UpdateProps (pageID, shapeID);
}
else if (e.keyCode == 13)
{
OnShapeClick (pageID, shapeID, e);
}
}
function OnShapeClick (pageID, shapeID, jsEvent, slEvent) // slEvent - Required for Silverlight only
{
if (isUpLevel)
{
var e = jsEvent;
if (MSIE)
e = frmDrawing.window.event;
if (frmToolbar.widgets && frmToolbar.widgets.Details &&
((e != null && e.ctrlKey) || (e == null && slEvent.Ctrl))) // DOM or Silverlight events
{
UpdateProps (pageID, shapeID);
}
else
{
var shapeNode = FindShapeXML (pageID, shapeID);
var hlObj = GetHLAction (shapeNode, pageID, shapeID);
if (hlObj != null)
{
if (hlObj.DoFunction.length > 0)
{
eval (hlObj.DoFunction);
}
else if (hlObj.Hyperlink.length > 0)
{
if (hlObj.NewWindow)
{
window.open (hlObj.Hyperlink);
}
else
{
top.location.href = hlObj.Hyperlink.substr (0, 510);
}
}
else if (e != null && getSrcElem(e) != null)
{
var elem = e.srcElement;
var href = elem.origHref;
if (href == null)
{
href = elem.href;
}
var target = elem.origTarget;
if (target == null)
{
target = elem.target;
}
if (href && href.length > 0)
{
href = HTMLEscape (href);
if (target && target == "_blank")
{
window.open (href);
}
else
{
top.location.href = href.substr (0, 510);
}
}
}
}
}
}
return (!isUpLevel);
}
function UpdateProps(pageID, shapeID)
{
var shape = FindShapeXML (pageID, shapeID);
FillPropPane(shape, frmToolbar.hideDetails);
}
function UpdatePropsByShapeName(pageName, shapeName)
{
var shape = FindShapeXMLByName (pageName, shapeName);
FillPropPane(shape, frmToolbar.hideDetails);
}
function FillPropPane (shapeNode, outputDivObj )
{
if (shapeNode != null && outputDivObj != null)
{
if(outputDivObj.style.display == "none")
{
frmToolbar.ToggleWidget(outputDivObj);
}
var strCPHTML = "";
var shapeNameAttr = shapeNode.attributes.getNamedItem ("Name");
if (shapeNameAttr)
{
strCPHTML += "<span class='p2' style='padding-left:2px;'>" + strShape + " " + HTMLEscape(shapeNameAttr.value) + "</span>";
}
var strTableHTML = CreatePropTable (shapeNode);
if(strTableHTML.indexOf("<table") == -1)
{
strTableHTML = "<p class='p2' style='margin-left:1em;margin-top:0em;'>" + strTableHTML + "</p>";
}
if (strTableHTML.length > 0)
{
strCPHTML += strTableHTML;
}
else
{
strCPHTML = strNoCustomPropertiesToDisplayText;
}
outputDivObj.innerHTML = strCPHTML;
outputDivObj.minHeight = 75;
}
}
function CreatePropTable (shapeNode)
{
var strCPHTML = "";
var strStartTable = "<table class='propViewerTABLE' borderColor='#999999' cellPadding='2' width='95%' border='1' summary='This table contains shape details'>";
strStartTable += "<THEAD class='propViewerTHEAD'><TH>Label</TH><TH>Value</TH></THEAD>";
var strEndTable = "</TABLE>";
if (shapeNode != null)
{
var propColl = SelectNodes(shapeNode, "Prop");
var propCount = propColl.length;
for (var count = 0; count < propCount; count++)
{
strCPHTML += "<TR class='" + g_RowStyleList[count % 2] + "'>";
var strLabelText = "";
oPropLabel = propColl.item(count).selectSingleNode("Label/textnode()");
if (oPropLabel != null)
{
strLabelText = HTMLEscape (oPropLabel.text);
}
else
{
oPropName = propColl.item(count).attributes.getNamedItem ("Name");
if (oPropName)
{
strLabelText = HTMLEscape (oPropName.text);
}
}
if (strLabelText.length > 0)
{
strCPHTML += "<TD class='propViewerTD'>" + strLabelText + "</TD>";
strCPHTML += "<TD class='propViewerTD'>"
var strValueText = "&nbsp;";
oPropValue = propColl.item(count).selectSingleNode("Value/textnode()");
if (oPropValue)
{
strValueText = HTMLEscape (oPropValue.text);
}
strCPHTML += strValueText + "</TD></TR>";
}
}
if(strCPHTML != "")
{
strCPHTML = strStartTable + strCPHTML + strEndTable;
}
else
{
strCPHTML = "No Details Available.";
}
}
return strCPHTML;
}
function keyHandler()
{
var e = frmDrawing.window.event;
if(e.keyCode == 13) //enter
{
e.srcElement.click();
}
}
function GoToPage(index)
{
if (viewMgr)
{
viewMgr.loadPage (index);
}
else
{
DefPageLoad (index);
}
}
function GoToPageByID(pageID)
{
var pageIndex = PageIndexFromID (pageID);
if (pageIndex >= 0)
{
GoToPage (pageIndex);
}
}
function PageIndexFromID (pageID)
{
if (g_FileList != null)
{
var entry;
var count;
var fileEntry;
var bFoundEntry = false;
for (count = 0;
count < g_FileList.length && !bFoundEntry;
count++)
{
if (pageID == g_FileList[count].PageID)
{
return count;
}
}
}
return -1;
}
function PageIndexFromName (strPageName)
{
if (g_FileList != null)
{
var entry;
var strPageNameLower = strPageName;
strPageNameLower = strPageNameLower.toLowerCase ();
var count;
var fileEntry;
var bFoundEntry = false;
for (count = 0;
count < g_FileList.length && !bFoundEntry;
count++)
{
var strFileListPageName = g_FileList[count].PageName;
strFileListPageName = HTMLUnescape (strFileListPageName);
strFileListPageName = strFileListPageName.toLowerCase ();
if (strPageNameLower == strFileListPageName)
{
return count;
}
}
}
return -1;
}
function PageIndexFromFileName (strFileName)
{
if (g_FileList != null)
{
var entry;
var strFileNameLower = strFileName;
strFileNameLower = strFileNameLower.toLowerCase ();
var count;
var fileEntry;
var bFoundEntry = false;
for (count = 0;
count < g_FileList.length && !bFoundEntry;
count++)
{
var strFileListFileName = g_FileList[count].PriImage;
strFileListFileName = strFileListFileName.toLowerCase ();
if (strFileNameLower == strFileListFileName)
{
return count;
}
strFileListFileName = g_FileList[count].SecImage;
strFileListFileName = strFileListFileName.toLowerCase ();
if (strFileNameLower == strFileListFileName)
{
return count;
}
}
}
return -1;
}
function PageIndexFromVisioPageIndex (pageIndex)
{
if (g_FileList != null)
{
var entry;
var count;
var fileEntry;
var bFoundEntry = false;
for (count = 0;
count < g_FileList.length && !bFoundEntry;
count++)
{
if (pageIndex == g_FileList[count].PageIndex)
{
return count;
}
}
}
return -1;
}
function FindShapeXMLByName (pageName, shapeName)
{
var shapeObj = null;
if (xmlData)
{
var pagesObj = SelectSingleNode(xmlData, "VisioDocument/Pages");
if(!pagesObj)
{
return null;
}
var pageQuerryString = './/Page[@Name $ieq$ "' + EscapeString (pageName) + '"]';
var pageObj = SelectSingleNode(pagesObj, pageQuerryString);
if(!pageObj)
{
return null;
}
var shapeQuerryString = './/Shape[@Name $ieq$ "' + EscapeString (shapeName) + '"]';
shapeObj = SelectSingleNode(pageObj, shapeQuerryString);
}
return shapeObj;
}
function Unquote (str)
{
var nStartIndex = 0;
var nEndIndex = str.length;
if (str.charAt (0) == '"')
{
nStartIndex = 1;
}
if (str.charAt (nEndIndex - 1) == '"')
{
nEndIndex -= 1;
}
return str.substring (nStartIndex, nEndIndex);
}
function ConvertXorYCoordinate(PosValue, OldMin, OldMax, NewMin, NewMax, MapBackwards)
{
var OldMid = (OldMax - OldMin) / 2;
var NewMid = (NewMax - NewMin) / 2;
var ConvertResult = 1 * PosValue;
ConvertResult = ConvertResult - (OldMin + OldMid);
ConvertResult = ConvertResult / OldMid;
if(MapBackwards != 0)
{
ConvertResult = 0 - ConvertResult;
}
ConvertResult = ConvertResult * NewMid;
ConvertResult = ConvertResult + (NewMin + NewMid);
return ConvertResult;
}
function showObject( divObject, divID )
{
if( divObject == null )
divObject = getObj( divID );
if( divObject != null )
{
divObject.style.display = "";
divObject.style.visibility = "visible"
}
return divObject;
}
function hideObject( divObject, divID )
{
if( divObject == null )
divObject = getObj( divID );
if( divObject != null )
{
divObject.style.visibility = "hidden";
divObject.style.display = "none";
}
return divObject;
}
function EscapeString (str)
{
var strResult = "";
for (var i = 0 ; i < str.length ; i++)
{
var curChar = str.charAt(i);
if (curChar == '\\')
{
strResult += "\\\\";
}
else if (curChar == "\"")
{
strResult += "\\\"";
}
else if (curChar == "\'")
{
strResult += "\\\'";
}
else
{
strResult += curChar;
}
}
return strResult;
}
function HTMLEscape (str)
{
var strResult = "";
for (var i = 0 ; i < str.length ; i++)
{
var curChar = str.charAt(i);
if (curChar == '\\')
{
strResult += "&#92;";
}
else if (curChar == '\"')
{
strResult += "&#34;";
}
else if (curChar == '\'')
{
strResult += "&#39;";
}
else if (curChar == '<')
{
strResult += "&#60;";
}
else if (curChar == '<')
{
strResult += "&#62;";
}
else if (curChar == '&')
{
strResult += "&#38;";
}
else
{
strResult += curChar;
}
}
return strResult;
}
function HTMLUnescape (str)
{
var strResult = "";
var strEscapePattern = "&#xx;";
for (var i = 0 ; i < str.length - strEscapePattern.length + 1; i++)
{
if (str.charAt(i) == '&' &&
str.charAt(i + 1) == '#' &&
str.charAt(i + 4) == ';')
{
var charCode = str.charAt(i + 2);
charCode += str.charAt(i + 3);
if (charCode == "34")
{
strResult += '"';
}
else if (charCode == "39")
{
strResult += '\'';
}
else if (charCode == "60")
{
strResult += '<';
}
else if (charCode == "62")
{
strResult += '>';
}
else if (charCode == "92")
{
strResult += '\\';
}
else if (charCode == "38")
{
strResult += '&';
}
i = i + strEscapePattern.length - 1;
}
else
{
strResult += str.charAt(i);
}
}
strResult += str.substring (i, str.length);
return strResult;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

View File

@ -0,0 +1,39 @@
function getElem(event)
{
// Retrieve the event in IE
if (!event)
var event = window.event;
// Reference the element howeaver this browser can
var elem;
if (event.target) // For Firefox
elem = event.target;
else if (event.srcElement) // For IE
elem = event.srcElement;
if (elem.nodeType == 3) // For Safari
elem = elem.parentNode;
return elem
}
function keyHandler(event)
{
// for IE
if (!event)
var event = window.event
var srcElement = getElem(event)
var tag = srcElement.tagName;
var override = !(tag == "A" || tag == "INPUT" || tag == "SELECT" || tag == "FORM" || tag == "SUBMIT");
if (override && event.keyCode == 13) //13 is <enter> key
{
if (srcElement.click)
srcElement.click();
else
srcElement.onclick();
}
}
document.onkeypress = keyHandler;

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 B

View File

@ -0,0 +1,166 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="visio.css"/>
<title>
Drawing2
</title>
<script type="text/javascript" language="javascript">
function UpdateTooltip(){};
function OnShapeClick(){};
</script>
<script src="png_1.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript">
if( (parent.isSVG) ||
(parent.isVML && parent.vmlSupported) ||
(parent.isXAML && parent.isUpLevel))
{
location.replace(parent.g_FileList[parent.g_CurPageIndex].PriImage);
}
</script>
<script type="text/javascript" language="javascript">
var pageID = 0;
var isUpLevel = parent.isUpLevel;
var OnShapeClick = null;
if (!parent.isMac)
{
OnShapeClick = parent.OnShapeClick;
}
var OnShapeKey = parent.OnShapeKey;
var UpdateTooltip = parent.UpdateTooltip;
var clickMenu = parent.clickMenu;
var toggleMenuDiv = parent.toggleMenuDiv;
var toggleMenuLink = parent.toggleMenuLink;
var GoToPage = parent.GoToPage;
if (parent.isUpLevel)
{
if (parent.g_FirstPageToLoad != null && parent.g_FirstPageToLoad.length > 0)
{
if (parent.g_FileList[parent.g_CurPageIndex].PageID != pageID)
{
var fileEntry = parent.g_FileList[parent.g_CurPageIndex];
var fileToLoad = fileToLoad = fileEntry.PriImage;
if (fileEntry.SecImage.length > 0)
{
fileToLoad = fileEntry.SecImage;
}
location.replace(fileToLoad);
}
parent.g_FirstPageToLoad = null;
}
var viewMgr = new parent.CViewMgr();
parent.viewMgr = viewMgr;
viewMgr.SupportsDetails = true;
viewMgr.SupportsSearch = true;
viewMgr.put_Location = ViewMgrSetRasterLocation;
viewMgr.visBBoxLeft = 0.900304;
viewMgr.visBBoxRight = 7.410256;
viewMgr.visBBoxBottom = 7.238887;
viewMgr.visBBoxTop = 10.441752;
viewMgr.highlightDiv = null;
}
function load ()
{
if(isUpLevel)
{
arrowdiv.innerHTML = '<img id="arrowgif" alt="Shows the location of the selected shape" src="arrow.png"/>';
var pageIndex = parent.PageIndexFromID (pageID);
parent.CurPageUpdate (pageIndex);
}
}
function unload()
{
if(isUpLevel)
{
viewMgr = null;
parent.viewMgr = null;
}
}
window.onload = load;
window.onunload = unload;
document.onclick = clickMenu;
</script>
<style type="text/css">
body {
background:url(foo) fixed;
padding: 10px;
}
div.banner {
position: fixed;
_position: absolute;
top: 0;
left: 0;
_top: expression(eval(document.body.scrollTop));
_left: expression(eval(document.body.scrollLeft));
width: 100%;
_width: expression(eval(document.body.clientWidth));
margin: 0;
padding: 3px;
padding-left: 6px;
background:lime;
background-color: #FFFFC6;
font: 11px tahoma,arial,serif;
border-bottom: 2px ridge #FFFFC6;
}
</style>
</head>
<body class="pageView" bgcolor="#FFFFFF" style="margin: 0px">
<script type="text/javascript" language="javascript">
// Displays the banner prompt to install Silverlight
if (parent.slSupported && !parent.slInstalled)
{
var slBanner = document.createElement("div");
slBanner.className = "banner";
slBanner.innerHTML = 'To enable full functionality such as Pan and Zoom, <a href="http://www.microsoft.com/silverlight/resources/install.aspx" target="parent">click here</a> to install the Silverlight plug-in.';
document.body.appendChild(slBanner);
document.body.style.paddingTop = "2.5em";
}
</script>
<div id="arrowdiv" style="position:absolute;top:0;left:0;visibility:hidden;z-index:5">
</div>
<div id="menu1" onclick="clickMenu()" class="hlMenu">
</div>
<DIV id="RasterDiv" style="margin:10px">
<center>
<IMG id="ConvertedImage" SRC="png_1.png" ALT="Page-1" name=RasterImage BORDER="0" USEMAP="#visImageMap">
</center>
<MAP NAME="visImageMap">
<AREA shape="POLYGON" tabindex="1" ALT="Strona główna" origTitle="Strona główna" TITLE="Strona główna" HREF="png_1.htm" target="frmDrawing" COORDS="3,20,83,20,85,19,86,18,86,3,85,1,83,1,3,1,1,1,1,3,1,18,1,19,3,20" onmouseover="UpdateTooltip(this,0,241,event)" onfocus="UpdateTooltip(this,0,241,event)" onclick="return OnShapeClick(0,241,event);" onkeyup="OnShapeKey(0,241,event);">
<AREA shape="POLYGON" tabindex="1" ALT="Test" origTitle="Test" TITLE="Test" HREF="png_5.htm" target="frmDrawing" COORDS="299,273,364,273,366,272,367,271,367,246,366,245,364,244,299,244,298,245,297,246,297,271,298,272,299,273" onmouseover="UpdateTooltip(this,0,234,event)" onfocus="UpdateTooltip(this,0,234,event)" onclick="return OnShapeClick(0,234,event);" onkeyup="OnShapeKey(0,234,event);">
<AREA shape="POLYGON" tabindex="1" ALT="listopad 18" origTitle="listopad 18" TITLE="listopad 18" target="_top" COORDS="86,193,237,193,237,61,86,61,86,193" onmouseover="UpdateTooltip(this,0,167,event)" onfocus="UpdateTooltip(this,0,167,event)" onclick="return OnShapeClick(0,167,event);" onkeyup="OnShapeKey(0,167,event);">
<AREA shape="POLYGON" tabindex="1" ALT="Wyniki" origTitle="Wyniki" TITLE="Wyniki" HREF="png_4.htm" target="frmDrawing" COORDS="473,273,538,273,539,272,540,271,540,246,539,245,538,244,473,244,471,245,470,246,470,271,471,272,473,273" onmouseover="UpdateTooltip(this,0,159,event)" onfocus="UpdateTooltip(this,0,159,event)" onclick="return OnShapeClick(0,159,event);" onkeyup="OnShapeKey(0,159,event);">
<AREA shape="POLYGON" tabindex="1" ALT="Moje zajęcia" origTitle="Moje zajęcia" TITLE="Moje zajęcia" HREF="png_2.htm" target="frmDrawing" COORDS="125,273,198,273,199,272,200,271,200,246,199,245,198,244,125,244,123,245,123,246,123,271,123,272,125,273" onmouseover="UpdateTooltip(this,0,18,event)" onfocus="UpdateTooltip(this,0,18,event)" onclick="return OnShapeClick(0,18,event);" onkeyup="OnShapeKey(0,18,event);">
<AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE="" target="_top" COORDS="573,20,596,20,596,1,573,1,573,20" onmouseover="UpdateTooltip(this,0,8,event)" onfocus="UpdateTooltip(this,0,8,event)" onclick="return OnShapeClick(0,8,event);" onkeyup="OnShapeKey(0,8,event);">
<AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE="" target="_top" COORDS="596,20,624,20,624,1,596,1,596,20" onmouseover="UpdateTooltip(this,0,2,event)" onfocus="UpdateTooltip(this,0,2,event)" onclick="return OnShapeClick(0,2,event);" onkeyup="OnShapeKey(0,2,event);">
</MAP>
</DIV>
</body>
</html>

View File

@ -0,0 +1,64 @@
function ViewMgrSetRasterLocation(pageID, shapeID, pinX, pinY)
{
clickMenu ();
var rasterImage = document.images("RasterImage");
var imageLeft = 0;
var imageRight = imageLeft + rasterImage.offsetWidth;
var imageTop = 0;
var imageBottom = imageTop + rasterImage.offsetHeight;
var xLong = parent.ConvertXorYCoordinate(pinX, viewMgr.visBBoxLeft, viewMgr.visBBoxRight, imageLeft, imageRight, 0);
var yLong = parent.ConvertXorYCoordinate(pinY, viewMgr.visBBoxBottom, viewMgr.visBBoxTop, imageTop, imageBottom, 1);
var pixelWidth = document.body.scrollWidth;
var pixelHeight = document.body.scrollHeight;
var clientWidth = document.body.clientWidth;
var clientHeight = document.body.clientHeight;
var halfClientWidth = clientWidth;
var halfClientHeight = clientHeight;
xLong = xLong + rasterImage.offsetLeft;
yLong = yLong + rasterImage.offsetTop;
var xScrollAmount = 0;
var yScrollAmount = 0;
var xPrevScrollAmount = document.body.scrollLeft;
var yPrevScrollAmount = document.body.scrollTop;
var arrowHalfWidth = arrowdiv.clientWidth / 2;
var arrowHeight = arrowdiv.clientHeight;
if ((xLong - arrowHalfWidth) < xPrevScrollAmount)
{
// X off left of screen.
document.body.scrollLeft = xLong - arrowHalfWidth;
}
else if ((xLong + arrowHalfWidth) > (clientWidth + xPrevScrollAmount))
{
// X off right of screen.
document.body.scrollLeft = xLong - clientWidth + xPrevScrollAmount + arrowHalfWidth;
}
if (yLong < yPrevScrollAmount)
{
// Y off top of screen.
document.body.scrollTop = yLong;
}
else if ((yLong + arrowHeight) > (clientHeight + yPrevScrollAmount))
{
// Y off bottom of screen.
document.body.scrollTop = yLong - clientHeight + yPrevScrollAmount + arrowHeight;
}
arrowdiv.style.posLeft = xLong - arrowHalfWidth;
arrowdiv.style.posTop = yLong;
arrowdiv.style.visibility = "visible";
setTimeout( "parent.hideObject(arrowdiv)", 0 );
setTimeout( "parent.showObject(arrowdiv)", 1 );
setTimeout( "parent.hideObject(arrowdiv)", 2000 );
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

View File

@ -0,0 +1,168 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="visio.css"/>
<title>
Drawing2
</title>
<script type="text/javascript" language="javascript">
function UpdateTooltip(){};
function OnShapeClick(){};
</script>
<script src="png_1.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript">
if( (parent.isSVG) ||
(parent.isVML && parent.vmlSupported) ||
(parent.isXAML && parent.isUpLevel))
{
location.replace(parent.g_FileList[parent.g_CurPageIndex].PriImage);
}
</script>
<script type="text/javascript" language="javascript">
var pageID = 4;
var isUpLevel = parent.isUpLevel;
var OnShapeClick = null;
if (!parent.isMac)
{
OnShapeClick = parent.OnShapeClick;
}
var OnShapeKey = parent.OnShapeKey;
var UpdateTooltip = parent.UpdateTooltip;
var clickMenu = parent.clickMenu;
var toggleMenuDiv = parent.toggleMenuDiv;
var toggleMenuLink = parent.toggleMenuLink;
var GoToPage = parent.GoToPage;
if (parent.isUpLevel)
{
if (parent.g_FirstPageToLoad != null && parent.g_FirstPageToLoad.length > 0)
{
if (parent.g_FileList[parent.g_CurPageIndex].PageID != pageID)
{
var fileEntry = parent.g_FileList[parent.g_CurPageIndex];
var fileToLoad = fileToLoad = fileEntry.PriImage;
if (fileEntry.SecImage.length > 0)
{
fileToLoad = fileEntry.SecImage;
}
location.replace(fileToLoad);
}
parent.g_FirstPageToLoad = null;
}
var viewMgr = new parent.CViewMgr();
parent.viewMgr = viewMgr;
viewMgr.SupportsDetails = true;
viewMgr.SupportsSearch = true;
viewMgr.put_Location = ViewMgrSetRasterLocation;
viewMgr.visBBoxLeft = 0.821564;
viewMgr.visBBoxRight = 7.174035;
viewMgr.visBBoxBottom = 6.750697;
viewMgr.visBBoxTop = 9.693721;
viewMgr.highlightDiv = null;
}
function load ()
{
if(isUpLevel)
{
arrowdiv.innerHTML = '<img id="arrowgif" alt="Shows the location of the selected shape" src="arrow.png"/>';
var pageIndex = parent.PageIndexFromID (pageID);
parent.CurPageUpdate (pageIndex);
}
}
function unload()
{
if(isUpLevel)
{
viewMgr = null;
parent.viewMgr = null;
}
}
window.onload = load;
window.onunload = unload;
document.onclick = clickMenu;
</script>
<style type="text/css">
body {
background:url(foo) fixed;
padding: 10px;
}
div.banner {
position: fixed;
_position: absolute;
top: 0;
left: 0;
_top: expression(eval(document.body.scrollTop));
_left: expression(eval(document.body.scrollLeft));
width: 100%;
_width: expression(eval(document.body.clientWidth));
margin: 0;
padding: 3px;
padding-left: 6px;
background:lime;
background-color: #FFFFC6;
font: 11px tahoma,arial,serif;
border-bottom: 2px ridge #FFFFC6;
}
</style>
</head>
<body class="pageView" bgcolor="#FFFFFF" style="margin: 0px">
<script type="text/javascript" language="javascript">
// Displays the banner prompt to install Silverlight
if (parent.slSupported && !parent.slInstalled)
{
var slBanner = document.createElement("div");
slBanner.className = "banner";
slBanner.innerHTML = 'To enable full functionality such as Pan and Zoom, <a href="http://www.microsoft.com/silverlight/resources/install.aspx" target="parent">click here</a> to install the Silverlight plug-in.';
document.body.appendChild(slBanner);
document.body.style.paddingTop = "2.5em";
}
</script>
<div id="arrowdiv" style="position:absolute;top:0;left:0;visibility:hidden;z-index:5">
</div>
<div id="menu1" onclick="clickMenu()" class="hlMenu">
</div>
<DIV id="RasterDiv" style="margin:10px">
<center>
<IMG id="ConvertedImage" SRC="png_2.png" ALT="Page-2" name=RasterImage BORDER="0" USEMAP="#visImageMap">
</center>
<MAP NAME="visImageMap">
<AREA shape="POLYGON" tabindex="1" ALT="Strona główna" origTitle="Strona główna" TITLE="Strona główna" HREF="png_1.htm" target="frmDrawing" COORDS="3,20,83,20,85,19,86,18,86,3,85,1,83,1,3,1,1,1,1,3,1,18,1,19,3,20" onmouseover="UpdateTooltip(this,4,43,event)" onfocus="UpdateTooltip(this,4,43,event)" onclick="return OnShapeClick(4,43,event);" onkeyup="OnShapeKey(4,43,event);">
<AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE="" target="_top" COORDS="556,20,579,20,579,1,556,1,556,20" onmouseover="UpdateTooltip(this,4,37,event)" onfocus="UpdateTooltip(this,4,37,event)" onclick="return OnShapeClick(4,37,event);" onkeyup="OnShapeKey(4,37,event);">
<AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE="" target="_top" COORDS="581,20,609,20,609,1,581,1,581,20" onmouseover="UpdateTooltip(this,4,31,event)" onfocus="UpdateTooltip(this,4,31,event)" onclick="return OnShapeClick(4,31,event);" onkeyup="OnShapeKey(4,31,event);">
<AREA shape="POLYGON" tabindex="1" ALT="Ćwiczenia" origTitle="Ćwiczenia" TITLE="Ćwiczenia" target="_top" COORDS="71,61,71,75,114,75,114,61,71,61" onmouseover="UpdateTooltip(this,4,11,event)" onfocus="UpdateTooltip(this,4,11,event)" onclick="return OnShapeClick(4,11,event);" onkeyup="OnShapeKey(4,11,event);">
<AREA shape="POLYGON" tabindex="1" ALT="Ćwiczenia" origTitle="Ćwiczenia" TITLE="Ćwiczenia" target="_top" COORDS="59,64,49,64,49,74,59,74,59,64" onmouseover="UpdateTooltip(this,4,11,event)" onfocus="UpdateTooltip(this,4,11,event)" onclick="return OnShapeClick(4,11,event);" onkeyup="OnShapeKey(4,11,event);">
<AREA shape="POLYGON" tabindex="1" ALT="Laboratoria" origTitle="Laboratoria" TITLE="Laboratoria" target="_top" COORDS="71,84,71,98,121,98,121,84,71,84" onmouseover="UpdateTooltip(this,4,7,event)" onfocus="UpdateTooltip(this,4,7,event)" onclick="return OnShapeClick(4,7,event);" onkeyup="OnShapeKey(4,7,event);">
<AREA shape="POLYGON" tabindex="1" ALT="Laboratoria" origTitle="Laboratoria" TITLE="Laboratoria" target="_top" COORDS="59,87,49,87,49,96,59,96,59,87" onmouseover="UpdateTooltip(this,4,7,event)" onfocus="UpdateTooltip(this,4,7,event)" onclick="return OnShapeClick(4,7,event);" onkeyup="OnShapeKey(4,7,event);">
<AREA shape="POLYGON" tabindex="1" ALT="Wykłady" origTitle="Wykłady" TITLE="Wykłady" target="_top" COORDS="71,106,71,121,108,121,108,106,71,106" onmouseover="UpdateTooltip(this,4,3,event)" onfocus="UpdateTooltip(this,4,3,event)" onclick="return OnShapeClick(4,3,event);" onkeyup="OnShapeKey(4,3,event);">
<AREA shape="POLYGON" tabindex="1" ALT="Wykłady" origTitle="Wykłady" TITLE="Wykłady" target="_top" COORDS="59,110,49,110,49,119,59,119,59,110" onmouseover="UpdateTooltip(this,4,3,event)" onfocus="UpdateTooltip(this,4,3,event)" onclick="return OnShapeClick(4,3,event);" onkeyup="OnShapeKey(4,3,event);">
</MAP>
</DIV>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@ -0,0 +1,163 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="visio.css"/>
<title>
Drawing2
</title>
<script type="text/javascript" language="javascript">
function UpdateTooltip(){};
function OnShapeClick(){};
</script>
<script src="png_1.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript">
if( (parent.isSVG) ||
(parent.isVML && parent.vmlSupported) ||
(parent.isXAML && parent.isUpLevel))
{
location.replace(parent.g_FileList[parent.g_CurPageIndex].PriImage);
}
</script>
<script type="text/javascript" language="javascript">
var pageID = 5;
var isUpLevel = parent.isUpLevel;
var OnShapeClick = null;
if (!parent.isMac)
{
OnShapeClick = parent.OnShapeClick;
}
var OnShapeKey = parent.OnShapeKey;
var UpdateTooltip = parent.UpdateTooltip;
var clickMenu = parent.clickMenu;
var toggleMenuDiv = parent.toggleMenuDiv;
var toggleMenuLink = parent.toggleMenuLink;
var GoToPage = parent.GoToPage;
if (parent.isUpLevel)
{
if (parent.g_FirstPageToLoad != null && parent.g_FirstPageToLoad.length > 0)
{
if (parent.g_FileList[parent.g_CurPageIndex].PageID != pageID)
{
var fileEntry = parent.g_FileList[parent.g_CurPageIndex];
var fileToLoad = fileToLoad = fileEntry.PriImage;
if (fileEntry.SecImage.length > 0)
{
fileToLoad = fileEntry.SecImage;
}
location.replace(fileToLoad);
}
parent.g_FirstPageToLoad = null;
}
var viewMgr = new parent.CViewMgr();
parent.viewMgr = viewMgr;
viewMgr.SupportsDetails = true;
viewMgr.SupportsSearch = true;
viewMgr.put_Location = ViewMgrSetRasterLocation;
viewMgr.visBBoxLeft = 1.077469;
viewMgr.visBBoxRight = 7.114980;
viewMgr.visBBoxBottom = 7.687705;
viewMgr.visBBoxTop = 11.032303;
viewMgr.highlightDiv = null;
}
function load ()
{
if(isUpLevel)
{
arrowdiv.innerHTML = '<img id="arrowgif" alt="Shows the location of the selected shape" src="arrow.png"/>';
var pageIndex = parent.PageIndexFromID (pageID);
parent.CurPageUpdate (pageIndex);
}
}
function unload()
{
if(isUpLevel)
{
viewMgr = null;
parent.viewMgr = null;
}
}
window.onload = load;
window.onunload = unload;
document.onclick = clickMenu;
</script>
<style type="text/css">
body {
background:url(foo) fixed;
padding: 10px;
}
div.banner {
position: fixed;
_position: absolute;
top: 0;
left: 0;
_top: expression(eval(document.body.scrollTop));
_left: expression(eval(document.body.scrollLeft));
width: 100%;
_width: expression(eval(document.body.clientWidth));
margin: 0;
padding: 3px;
padding-left: 6px;
background:lime;
background-color: #FFFFC6;
font: 11px tahoma,arial,serif;
border-bottom: 2px ridge #FFFFC6;
}
</style>
</head>
<body class="pageView" bgcolor="#FFFFFF" style="margin: 0px">
<script type="text/javascript" language="javascript">
// Displays the banner prompt to install Silverlight
if (parent.slSupported && !parent.slInstalled)
{
var slBanner = document.createElement("div");
slBanner.className = "banner";
slBanner.innerHTML = 'To enable full functionality such as Pan and Zoom, <a href="http://www.microsoft.com/silverlight/resources/install.aspx" target="parent">click here</a> to install the Silverlight plug-in.';
document.body.appendChild(slBanner);
document.body.style.paddingTop = "2.5em";
}
</script>
<div id="arrowdiv" style="position:absolute;top:0;left:0;visibility:hidden;z-index:5">
</div>
<div id="menu1" onclick="clickMenu()" class="hlMenu">
</div>
<DIV id="RasterDiv" style="margin:10px">
<center>
<IMG id="ConvertedImage" SRC="png_3.png" ALT="Page-3" name=RasterImage BORDER="0" USEMAP="#visImageMap">
</center>
<MAP NAME="visImageMap">
<AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE="" target="_top" COORDS="526,20,549,20,549,1,526,1,526,20" onmouseover="UpdateTooltip(this,5,61,event)" onfocus="UpdateTooltip(this,5,61,event)" onclick="return OnShapeClick(5,61,event);" onkeyup="OnShapeKey(5,61,event);">
<AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE="" target="_top" COORDS="551,20,579,20,579,1,551,1,551,20" onmouseover="UpdateTooltip(this,5,55,event)" onfocus="UpdateTooltip(this,5,55,event)" onclick="return OnShapeClick(5,55,event);" onkeyup="OnShapeKey(5,55,event);">
<AREA shape="POLYGON" tabindex="1" ALT="Logowanie za pomocą twarzy" origTitle="Logowanie za pomocą twarzy" TITLE="Logowanie za pomocą twarzy" HREF="png_1.htm" target="frmDrawing" COORDS="261,235,240,235,238,236,238,237,238,273,238,274,240,275,340,275,341,274,342,273,342,237,341,236,340,235,322,235,322,234,261,234,261,235" onmouseover="UpdateTooltip(this,5,40,event)" onfocus="UpdateTooltip(this,5,40,event)" onclick="return OnShapeClick(5,40,event);" onkeyup="OnShapeKey(5,40,event);">
<AREA shape="POLYGON" tabindex="1" ALT="Logowanie" origTitle="Logowanie" TITLE="Logowanie" HREF="png_1.htm" target="frmDrawing" COORDS="315,170,373,170,374,170,375,168,375,154,374,152,373,151,315,151,313,152,313,154,313,168,313,170,315,170" onmouseover="UpdateTooltip(this,5,31,event)" onfocus="UpdateTooltip(this,5,31,event)" onclick="return OnShapeClick(5,31,event);" onkeyup="OnShapeKey(5,31,event);">
</MAP>
</DIV>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@ -0,0 +1,174 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="visio.css"/>
<title>
Drawing2
</title>
<script type="text/javascript" language="javascript">
function UpdateTooltip(){};
function OnShapeClick(){};
</script>
<script src="png_1.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript">
if( (parent.isSVG) ||
(parent.isVML && parent.vmlSupported) ||
(parent.isXAML && parent.isUpLevel))
{
location.replace(parent.g_FileList[parent.g_CurPageIndex].PriImage);
}
</script>
<script type="text/javascript" language="javascript">
var pageID = 7;
var isUpLevel = parent.isUpLevel;
var OnShapeClick = null;
if (!parent.isMac)
{
OnShapeClick = parent.OnShapeClick;
}
var OnShapeKey = parent.OnShapeKey;
var UpdateTooltip = parent.UpdateTooltip;
var clickMenu = parent.clickMenu;
var toggleMenuDiv = parent.toggleMenuDiv;
var toggleMenuLink = parent.toggleMenuLink;
var GoToPage = parent.GoToPage;
if (parent.isUpLevel)
{
if (parent.g_FirstPageToLoad != null && parent.g_FirstPageToLoad.length > 0)
{
if (parent.g_FileList[parent.g_CurPageIndex].PageID != pageID)
{
var fileEntry = parent.g_FileList[parent.g_CurPageIndex];
var fileToLoad = fileToLoad = fileEntry.PriImage;
if (fileEntry.SecImage.length > 0)
{
fileToLoad = fileEntry.SecImage;
}
location.replace(fileToLoad);
}
parent.g_FirstPageToLoad = null;
}
var viewMgr = new parent.CViewMgr();
parent.viewMgr = viewMgr;
viewMgr.SupportsDetails = true;
viewMgr.SupportsSearch = true;
viewMgr.put_Location = ViewMgrSetRasterLocation;
viewMgr.visBBoxLeft = 2.160146;
viewMgr.visBBoxRight = 6.111043;
viewMgr.visBBoxBottom = 8.164083;
viewMgr.visBBoxTop = 10.459773;
viewMgr.highlightDiv = null;
}
function load ()
{
if(isUpLevel)
{
arrowdiv.innerHTML = '<img id="arrowgif" alt="Shows the location of the selected shape" src="arrow.png"/>';
var pageIndex = parent.PageIndexFromID (pageID);
parent.CurPageUpdate (pageIndex);
}
}
function unload()
{
if(isUpLevel)
{
viewMgr = null;
parent.viewMgr = null;
}
}
window.onload = load;
window.onunload = unload;
document.onclick = clickMenu;
</script>
<style type="text/css">
body {
background:url(foo) fixed;
padding: 10px;
}
div.banner {
position: fixed;
_position: absolute;
top: 0;
left: 0;
_top: expression(eval(document.body.scrollTop));
_left: expression(eval(document.body.scrollLeft));
width: 100%;
_width: expression(eval(document.body.clientWidth));
margin: 0;
padding: 3px;
padding-left: 6px;
background:lime;
background-color: #FFFFC6;
font: 11px tahoma,arial,serif;
border-bottom: 2px ridge #FFFFC6;
}
</style>
</head>
<body class="pageView" bgcolor="#FFFFFF" style="margin: 0px">
<script type="text/javascript" language="javascript">
// Displays the banner prompt to install Silverlight
if (parent.slSupported && !parent.slInstalled)
{
var slBanner = document.createElement("div");
slBanner.className = "banner";
slBanner.innerHTML = 'To enable full functionality such as Pan and Zoom, <a href="http://www.microsoft.com/silverlight/resources/install.aspx" target="parent">click here</a> to install the Silverlight plug-in.';
document.body.appendChild(slBanner);
document.body.style.paddingTop = "2.5em";
}
</script>
<div id="arrowdiv" style="position:absolute;top:0;left:0;visibility:hidden;z-index:5">
</div>
<div id="menu1" onclick="clickMenu()" class="hlMenu">
</div>
<DIV id="RasterDiv" style="margin:10px">
<center>
<IMG id="ConvertedImage" SRC="png_4.png" ALT="Page-5" name=RasterImage BORDER="0" USEMAP="#visImageMap">
</center>
<MAP NAME="visImageMap">
<AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE="" target="_top" COORDS="341,17,357,17,357,3,341,3,341,17" onmouseover="UpdateTooltip(this,7,46,event)" onfocus="UpdateTooltip(this,7,46,event)" onclick="return OnShapeClick(7,46,event);" onkeyup="OnShapeKey(7,46,event);">
<AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE="" target="_top" COORDS="357,17,378,17,378,3,357,3,357,17" onmouseover="UpdateTooltip(this,7,40,event)" onfocus="UpdateTooltip(this,7,40,event)" onclick="return OnShapeClick(7,40,event);" onkeyup="OnShapeKey(7,40,event);">
<AREA shape="POLYGON" tabindex="1" ALT="Strona główna" origTitle="Strona główna" TITLE="Strona główna" HREF="png_1.htm" target="frmDrawing" COORDS="15,3,3,3,1,3,0,5,0,15,1,17,3,18,89,18,91,17,91,15,91,5,91,3,89,3,77,3,77,2,15,2,15,3" onmouseover="UpdateTooltip(this,7,36,event)" onfocus="UpdateTooltip(this,7,36,event)" onclick="return OnShapeClick(7,36,event);" onkeyup="OnShapeKey(7,36,event);">
<AREA shape="POLYGON" tabindex="1" ALT="20 poprawnych" origTitle="20 poprawnych" TITLE="20 poprawnych" target="_top" COORDS="221,53,221,67,288,67,288,53,221,53" onmouseover="UpdateTooltip(this,7,32,event)" onfocus="UpdateTooltip(this,7,32,event)" onclick="return OnShapeClick(7,32,event);" onkeyup="OnShapeKey(7,32,event);">
<AREA shape="POLYGON" tabindex="1" ALT="20 poprawnych" origTitle="20 poprawnych" TITLE="20 poprawnych" target="_top" COORDS="209,56,199,56,199,66,209,66,209,56" onmouseover="UpdateTooltip(this,7,32,event)" onfocus="UpdateTooltip(this,7,32,event)" onclick="return OnShapeClick(7,32,event);" onkeyup="OnShapeKey(7,32,event);">
<AREA shape="POLYGON" tabindex="1" ALT="0 błędne" origTitle="0 błędne" TITLE="0 błędne" target="_top" COORDS="221,76,221,90,259,90,259,76,221,76" onmouseover="UpdateTooltip(this,7,28,event)" onfocus="UpdateTooltip(this,7,28,event)" onclick="return OnShapeClick(7,28,event);" onkeyup="OnShapeKey(7,28,event);">
<AREA shape="POLYGON" tabindex="1" ALT="0 błędne" origTitle="0 błędne" TITLE="0 błędne" target="_top" COORDS="209,79,199,79,199,88,209,88,209,79" onmouseover="UpdateTooltip(this,7,28,event)" onfocus="UpdateTooltip(this,7,28,event)" onclick="return OnShapeClick(7,28,event);" onkeyup="OnShapeKey(7,28,event);">
<AREA shape="POLYGON" tabindex="1" ALT="0 bez odpowiedzi" origTitle="0 bez odpowiedzi" TITLE="0 bez odpowiedzi" target="_top" COORDS="221,98,221,113,297,113,297,98,221,98" onmouseover="UpdateTooltip(this,7,24,event)" onfocus="UpdateTooltip(this,7,24,event)" onclick="return OnShapeClick(7,24,event);" onkeyup="OnShapeKey(7,24,event);">
<AREA shape="POLYGON" tabindex="1" ALT="0 bez odpowiedzi" origTitle="0 bez odpowiedzi" TITLE="0 bez odpowiedzi" target="_top" COORDS="209,102,199,102,199,111,209,111,209,102" onmouseover="UpdateTooltip(this,7,24,event)" onfocus="UpdateTooltip(this,7,24,event)" onclick="return OnShapeClick(7,24,event);" onkeyup="OnShapeKey(7,24,event);">
<AREA shape="POLYGON" tabindex="1" ALT="20 poprawnych" origTitle="20 poprawnych" TITLE="20 poprawnych" target="_top" COORDS="45,53,45,67,112,67,112,53,45,53" onmouseover="UpdateTooltip(this,7,19,event)" onfocus="UpdateTooltip(this,7,19,event)" onclick="return OnShapeClick(7,19,event);" onkeyup="OnShapeKey(7,19,event);">
<AREA shape="POLYGON" tabindex="1" ALT="20 poprawnych" origTitle="20 poprawnych" TITLE="20 poprawnych" target="_top" COORDS="32,56,23,56,23,66,32,66,32,56" onmouseover="UpdateTooltip(this,7,19,event)" onfocus="UpdateTooltip(this,7,19,event)" onclick="return OnShapeClick(7,19,event);" onkeyup="OnShapeKey(7,19,event);">
<AREA shape="POLYGON" tabindex="1" ALT="2 błędne" origTitle="2 błędne" TITLE="2 błędne" target="_top" COORDS="45,76,45,90,83,90,83,76,45,76" onmouseover="UpdateTooltip(this,7,15,event)" onfocus="UpdateTooltip(this,7,15,event)" onclick="return OnShapeClick(7,15,event);" onkeyup="OnShapeKey(7,15,event);">
<AREA shape="POLYGON" tabindex="1" ALT="2 błędne" origTitle="2 błędne" TITLE="2 błędne" target="_top" COORDS="32,79,23,79,23,88,32,88,32,79" onmouseover="UpdateTooltip(this,7,15,event)" onfocus="UpdateTooltip(this,7,15,event)" onclick="return OnShapeClick(7,15,event);" onkeyup="OnShapeKey(7,15,event);">
<AREA shape="POLYGON" tabindex="1" ALT="0 bez odpowiedzi" origTitle="0 bez odpowiedzi" TITLE="0 bez odpowiedzi" target="_top" COORDS="45,98,45,113,120,113,120,98,45,98" onmouseover="UpdateTooltip(this,7,11,event)" onfocus="UpdateTooltip(this,7,11,event)" onclick="return OnShapeClick(7,11,event);" onkeyup="OnShapeKey(7,11,event);">
<AREA shape="POLYGON" tabindex="1" ALT="0 bez odpowiedzi" origTitle="0 bez odpowiedzi" TITLE="0 bez odpowiedzi" target="_top" COORDS="32,102,23,102,23,111,32,111,32,102" onmouseover="UpdateTooltip(this,7,11,event)" onfocus="UpdateTooltip(this,7,11,event)" onclick="return OnShapeClick(7,11,event);" onkeyup="OnShapeKey(7,11,event);">
</MAP>
</DIV>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@ -0,0 +1,163 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="visio.css"/>
<title>
Drawing2
</title>
<script type="text/javascript" language="javascript">
function UpdateTooltip(){};
function OnShapeClick(){};
</script>
<script src="png_1.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript">
if( (parent.isSVG) ||
(parent.isVML && parent.vmlSupported) ||
(parent.isXAML && parent.isUpLevel))
{
location.replace(parent.g_FileList[parent.g_CurPageIndex].PriImage);
}
</script>
<script type="text/javascript" language="javascript">
var pageID = 6;
var isUpLevel = parent.isUpLevel;
var OnShapeClick = null;
if (!parent.isMac)
{
OnShapeClick = parent.OnShapeClick;
}
var OnShapeKey = parent.OnShapeKey;
var UpdateTooltip = parent.UpdateTooltip;
var clickMenu = parent.clickMenu;
var toggleMenuDiv = parent.toggleMenuDiv;
var toggleMenuLink = parent.toggleMenuLink;
var GoToPage = parent.GoToPage;
if (parent.isUpLevel)
{
if (parent.g_FirstPageToLoad != null && parent.g_FirstPageToLoad.length > 0)
{
if (parent.g_FileList[parent.g_CurPageIndex].PageID != pageID)
{
var fileEntry = parent.g_FileList[parent.g_CurPageIndex];
var fileToLoad = fileToLoad = fileEntry.PriImage;
if (fileEntry.SecImage.length > 0)
{
fileToLoad = fileEntry.SecImage;
}
location.replace(fileToLoad);
}
parent.g_FirstPageToLoad = null;
}
var viewMgr = new parent.CViewMgr();
parent.viewMgr = viewMgr;
viewMgr.SupportsDetails = true;
viewMgr.SupportsSearch = true;
viewMgr.put_Location = ViewMgrSetRasterLocation;
viewMgr.visBBoxLeft = 0.427862;
viewMgr.visBBoxRight = 7.882697;
viewMgr.visBBoxBottom = 5.979044;
viewMgr.visBBoxTop = 9.929941;
viewMgr.highlightDiv = null;
}
function load ()
{
if(isUpLevel)
{
arrowdiv.innerHTML = '<img id="arrowgif" alt="Shows the location of the selected shape" src="arrow.png"/>';
var pageIndex = parent.PageIndexFromID (pageID);
parent.CurPageUpdate (pageIndex);
}
}
function unload()
{
if(isUpLevel)
{
viewMgr = null;
parent.viewMgr = null;
}
}
window.onload = load;
window.onunload = unload;
document.onclick = clickMenu;
</script>
<style type="text/css">
body {
background:url(foo) fixed;
padding: 10px;
}
div.banner {
position: fixed;
_position: absolute;
top: 0;
left: 0;
_top: expression(eval(document.body.scrollTop));
_left: expression(eval(document.body.scrollLeft));
width: 100%;
_width: expression(eval(document.body.clientWidth));
margin: 0;
padding: 3px;
padding-left: 6px;
background:lime;
background-color: #FFFFC6;
font: 11px tahoma,arial,serif;
border-bottom: 2px ridge #FFFFC6;
}
</style>
</head>
<body class="pageView" bgcolor="#FFFFFF" style="margin: 0px">
<script type="text/javascript" language="javascript">
// Displays the banner prompt to install Silverlight
if (parent.slSupported && !parent.slInstalled)
{
var slBanner = document.createElement("div");
slBanner.className = "banner";
slBanner.innerHTML = 'To enable full functionality such as Pan and Zoom, <a href="http://www.microsoft.com/silverlight/resources/install.aspx" target="parent">click here</a> to install the Silverlight plug-in.';
document.body.appendChild(slBanner);
document.body.style.paddingTop = "2.5em";
}
</script>
<div id="arrowdiv" style="position:absolute;top:0;left:0;visibility:hidden;z-index:5">
</div>
<div id="menu1" onclick="clickMenu()" class="hlMenu">
</div>
<DIV id="RasterDiv" style="margin:10px">
<center>
<IMG id="ConvertedImage" SRC="png_5.png" ALT="Page-4" name=RasterImage BORDER="0" USEMAP="#visImageMap">
</center>
<MAP NAME="visImageMap">
<AREA shape="POLYGON" tabindex="1" ALT="Strona główna" origTitle="Strona główna" TITLE="Strona główna" HREF="png_1.htm" target="frmDrawing" COORDS="3,20,83,20,85,19,86,18,86,3,85,1,83,1,3,1,1,1,1,3,1,18,1,19,3,20" onmouseover="UpdateTooltip(this,6,79,event)" onfocus="UpdateTooltip(this,6,79,event)" onclick="return OnShapeClick(6,79,event);" onkeyup="OnShapeKey(6,79,event);">
<AREA shape="POLYGON" tabindex="1" ALT="Dalej" origTitle="Dalej" TITLE="Dalej" HREF="png_5.htm" target="frmDrawing" COORDS="566,262,668,262,669,261,670,260,670,245,669,243,668,243,566,243,565,243,564,245,564,260,565,261,566,262" onmouseover="UpdateTooltip(this,6,75,event)" onfocus="UpdateTooltip(this,6,75,event)" onclick="return OnShapeClick(6,75,event);" onkeyup="OnShapeKey(6,75,event);">
<AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE="" target="_top" COORDS="662,20,685,20,685,1,662,1,662,20" onmouseover="UpdateTooltip(this,6,57,event)" onfocus="UpdateTooltip(this,6,57,event)" onclick="return OnShapeClick(6,57,event);" onkeyup="OnShapeKey(6,57,event);">
<AREA shape="POLYGON" tabindex="1" ALT="" origTitle="" TITLE="" target="_top" COORDS="687,20,715,20,715,1,687,1,687,20" onmouseover="UpdateTooltip(this,6,51,event)" onfocus="UpdateTooltip(this,6,51,event)" onclick="return OnShapeClick(6,51,event);" onkeyup="OnShapeKey(6,51,event);">
</MAP>
</DIV>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 B

View File

@ -0,0 +1,48 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"/>
<title></title>
<style type="text/css">
body
{
font-family: Verdana, Sans-Serif;
font-size: small;
}
.toc
{
font-size: medium;
}
</style>
<script type="text/javascript" language="javascript">
if (parent.fShowWidgets)
{
location.replace("widgets.htm");
}
</script>
</head>
<body leftmargin="0" topmargin="0" class="nav" dir=ltr>
<table id="tabToc" width="100%" cellspacing="0" cellpadding="0" border="0" bgcolor="#999999" height="20">
<tr>
<td>&nbsp;</td>
</tr>
</table>
<h1 class="toc">Drawing2</h1>
<ul>
<li><a href="png_1.htm" target="frmDrawing">Page-1</a></li>
<li><a href="png_2.htm" target="frmDrawing">Page-2</a></li>
<li><a href="png_3.htm" target="frmDrawing">Page-3</a></li>
<li><a href="png_4.htm" target="frmDrawing">Page-5</a></li>
<li><a href="png_5.htm" target="frmDrawing">Page-4</a></li>
</ul>
</body>
</html>

View File

@ -0,0 +1,263 @@
td {vertical-align: top;}
.fillcolor
{ vertical-align: top;
padding: 0pt;
background-color:#5C85EF;
filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#5C85EF', EndColorStr='#90B6FF');
}
A.blu1
{
color: #3366CC;
text-decoration: none;
font-size: 95%;
}
A.blu1:visited
{
color: #3366CC;
text-decoration: none
}
A.blu1:hover
{
text-decoration: underline
}
.visrptTitle
{
color:Black;
font-style:normal;
}
.visrptSummryLabel
{
color:black;
font-weight:bold;
}
.visrptGrandTotalRow
{
color:Black;
font-weight:bold;
}
.visrptHeader
{
color:White;
font-style:normal;
background-color:#5C85EF;
}
.visrptRowItem
{
background-color:#DDDDDD;
}
.a1
{ color: #ffffff;
text-decoration:none;
}
.p1
{ font-family: verdana, sans-serif;
font-size: 60%;
COLOR: #ffffff;
Margin: 4pt,0pt,0pt,0pt;
line-height: .8em;
}
.p2
{ FONT-FAMILY: verdana, sans-serif;
FONT-WEIGHT: normal;
font-size: 70%;
COLOR: #333333;
Margin: 4pt,0pt,0pt,0pt;
line-height: 1.3em;
}
.label
{ FONT-FAMILY: verdana, sans-serif;
FONT-WEIGHT: bold;
font-size: 70%;
COLOR: #FFFFFF;
Margin: .2em,0pt,2pt,2pt;
line-height: 1em;
text-decoration:none;
}
.gobutton
{
padding: 0pt, 2pt, 0pt, 0pt;
vertical-align: bottom;
}
.formText
{
font-size: 70%;
width: 99%;
margin: 0;
padding: 0;
}
.holderTable
{
padding-left:1px;
padding-right:1px;
}
.detsPara
{
margin:2pt;
font-size:60%;
}
.navTocColor
{
background-color:#999999;
}
.indent
{
margin-left:15px;
margin-right:15px;
padding-top:0px;
margin-top:0px;
}
.results
{
COLOR: #333333;
Margin: 4pt,0pt,0pt,10pt;
text-indent: -10pt;
line-height: 1.1em;
}
.propViewer
{
background-Color:white;
color: black;
font-family: verdana, sans-serif;
font-style: italic;
font-weight: bold;
font-size: 70%;
text-align: center;
}
.propViewerTABLE
{
margin: 2pt;
border-collapse:collapse;
border:solid 1px #999999;
}
.propViewerTHEAD
{
border: 2px;
font-size: 60%;
}
.propViewerTD
{
font-family: Verdana, sans-serif;
FONT-WEIGHT: normal;
font-size: 70%;
COLOR: #000000;
Margin: 0pt;
line-height: 1.1em;
}
.propViewerEvenRow
{
background-Color: #E7E7E7;
}
.propViewerOddRow
{
background-Color: #FFFFFF;
}
BODY
{
font-family: Verdana, sans-serif;
font-size: medium;
}
DIV
{
margin:0;
padding:0;
}
FORM
{
margin:0;
}
.hiderScroll
{
width:100%;
margin-bottom:2px;
margin-top:1px;
overflow:auto;
}
.hider
{
width:100%;
margin-bottom:2px;
margin-top:1px;
}
.nav
{
width: 100%;
height: 100%;
overflow: auto;
}
.menuItem
{
font-family:sans-serif;
font-size:80%;
line-height: 1.5em;
background-color:white;
color:black;
cursor:hand;
}
.highlightItem
{
font-family:sans-serif;
font-size:80%;
line-height: 1.5em;
background-Color:highlight;
color:white;
cursor:hand;
}
.hlMenu
{
border:black 2px outset;
display:none;
z-index:10;
position:absolute;
background-Color:white;
}
.innerhlMenu
{
padding-left:2pt;
padding-right:2pt;
background-Color:white;
}
.svgmessage
{ FONT-FAMILY: verdana, sans-serif;
FONT-WEIGHT: normal;
font-size: 80%;
COLOR: #333333;
Margin: 1em;
line-height: 1.1em;
}

View File

@ -0,0 +1,524 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Drawing2</title>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"/>
<link href="visio.css" rel="stylesheet">
<script src="keys.js" type="text/javascript" language="javascript"></script>
<script src="find.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript">
var imgMin = new Image();
imgMin.src = "minimize.gif";
var imgMax = new Image();
imgMax.src = "maximize.gif";
var fileList = parent.g_FileList;
function Widgets()
{
this.GoTo = null;
this.Search = null;
this.Details = null;
this.PNZ = null;
this.divCount = 0;
this.OpenText = "Collapse all";
this.OpenAlt = "Collapse all";
this.ClosedText = "Expand all";
this.ClosedAlt = "Expand all";
this.Display = "";
this.Img = imgMin;
this.Text = this.OpenText;
this.Alt = this.OpenAlt;
this.ToggleAll = ToggleAll;
this.ToggleWidget = ToggleWidget;
this.Add = Add;
}
function Add(div, name)
{
tmpStr = "this." + name + " = new Widget(div);"
eval(tmpStr);
var thisWidget = eval("this." + name);
}
function Widget(div)
{
return div;
}
function ToggleAll()
{
var OpenCloseFunc = Widget;
if(this.Display == "")
{
this.Display = "none";
this.Img = imgMax;
this.Text = this.ClosedText;
this.Alt = this.ClosedAlt;
document.getElementById("expparent00").title = this.ClosedAlt;
OpenCloseFunc = CloseWidget;
}
else
{
this.Display = "";
this.Img = imgMin;
this.Text = this.OpenText;
this.Alt = this.OpenAlt;
document.getElementById("expparent00").title = this.OpenAlt;
OpenCloseFunc = OpenWidget;
}
document.getElementById("exp00").src = this.Img.src;
document.getElementById("textExp").innerHTML = this.Text;
document.getElementById("exp00").alt = this.Alt;
if(this.GoTo)
{
OpenCloseFunc(this.GoTo)
}
if(this.Search)
{
OpenCloseFunc(this.Search)
}
if(this.Details)
{
OpenCloseFunc(this.Details)
}
if(this.PNZ)
{
OpenCloseFunc(this.PNZ)
}
}
function ToggleNav()
{
if(document.getElementById("divCollapsedNav").style.display == "none")
{
document.getElementById("divCollapsedNav").style.display = "";
document.getElementById("divOpenNav").style.display = "none";
parent.document.getElementById("frmstOuter").cols = "20,*"
parent.document.getElementById("frmToolbar").noResize = true;
}
else
{
document.getElementById("divOpenNav").style.display = "";
document.getElementById("divCollapsedNav").style.display = "none";
parent.document.getElementById("frmstOuter").cols = "237,*"
parent.document.getElementById("frmToolbar").noResize = false;
}
}
function ToggleWidget(div)
{
if(div.style.display == "none")
{
OpenWidget(div);
}
else
{
CloseWidget(div);
}
}
function OpenWidget(div)
{
document.getElementById(div.img).src = imgMin.src;
div.style.display = "";
document.getElementById(div.img).alt = div.openAlt;
document.getElementById(div.img + "1").title = div.openAlt;
document.getElementById(div.img + "2").title = div.openAlt;
}
function CloseWidget(div)
{
document.getElementById(div.img).src = imgMax.src;
div.style.display = "none";
document.getElementById(div.img).alt = div.closedAlt;
document.getElementById(div.img + "1").title = div.closedAlt;
document.getElementById(div.img + "2").title = div.closedAlt;
}
function load()
{
parent.g_WidgetsLoaded = true;
if (parent.g_LoadingWidgets)
{
parent.g_LoadingWidgets = false;
parent.location.reload();
}
}
function unload()
{
parent.g_LoadingWidgets = true;
}
var widgets = new Widgets();
</script>
</head>
<body onload="load();" onunload="unload();" onkeypress="keyHandler(event)">
<div id="divOpenNav" class="nav">
<table id="tabToc" width="100%" class="navTocColor" style="margin-bottom:1px;" cellspacing="0" cellpadding="0" border="0" height="20" dir=ltr>
<tr>
<td width="2"><a href="javascript:ToggleNav();" title="Collapse navigation frame" id="linkNavOpen"><img src="toc.gif" alt="Collapse navigation frame" width="22" height="17" border="0"></a></td>
<td><p class="p1"><a href="javascript:ToggleNav();" title="Collapse navigation frame" class="a1">Hide</a></p></td>
<td align="right"><p class="p1"><a href="javascript:widgets.ToggleAll()" id="textExp" class="a1">Collapse all</a></p></td>
<td width="2">
<div style="padding:2pt,1.5pt,0pt,0pt"><a href="javascript:widgets.ToggleAll()" title="Collapse all" id="expparent00"><img id="exp00" alt="Collapse all" src="minimize.gif" width="15" height="15" border="0"></a></div>
</td>
</tr>
</table>
<div id="divGoto" class="holder">
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="holderTable">
<tr><td>
<div class="fillcolor">
<table width="100%" cellspacing="0" cellpadding="1" border="0" class="fillcolor">
<tr>
<td style="padding:3px;"><a id="exp01" title="Collapse Go to Page" href="javascript:widgets.ToggleWidget(hideGoto);"><p class="label" style="display:inline">Go to Page</p></a></td>
<td width="15"><a id="exp02" title="Collapse Go to Page" href="javascript:widgets.ToggleWidget(hideGoto);"><img id="exp0" alt="Collapse Go to Page" src="minimize.gif" width="15" height="15" border="0"></a></td>
</tr>
</table>
</div>
</td></tr>
<tr><td>
<div id="hideGoto" class="hider" openAlt="Collapse Go to Page" closedAlt="Expand Go to Page">
<form class="page" ID="formPage" onsubmit="parent.GoToPage(Select1.value); return false;">
<table width="100%" cellspacing="0" cellpadding="3" border="0">
<tr>
<td>
<select class="formText" ID="Select1" NAME="Select1" title="Select page from list. Press Enter to go to the selected page." onkeyup="if(window.event.keyCode == 13) {parent.GoToPage(Select1.value);} return false;">
<script type="text/javascript" language="javascript">
var options = "";
for (var count = 0; count < fileList.length; count++)
{
options += '<option value="' + count + '">' + fileList[count].PageName + '</option>';
}
document.write (options);
</script>
</select>
</td>
<td width="18" class="gobutton">
<input type="image" src="go.gif" name="go" alt="Go to selected page" width="18" height="18" border="0">
</td>
</tr>
</table>
</form>
</div>
</td></tr>
</table>
<script type="text/javascript" language="javascript">
var hideGoto = document.getElementById("hideGoto");
hideGoto.img = "exp0";
widgets.Add(hideGoto, "GoTo");
</script>
</div>
<div id="divPNZ" class="holder" dir=ltr>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="holderTable">
<tr><td>
<div class="fillcolor">
<table width="100%" cellspacing="0" cellpadding="1" border="0" class="fillcolor">
<tr>
<td style="padding:3px;"><a id="exp41" title="Collapse Pan and Zoom" href="javascript:widgets.ToggleWidget(hidePNZ);"><p class="label" style="display:inline;">Pan and Zoom</p></a></td>
<td width="15"><a id="exp42" title="Collapse Pan and Zoom" href="javascript:widgets.ToggleWidget(hidePNZ);"><img id="exp4" alt="Collapse Pan and Zoom" src="minimize.gif" width="15" height="15" border="0"></a></td>
</tr>
</table>
</div>
</td></tr>
<tr><td>
<div id="hidePNZ" style="text-align:right;" class="hiderScroll" openAlt="Collapse Pan and Zoom" closedAlt="Expand Pan and Zoom">
<table width="220" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle">
<iframe title="Pan and Zoom window" longdesc="Pan and Zoom window" name="ifrmPNZ" id="ifrmPNZ" src="zoom.htm" width="178" height="178" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" style="border: #cccccc 1px solid;"></iframe>
</td>
<td>
<table id="tabScale" width="17" cellspacing="0" cellpadding="0" border="0" onmouseover="tickFocus(event)" onmouseout="tickBlur(event)">
<tr><td><a href="javascript:tickSelect(100);" title="Zoom page to 100%"><img src="fullpage.gif" alt="Zoom page to 100%" border="0"></a></td></tr>
<tr><td><a href="javascript:ZoomUpDown(1);" title="Zoom in"><img src="panplus.gif" alt="Zoom in" border="0"></a></td></tr>
<tr><td><a href="javascript:tickSelect(500);" title="Zoom to 500%"><img id="t500" src="tick-off.gif" alt="Zoom to 500%" width="17" height="11" border="0"></a></td></tr>
<tr><td><a href="javascript:tickSelect(450);" title="Zoom to 450%"><img id="t450" src="tick-off.gif" alt="Zoom to 450%" width="17" height="11" border="0"></a></td></tr>
<tr><td><a href="javascript:tickSelect(400);" title="Zoom to 400%"><img id="t400" src="tick-off.gif" alt="Zoom to 400%" width="17" height="11" border="0"></a></td></tr>
<tr><td><a href="javascript:tickSelect(350);" title="Zoom to 350%"><img id="t350" src="tick-off.gif" alt="Zoom to 350%" width="17" height="11" border="0"></a></td></tr>
<tr><td><a href="javascript:tickSelect(300);" title="Zoom to 300%"><img id="t300" src="tick-off.gif" alt="Zoom to 300%" width="17" height="11" border="0"></a></td></tr>
<tr><td><a href="javascript:tickSelect(250);" title="Zoom to 250%"><img id="t250" src="tick-off.gif" alt="Zoom to 250%" width="17" height="11" border="0"></a></td></tr>
<tr><td><a href="javascript:tickSelect(200);" title="Zoom to 200%"><img id="t200" src="tick-off.gif" alt="Zoom to 200%" width="17" height="11" border="0"></a></td></tr>
<tr><td><a href="javascript:tickSelect(150);" title="Zoom to 150%"><img id="t150" src="tick-off.gif" alt="Zoom to 150%" width="17" height="11" border="0"></a></td></tr>
<tr><td><a href="javascript:tickSelect(100);" title="Zoom to 100%" id="a100"><img id="t100" src="tick-on.gif" alt="Zoom to 100%" width="17" height="11" border="0"></a></td></tr>
<tr><td><a href="javascript:tickSelect(50);" title="Zoom to 50%"><img id="t50" src="tick-off.gif" alt="Zoom to 50%" width="17" height="11" border="0"></a></td></tr>
<tr><td><a href="javascript:tickSelect(10);" title="Zoom to 10%"><img id="t10" src="tick-off.gif" alt="Zoom to 10%" width="17" height="11" border="0"></a></td></tr>
<tr><td><a href="javascript:ZoomUpDown(-1);" title="Zoom out"><img src="panminus.gif" alt="Zoom out" border="0"></a></td></tr>
</table>
</td>
</tr>
</table>
</div>
</td></tr>
</table>
<script type="text/javascript" language="javascript">
var hidePNZ = document.getElementById("hidePNZ");
hidePNZ.img = "exp4";
widgets.Add(hidePNZ, "PNZ");
widgets.divCount++;
var zoomLevels = new Array(10, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500);
var tickOff = new Image();
tickOff.src = "tick-off.gif";
var tickFoc = new Image();
tickFoc.src = "tick-foc.gif";
var tickOn = new Image();
tickOn.src = "tick-on.gif";
function getElem(event)
{
// Retrieve the event in IE
if (!event)
var event = window.event;
// Reference the element howeaver this browser can
var elem;
if (event.target) // For Firefox
elem = event.target;
else if (event.srcElement) // For IE
elem = event.srcElement;
if (elem.nodeType == 3) // For Safari
elem = elem.parentNode;
return elem
}
function tickFocus(event)
{
var elem = getElem(event);
if(elem.state == "off")
elem.src = tickFoc.src;
}
function tickBlur(event)
{
var elem = getElem(event);
if(elem.state == "off")
elem.src = tickOff.src;
}
function tickSelect(percentZoom)
{
if (parent.viewMgr &&
parent.viewMgr.Zoom)
{
changeTick(percentZoom);
parent.viewMgr.Zoom(percentZoom);
}
var frame = frames[0];
if(frame.zoomRectDiv)
{
frame.g_width = parseInt(frame.zoomRectDiv.style.pixelWidth);
frame.g_height = parseInt(frame.zoomRectDiv.style.pixelHeight);
frame.g_newLeft = parseInt(frame.zoomRectDiv.style.left);
frame.g_newTop = parseInt(frame.zoomRectDiv.style.top);
}
}
function changeTick(percentZoom)
{
img = document.getElementById("t" + percentZoom);
img.src = tickOn.src;
if(elemScale.tickSelected && elemScale.tickSelected != img)
{
elemScale.tickSelected.src = tickOff.src;
}
elemScale.tickSelected = img;
}
function ZoomUpDown(increment)
{
if (elemScale.tickSelected)
{
var curZoomLevel = elemScale.tickSelected.id.substring (1);
var newZoomLevelIndex = IndexFromLevel (curZoomLevel * 1.0);
if (newZoomLevelIndex >= 0)
{
var img = document.getElementById("t" + zoomLevels[newZoomLevelIndex + increment]);
if (img)
{
tickSelect(img.id.substring(1));
}
}
}
else
{
tickSelect (100);
}
}
function IndexFromLevel (zoomLevel)
{
for (var count = 0; count < zoomLevels.length; count++)
{
if (zoomLevels[count] == zoomLevel)
{
return count;
}
}
return -1;
}
elemScale = document.getElementById("tabScale");
</script>
</div>
<div id="divDetails" class="holder" dir=ltr>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="holderTable">
<tr><td>
<div class="fillcolor">
<table width="100%" cellspacing="0" cellpadding="1" border="0" class="fillcolor">
<tr>
<td style="padding:3px;"><a id="exp21" title="Collapse Details" href="javascript:widgets.ToggleWidget(hideDetails);"><p class="label" style="display:inline;">Details</p></a></td>
<td width="15"><a id="exp22" title="Collapse Details" href="javascript:widgets.ToggleWidget(hideDetails);"><img id="exp2" alt="Collapse Details" src="minimize.gif" width="15" height="15" border="0"></a></td>
</tr>
</table>
</div>
</td></tr>
<tr><td>
<div id="hideDetails" class="hiderScroll" openAlt="Collapse Details" closedAlt="Expand Details">
<P class="p2" class="detsPara">CTRL+click a shape in the drawing to view details.</P>
</div>
</td></tr>
</table>
<script type="text/javascript" language="javascript">
var hideDetails = document.getElementById("hideDetails");
hideDetails.img = "exp2";
widgets.Add(hideDetails, "Details");
widgets.divCount++;
</script>
</div>
<div id="divSearch" class="holder">
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="holderTable">
<tr><td>
<div class="fillcolor" dir=ltr>
<table width="100%" cellspacing="0" cellpadding="1" border="0" class="fillcolor">
<tr>
<td style="padding:3px;"><a id="exp11" title="Collapse Search Pages" href="javascript:widgets.ToggleWidget(hideSearch);"><p class="label" style="display:inline;">Search Pages</p></a></td>
<td width="15"><a id="exp12" title="Collapse Search Pages" href="javascript:widgets.ToggleWidget(hideSearch);"><img src="minimize.gif" id="exp1" alt="Collapse Search Pages" width="15" height="15" border="0"></a></td>
</tr>
</table>
</div>
</td></tr>
<tr><td>
<div id="hideSearch" img="exp1" class="hiderScroll" openAlt="Collapse Search Pages" closedAlt="Expand Search Pages">
<form name=theForm onsubmit="FindOnClick(); return false;" ID="Form1">
<table width="100%" cellspacing="0" cellpadding="3" border="0">
<tr>
<td width="100%">
<input class="formText" type="text" name="findString" maxlength="255" size="26" title="Enter text for search. Press Enter to begin search.">
</td>
<td width="18" class="gobutton">
<input type="image" src="go.gif" alt="Start searching" width="18" height="18" ID="GoButton" NAME="GoButton">
</td>
</tr>
<tr>
<td colspan="2" class="p2">
<a href="javascript:{};" tabindex="0" onclick="TogglePlus(hideAdvSrch,as0);" class="blu1"><img src="plus.gif" alt="Shows/hides advanced searching options" border="0" id="as0">Advanced</a>
<div id="hideAdvSrch" class="hiderScroll" style="display:none;">
<b>Search By:</b>
<div id="divS"></div>
</div>
<hr width="100%" size="1" color="#cccccc">
<div id="hideResults" class="hiderScroll" style="display:none;"></div>
</td>
</tr>
</table>
</form>
</div>
</td></tr>
</table>
<script type="text/javascript" language="javascript">
var hideSearch = document.getElementById("hideSearch");
hideSearch.img = "exp1";
widgets.Add(hideSearch, "Search");
widgets.divCount++;
makeAdvancedFindCheckboxes(document.getElementById("divS"));
var imgPlus = new Image();
imgPlus.src = "plus.gif";
var imgMinus = new Image();
imgMinus.src = "minus.gif";
function TogglePlus(div, img, container)
{
if(typeof(img) == "string")
img = document.getElementById(img)
if(typeof(div) == "string")
div = document.getElementById(div)
widget = widgets.Search;
if(div && img)
{
if(div.style.display == "none")
{
div.style.display = "";
img.src = imgMinus.src;
div.open = "true";
}
else
{
div.style.display = "none";
img.src = imgPlus.src;
div.open = "false";
}
}
}
</script>
</div>
</div>
<div id="divCollapsedNav" class="navTocColor" style="display:none;width:100%;height:100%;">
<a href="javascript:ToggleNav();" title="Expand navigation frame" id="linkNavClosed"><img src="toc2.gif" alt="Expand navigation frame" border="0"></a>
</div>
</body>
</html>

View File

@ -0,0 +1,187 @@
<html xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"/>
<link rel="stylesheet" type="text/css" href="visio.css"/>
<title>Drawing2</title>
<script src="Silverlight.js" type="text/javascript"></script>
<script src="Silverlight.supportedUserAgent.js" type="text/javascript"></script>
<script src="xaml_1.js" type="text/javascript"></script>
</head>
<script type="text/javascript">
var pageID = 0;
var drawing;
function keyhandler(event)
{
switch(event.keyCode)
{
case 9: //Tab
{
var foundShape;
if (event.shiftKey)
foundShape = (window.SilverlightObj.selectPrevShape() != null);
else
foundShape = (window.SilverlightObj.selectNextShape() != null);
if (foundShape)
{
event.cancelBubble = false;
event.returnValue = false;
}
}
break;
case 13: //Enter
{
if(window.SilverlightObj.shapeSel != null)
{
var shape = window.SilverlightObj.shapeSel;
var shapeID = parseInt(shape.Name.substring(1, shape.Name.length));
parent.OnShapeClick(pageID, shapeID, event);
}
}
break;
}
}
function createDrawing()
{
drawing = new SilverlightDisplay.Drawing();
window.SilverlightObj = drawing;
Silverlight.createObjectEx({
source: 'xaml_1.xaml',
parentElement: document.getElementById('SilverlightPlugInHost'),
id: 'SilverlightPlugIn',
properties: {
width: '595',
height: '841',
background:'#ffffff',
isWindowless: 'true',
version: '1.0'
},
events: {
onError: null,
onLoad: Silverlight.createDelegate(drawing, drawing.handleLoad)
},
context: null
});
}
function createPNZ(divThumb, windowWidth, windowHeight)
{
var pnz = new SilverlightDisplay.Thumbnail();
pnz.callbackIndex = '__slEvent' + Silverlight._silverlightCount;
Silverlight.createObjectEx({
source: 'xaml_1.xaml',
parentElement: divThumb,
id: 'thumbnailHost',
properties: {
width: (windowWidth).toString(),
height: (windowHeight).toString(),
background:'#ffffff',
isWindowless: 'true',
version: '1.0'
},
events: {
onError: null,
onLoad: Silverlight.createDelegate(pnz, pnz.handleLoad) // Won't be registered correctly
},
context: null
});
return pnz;
}
function PostZoomProcessing (newZoomLevel)
{
parent.viewMgr.PostZoomProcessing = null;
var pageIndex = parent.PageIndexFromID (pageID);
parent.viewMgr.createPNZ = createPNZ;
parent.CurPageUpdate (pageIndex);
}
if (!window.Silverlight)
window.Silverlight = {};
Silverlight.createDelegate = function(instance, method) {
return function() {
return method.apply(instance, arguments);
}
}
function unload()
{
viewMgr = null;
parent.viewMgr = null;
}
function fit()
{
if(parent.frmToolbar)
{
if (parent.g_WidgetsLoaded && plugin)
{
var zoom100 = parent.frmToolbar.document.getElementById('a100');
if (zoom100)
{
parent.viewMgr.PostZoomProcessing = PostZoomProcessing;
if (zoom100.click)
zoom100.click();
else
viewMgr.Zoom(100);
}
else
{
parent.viewMgr.PostZoomProcessing = PostZoomProcessing;
viewMgr.Zoom(100);
}
}
else
{
window.setTimeout("fit()", 500);
}
}
else
{
parent.viewMgr.PostZoomProcessing = PostZoomProcessing;
viewMgr.Zoom(100);
}
}
function load()
{
viewMgr = new parent.CViewMgr();
parent.viewMgr = viewMgr;
viewMgr.SupportsDetails = true;
viewMgr.SupportsSearch = true;
viewMgr.put_Location = SetXAMLLocation;
viewMgr.Zoom = XAMLZoomChange;
viewMgr.setView = XAMLSetView;
createDrawing();
fit();
}
window.onload = load;
window.unload = unload;
var OnShapeClick = parent.OnShapeClick;
var OnShapeKey = parent.OnShapeKey;
var UpdateTooltip = parent.UpdateTooltip;
var clickMenu = parent.clickMenu;
var toggleMenuDiv = parent.toggleMenuDiv;
var toggleMenuLink = parent.toggleMenuLink;
</script>
<body style="margin:10px" onresize="XAMLOnResize();" onscroll="XAMLOnScroll();">
<div id="SilverlightPlugInHost" onkeydown="keyhandler(event)">
</div>
<div id="menu1" onclick="parent.clickMenu(event)" class="hlMenu">
</div>
</body>
</html>

View File

@ -0,0 +1,764 @@
var ARROW_IMG_SRC = '<Image Source="arrow.png"/>';
var ARROW_WIDTH = 33;
var ARROW_HEIGHT = 40;
var CONV_FACTOR = 96.0;
// Required for callbacks
var plugin;
var rootCanvas;
var pageCanvas;
var imgArrow;
var tooltip;
var SelectNodes = parent.SelectNodes
if (!window.SilverlightDisplay)
window.SilverlightDisplay = {};
SilverlightDisplay.Drawing = function()
{
}
SilverlightDisplay.Drawing.prototype =
{
handleLoad: function(xaml_plugin, userContext, rootElement)
{
plugin = xaml_plugin;
imgArrow = null;
this.tooltip = null;
this.strLastShape = ""; // Name of the last shape that created an event
this.shapeSelIndex = -1;
this.shapeSel = null;
this.root = rootElement;
rootCanvas = rootElement;
// Find the page's canvas
for (var i = 0; i < rootCanvas.Children.Count; i++)
{
var child = rootCanvas.Children.GetItem(i);
if (child.toString () == "Canvas" && child.Name == "D")
{
pageCanvas = child;
break;
}
}
this.scaleX = 1;
this.scaleY = 1;
var strTransform = '<ScaleTransform ScaleX="' + this.scaleX + '" ScaleY="' + this.scaleY + '"/>';
rootCanvas.RenderTransform = plugin.Content.CreateFromXAML(strTransform);
parent.viewMgr.origWidth = pageCanvas.Width;
parent.viewMgr.origWH = pageCanvas.Width / pageCanvas.Height;
rootElement.addEventListener ("LostFocus", Silverlight.createDelegate (this, this.handleLostFocus));
this.addListenersToShapes (pageCanvas);
},
onResize: function(width, height)
{
// Calculate the new scale
this.scaleX = width / rootCanvas.Width;
this.scaleY = height / rootCanvas.Height;
rootCanvas.RenderTransform.ScaleX = this.scaleX;
rootCanvas.RenderTransform.ScaleY = this.scaleY;
plugin.width = width;
plugin.height = height;
},
addListenersToShapes: function(canvasNode)
{
// Add listeners to all the shapes with properties
for (var i = 0; i < canvasNode.Children.Count; i++)
{
var child = canvasNode.Children.GetItem(i);
if (child.toString () == "Canvas" && child.Name != "")
{
this.addListenersToShapes (child); // Recursive call
}
else
{
continue;
}
var shapeID = child.Name.substring (1, child.Name.length); // Remove the _
var shapeNode = parent.parent.FindShapeXML (pageID, shapeID);
if(shapeNode)
{
var tmpProp = SelectNodes(shapeNode, "Prop").length > 0;
var tmpNodes = false;
if (!tmpProp)
tmpNodes = SelectNodes(shapeNode, "Scratch/B/SolutionXML/HLURL:Hyperlinks/HLURL:Hyperlink");
if (tmpProp || tmpNodes.length > 0)
{
child.addEventListener ("MouseEnter", Silverlight.createDelegate (this, this.handleMouseEnter));
child.addEventListener ("MouseLeftButtonDown", Silverlight.createDelegate (this, this.handleMouseDown));
child.addEventListener ("MouseLeftButtonUp", Silverlight.createDelegate (this, this.handleMouseUp));
child.addEventListener ("MouseLeave", Silverlight.createDelegate (this, this.handleMouseLeave));
if (tmpNodes.length > 0)
child.Cursor = "Hand";
}
}
}
},
handleKeyDown: function(sender, eventArgs)
{
},
getTextBlock: function(text, left, top)
{
return '<TextBlock Canvas.Left="' + left + '" Canvas.Top="' + top + '" FontFamily="Lucida Sans Unicode, Lucida Grande" FontSize="10.5" Text="' + text + '"/>';
},
removeTooltip: function()
{
if (this.tooltip != null)
{
// Remove the tooltip from the Canvas object.
pageCanvas.Children.Remove(this.tooltip);
}
this.tooltip = null;
},
addTooltip: function(sender, eventArgs, type)
{
// Determine whether the tooltip is created.
if (this.tooltip == null)
{
var strHL, strProps;
if (type == 'focus')
{
strHL = parent.parent.strFocusHLTooltipText;
strProps = parent.parent.strFocusPropsTooltipText;
}
else
{
strHL = parent.parent.strHLTooltipText;
strProps = parent.parent.strPropsTooltipText;
}
// Build the tooltip string
var shapeIDStr = sender.name;
var shapeID = parseInt(shapeIDStr.substring(1, shapeIDStr.length));
var shapeNode = parent.parent.FindShapeXML (pageID, shapeID);
var txtBlocks = new Array(3);
var border = 2;
var iHeight = border;
var iWidth = 0;
if ( shapeNode != null )
{
var textNode = SelectNodes(shapeNode, "Text");
if (textNode != null && textNode.length > 0)
{
var strNodeTitle = textNode[0].textContent;
if (!strNodeTitle)
strNodeTitle = textNode[0].text;
var strTxtBlock = this.getTextBlock (strNodeTitle, border, iHeight);
txtBlocks[0] = plugin.content.createFromXaml (strTxtBlock, false);
iHeight += txtBlocks[0].ActualHeight;
iWidth = Math.max (iWidth, txtBlocks[0].ActualWidth + border * 2);
}
// Show the prop tooltip only when there are
// properties in the shape and the details pane is available
var propNode = SelectNodes(shapeNode, "Prop");
if (propNode != null && propNode.length > 0 &&
parent.frmToolbar.widgets != null && parent.frmToolbar.widgets.Details != null)
{
var strTxtBlock = this.getTextBlock (strProps, border, iHeight);
txtBlocks[1] = plugin.content.createFromXaml (strTxtBlock);
iHeight += txtBlocks[1].ActualHeight;
iWidth = Math.max (iWidth, txtBlocks[1].ActualWidth + border * 2);
}
var hlObj = parent.parent.GetHLAction (shapeNode, pageID, shapeID);
if (hlObj != null && (hlObj.DoFunction.length > 0 || hlObj.Hyperlink.length > 0))
{
var strTxtBlock = this.getTextBlock (strHL, border, iHeight);
txtBlocks[2] = plugin.content.createFromXaml (strTxtBlock);
iHeight += txtBlocks[2].ActualHeight;
iWidth = Math.max (iWidth, txtBlocks[2].ActualWidth + border * 2);
}
}
if(iWidth == 0)
return;
// Define the XAML fragment for the background of the tooltip.
var xamlFragment = '<Canvas Width="' + iWidth + '" Height="' + iHeight + '" Background="#FFFFE1">';
xamlFragment += '<Canvas.RenderTransform><ScaleTransform ScaleX="' + (1/this.scaleX) + '" ScaleY="' + (1/this.scaleY) + '"/></Canvas.RenderTransform>';
xamlFragment += '<Rectangle Width="' + iWidth + '" Height="' + iHeight + '" Stroke="Black">';
xamlFragment += '<Rectangle.Fill>';
xamlFragment += '<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">';
xamlFragment += '<GradientStop Color="White" Offset="0.0" />';
xamlFragment += '<GradientStop Color="LightCyan" Offset="1.0" />';
xamlFragment += '</LinearGradientBrush>';
xamlFragment += '</Rectangle.Fill>';
xamlFragment += '</Rectangle>';
xamlFragment += '</Canvas>';
// Create the XAML fragment for the tooltip.
this.tooltip = plugin.content.createFromXaml (xamlFragment, false);
// Position the tooltip at a relative x/y coordinate value.
var cursorPosition = eventArgs.getPosition (pageCanvas);
this.tooltip["Canvas.Left"] = cursorPosition.x;
this.tooltip["Canvas.Top"] = cursorPosition.y + 20 * (1 / this.scaleY);
if(cursorPosition.x + this.tooltip.Width > pageCanvas.Width)
{
this.tooltip["Canvas.Left"] = pageCanvas.Width - this.tooltip.Width;
}
else if(cursorPosition.y + this.tooltip.Height + 20 > pageCanvas.Height)
{
this.tooltip["Canvas.Top"] = pageCanvas.Height - this.tooltip.Height;
}
}
// Add the tooltip to the Canvas object.
pageCanvas.Children.Add (this.tooltip);
for (var i = 0; i < txtBlocks.length; i++)
{
if (txtBlocks[i] != null)
this.tooltip.Children.Add (txtBlocks[i]);
}
setTimeout("if(window.SilverlightObj.strLastShape == '" + sender.name + "') window.SilverlightObj.removeTooltip()", 2000);
},
handleMouseEnter: function(sender, eventArgs)
{
if (this.tooltip != null)
this.removeTooltip ();
this.addTooltip (sender, eventArgs, 'mouse');
this.strLastShape = sender.name;
},
handleMouseDown: function(sender, eventArgs)
{
clickMenu ();
},
handleDownloaderLoad: function(downloader, eventArgs)
{
var plugin = sender.getHost();
var xamlPage = plugin.content.CreateFromXamlDownloader(downloader, "");
var root = sender.findName("rootCanvas");
root.Children.Add(xamlPage);
},
handleMouseUp: function(sender, eventArgs)
{
if(this.shapeSel != null)
this.shapeSel.Opacity = 1.0;
this.shapeSel = sender;
this.shapeSel.Opacity = 0.5;
var shapeIDStr = sender.name;
var shapeID = parseInt(shapeIDStr.substring(1, shapeIDStr.length));
parent.OnShapeClick(pageID, shapeID, null, eventArgs);
},
handleMouseLeave: function(sender, eventArgs)
{
this.removeTooltip();
},
handleLostFocus: function(sender, eventArgs)
{
if(this.shapeSel != null)
this.shapeSel.Opacity = 1.0;
this.shapeSel = null;
},
getIndexFromName: function(strName)
{
var children = pageCanvas.Children;
for(var i = 0; i < children.Count; i++)
{
var child = children.GetItem(i);
if(child.Name == strName)
return i;
}
return -1;
},
isSelectable: function(shape)
{
if(shape == null)
return false;
if(shape.Name && shape.Name.length >= 2)
{
var shapeID = shape.Name.substring (1, shape.Name.length); // Remove the _
var shapeNode = parent.parent.FindShapeXML (pageID, shapeID);
if(shapeNode)
{
if (SelectNodes(shapeNode, "Prop").length > 0 ||
SelectNodes(shapeNode, "Scratch/B/SolutionXML/HLURL:Hyperlinks/HLURL:Hyperlink").length > 0)
{
return true;
}
}
}
return false;
},
selectNextShape: function()
{
if(this.shapeSel == null)
{
this.shapeSel = this.nextShape(pageCanvas);
}
else
{
this.shapeSel.Opacity = 1.0;
this.shapeSel = this.nextShape(this.shapeSel);
}
if(this.shapeSel)
this.shapeSel.Opacity = 0.5;
return this.shapeSel;
},
selectPrevShape: function()
{
if(this.shapeSel == null)
{
this.shapeSel = this.prevShape(pageCanvas);
}
else
{
this.shapeSel.Opacity = 1.0;
this.shapeSel = this.prevShape(this.shapeSel);
}
if(this.shapeSel)
this.shapeSel.Opacity = 0.5;
return this.shapeSel;
},
// Called when we gain the focus for the first time from tabbing
startHandlingTabs: function(front)
{
if(front)
return (this.selectNextShape() != null);
else
return (this.selectPrevShape() != null);
},
nextShape: function(startShape, currShape, lastVisited) // currShape and currIndex should only be used by this function itself
{
// Visit
if(currShape != null && startShape != currShape && this.isSelectable(currShape))
{
return currShape;
}
if(currShape == null)
{
currShape = startShape;
}
// Check this nodes children, making sure we don't recheck nodes as we traverse upwards
var shapeFound = null;
if(currShape.toString () == 'Canvas' && currShape.Children.Count != 0)
{
var start = 0;
if(lastVisited != null)
{
for(var i = 0; i < currShape.Children.Count; i++)
{
if(currShape.Children.GetItem(i).Name == lastVisited.Name)
{
start = i + 1;
break;
}
}
}
for(var i = start; i < currShape.Children.Count; i++)
{
shapeFound = this.nextShape(startShape, currShape.Children.GetItem(i));
if(shapeFound)
return shapeFound;
}
}
if(currShape == startShape && startShape.Name && startShape.Name != "D") // We searched all child nodes and now need to search parent nodes
{
return this.nextShape(currShape.GetParent(), null, currShape);
}
return null;
},
// Traverses upwards until it finds a possibility of child shapes
prevShape: function(currShape)
{
if(currShape == pageCanvas)
{
return this.RLVSearch(currShape);
}
// Start traversing R->L starting to the left of the currShape
var parent = currShape.GetParent();
var startIndex;
while(currShape.Name != pageCanvas.Name)
{
for(startIndex = parent.Children.Count - 1; startIndex >= 0; startIndex--)
{
if(parent.Children.GetItem(startIndex).Name == currShape.Name)
break;
}
startIndex--;
if(startIndex != -1)
return this.RLVSearch(parent, startIndex)
parent = parent.GetParent();
currShape = currShape.GetParent();
}
return null;
},
// Traverses downwards until it finds a child shape, otherwise it tries to hop up again
RLVSearch: function(currShape, startIndex, rootShape)
{
if(currShape.toString () == 'Canvas' && currShape.Children.Count != 0)
{
// R to L search
if(startIndex == null)
startIndex = currShape.Children.Count - 1;
if(rootShape == null)
rootShape = currShape;
for(var i = startIndex; i >= 0; i--)
{
var shapeFound = this.RLVSearch(currShape.Children.GetItem(i),null,rootShape);
if(shapeFound)
return shapeFound;
}
if(this.isSelectable(currShape))
return currShape;
}
// We can still hop up
if(currShape != pageCanvas && currShape == rootShape)
return this.prevShape(currShape);
return null;
},
getBounds: function(shape)
{
var strTag = shape.Tag;
var bounds = new Bounds();
bounds.x = getValueFromTag(strTag, "x");
bounds.y = getValueFromTag(strTag, "y");
bounds.width = getValueFromTag(strTag, "width");
bounds.height = getValueFromTag(strTag, "height");
return bounds;
}
}
function getValueFromTag(tag, propName)
{
var start = tag.indexOf('"' + propName + '"') + propName.length + 3;
var end = tag.indexOf(',', start);
if(end == -1) end = tag.indexOf('\\', start);
return tag.substring(start,end);
}
function SetXAMLLocation(pageID, shapeID, pinX, pinY)
{
clickMenu ();
var xVal = CONV_FACTOR * pinX;
var yVal = rootCanvas.Height - (CONV_FACTOR * pinY);
var centeredX = xVal - Math.round(ARROW_WIDTH / 2);
var xamlFragment = '<Canvas Canvas.Left="' + centeredX + '" Canvas.Top="' + yVal + '">';
xamlFragment += '<Canvas.RenderTransform><ScaleTransform ScaleX="' + (1 / rootCanvas.RenderTransform.ScaleX) + '" ScaleY="' + (1 / rootCanvas.RenderTransform.ScaleY) + '"/></Canvas.RenderTransform>';
xamlFragment += ARROW_IMG_SRC;
xamlFragment += '</Canvas>';
if(imgArrow)
rootCanvas.Children.Remove(imgArrow);
imgArrow = plugin.content.createFromXaml(xamlFragment, false);
var boolNeedToScroll = false;
var doc = document;
if( !( (xVal - ARROW_WIDTH / 2) > doc.body.scrollLeft && (xVal + ARROW_WIDTH / 2) < (doc.body.scrollLeft + doc.body.clientWidth) ))
{
boolNeedToScroll = true;
}
if( !( (yVal - ARROW_HEIGHT) > doc.body.scrollTop && (yVal + ARROW_HEIGHT) < (doc.body.scrollTop + doc.body.clientHeight) ))
{
boolNeedToScroll = true;
}
if( boolNeedToScroll == true )
{
window.scrollTo( xVal - doc.body.clientWidth / 2, yVal - doc.body.clientHeight / 2);
}
rootCanvas.Children.Add(imgArrow);
setTimeout("RemoveArrow()", 2000);
}
function RemoveArrow()
{
if(imgArrow)
rootCanvas.Children.Remove(imgArrow);
imgArrow = null;
}
function XAMLZoomChange(size)
{
if(size)
{
if(size == "up")
{
size = zoomLast + 50;
}
else if(size == "down")
{
size = zoomLast - 50;
}
size = parseInt(size);
if(typeof(size) != "number")
size = 100;
}
else
{
size = 100;
}
clickMenu ();
viewMgr.zoomLast = size;
var zoomFactor = size/100;
var width = plugin.clientWidth;
var height = plugin.clientHeight;
var margin = parseInt(document.body.style.margin) * 2;
var clientWidth = document.body.clientWidth;
var clientHeight = document.body.clientHeight;
// Get the scroll properties
var newScrollLeft = document.body.scrollLeft;
var newScrollTop = document.body.scrollTop;
// ?Miscalculate the drawable width
var winwidth = clientWidth - margin;
var winheight = clientHeight - margin;
// Calculate the ratio to turn pixel coordinates of the image into screen coordinates
var widthRatio = winwidth / width;
var heightRatio = winheight / height;
// Calculate the new size and maintain aspect ratio
if (widthRatio < heightRatio)
{
width = zoomFactor * winwidth;
height = width / this.origWH;
}
else
{
height = zoomFactor * winheight;
width = height * this.origWH;
}
drawing.onResize(Math.max(width, 1), Math.max(height, 1));
// Resave the new size (also saved in this.zoomLast)
this.sizeLast = size;
// Calculate the center screen coordinate (includes offset for scrolling)
var centerX = (zoomFactor / viewMgr.zoomFactor) * (newScrollLeft + (clientWidth / 2) - this.s.posLeft);
var centerY = (zoomFactor / viewMgr.zoomFactor) * (newScrollTop + (clientHeight / 2) - this.s.posTop);
viewMgr.zoomFactor = zoomFactor;
// TODO Add padding if we are zoomed out, use less if zoomed in (width and height)
if (width <= clientWidth)
{
this.s.posLeft = Math.max( 0, (clientWidth / 2) - (width / 2));
}
else
{
var left = centerX - (clientWidth / 2);
if ( left >= 0 )
{
this.s.posLeft = 0;
newScrollLeft = left;
}
else
{
this.s.posLeft = -left;
newScrollLeft = 0;
}
}
if (height <= clientHeight)
{
this.s.posTop = Math.max( 0, (clientHeight / 2) - (height / 2));
}
else
{
var top = centerY - (clientHeight / 2);
if ( top >= 0 )
{
this.s.posTop = 0;
newScrollTop = top;
}
else
{
this.s.posTop = -top;
newScrollTop = 0;
}
}
window.scrollTo(newScrollLeft, newScrollTop);
// TODO Make the image visible
this.s.visibility = "visible";
var newXOffsetPercent = document.body.scrollLeft / plugin.width;
var newYOffsetPercent = document.body.scrollTop / plugin.height;
var newWidthPercent = document.body.clientWidth / plugin.width;
var newHeightPercent = document.body.clientHeight / plugin.height;
if (viewMgr.viewChanged)
{
viewMgr.viewChanged (newXOffsetPercent, newYOffsetPercent, newWidthPercent, newHeightPercent);
}
if (viewMgr.PostZoomProcessing)
{
viewMgr.PostZoomProcessing(size);
}
}
function XAMLOnScroll()
{
if (viewMgr.viewChanged)
{
var newXOffsetPercent = document.body.scrollLeft / plugin.width;
var newYOffsetPercent = document.body.scrollTop / plugin.height;
viewMgr.viewChanged (newXOffsetPercent, newYOffsetPercent, null, null);
}
}
function XAMLOnResize ()
{
if (viewMgr.zoomLast == 100)
{
viewMgr.Zoom(100);
}
if (viewMgr.viewChanged)
{
var newWidthPercent = document.body.clientWidth / plugin.width;
var newHeightPercent = document.body.clientHeight / plugin.height;
viewMgr.viewChanged (null, null, newWidthPercent, newHeightPercent);
}
}
function XAMLSetView (xOffsetPercent, yOffsetPercent)
{
var leftPixelOffset = xOffsetPercent * plugin.clientWidth;
var topPixelOffset = yOffsetPercent * plugin.clientHeight;
window.scrollTo (leftPixelOffset - this.s.posLeft, topPixelOffset - this.s.posTop);
if (viewMgr.PostSetViewProcessing)
{
viewMgr.PostSetViewProcessing();
}
}
//********************************Silverlight.Thumbnail*****************************************
SilverlightDisplay.Thumbnail = function()
{
this.plugin = null;
this.rootCanvas = null;
this.pageCanvas = null;
this.callbackIndex = null;
this.scale = null;
}
SilverlightDisplay.Thumbnail.prototype =
{
handleLoad: function(rootElement)
{
this.plugin = rootElement.getHost();
this.rootCanvas = rootElement;
// Find the page's canvas
for (var i = 0; i < this.rootCanvas.Children.Count; i++)
{
var child = this.rootCanvas.Children.GetItem(i);
if (child.toString () == "Canvas" && child.Name == "D")
{
this.pageCanvas = child;
break;
}
}
// Fit the canvas into the space given by the zoom window
if(this.rootCanvas.Width > this.rootCanvas.Height)
{
this.scale = this.plugin.clientWidth / this.rootCanvas.Width;
this.rootCanvas['Canvas.Top'] = (this.rootCanvas.Width - this.rootCanvas.Height) / 2 * this.scale;
this.rootCanvas['Canvas.Left'] = 0;
}
else
{
this.scale = this.plugin.clientHeight / this.rootCanvas.Height;
this.rootCanvas['Canvas.Left'] = (this.rootCanvas.Height - this.rootCanvas.Width) / 2 * this.scale;
this.rootCanvas['Canvas.Top'] = 0;
}
var strTransform = '<ScaleTransform ScaleX="' + this.scale + '" ScaleY="' + this.scale + '"/>';
this.rootCanvas.RenderTransform = this.plugin.Content.CreateFromXAML(strTransform);
}
}
function Bounds(x, y, width, height)
{
this.x = x;
this.y = y;
this.width = width;
this.height = height;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,187 @@
<html xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"/>
<link rel="stylesheet" type="text/css" href="visio.css"/>
<title>Drawing2</title>
<script src="Silverlight.js" type="text/javascript"></script>
<script src="Silverlight.supportedUserAgent.js" type="text/javascript"></script>
<script src="xaml_1.js" type="text/javascript"></script>
</head>
<script type="text/javascript">
var pageID = 4;
var drawing;
function keyhandler(event)
{
switch(event.keyCode)
{
case 9: //Tab
{
var foundShape;
if (event.shiftKey)
foundShape = (window.SilverlightObj.selectPrevShape() != null);
else
foundShape = (window.SilverlightObj.selectNextShape() != null);
if (foundShape)
{
event.cancelBubble = false;
event.returnValue = false;
}
}
break;
case 13: //Enter
{
if(window.SilverlightObj.shapeSel != null)
{
var shape = window.SilverlightObj.shapeSel;
var shapeID = parseInt(shape.Name.substring(1, shape.Name.length));
parent.OnShapeClick(pageID, shapeID, event);
}
}
break;
}
}
function createDrawing()
{
drawing = new SilverlightDisplay.Drawing();
window.SilverlightObj = drawing;
Silverlight.createObjectEx({
source: 'xaml_2.xaml',
parentElement: document.getElementById('SilverlightPlugInHost'),
id: 'SilverlightPlugIn',
properties: {
width: '595',
height: '841',
background:'#ffffff',
isWindowless: 'true',
version: '1.0'
},
events: {
onError: null,
onLoad: Silverlight.createDelegate(drawing, drawing.handleLoad)
},
context: null
});
}
function createPNZ(divThumb, windowWidth, windowHeight)
{
var pnz = new SilverlightDisplay.Thumbnail();
pnz.callbackIndex = '__slEvent' + Silverlight._silverlightCount;
Silverlight.createObjectEx({
source: 'xaml_2.xaml',
parentElement: divThumb,
id: 'thumbnailHost',
properties: {
width: (windowWidth).toString(),
height: (windowHeight).toString(),
background:'#ffffff',
isWindowless: 'true',
version: '1.0'
},
events: {
onError: null,
onLoad: Silverlight.createDelegate(pnz, pnz.handleLoad) // Won't be registered correctly
},
context: null
});
return pnz;
}
function PostZoomProcessing (newZoomLevel)
{
parent.viewMgr.PostZoomProcessing = null;
var pageIndex = parent.PageIndexFromID (pageID);
parent.viewMgr.createPNZ = createPNZ;
parent.CurPageUpdate (pageIndex);
}
if (!window.Silverlight)
window.Silverlight = {};
Silverlight.createDelegate = function(instance, method) {
return function() {
return method.apply(instance, arguments);
}
}
function unload()
{
viewMgr = null;
parent.viewMgr = null;
}
function fit()
{
if(parent.frmToolbar)
{
if (parent.g_WidgetsLoaded && plugin)
{
var zoom100 = parent.frmToolbar.document.getElementById('a100');
if (zoom100)
{
parent.viewMgr.PostZoomProcessing = PostZoomProcessing;
if (zoom100.click)
zoom100.click();
else
viewMgr.Zoom(100);
}
else
{
parent.viewMgr.PostZoomProcessing = PostZoomProcessing;
viewMgr.Zoom(100);
}
}
else
{
window.setTimeout("fit()", 500);
}
}
else
{
parent.viewMgr.PostZoomProcessing = PostZoomProcessing;
viewMgr.Zoom(100);
}
}
function load()
{
viewMgr = new parent.CViewMgr();
parent.viewMgr = viewMgr;
viewMgr.SupportsDetails = true;
viewMgr.SupportsSearch = true;
viewMgr.put_Location = SetXAMLLocation;
viewMgr.Zoom = XAMLZoomChange;
viewMgr.setView = XAMLSetView;
createDrawing();
fit();
}
window.onload = load;
window.unload = unload;
var OnShapeClick = parent.OnShapeClick;
var OnShapeKey = parent.OnShapeKey;
var UpdateTooltip = parent.UpdateTooltip;
var clickMenu = parent.clickMenu;
var toggleMenuDiv = parent.toggleMenuDiv;
var toggleMenuLink = parent.toggleMenuLink;
</script>
<body style="margin:10px" onresize="XAMLOnResize();" onscroll="XAMLOnScroll();">
<div id="SilverlightPlugInHost" onkeydown="keyhandler(event)">
</div>
<div id="menu1" onclick="parent.clickMenu(event)" class="hlMenu">
</div>
</body>
</html>

View File

@ -0,0 +1,806 @@
<Canvas Height="1122.5" Name="Workspace" Width="793.7" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<!-- Page Page-2 -->
<Canvas Width="793.7" Height="1122.5" Name="D">
<Canvas.Background>
<SolidColorBrush Color="#FFFFFFFF"/>
</Canvas.Background>
<Canvas Tag="_1" Name="_1" RenderTransform="1, 0, 0, 1, 79.370099, -648.566951">
<Rectangle Canvas.Left="-0.33333" Canvas.Top="840.99" Height="281.86" Name="_1_G0_P0" Width="609.17"
StrokeThickness="0.66667" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round">
<Rectangle.Stroke>
<SolidColorBrush Color="#FF000000"/>
</Rectangle.Stroke>
<Rectangle.Fill>
<SolidColorBrush Color="#FFFFFFFF"/>
</Rectangle.Fill>
</Rectangle>
</Canvas>
<Canvas Tag="_2" Name="_2" RenderTransform="1, 0, 0, 1, 120.944886, -805.039395"/>
<Canvas Tag="_3" Name="_3" RenderTransform="1, 0, 0, 1, 120.944886, -805.039395">
<Canvas>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="116" OriginX="0.055557" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="455" OriginX="0.15441" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="364" OriginX="0.2047" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="371" OriginX="0.25521" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.28272" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="282" OriginX="0.33594" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="455" OriginX="0.39432" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
</Canvas>
<Canvas Name="_4" RenderTransform="1, 0, 0, 1, 25.984252, -1.889764"/>
<Canvas Name="_5" RenderTransform="1, 0, 0, 1, 7.086614, -6.614173">
<Path Name="_5_G0" Data="F0 M0 1122.52 L9.45 1122.52 L9.45 1113.07 L0 1113.07 L0 1122.52 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,1" EndPoint="0.5,0">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFB2B2B2"/>
<GradientStop Color="#FFFFFFFF" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_5_G0_line" StrokeThickness="1" StrokeDashCap="Square" StrokeEndLineCap="Square"
StrokeStartLineCap="Square" Data="F0 M0 1122.52 L9.45 1122.52 L9.45 1113.07 L0 1113.07 L0 1122.52M1.89 1117.98 L7.56 1117.98 L7.56 1117.61 L1.89 1117.61 L1.89 1117.98M4.54 1120.63 L4.91 1120.63 L4.91 1114.96 L4.54 1114.96 L4.54 1120.63">
<Path.Stroke>
<SolidColorBrush Color="#FF000000"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_6" RenderTransform="1, 0, 0, 1, 2.362205, -1.889764"/>
</Canvas>
<Canvas Tag="_7" Name="_7" RenderTransform="1, 0, 0, 1, 120.944886, -827.716561">
<Canvas>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="62" OriginX="0.055557" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.10227" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="271" OriginX="0.15549" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="381" OriginX="0.21387" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="396" OriginX="0.27246" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.3112" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="410" OriginX="0.36442" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="381" OriginX="0.40164" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="396" OriginX="0.46023" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="349" OriginX="0.49897" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.52447" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
</Canvas>
<Canvas Name="_8" RenderTransform="1, 0, 0, 1, 25.984252, -1.889764"/>
<Canvas Name="_9" RenderTransform="1, 0, 0, 1, 7.086614, -6.614173">
<Path Name="_9_G0" Data="F0 M0 1122.52 L9.45 1122.52 L9.45 1113.07 L0 1113.07 L0 1122.52 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,1" EndPoint="0.5,0">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFB2B2B2"/>
<GradientStop Color="#FFFFFFFF" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_9_G0_line" StrokeThickness="1" StrokeDashCap="Square" StrokeEndLineCap="Square"
StrokeStartLineCap="Square" Data="F0 M0 1122.52 L9.45 1122.52 L9.45 1113.07 L0 1113.07 L0 1122.52M1.89 1117.98 L7.56 1117.98 L7.56 1117.61 L1.89 1117.61 L1.89 1117.98M4.54 1120.63 L4.91 1120.63 L4.91 1114.96 L4.54 1114.96 L4.54 1120.63">
<Path.Stroke>
<SolidColorBrush Color="#FF000000"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_10" RenderTransform="1, 0, 0, 1, 2.362205, -1.889764"/>
</Canvas>
<Canvas Tag="_11" Name="_11" RenderTransform="1, 0, 0, 1, 120.944886, -850.393726">
<Canvas>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="19" OriginX="0.055557" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="449" OriginX="0.1148" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="349" OriginX="0.19423" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="272" OriginX="0.21973" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="460" OriginX="0.26671" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="286" OriginX="0.3106" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="374" OriginX="0.36588" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="349" OriginX="0.42426" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 23.622047, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.44976" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
</Canvas>
<Canvas Name="_12" RenderTransform="1, 0, 0, 1, 25.984252, -1.889764"/>
<Canvas Name="_13" RenderTransform="1, 0, 0, 1, 7.086614, -6.614173">
<Path Name="_13_G0" Data="F0 M0 1122.52 L9.45 1122.52 L9.45 1113.07 L0 1113.07 L0 1122.52 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,1" EndPoint="0.5,0">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFB2B2B2"/>
<GradientStop Color="#FFFFFFFF" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_13_G0_line" StrokeThickness="1" StrokeDashCap="Square" StrokeEndLineCap="Square"
StrokeStartLineCap="Square" Data="F0 M0 1122.52 L9.45 1122.52 L9.45 1113.07 L0 1113.07 L0 1122.52M1.89 1117.98 L7.56 1117.98 L7.56 1117.61 L1.89 1117.61 L1.89 1117.98M4.54 1120.63 L4.91 1120.63 L4.91 1114.96 L4.54 1114.96 L4.54 1120.63">
<Path.Stroke>
<SolidColorBrush Color="#FF000000"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_14" RenderTransform="1, 0, 0, 1, 2.362205, -1.889764"/>
</Canvas>
<Canvas Tag="_15" Name="_15" RenderTransform="1, 0, 0, 1, 151.181107, -884.409475">
<Canvas Name="_16" RenderTransform="1, 0, 0, 1, 0.5, -0.75">
<Path Name="_16_G0" Data="F0 M0 1113.57 L0 1120.36 A2.16 2.16 -180 0 0 2.16 1122.52 L64.87 1122.52 A2.16 2.16 -180 0 0 67.03 1120.36 L67.03 1113.57 L0 1113.57 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFE9E9E9"/>
<GradientStop Color="#FFEFEFEF" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_16_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M0 1113.57 L0 1120.36 A2.16 2.16 -180 0 0 2.16 1122.52 L64.87 1122.52 A2.16 2.16 -180 0 0 67.03 1120.36 L67.03 1113.57">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_17" RenderTransform="1, 0, 0, 1, 0.5, -9.198819">
<Path Name="_17_G0" Data="F0 M67.03 1122.52 L67.03 1115.73 A2.16 2.16 -180 0 0 64.87 1113.57 L2.16 1113.57 A2.16 2.16 -180 0 0 -0 1115.73 L0 1122.52 L67.03 1122.52 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFFFFFFF"/>
<GradientStop Color="#FFFEFEFE" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_17_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M67.03 1122.52 L67.03 1115.73 A2.16 2.16 -180 0 0 64.87 1113.57 L2.16 1113.57 A2.16 2.16 -180 0 0 -0 1115.73 L0 1122.52">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_18">
<Rectangle Canvas.Left="-0.5" Canvas.Top="1103.1" Height="19.898" Name="_18_G0_P0_line" Width="69.031"
StrokeThickness="1" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" RadiusX="2.16" RadiusY="2.16">
<Rectangle.Stroke>
<SolidColorBrush Color="#FF4C4C4C"/>
</Rectangle.Stroke>
</Rectangle>
</Canvas>
<Canvas>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="68" OriginX="0.071701" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="381" OriginX="0.1667" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="361" OriginX="0.22529" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="286" OriginX="0.25188" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="460" OriginX="0.33228" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.37617" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="361" OriginX="0.42939" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="295" OriginX="0.45598" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="272" OriginX="0.51126" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="349" OriginX="0.55824" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.58374" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
</Canvas>
</Canvas>
<Canvas Tag="_23" Name="_23" RenderTransform="1, 0, 0, 1, 498.897653, -910.86617">
<Canvas Name="_24" RenderTransform="1, 0, 0, 1, 0.5, -0.75">
<Path Name="_24_G0" Data="F0 M0 1113.57 L0 1120.36 A2.16 2.16 -180 0 0 2.16 1122.52 L42.19 1122.52 A2.16 2.16 -180 0 0 44.35 1120.36 L44.35 1113.57 L0 1113.57 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFE9E9E9"/>
<GradientStop Color="#FFEFEFEF" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_24_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M0 1113.57 L0 1120.36 A2.16 2.16 -180 0 0 2.16 1122.52 L42.19 1122.52 A2.16 2.16 -180 0 0 44.35 1120.36 L44.35 1113.57">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_25" RenderTransform="1, 0, 0, 1, 0.5, -9.198819">
<Path Name="_25_G0" Data="F0 M44.35 1122.52 L44.35 1115.73 A2.16 2.16 -180 0 0 42.19 1113.57 L2.16 1113.57 A2.16 2.16 -180 0 0 0 1115.73 L0 1122.52 L44.35 1122.52 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFFFFFFF"/>
<GradientStop Color="#FFFEFEFE" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_25_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M44.35 1122.52 L44.35 1115.73 A2.16 2.16 -180 0 0 42.19 1113.57 L2.16 1113.57 A2.16 2.16 -180 0 0 0 1115.73 L0 1122.52">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_26">
<Rectangle Canvas.Left="-0.5" Canvas.Top="1103.1" Height="19.898" Name="_26_G0_P0_line" Width="46.354"
StrokeThickness="1" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" RadiusX="2.16" RadiusY="2.16">
<Rectangle.Stroke>
<SolidColorBrush Color="#FF4C4C4C"/>
</Rectangle.Stroke>
</Rectangle>
</Canvas>
<Canvas>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="28" OriginX="0.13818" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="69" OriginX="0.19244" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="39" OriginX="0.26416" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
</Canvas>
</Canvas>
<Canvas Tag="_27" Name="_27" RenderTransform="1, 0, 0, 1, 544.251983, -910.86617">
<Canvas Name="_28" RenderTransform="1, 0, 0, 1, 0.5, -0.75">
<Path Name="_28_G0" Data="F0 M0 1113.57 L0 1120.36 A2.16 2.16 -180 0 0 2.16 1122.52 L42.19 1122.52 A2.16 2.16 -180 0 0 44.35 1120.36 L44.35 1113.57 L0 1113.57 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFE9E9E9"/>
<GradientStop Color="#FFEFEFEF" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_28_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M0 1113.57 L0 1120.36 A2.16 2.16 -180 0 0 2.16 1122.52 L42.19 1122.52 A2.16 2.16 -180 0 0 44.35 1120.36 L44.35 1113.57">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_29" RenderTransform="1, 0, 0, 1, 0.5, -9.198819">
<Path Name="_29_G0" Data="F0 M44.35 1122.52 L44.35 1115.73 A2.16 2.16 -180 0 0 42.19 1113.57 L2.16 1113.57 A2.16 2.16 -180 0 0 0 1115.73 L0 1122.52 L44.35 1122.52 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFFFFFFF"/>
<GradientStop Color="#FFFEFEFE" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_29_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M44.35 1122.52 L44.35 1115.73 A2.16 2.16 -180 0 0 42.19 1113.57 L2.16 1113.57 A2.16 2.16 -180 0 0 0 1115.73 L0 1122.52">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_30">
<Rectangle Canvas.Left="-0.5" Canvas.Top="1103.1" Height="19.898" Name="_30_G0_P0_line" Width="46.354"
StrokeThickness="1" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" RadiusX="2.16" RadiusY="2.16">
<Rectangle.Stroke>
<SolidColorBrush Color="#FF4C4C4C"/>
</Rectangle.Stroke>
</Rectangle>
</Canvas>
<Canvas>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="87" OriginX="0.18417" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="62" OriginX="0.24157" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
</Canvas>
</Canvas>
<Canvas Tag="_47" Name="_47" RenderTransform="1, 0, 0, 1, 204.094499, -907.086642">
<Rectangle Canvas.Left="-0.33333" Canvas.Top="1099.5" Height="23.344" Name="_47_G0_P0" Width="151.85"
StrokeThickness="0.66667" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round">
<Rectangle.Stroke>
<SolidColorBrush Color="#FF000000"/>
</Rectangle.Stroke>
<Rectangle.Fill>
<SolidColorBrush Color="#FFFFFFFF"/>
</Rectangle.Fill>
</Rectangle>
<Canvas>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="127" OriginX="0.099998" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.15203" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="367" OriginX="0.20525" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="381" OriginX="0.23075" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="336" OriginX="0.28934" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="381" OriginX="0.34164" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="449" OriginX="0.40023" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.47966" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="374" OriginX="0.53288" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="381" OriginX="0.59126" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="361" OriginX="0.67497" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.70156" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="364" OriginX="0.75478" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="381" OriginX="0.80529" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="855" OriginX="0.86388" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="454" OriginX="0.91874" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="455" OriginX="0.96686" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="460" OriginX="1.0172" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
</Canvas>
</Canvas>
<Canvas Tag="_31" Name="_31" RenderTransform="1, 0, 0, 1, 659.52758, -910.86617">
<Canvas Name="_32">
<Rectangle Canvas.Left="-0.83333" Canvas.Top="1102.8" Height="20.564" Name="_32_G0_P0" Width="30.013"
StrokeThickness="1.6667" StrokeDashCap="Square">
<Rectangle.Stroke>
<SolidColorBrush Color="#FF000000"/>
</Rectangle.Stroke>
<Rectangle.Fill>
<LinearGradientBrush StartPoint="0.5,1" EndPoint="0.5,0">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFB7B7B7"/>
<GradientStop Color="#FFFFFFFF" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
</Canvas>
<Canvas Name="_33" RenderTransform="1, 0, 0, 1, 11.338583, -6.614173">
<Path Name="_33_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M0 1122.45 L5.67 1116.85M0.07 1116.99 L5.67 1122.52">
<Path.Stroke>
<SolidColorBrush Color="#FF000000"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_34" RenderTransform="1, 0, 0, 1, 9.212598, -7.559055"/>
<Canvas Name="_35" RenderTransform="1, 0, 0, 1, 9.212598, -5.19685"/>
<Canvas Name="_36" RenderTransform="1, 0, 0, 1, 9.212598, -4.488189"/>
</Canvas>
<Canvas Tag="_37" Name="_37" RenderTransform="1, 0, 0, 1, 634.96065, -910.86617">
<Canvas Name="_38">
<Rectangle Canvas.Left="-0.83333" Canvas.Top="1102.8" Height="20.564" Name="_38_G0_P0" Width="24.344"
StrokeThickness="1.6667" StrokeDashCap="Square">
<Rectangle.Stroke>
<SolidColorBrush Color="#FF000000"/>
</Rectangle.Stroke>
<Rectangle.Fill>
<LinearGradientBrush StartPoint="0.5,1" EndPoint="0.5,0">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFB7B7B7"/>
<GradientStop Color="#FFFFFFFF" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
</Canvas>
<Canvas Name="_39" RenderTransform="1, 0, 0, 1, 9.070866, -7.181102"/>
<Canvas Name="_40" RenderTransform="1, 0, 0, 1, 7.370079, -7.559055">
<Path Name="_40_G0_line" StrokeThickness="1.6667" StrokeDashCap="Round" StrokeEndLineCap="Round"
StrokeLineJoin="Round" StrokeStartLineCap="Round" Data="F0 M0 1122.52 L7.94 1122.52">
<Path.Stroke>
<SolidColorBrush Color="#FF000000"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_41" RenderTransform="1, 0, 0, 1, 7.370079, -6.047244"/>
<Canvas Name="_42" RenderTransform="1, 0, 0, 1, 7.370079, -5.480315"/>
</Canvas>
<Canvas Tag="_43" Name="_43" RenderTransform="1, 0, 0, 1, 79.370099, -910.86617">
<Canvas Name="_44" RenderTransform="1, 0, 0, 1, 0.5, -0.75">
<Path Name="_44_G0" Data="F0 M0 1113.57 L0 1120.36 A2.16 2.16 -180 0 0 2.16 1122.52 L81.88 1122.52 A2.16 2.16 -180 0 0 84.04 1120.36 L84.04 1113.57 L0 1113.57 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFE9E9E9"/>
<GradientStop Color="#FFEFEFEF" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_44_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M0 1113.57 L0 1120.36 A2.16 2.16 -180 0 0 2.16 1122.52 L81.88 1122.52 A2.16 2.16 -180 0 0 84.04 1120.36 L84.04 1113.57">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_45" RenderTransform="1, 0, 0, 1, 0.5, -9.198819">
<Path Name="_45_G0" Data="F0 M84.04 1122.52 L84.04 1115.73 A2.16 2.16 -180 0 0 81.88 1113.57 L2.16 1113.57 A2.16 2.16 -180 0 0 -0 1115.73 L0 1122.52 L84.04 1122.52 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFFFFFFF"/>
<GradientStop Color="#FFFEFEFE" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_45_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M84.04 1122.52 L84.04 1115.73 A2.16 2.16 -180 0 0 81.88 1113.57 L2.16 1113.57 A2.16 2.16 -180 0 0 -0 1115.73 L0 1122.52">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_46">
<Rectangle Canvas.Left="-0.5" Canvas.Top="1103.1" Height="19.898" Name="_46_G0_P0_line" Width="86.039"
StrokeThickness="1" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" RadiusX="2.16" RadiusY="2.16">
<Rectangle.Stroke>
<SolidColorBrush Color="#FF4C4C4C"/>
</Rectangle.Stroke>
</Rectangle>
</Canvas>
<Canvas>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="94" OriginX="0.11704" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="410" OriginX="0.16809" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="396" OriginX="0.20531" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="381" OriginX="0.24405" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="374" OriginX="0.30264" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.36102" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="336" OriginX="0.43936" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="371" OriginX="0.49166" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="383" OriginX="0.51917" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="449" OriginX="0.57776" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="374" OriginX="0.65719" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.71556" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
</Canvas>
</Canvas>
<Canvas Tag="_48" Name="_48" RenderTransform="1, 0, 0, 1, 173.858278, -907.086642">
<Path Name="_48_G0" Data="F0 M11.13 1110.79 L10.6 1111.07 L9.23 1113.66 L7.86 1111.07 L7.33 1110.79 A5.06159 4.85913 -180 0 0 4.43 1115.5 A3.83533 3.68191 -180 0 0 9.23 1118.27 A3.83533 3.68191 -180 0 0 14.03 1115.5 A5.06293 4.86041 -180 0 0 11.13 1110.79 ZM12.11 1108.13 A2.88071 2.76548 -180 1 0 6.35 1108.13 A2.88071 2.76548 -180 1 0 12.11 1108.13 ZM15.94 1114.87 L23.92 1114.87 L23.92 1114.02 L15.94 1114.02 L15.94 1114.87 ZM15.94 1111.46 L23.92 1111.46 L23.92 1110.61 L15.94 1110.61 L15.94 1111.46 ZM15.94 1108.06 L23.92 1108.06 L23.92 1107.21 L15.94 1107.21 L15.94 1108.06 ZM0 1101.26 L0 1122.52 L28.35 1122.52 L28.35 1101.26 L0 1101.26 ZM26.57 1120.75 L1.77 1120.75 L1.77 1102.93 L26.57 1102.93 L26.57 1120.75 Z">
<Path.Fill>
<SolidColorBrush Color="#FF000000"/>
</Path.Fill>
</Path>
</Canvas>
</Canvas>
</Canvas>

View File

@ -0,0 +1,187 @@
<html xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"/>
<link rel="stylesheet" type="text/css" href="visio.css"/>
<title>Drawing2</title>
<script src="Silverlight.js" type="text/javascript"></script>
<script src="Silverlight.supportedUserAgent.js" type="text/javascript"></script>
<script src="xaml_1.js" type="text/javascript"></script>
</head>
<script type="text/javascript">
var pageID = 5;
var drawing;
function keyhandler(event)
{
switch(event.keyCode)
{
case 9: //Tab
{
var foundShape;
if (event.shiftKey)
foundShape = (window.SilverlightObj.selectPrevShape() != null);
else
foundShape = (window.SilverlightObj.selectNextShape() != null);
if (foundShape)
{
event.cancelBubble = false;
event.returnValue = false;
}
}
break;
case 13: //Enter
{
if(window.SilverlightObj.shapeSel != null)
{
var shape = window.SilverlightObj.shapeSel;
var shapeID = parseInt(shape.Name.substring(1, shape.Name.length));
parent.OnShapeClick(pageID, shapeID, event);
}
}
break;
}
}
function createDrawing()
{
drawing = new SilverlightDisplay.Drawing();
window.SilverlightObj = drawing;
Silverlight.createObjectEx({
source: 'xaml_3.xaml',
parentElement: document.getElementById('SilverlightPlugInHost'),
id: 'SilverlightPlugIn',
properties: {
width: '595',
height: '841',
background:'#ffffff',
isWindowless: 'true',
version: '1.0'
},
events: {
onError: null,
onLoad: Silverlight.createDelegate(drawing, drawing.handleLoad)
},
context: null
});
}
function createPNZ(divThumb, windowWidth, windowHeight)
{
var pnz = new SilverlightDisplay.Thumbnail();
pnz.callbackIndex = '__slEvent' + Silverlight._silverlightCount;
Silverlight.createObjectEx({
source: 'xaml_3.xaml',
parentElement: divThumb,
id: 'thumbnailHost',
properties: {
width: (windowWidth).toString(),
height: (windowHeight).toString(),
background:'#ffffff',
isWindowless: 'true',
version: '1.0'
},
events: {
onError: null,
onLoad: Silverlight.createDelegate(pnz, pnz.handleLoad) // Won't be registered correctly
},
context: null
});
return pnz;
}
function PostZoomProcessing (newZoomLevel)
{
parent.viewMgr.PostZoomProcessing = null;
var pageIndex = parent.PageIndexFromID (pageID);
parent.viewMgr.createPNZ = createPNZ;
parent.CurPageUpdate (pageIndex);
}
if (!window.Silverlight)
window.Silverlight = {};
Silverlight.createDelegate = function(instance, method) {
return function() {
return method.apply(instance, arguments);
}
}
function unload()
{
viewMgr = null;
parent.viewMgr = null;
}
function fit()
{
if(parent.frmToolbar)
{
if (parent.g_WidgetsLoaded && plugin)
{
var zoom100 = parent.frmToolbar.document.getElementById('a100');
if (zoom100)
{
parent.viewMgr.PostZoomProcessing = PostZoomProcessing;
if (zoom100.click)
zoom100.click();
else
viewMgr.Zoom(100);
}
else
{
parent.viewMgr.PostZoomProcessing = PostZoomProcessing;
viewMgr.Zoom(100);
}
}
else
{
window.setTimeout("fit()", 500);
}
}
else
{
parent.viewMgr.PostZoomProcessing = PostZoomProcessing;
viewMgr.Zoom(100);
}
}
function load()
{
viewMgr = new parent.CViewMgr();
parent.viewMgr = viewMgr;
viewMgr.SupportsDetails = true;
viewMgr.SupportsSearch = true;
viewMgr.put_Location = SetXAMLLocation;
viewMgr.Zoom = XAMLZoomChange;
viewMgr.setView = XAMLSetView;
createDrawing();
fit();
}
window.onload = load;
window.unload = unload;
var OnShapeClick = parent.OnShapeClick;
var OnShapeKey = parent.OnShapeKey;
var UpdateTooltip = parent.UpdateTooltip;
var clickMenu = parent.clickMenu;
var toggleMenuDiv = parent.toggleMenuDiv;
var toggleMenuLink = parent.toggleMenuLink;
</script>
<body style="margin:10px" onresize="XAMLOnResize();" onscroll="XAMLOnScroll();">
<div id="SilverlightPlugInHost" onkeydown="keyhandler(event)">
</div>
<div id="menu1" onclick="parent.clickMenu(event)" class="hlMenu">
</div>
</body>
</html>

View File

@ -0,0 +1,721 @@
<Canvas Height="1122.5" Name="Workspace" Width="793.7" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<!-- Page Page-3 -->
<Canvas Width="793.7" Height="1122.5" Name="D">
<Canvas.Background>
<SolidColorBrush Color="#FFFFFFFF"/>
</Canvas.Background>
<Canvas Tag="_1" Name="_1" RenderTransform="1, 0, 0, 1, 103.93702, -738.519711">
<Rectangle Canvas.Left="-0.33333" Canvas.Top="802.44" Height="320.41" Name="_1_G0_P0" Width="578.93"
StrokeThickness="0.66667" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round">
<Rectangle.Stroke>
<SolidColorBrush Color="#FF000000"/>
</Rectangle.Stroke>
<Rectangle.Fill>
<SolidColorBrush Color="#FFFFFFFF"/>
</Rectangle.Fill>
</Rectangle>
</Canvas>
<Canvas Tag="_2" Name="_2" RenderTransform="1, 0, 0, 1, 308.031508, -941.102391">
<Canvas Name="_3">
<Rectangle Canvas.Left="-0.33333" Canvas.Top="1099.5" Height="23.344" Name="_3_G0_P0" Width="170.75"
StrokeThickness="0.66667" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round">
<Rectangle.Stroke>
<SolidColorBrush Color="#FFA5A5A5"/>
</Rectangle.Stroke>
<Rectangle.Fill>
<SolidColorBrush Color="#FFFAFAFA"/>
</Rectangle.Fill>
</Rectangle>
</Canvas>
<Canvas Name="_4"/>
<Canvas Name="_5" RenderTransform="0, 1, -1, 0, 1145.19685, 1099.84252">
<Canvas Tag="Shdw" RenderTransform="1, 0, 0, 1, 0, -0.96">
<Path Name="S_5_G0_line" StrokeThickness="1" StrokeDashCap="Square" Data="F0 M0 1122.52 L22.68 1122.52">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Path Name="_5_G0_line" StrokeThickness="1" StrokeDashCap="Square" Data="F0 M0 1122.52 L22.68 1122.52">
<Path.Stroke>
<SolidColorBrush Color="#FFE7E7E7"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_6" RenderTransform="1, 0, 0, 1, 2.125984, -1.700787"/>
<Canvas Name="_7" RenderTransform="1, 0, 0, 1, 5.669291, -5.669291"/>
<Canvas Name="_8" RenderTransform="1, 0, 0, 1, 7.937008, -7.937008"/>
<Canvas Name="_9" RenderTransform="1, 0, 0, 1, 2.267717, -2.267717"/>
<Canvas Name="_10" RenderTransform="1, 0, 0, 1, 158.740157, -6.23622"/>
<Canvas>
<Glyphs RenderTransform="96, 0, 0, 96, 22.677165, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="62" OriginX="0.055557" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 22.677165, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="381" OriginX="0.10227" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 22.677165, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="336" OriginX="0.16086" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 22.677165, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="349" OriginX="0.21316" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 22.677165, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="374" OriginX="0.23866" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 22.677165, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="855" OriginX="0.29704" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
</Canvas>
</Canvas>
<Canvas Tag="_18" Name="_18" RenderTransform="1, 0, 0, 1, 308.031508, -918.425225">
<Canvas Name="_19">
<Rectangle Canvas.Left="-0.33333" Canvas.Top="1099.5" Height="23.344" Name="_19_G0_P0" Width="170.75"
StrokeThickness="0.66667" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round">
<Rectangle.Stroke>
<SolidColorBrush Color="#FFA5A5A5"/>
</Rectangle.Stroke>
<Rectangle.Fill>
<SolidColorBrush Color="#FFFAFAFA"/>
</Rectangle.Fill>
</Rectangle>
</Canvas>
<Canvas Name="_20"/>
<Canvas Name="_21" RenderTransform="0, 1, -1, 0, 1145.19685, 1099.84252">
<Canvas Tag="Shdw" RenderTransform="1, 0, 0, 1, 0, -0.96">
<Path Name="S_21_G0_line" StrokeThickness="1" StrokeDashCap="Square" Data="F0 M0 1122.52 L22.68 1122.52">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Path Name="_21_G0_line" StrokeThickness="1" StrokeDashCap="Square" Data="F0 M0 1122.52 L22.68 1122.52">
<Path.Stroke>
<SolidColorBrush Color="#FFE7E7E7"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_22" RenderTransform="1, 0, 0, 1, 2.125984, -1.700787"/>
<Canvas Name="_23" RenderTransform="1, 0, 0, 1, 5.669291, -5.669291"/>
<Canvas Name="_24" RenderTransform="1, 0, 0, 1, 7.937008, -7.937008"/>
<Canvas Name="_25" RenderTransform="1, 0, 0, 1, 2.267717, -2.267717"/>
<Canvas Name="_26" RenderTransform="1, 0, 0, 1, 158.740157, -6.23622"/>
<Canvas>
<Glyphs RenderTransform="96, 0, 0, 96, 22.677165, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="44" OriginX="0.055557" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 22.677165, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.12478" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 22.677165, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="400" OriginX="0.17801" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 22.677165, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="371" OriginX="0.22146" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 22.677165, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="381" OriginX="0.24897" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 22.677165, 1099.84252" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="855" OriginX="0.30756" OriginY="0.15144">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
</Canvas>
</Canvas>
<Canvas Tag="_31" Name="_31" RenderTransform="1, 0, 0, 1, 415.748044, -888.944911">
<Canvas Name="_32" RenderTransform="1, 0, 0, 1, 0.5, -0.75">
<Path Name="_32_G0" Data="F0 M0 1113.57 L0 1120.36 A2.16 2.16 -180 0 0 2.16 1122.52 L59.2 1122.52 A2.16 2.16 -180 0 0 61.36 1120.36 L61.36 1113.57 L0 1113.57 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFE9E9E9"/>
<GradientStop Color="#FFEFEFEF" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_32_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M0 1113.57 L0 1120.36 A2.16 2.16 -180 0 0 2.16 1122.52 L59.2 1122.52 A2.16 2.16 -180 0 0 61.36 1120.36 L61.36 1113.57">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_33" RenderTransform="1, 0, 0, 1, 0.5, -9.198819">
<Path Name="_33_G0" Data="F0 M61.36 1122.52 L61.36 1115.73 A2.16 2.16 -180 0 0 59.2 1113.57 L2.16 1113.57 A2.16 2.16 -180 0 0 0 1115.73 L0 1122.52 L61.36 1122.52 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFFFFFFF"/>
<GradientStop Color="#FFFEFEFE" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_33_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M61.36 1122.52 L61.36 1115.73 A2.16 2.16 -180 0 0 59.2 1113.57 L2.16 1113.57 A2.16 2.16 -180 0 0 0 1115.73 L0 1122.52">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_34">
<Rectangle Canvas.Left="-0.5" Canvas.Top="1103.1" Height="19.898" Name="_34_G0_P0_line" Width="63.362"
StrokeThickness="1" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" RadiusX="2.16" RadiusY="2.16">
<Rectangle.Stroke>
<SolidColorBrush Color="#FF4C4C4C"/>
</Rectangle.Stroke>
</Rectangle>
</Canvas>
<Canvas>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="62" OriginX="0.080803" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="381" OriginX="0.12751" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="336" OriginX="0.18611" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="381" OriginX="0.23841" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="449" OriginX="0.297" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.37643" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="374" OriginX="0.42965" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="349" OriginX="0.48803" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="286" OriginX="0.51352" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
</Canvas>
</Canvas>
<Canvas Tag="_46" Name="_46" RenderTransform="1, 0, 0, 1, 308.031508, -990.23625">
<Rectangle Canvas.Left="-0.33333" Canvas.Top="1107.8" Height="15.067" Name="_46_G0_P0" Width="151.85"
StrokeThickness="0.66667" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round">
<Rectangle.Stroke>
<SolidColorBrush Color="#FF000000"/>
</Rectangle.Stroke>
<Rectangle.Fill>
<SolidColorBrush Color="#FFFFFFFF"/>
</Rectangle.Fill>
</Rectangle>
<Canvas>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1108.119685" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="116" OriginX="0.099998" OriginY="0.10833">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1108.119685" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="455" OriginX="0.19885" OriginY="0.10833">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1108.119685" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="364" OriginX="0.24914" OriginY="0.10833">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1108.119685" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="371" OriginX="0.29965" OriginY="0.10833">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1108.119685" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.32716" OriginY="0.10833">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1108.119685" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="282" OriginX="0.38038" OriginY="0.10833">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1108.119685" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="381" OriginX="0.43876" OriginY="0.10833">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1108.119685" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="449" OriginX="0.49735" OriginY="0.10833">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1108.119685" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="272" OriginX="0.57678" OriginY="0.10833">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1108.119685" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.62376" OriginY="0.10833">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
</Canvas>
</Canvas>
<Canvas Tag="_39" Name="_39" RenderTransform="1, 0, 0, 1, 453.543321, -799.370103">
<Path Name="_39_G0" Data="F0 M10.62 1107.32 L8.25 1107.32 A3.69927 3.69927 0 0 1 9.43 1104.45 A4.43961 4.43961 0 0 1 12.61 1103.31 A4.59549 4.59549 0 0 1 14.76 1103.78 A3.61283 3.61283 0 0 1 16.19 1105.13 A3.52794 3.52794 0 0 1 16.72 1106.98 A3.26528 3.26528 0 0 1 16.55 1108.03 A4.35834 4.35834 0 0 1 16.01 1109.08 A7.97887 7.97887 0 0 1 14.98 1110.14 A7.31793 7.31793 -180 0 0 14 1111.15 A2.70947 2.70947 -180 0 0 13.67 1111.92 A6.30347 6.30347 -180 0 0 13.49 1113.27 L11.06 1113.27 L11.05 1112.87 A5.30579 5.30579 0 0 1 11.49 1110.68 A5.40917 5.40917 0 0 1 12.92 1108.83 A7.37133 7.37133 -180 0 0 14.06 1107.68 A1.3533 1.3533 -180 0 0 14.26 1106.95 A1.22437 1.22437 -180 0 0 13.78 1105.97 A1.93266 1.93266 -180 0 0 12.5 1105.57 A1.90609 1.90609 -180 0 0 11.15 1106.06 A1.66395 1.66395 -180 0 0 10.62 1107.32 ZM12.28 1114.84 A1.54215 1.54215 0 0 1 13.4 1115.29 A1.4583 1.4583 0 0 1 13.87 1116.38 A1.48034 1.48034 0 0 1 13.41 1117.47 A1.51009 1.51009 0 0 1 12.3 1117.93 A1.50197 1.50197 0 0 1 11.2 1117.47 A1.49 1.49 0 0 1 10.75 1116.38 A1.47948 1.47948 0 0 1 11.2 1115.29 A1.48017 1.48017 0 0 1 12.28 1114.84 ZM12.28 1097.95 A12.284 12.284 -180 0 0 0 1110.24 A12.2835 12.2835 -180 0 0 12.28 1122.52 A12.283 12.283 -180 0 0 24.57 1110.24 A12.2835 12.2835 -180 0 0 12.28 1097.95 ZM12.28 1120.98 A10.748 10.748 0 0 1 1.54 1110.24 A10.748 10.748 0 0 1 12.28 1099.49 A10.748 10.748 0 0 1 23.03 1110.24 A10.748 10.748 0 0 1 12.28 1120.98 Z">
<Path.Fill>
<SolidColorBrush Color="#FF595959"/>
</Path.Fill>
</Path>
</Canvas>
<Canvas Tag="_40" Name="_40" RenderTransform="1, 0, 0, 1, 341.102374, -784.25199">
<Canvas Name="_41" RenderTransform="1, 0, 0, 1, 0.5, -0.75">
<Path Name="_41_G0" Data="F0 M0 1103.18 L0 1120.36 A2.16 2.16 -180 0 0 2.16 1122.52 L100.78 1122.52 A2.16 2.16 -180 0 0 102.94 1120.36 L102.94 1103.18 L0 1103.18 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFE9E9E9"/>
<GradientStop Color="#FFEFEFEF" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_41_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M0 1103.18 L0 1120.36 A2.16 2.16 -180 0 0 2.16 1122.52 L100.78 1122.52 A2.16 2.16 -180 0 0 102.94 1120.36 L102.94 1103.18">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_42" RenderTransform="1, 0, 0, 1, 0.5, -19.59252">
<Path Name="_42_G0" Data="F0 M102.94 1122.52 L102.94 1105.34 A2.16 2.16 -180 0 0 100.78 1103.18 L2.16 1103.18 A2.16 2.16 -180 0 0 -0 1105.34 L0 1122.52 L102.94 1122.52 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFFFFFFF"/>
<GradientStop Color="#FFFEFEFE" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_42_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M102.94 1122.52 L102.94 1105.34 A2.16 2.16 -180 0 0 100.78 1103.18 L2.16 1103.18 A2.16 2.16 -180 0 0 -0 1105.34 L0 1122.52">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_43">
<Rectangle Canvas.Left="-0.5" Canvas.Top="1082.3" Height="40.685" Name="_43_G0_P0_line" Width="104.94"
StrokeThickness="1" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" RadiusX="2.16" RadiusY="2.16">
<Rectangle.Stroke>
<SolidColorBrush Color="#FF4C4C4C"/>
</Rectangle.Stroke>
</Rectangle>
</Canvas>
<Canvas>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="62" OriginX="0.23622" OriginY="0.10669">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="381" OriginX="0.28293" OriginY="0.10669">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="336" OriginX="0.34153" OriginY="0.10669">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="381" OriginX="0.39383" OriginY="0.10669">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="449" OriginX="0.45242" OriginY="0.10669">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.53185" OriginY="0.10669">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="374" OriginX="0.58507" OriginY="0.10669">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="349" OriginX="0.64344" OriginY="0.10669">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="286" OriginX="0.66894" OriginY="0.10669">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="460" OriginX="0.74934" OriginY="0.10669">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.79324" OriginY="0.10669">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="393" OriginX="0.19512" OriginY="0.24002">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="381" OriginX="0.2535" OriginY="0.24002">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="373" OriginX="0.31209" OriginY="0.24002">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="381" OriginX="0.40085" OriginY="0.24002">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="272" OriginX="0.45944" OriginY="0.24002">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="268" OriginX="0.50642" OriginY="0.24002">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="410" OriginX="0.58477" OriginY="0.24002">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="449" OriginX="0.62198" OriginY="0.24002">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="258" OriginX="0.70141" OriginY="0.24002">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="396" OriginX="0.75463" OriginY="0.24002">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="460" OriginX="0.79337" OriginY="0.24002">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1082.834645" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="455" OriginX="0.83726" OriginY="0.24002">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
</Canvas>
</Canvas>
<Canvas Tag="_47" Name="_47" RenderTransform="1, 0, 0, 1, 498.897653, -1039.370111">
<Canvas Name="_48" RenderTransform="1, 0, 0, 1, 0.5, -0.75">
<Path Name="_48_G0" Data="F0 M0 1113.57 L0 1120.36 A2.16 2.16 -180 0 0 2.16 1122.52 L42.19 1122.52 A2.16 2.16 -180 0 0 44.35 1120.36 L44.35 1113.57 L0 1113.57 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFE9E9E9"/>
<GradientStop Color="#FFEFEFEF" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_48_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M0 1113.57 L0 1120.36 A2.16 2.16 -180 0 0 2.16 1122.52 L42.19 1122.52 A2.16 2.16 -180 0 0 44.35 1120.36 L44.35 1113.57">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_49" RenderTransform="1, 0, 0, 1, 0.5, -9.198819">
<Path Name="_49_G0" Data="F0 M44.35 1122.52 L44.35 1115.73 A2.16 2.16 -180 0 0 42.19 1113.57 L2.16 1113.57 A2.16 2.16 -180 0 0 0 1115.73 L0 1122.52 L44.35 1122.52 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFFFFFFF"/>
<GradientStop Color="#FFFEFEFE" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_49_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M44.35 1122.52 L44.35 1115.73 A2.16 2.16 -180 0 0 42.19 1113.57 L2.16 1113.57 A2.16 2.16 -180 0 0 0 1115.73 L0 1122.52">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_50">
<Rectangle Canvas.Left="-0.5" Canvas.Top="1103.1" Height="19.898" Name="_50_G0_P0_line" Width="46.354"
StrokeThickness="1" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" RadiusX="2.16" RadiusY="2.16">
<Rectangle.Stroke>
<SolidColorBrush Color="#FF4C4C4C"/>
</Rectangle.Stroke>
</Rectangle>
</Canvas>
<Canvas>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="28" OriginX="0.13818" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="69" OriginX="0.19244" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="39" OriginX="0.26416" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
</Canvas>
</Canvas>
<Canvas Tag="_51" Name="_51" RenderTransform="1, 0, 0, 1, 544.251983, -1039.370111">
<Canvas Name="_52" RenderTransform="1, 0, 0, 1, 0.5, -0.75">
<Path Name="_52_G0" Data="F0 M0 1113.57 L0 1120.36 A2.16 2.16 -180 0 0 2.16 1122.52 L42.19 1122.52 A2.16 2.16 -180 0 0 44.35 1120.36 L44.35 1113.57 L0 1113.57 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFE9E9E9"/>
<GradientStop Color="#FFEFEFEF" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_52_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M0 1113.57 L0 1120.36 A2.16 2.16 -180 0 0 2.16 1122.52 L42.19 1122.52 A2.16 2.16 -180 0 0 44.35 1120.36 L44.35 1113.57">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_53" RenderTransform="1, 0, 0, 1, 0.5, -9.198819">
<Path Name="_53_G0" Data="F0 M44.35 1122.52 L44.35 1115.73 A2.16 2.16 -180 0 0 42.19 1113.57 L2.16 1113.57 A2.16 2.16 -180 0 0 0 1115.73 L0 1122.52 L44.35 1122.52 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFFFFFFF"/>
<GradientStop Color="#FFFEFEFE" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Name="_53_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M44.35 1122.52 L44.35 1115.73 A2.16 2.16 -180 0 0 42.19 1113.57 L2.16 1113.57 A2.16 2.16 -180 0 0 0 1115.73 L0 1122.52">
<Path.Stroke>
<SolidColorBrush Color="#FFFFFFFF"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_54">
<Rectangle Canvas.Left="-0.5" Canvas.Top="1103.1" Height="19.898" Name="_54_G0_P0_line" Width="46.354"
StrokeThickness="1" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" RadiusX="2.16" RadiusY="2.16">
<Rectangle.Stroke>
<SolidColorBrush Color="#FF4C4C4C"/>
</Rectangle.Stroke>
</Rectangle>
</Canvas>
<Canvas>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="87" OriginX="0.18417" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
<Glyphs RenderTransform="96, 0, 0, 96, 0, 1103.622047" FontRenderingEmSize="0.11111"
FontUri="67BB045E-7089-4AE1-4275-D1423A492E29.odttf" Indices="62" OriginX="0.24157" OriginY="0.13176">
<Glyphs.Fill>
<SolidColorBrush Color="#FF000000"/>
</Glyphs.Fill>
</Glyphs>
</Canvas>
</Canvas>
<Canvas Tag="_55" Name="_55" RenderTransform="1, 0, 0, 1, 653.858279, -1039.370111">
<Canvas Name="_56">
<Rectangle Canvas.Left="-0.83333" Canvas.Top="1102.8" Height="20.564" Name="_56_G0_P0" Width="30.013"
StrokeThickness="1.6667" StrokeDashCap="Square">
<Rectangle.Stroke>
<SolidColorBrush Color="#FF000000"/>
</Rectangle.Stroke>
<Rectangle.Fill>
<LinearGradientBrush StartPoint="0.5,1" EndPoint="0.5,0">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFB7B7B7"/>
<GradientStop Color="#FFFFFFFF" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
</Canvas>
<Canvas Name="_57" RenderTransform="1, 0, 0, 1, 11.338583, -6.614173">
<Path Name="_57_G0_line" StrokeThickness="2" StrokeDashCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
StrokeStartLineCap="Round" Data="F0 M0 1122.45 L5.67 1116.85M0.07 1116.99 L5.67 1122.52">
<Path.Stroke>
<SolidColorBrush Color="#FF000000"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_58" RenderTransform="1, 0, 0, 1, 9.212598, -7.559055"/>
<Canvas Name="_59" RenderTransform="1, 0, 0, 1, 9.212598, -5.19685"/>
<Canvas Name="_60" RenderTransform="1, 0, 0, 1, 9.212598, -4.488189"/>
</Canvas>
<Canvas Tag="_61" Name="_61" RenderTransform="1, 0, 0, 1, 629.291349, -1039.370111">
<Canvas Name="_62">
<Rectangle Canvas.Left="-0.83333" Canvas.Top="1102.8" Height="20.564" Name="_62_G0_P0" Width="24.344"
StrokeThickness="1.6667" StrokeDashCap="Square">
<Rectangle.Stroke>
<SolidColorBrush Color="#FF000000"/>
</Rectangle.Stroke>
<Rectangle.Fill>
<LinearGradientBrush StartPoint="0.5,1" EndPoint="0.5,0">
<LinearGradientBrush.GradientStops>
<GradientStop Color="#FFB7B7B7"/>
<GradientStop Color="#FFFFFFFF" Offset="1"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
</Canvas>
<Canvas Name="_63" RenderTransform="1, 0, 0, 1, 9.070866, -7.181102"/>
<Canvas Name="_64" RenderTransform="1, 0, 0, 1, 7.370079, -7.559055">
<Path Name="_64_G0_line" StrokeThickness="1.6667" StrokeDashCap="Round" StrokeEndLineCap="Round"
StrokeLineJoin="Round" StrokeStartLineCap="Round" Data="F0 M0 1122.52 L7.94 1122.52">
<Path.Stroke>
<SolidColorBrush Color="#FF000000"/>
</Path.Stroke>
</Path>
</Canvas>
<Canvas Name="_65" RenderTransform="1, 0, 0, 1, 7.370079, -6.047244"/>
<Canvas Name="_66" RenderTransform="1, 0, 0, 1, 7.370079, -5.480315"/>
</Canvas>
</Canvas>
</Canvas>

View File

@ -0,0 +1,187 @@
<html xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"/>
<link rel="stylesheet" type="text/css" href="visio.css"/>
<title>Drawing2</title>
<script src="Silverlight.js" type="text/javascript"></script>
<script src="Silverlight.supportedUserAgent.js" type="text/javascript"></script>
<script src="xaml_1.js" type="text/javascript"></script>
</head>
<script type="text/javascript">
var pageID = 7;
var drawing;
function keyhandler(event)
{
switch(event.keyCode)
{
case 9: //Tab
{
var foundShape;
if (event.shiftKey)
foundShape = (window.SilverlightObj.selectPrevShape() != null);
else
foundShape = (window.SilverlightObj.selectNextShape() != null);
if (foundShape)
{
event.cancelBubble = false;
event.returnValue = false;
}
}
break;
case 13: //Enter
{
if(window.SilverlightObj.shapeSel != null)
{
var shape = window.SilverlightObj.shapeSel;
var shapeID = parseInt(shape.Name.substring(1, shape.Name.length));
parent.OnShapeClick(pageID, shapeID, event);
}
}
break;
}
}
function createDrawing()
{
drawing = new SilverlightDisplay.Drawing();
window.SilverlightObj = drawing;
Silverlight.createObjectEx({
source: 'xaml_4.xaml',
parentElement: document.getElementById('SilverlightPlugInHost'),
id: 'SilverlightPlugIn',
properties: {
width: '595',
height: '841',
background:'#ffffff',
isWindowless: 'true',
version: '1.0'
},
events: {
onError: null,
onLoad: Silverlight.createDelegate(drawing, drawing.handleLoad)
},
context: null
});
}
function createPNZ(divThumb, windowWidth, windowHeight)
{
var pnz = new SilverlightDisplay.Thumbnail();
pnz.callbackIndex = '__slEvent' + Silverlight._silverlightCount;
Silverlight.createObjectEx({
source: 'xaml_4.xaml',
parentElement: divThumb,
id: 'thumbnailHost',
properties: {
width: (windowWidth).toString(),
height: (windowHeight).toString(),
background:'#ffffff',
isWindowless: 'true',
version: '1.0'
},
events: {
onError: null,
onLoad: Silverlight.createDelegate(pnz, pnz.handleLoad) // Won't be registered correctly
},
context: null
});
return pnz;
}
function PostZoomProcessing (newZoomLevel)
{
parent.viewMgr.PostZoomProcessing = null;
var pageIndex = parent.PageIndexFromID (pageID);
parent.viewMgr.createPNZ = createPNZ;
parent.CurPageUpdate (pageIndex);
}
if (!window.Silverlight)
window.Silverlight = {};
Silverlight.createDelegate = function(instance, method) {
return function() {
return method.apply(instance, arguments);
}
}
function unload()
{
viewMgr = null;
parent.viewMgr = null;
}
function fit()
{
if(parent.frmToolbar)
{
if (parent.g_WidgetsLoaded && plugin)
{
var zoom100 = parent.frmToolbar.document.getElementById('a100');
if (zoom100)
{
parent.viewMgr.PostZoomProcessing = PostZoomProcessing;
if (zoom100.click)
zoom100.click();
else
viewMgr.Zoom(100);
}
else
{
parent.viewMgr.PostZoomProcessing = PostZoomProcessing;
viewMgr.Zoom(100);
}
}
else
{
window.setTimeout("fit()", 500);
}
}
else
{
parent.viewMgr.PostZoomProcessing = PostZoomProcessing;
viewMgr.Zoom(100);
}
}
function load()
{
viewMgr = new parent.CViewMgr();
parent.viewMgr = viewMgr;
viewMgr.SupportsDetails = true;
viewMgr.SupportsSearch = true;
viewMgr.put_Location = SetXAMLLocation;
viewMgr.Zoom = XAMLZoomChange;
viewMgr.setView = XAMLSetView;
createDrawing();
fit();
}
window.onload = load;
window.unload = unload;
var OnShapeClick = parent.OnShapeClick;
var OnShapeKey = parent.OnShapeKey;
var UpdateTooltip = parent.UpdateTooltip;
var clickMenu = parent.clickMenu;
var toggleMenuDiv = parent.toggleMenuDiv;
var toggleMenuLink = parent.toggleMenuLink;
</script>
<body style="margin:10px" onresize="XAMLOnResize();" onscroll="XAMLOnScroll();">
<div id="SilverlightPlugInHost" onkeydown="keyhandler(event)">
</div>
<div id="menu1" onclick="parent.clickMenu(event)" class="hlMenu">
</div>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,187 @@
<html xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"/>
<link rel="stylesheet" type="text/css" href="visio.css"/>
<title>Drawing2</title>
<script src="Silverlight.js" type="text/javascript"></script>
<script src="Silverlight.supportedUserAgent.js" type="text/javascript"></script>
<script src="xaml_1.js" type="text/javascript"></script>
</head>
<script type="text/javascript">
var pageID = 6;
var drawing;
function keyhandler(event)
{
switch(event.keyCode)
{
case 9: //Tab
{
var foundShape;
if (event.shiftKey)
foundShape = (window.SilverlightObj.selectPrevShape() != null);
else
foundShape = (window.SilverlightObj.selectNextShape() != null);
if (foundShape)
{
event.cancelBubble = false;
event.returnValue = false;
}
}
break;
case 13: //Enter
{
if(window.SilverlightObj.shapeSel != null)
{
var shape = window.SilverlightObj.shapeSel;
var shapeID = parseInt(shape.Name.substring(1, shape.Name.length));
parent.OnShapeClick(pageID, shapeID, event);
}
}
break;
}
}
function createDrawing()
{
drawing = new SilverlightDisplay.Drawing();
window.SilverlightObj = drawing;
Silverlight.createObjectEx({
source: 'xaml_5.xaml',
parentElement: document.getElementById('SilverlightPlugInHost'),
id: 'SilverlightPlugIn',
properties: {
width: '595',
height: '841',
background:'#ffffff',
isWindowless: 'true',
version: '1.0'
},
events: {
onError: null,
onLoad: Silverlight.createDelegate(drawing, drawing.handleLoad)
},
context: null
});
}
function createPNZ(divThumb, windowWidth, windowHeight)
{
var pnz = new SilverlightDisplay.Thumbnail();
pnz.callbackIndex = '__slEvent' + Silverlight._silverlightCount;
Silverlight.createObjectEx({
source: 'xaml_5.xaml',
parentElement: divThumb,
id: 'thumbnailHost',
properties: {
width: (windowWidth).toString(),
height: (windowHeight).toString(),
background:'#ffffff',
isWindowless: 'true',
version: '1.0'
},
events: {
onError: null,
onLoad: Silverlight.createDelegate(pnz, pnz.handleLoad) // Won't be registered correctly
},
context: null
});
return pnz;
}
function PostZoomProcessing (newZoomLevel)
{
parent.viewMgr.PostZoomProcessing = null;
var pageIndex = parent.PageIndexFromID (pageID);
parent.viewMgr.createPNZ = createPNZ;
parent.CurPageUpdate (pageIndex);
}
if (!window.Silverlight)
window.Silverlight = {};
Silverlight.createDelegate = function(instance, method) {
return function() {
return method.apply(instance, arguments);
}
}
function unload()
{
viewMgr = null;
parent.viewMgr = null;
}
function fit()
{
if(parent.frmToolbar)
{
if (parent.g_WidgetsLoaded && plugin)
{
var zoom100 = parent.frmToolbar.document.getElementById('a100');
if (zoom100)
{
parent.viewMgr.PostZoomProcessing = PostZoomProcessing;
if (zoom100.click)
zoom100.click();
else
viewMgr.Zoom(100);
}
else
{
parent.viewMgr.PostZoomProcessing = PostZoomProcessing;
viewMgr.Zoom(100);
}
}
else
{
window.setTimeout("fit()", 500);
}
}
else
{
parent.viewMgr.PostZoomProcessing = PostZoomProcessing;
viewMgr.Zoom(100);
}
}
function load()
{
viewMgr = new parent.CViewMgr();
parent.viewMgr = viewMgr;
viewMgr.SupportsDetails = true;
viewMgr.SupportsSearch = true;
viewMgr.put_Location = SetXAMLLocation;
viewMgr.Zoom = XAMLZoomChange;
viewMgr.setView = XAMLSetView;
createDrawing();
fit();
}
window.onload = load;
window.unload = unload;
var OnShapeClick = parent.OnShapeClick;
var OnShapeKey = parent.OnShapeKey;
var UpdateTooltip = parent.UpdateTooltip;
var clickMenu = parent.clickMenu;
var toggleMenuDiv = parent.toggleMenuDiv;
var toggleMenuLink = parent.toggleMenuLink;
</script>
<body style="margin:10px" onresize="XAMLOnResize();" onscroll="XAMLOnScroll();">
<div id="SilverlightPlugInHost" onkeydown="keyhandler(event)">
</div>
<div id="menu1" onclick="parent.clickMenu(event)" class="hlMenu">
</div>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,995 @@
<html xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript" language="javascript">
var BUFFER = 1;
var pnzObj = null;
// ----- START ----- cross-browser event manipulation helpers ---------------------------
function getEvent(event)
{
// Retrieve the event in IE
if (!event)
return window.event;
// Return the passed event for everything else
return event;
}
function getSrcElem(event)
{
var event = getEvent(event);
// Reference the element howeaver this browser can
var elem;
if (event.target) // For Firefox
elem = event.target;
else if (event.srcElement) // For IE
elem = event.srcElement;
if (elem.nodeType == 3) // For Safari
elem = elem.parentNode;
return elem
}
// ----- END ----------------------------------------------------------------------------
function zoomObject()
{
this.PZImgRatio = null;
this.zoomWinHeight = null;
this.zoomWinWidth = null;
this.zoomWinTop = null;
this.zoomWinLeft = null;
this.scaleFactor = null;
this.updateContent = zObj_updateContent;
this.doOnBodyResize = zObj_doOnBodyResize;
this.clipZoomRect = zObj_clipZoomRect;
}
var g_thumbHeight = window.clientHeight;
var g_thumbWidth = window.clientWidth;
zoomObj = new zoomObject();
function showObject( divObject, divID )
{
if( divObject == null )
divObject = getObj( divID );
if( divObject != null )
{
divObject.style.visibility = "visible";
}
return divObject;
}
function hideObject( divObject, divID )
{
if( divObject == null )
divObject = getObj( divID );
if( divObject != null )
{
divObject.style.visibility = "hidden";
}
return divObject;
}
function zObj_updateContent( win_width, win_height, VMLDiv_left, VMLDiv_top, VMLDiv_width, VMLDiv_height )
{
this.mainWinWidth = win_width;
this.mainWinHeight = win_height;
this.mainImgRatio = VMLDiv_height / VMLDiv_width;
this.doOnBodyResize();
}
function zObj_doOnBodyResize()
{
return;
}
function zObj_clipZoomRect( objectToClip )
{
if( objectToClip == null )
{
objectToClip = zoomRectObj;
}
var clipTop = ( objectToClip.style.posTop < (g_thumbTop) ) ? (g_thumbTop - objectToClip.style.posTop) : 0;
var clipLeft = ( objectToClip.style.posLeft < (g_thumbLeft) ) ? (g_thumbLeft - objectToClip.style.posLeft) : 0;
var clipBottom = ( (objectToClip.style.posHeight - clipTop) > (g_thumbTop + g_thumbHeight + 2 * BUFFER) ) ? (g_thumbHeight + clipTop + BUFFER) : objectToClip.style.posHeight;
var clipRight = 0;
if( (this.zoomWinWidth - clipLeft) > (g_thumbLeft + g_thumbWidth) )
{
if( clipLeft == 0 )
{
clipRight = g_thumbWidth - objectToClip.style.posLeft + 2 * BUFFER;
}
else
{
clipRight = (g_thumbWidth + clipLeft + BUFFER);
}
}
else
{
clipRight = objectToClip.style.posWidth;
}
clipTo( objectToClip, clipTop, clipRight, clipBottom, clipLeft);
}
function findContent()
{
zoomRectDiv.style.display = "none";
newZoomWindowDiv.style.display = "none";
if (parent.parent.frmDrawing && parent.parent.viewMgr)
{
var viewMgr = parent.parent.viewMgr;
var createPNZ = parent.parent.viewMgr.createPNZ;
if (createPNZ)
{
divThumb = document.getElementById("divThumbnail");
pnzObj = createPNZ(divThumb, document.body.clientWidth, document.body.clientHeight);
// Force this window to call the correct callback function
window[pnzObj.callbackIndex] = function(a){ pnzObj.handleLoad(a); };
zoomRectObj = document.getElementById("zoomRectDiv");
showObject( zoomRectObj );
viewMgr.viewChanged = PageViewChanged;
}
}
}
function getPixelWidth()
{
return pnzObj.rootCanvas.Width * pnzObj.scale;
}
function getPixelHeight()
{
return pnzObj.rootCanvas.Height * pnzObj.scale;
}
function getPixelTop()
{
if(pnzObj.rootCanvas['Canvas.Top'])
return pnzObj.rootCanvas['Canvas.Top'];
else
return 0;
}
function getPixelLeft()
{
if(pnzObj.rootCanvas['Canvas.Left'])
return pnzObj.rootCanvas['Canvas.Left'];
else
return 0;
}
function inSLBounds(x, y)
{
if(x < getPixelLeft() || x > getPixelLeft() + getPixelWidth() ||
y < getPixelTop() || y > getPixelTop() + getPixelHeight())
return false;
return true;
}
function setZoomRectCursor(event)
{
var event = getEvent(event);
var x = getMouseXcoord(event) - zoomObj.zoomWinLeft;
var y = getMouseYcoord(event) - zoomObj.zoomWinTop;
var rbw = 5;
var newCursor = "";
if( y > (zoomObj.zoomWinHeight - rbw) )
newCursor = "s"
else if( y < rbw )
newCursor = "n";
if( x < rbw )
newCursor += "w";
else if( x > (zoomObj.zoomWinWidth - rbw) )
newCursor += "e";
if( newCursor != "" )
zoomRectObj.style.cursor = newCursor + "-resize";
else
zoomRectObj.style.cursor = "move";
}
function startZoomRectDrag(event)
{
var event = getEvent(event);
var currentCursor = zoomRectObj.style.cursor;
if( currentCursor.indexOf( '-' ) != -1 )
{
g_resizeDirection = currentCursor.split( '-' )[0];
startDrag( event, 'zoomRectDiv', doResizeZoomRectDrag, stopResizeZoomRectDrag );
}
else
{
startDrag( event, 'zoomRectDiv', doZoomRectDrag, stopZoomRectDrag );
}
}
function doZoomRectDrag(dragObj, x, y)
{
var rectLeft = parseInt(dragObj.divObject.style.left);
var rectTop = parseInt(dragObj.divObject.style.top);
var rectWidth = parseInt(dragObj.divObject.style.width);
var rectHeight = parseInt(dragObj.divObject.style.height);
var xOffset = 0;
var yOffset = 0;
var xPercent = 0;
var yPercent = 0;
var pnzImgLeft = getPixelLeft();
var pnzImgTop = getPixelTop();
var pnzImgWidth = getPixelWidth();
var pnzImgHeight = getPixelHeight();
xOffset = x + dragObj.xOffset - pnzImgLeft;
xPercent = xOffset / pnzImgWidth;
yOffset = y + dragObj.yOffset - pnzImgTop;
yPercent = yOffset / pnzImgHeight;
if (xOffset < 0)
{
xPercent = 0;
xOffset = pnzImgLeft - BUFFER;
}
else if (xOffset + rectWidth > pnzImgWidth)
{
xPercent = 1;
xOffset = pnzImgLeft + pnzImgWidth - rectWidth + BUFFER;
}
else
{
xOffset = x + dragObj.xOffset;
}
if (yOffset < 0)
{
yPercent = 0;
yOffset = pnzImgTop - BUFFER;
}
else if (yOffset + rectHeight > pnzImgHeight)
{
yPercent = 1;
yOffset = pnzImgTop + pnzImgHeight - rectHeight + BUFFER;
}
else
{
yOffset = y + dragObj.yOffset;
}
if (parent.parent.viewMgr.setView)
{
var viewMgr = parent.parent.viewMgr;
viewMgr.PostSetViewProcessing = PostSetViewProcessing;
viewMgr.ChangingView = true;
viewMgr.setView (xPercent, yPercent);
}
setZWinSize (null, null, xOffset, yOffset);
}
function stopZoomRectDrag(dragObj, x, y)
{
var event = dragObj.event;
var el = getSrcElem(event);
g_newLeft = parseInt(el.style.left);
g_newTop = parseInt(el.style.top);
}
function setZWinSize( newWidth, newHeight, newLeft, newTop )
{
if( newWidth != null && newWidth >= 0 )
{
zoomObj.zoomWinWidth = newWidth;
zoomRectObj.style.width = newWidth;
}
if( newHeight != null && newHeight >= 0 )
{
zoomObj.zoomWinHeight = newHeight;
zoomRectObj.style.height = newHeight;
}
if( newLeft != null && newLeft >= 0 )
{
zoomObj.zoomWinLeft = newLeft;
zoomRectObj.style.left = newLeft;
}
if( newTop != null && newTop >= 0 )
{
zoomObj.zoomWinTop = newTop;
zoomRectObj.style.top= newTop;
}
}
function doResizeZoomRectDrag(dragObj, x, y)
{
if(!inSLBounds(x,y))
return;
var newWidth = null;
var newHeight = null;
var newLeft = null;
var newTop = null;
var tmp = parent.parent.frmDrawing;
if (tmp)
{
zoomObj.mainWinWidth = tmp.document.body.clientWidth;
zoomObj.mainWinHeight = tmp.document.body.clientHeight;
}
var widthHeightRatio = zoomObj.mainWinWidth / zoomObj.mainWinHeight;
var minimumSize = 10;
if( g_resizeDirection == 'e' )
{
newWidth = Math.max( minimumSize, x - zoomObj.zoomWinLeft);
newHeight = newWidth / widthHeightRatio;
newTop = zoomObj.zoomWinTop - (newWidth - zoomObj.zoomWinWidth)/4;
setZWinSize( newWidth, newHeight, newLeft, newTop );
return;
}
if( g_resizeDirection == 'w' )
{
newWidth = zoomObj.zoomWinWidth + zoomObj.zoomWinLeft - x;
if( newWidth > minimumSize )
{
newHeight = newWidth / widthHeightRatio;
newTop = zoomObj.zoomWinTop - (newWidth - zoomObj.zoomWinWidth)/4;
newLeft = x;
setZWinSize( newWidth, newHeight, newLeft, newTop );
}
return;
}
if( g_resizeDirection == 'se' )
{
newWidth = Math.max( minimumSize, x - zoomObj.zoomWinLeft);
newHeight = newWidth / widthHeightRatio;
setZWinSize( newWidth, newHeight, newLeft, newTop );
return;
}
if( g_resizeDirection == 's' )
{
newHeight = Math.max( minimumSize, y - zoomObj.zoomWinTop);
newWidth = newHeight * widthHeightRatio;
newLeft = zoomObj.zoomWinLeft - (newHeight - zoomObj.zoomWinHeight)/2;
setZWinSize( newWidth, newHeight, newLeft, newTop );
return;
}
if( g_resizeDirection == 'sw' )
{
newHeight = Math.max( minimumSize, y - zoomObj.zoomWinTop);
newWidth = newHeight * widthHeightRatio;
newLeft = zoomObj.zoomWinLeft - ((newHeight - zoomObj.zoomWinHeight) * zoomObj.zoomWinWidth / zoomObj.zoomWinHeight);
setZWinSize( newWidth, newHeight, newLeft, newTop );
return;
}
if( g_resizeDirection == 'n' )
{
newHeight = zoomObj.zoomWinTop - y + zoomObj.zoomWinHeight;
if( newHeight > minimumSize )
{
newWidth = newHeight * widthHeightRatio;
newTop = y;
newLeft = zoomObj.zoomWinLeft - (newHeight - zoomObj.zoomWinHeight)/2;
setZWinSize( newWidth, newHeight, newLeft, newTop );
}
return;
}
if( g_resizeDirection == 'ne' )
{
newHeight = zoomObj.zoomWinTop - y + zoomObj.zoomWinHeight;
if( newHeight > minimumSize )
{
newWidth = newHeight * widthHeightRatio;
newTop = y;
setZWinSize( newWidth, newHeight, newLeft, newTop );
}
return;
}
if( g_resizeDirection == 'nw' )
{
newHeight = zoomObj.zoomWinTop - y + zoomObj.zoomWinHeight;
if( newHeight > minimumSize )
{
newWidth = newHeight * widthHeightRatio;
newTop = y;
newLeft = zoomObj.zoomWinLeft - ((newHeight - zoomObj.zoomWinHeight) * zoomObj.zoomWinWidth / zoomObj.zoomWinHeight);
setZWinSize( newWidth, newHeight, newLeft, newTop );
}
return;
}
}
function stopResizeZoomRectDrag(dragObj, x, y)
{
var xWidthPercent = parseInt(zoomRectDiv.style.width) / getPixelWidth();
var yHeightPercent = parseInt(zoomRectDiv.style.height) / getPixelHeight();
var newZoomLevel = GetZoomLevel (xWidthPercent, yHeightPercent);
if (parent.parent.viewMgr.Zoom)
{
var viewMgr = parent.parent.viewMgr;
viewMgr.PostZoomProcessing = PostZoomProcessing;
viewMgr.ChangingView = true;
viewMgr.Zoom (newZoomLevel);
}
g_width = parseInt(zoomRectDiv.style.pixelWidth);
g_height = parseInt(zoomRectDiv.style.pixelHeight);
g_newLeft = parseInt(zoomRectDiv.style.left);
g_newTop = parseInt(zoomRectDiv.style.top);
}
function GetZoomLevel (xWidthPercent, yHeightPercent)
{
var newZoomLevel;
if (xWidthPercent < yHeightPercent)
{
newZoomLevel = 100 / xWidthPercent;
}
else
{
newZoomLevel = 100 / yHeightPercent;
}
return newZoomLevel;
}
function PostZoomProcessing (newZoomLevel)
{
var xOffset = parseInt(zoomRectDiv.style.left) - getPixelLeft();
var yOffset = parseInt(zoomRectDiv.style.top) - getPixelTop();
var xPercent = xOffset / getPixelWidth();
var yPercent = yOffset / getPixelHeight();
var viewMgr = parent.parent.viewMgr;
viewMgr.ChangingView = true;
if (viewMgr.setView)
{
viewMgr.PostSetViewProcessing = PostSetViewProcessing;
viewMgr.setView (xPercent, yPercent);
}
SetCorrectTick (newZoomLevel);
viewMgr.PostZoomProcessing = null;
}
function SetCorrectTick (newZoomLevel)
{
var zoomLevels = parent.zoomLevels;
if (newZoomLevel <= zoomLevels[0])
{
parent.changeTick(zoomLevels[0]);
}
else if (newZoomLevel >= zoomLevels[zoomLevels.length - 1])
{
parent.changeTick(zoomLevels[zoomLevels.length - 1]);
}
else
{
for (var count = 0; count < zoomLevels.length - 1; count++)
{
var deltaDown = newZoomLevel - zoomLevels[count];
var deltaUp = newZoomLevel - zoomLevels[count + 1];
if (deltaDown >= 0 && deltaUp <= 0)
{
if (Math.abs(deltaDown) < Math.abs(deltaUp))
{
parent.changeTick(zoomLevels[count]);
break;
}
else
{
parent.changeTick(zoomLevels[count + 1]);
break;
}
}
}
}
}
function PostSetViewProcessing ()
{
parent.parent.viewMgr.ChangingView = false;
parent.parent.viewMgr.PostSetViewProcessing = null;
}
function startNewZoomRectDrag(event)
{
var event = getEvent(event);
var x = getMouseXcoord(event);
var y = getMouseYcoord(event);
if(!inSLBounds(x, y))
return;
zoomObj.newZWinStartX = x;
zoomObj.newZWinStartY = y;
g_newZWinObjRef = document.getElementById("newZoomWindowDiv");
g_newZWinObjRef.style.display = "";
startDrag( event, 'zoomRectDiv', doNewZoomRectDrag, stopNewZoomRectDrag );
}
function doNewZoomRectDrag(dragObj, x, y)
{
var width = Math.abs( zoomObj.newZWinStartX - x );
var height = Math.abs( zoomObj.newZWinStartY - y );
var aspectRatio = parent.parent.viewMgr.docDrawing.body.clientWidth / parent.parent.viewMgr.docDrawing.body.clientHeight;
if( width < (aspectRatio * height))
{
width = (aspectRatio) * height;
}
else
{
height = width / (aspectRatio);
}
width = Math.min (width, getPixelWidth());
height = Math.min (height, getPixelHeight());
var left, top;
if(x > zoomObj.newZWinStartX)
{
left = zoomObj.newZWinStartX;
width = Math.min(width, getPixelWidth() - (left - getPixelLeft()));
}
else
{
width = Math.min(zoomObj.newZWinStartX - getPixelLeft(), width);
left = zoomObj.newZWinStartX - width;
}
if(y > zoomObj.newZWinStartY)
{
top = zoomObj.newZWinStartY;
height = Math.min(height, getPixelHeight() - (top - getPixelTop()));
}
else
{
height = Math.min(zoomObj.newZWinStartY - getPixelTop(), height);
top = zoomObj.newZWinStartY - height;
}
newZoomWindowDiv.style.top = top;
newZoomWindowDiv.style.left = left;
newZoomWindowDiv.style.height = height;
newZoomWindowDiv.style.width = width;
newZoomWindowDiv.style.visibility = "visible";
zoomObj.zoomWinLeft = left;
zoomObj.zoomWinWidth = width;
zoomObj.zoomWinTop = top;
zoomObj.zoomWinHeight = height;
}
function stopNewZoomRectDrag(dragObj, x, y)
{
newZoomWindowDiv.style.visibility = "hidden";
if (parseInt (newZoomWindowDiv.style.width) > 10 &&
parseInt (newZoomWindowDiv.style.height) > 10)
{
zoomRectDiv.style.top = newZoomWindowDiv.style.top;
zoomRectDiv.style.left = newZoomWindowDiv.style.left;
zoomRectDiv.style.height = newZoomWindowDiv.style.height;
zoomRectDiv.style.width = newZoomWindowDiv.style.width;
stopResizeZoomRectDrag(dragObj,x,y);
zoomRectDiv.style.display = "inline";
zoomRectDiv.style.visibility = "visible";
}
else
{
zoomObj.zoomWinLeft = parseInt(zoomRectDiv.style.left);
zoomObj.zoomWinWidth = parseInt(zoomRectDiv.style.width);
zoomObj.zoomWinTop = parseInt(zoomRectDiv.style.top);
zoomObj.zoomWinHeight = parseInt(zoomRectDiv.style.height);
}
newZoomWindowDiv.style.height = "0px";
newZoomWindowDiv.style.width = "0px";
newZoomWindowDiv.style.display = "none";
}
var g_lastX = 0;
var g_lastY = 0;
function mouseDown(event)
{
return true;
}
function mouseMove(event)
{
var event = getEvent(event);
var x = event.clientX + document.body.scrollLeft;
var y = event.clientY + document.body.scrollTop;
g_lastX = x;
g_lastY = y;
doDrag( x, y );
return true;
}
function mouseUp(event)
{
var event = getEvent(event);
var x = event.clientX + document.body.scrollLeft;
var y = event.clientU + document.body.scrollTop;
stopDrag(null,x,y);
return true;
}
function mouseOut(event)
{
var event = getEvent(event);
var x = event.clientX + document.body.scrollLeft;
var y = event.clientY + document.body.scrollTop;
if( x < 0 ) x = -1;
if( x >= document.body.clientWidth ) x = -1;
if( y < 0 ) y = -1;
if( y >= document.body.clientHeight ) y = -1;
if( x == -1 || y == -1 )
{
x = -1;
y = -1;
}
if( x == -1 )
stopDrag( null, x, y );
return true;
}
function getMouseXcoord(event)
{
var event = getEvent(event);
return event.clientX + document.body.scrollLeft;
}
function getMouseYcoord(event)
{
var event = getEvent(event);
return event.clientY + document.body.scrollTop;
}
var g_width = -1;
var g_height = -1;
var g_newLeft = -1;
var g_newTop = -1;
var g_pnzImgWidth = -1;
var g_pnzImgHeight = -1;
var g_pnzImgLeft = -1;
var g_pnzImgTop = -1;
function keydown(event)
{
var event = getEvent(event);
var key = event.keyCode;
if(key == 37 || key == 38 || key == 39 || key == 40)
{
var zoomDiv = document.getElementById('zoomRectDiv');
if(g_width == -1)
g_width = parseInt(zoomDiv.style.pixelWidth);
if(g_height == -1)
g_height = parseInt(zoomDiv.style.pixelHeight);
if(g_newLeft == -1)
g_newLeft = parseInt(zoomDiv.style.left);
if(g_newTop == -1)
g_newTop = parseInt(zoomDiv.style.top);
if(g_pnzImgWidth == -1)
g_pnzImgWidth = getPixelWidth();
if(g_pnzImgHeight == -1)
g_pnzImgHeight = getPixelHeight();
if(g_pnzImgLeft == -1)
g_pnzImgLeft = getPixelLeft();
if(g_pnzImgTop == -1)
g_pnzImgTop = getPixelTop();
if(key == 37)
{
g_newLeft -= 1;
if(g_newLeft < g_pnzImgLeft)
{
g_newLeft = g_pnzImgLeft;
}
}
else if(key == 38)
{
g_newTop -= 1;
if(g_newTop < g_pnzImgTop)
{
g_newTop = g_pnzImgTop;
}
}
else if(key == 39)
{
g_newLeft += 1;
if(g_newLeft + g_width > g_pnzImgLeft + g_pnzImgWidth)
{
g_newLeft = g_pnzImgLeft + g_pnzImgWidth - g_width;
}
}
else if(key == 40)
{
g_newTop += 1;
if(g_newTop + g_height > g_pnzImgTop + g_pnzImgHeight)
{
g_newTop = g_pnzImgTop + g_pnzImgHeight - g_height;
}
}
setZoomRectCursor(event);
var xOffset = g_newLeft - g_pnzImgLeft;
var yOffset = g_newTop - g_pnzImgTop;
var xPercent = xPercent = xOffset / g_pnzImgWidth;
var yPercent = yPercent = yOffset / g_pnzImgHeight;
if (xOffset < 0)
{
xPercent = 0;
xOffset = g_pnzImgLeft;
}
else if (xOffset + g_width > g_pnzImgWidth)
{
xPercent = 1;
xOffset = g_pnzImgLeft + g_pnzImgWidth - g_width;
}
if (yOffset < 0)
{
yPercent = 0;
yOffset = g_pnzImgTop;
}
else if (yOffset + g_height > g_pnzImgHeight)
{
yPercent = 1;
yOffset = g_pnzImgTop + g_pnzImgHeight - g_height;
}
if (parent.parent.viewMgr.setView)
{
var viewMgr = parent.parent.viewMgr;
viewMgr.PostSetViewProcessing = PostSetViewProcessing;
viewMgr.ChangingView = true;
viewMgr.setView (xPercent, yPercent);
}
setZWinSize (null, null, g_newLeft, g_newTop);
}
}
function keyup(event)
{
var event = getEvent(event);
var key = event.keyCode;
if(key == 37 || key == 38 || key == 39 || key == 40)
{
el = getSrcElem(event);
}
}
function dragObject( event, divID, divObject, xOffset, yOffset, dragFunctionPointer, dragStopFunctionPointer )
{
this.event = event;
this.divID = divID;
this.divObject = divObject;
this.xOffset = xOffset;
this.yOffset = yOffset;
this.dragFPtr = dragFunctionPointer;
this.dragStopFPtr = dragStopFunctionPointer;
}
var dragList = new Array();
function startDrag( event, divID, dragFunctionPtr, dragStopFunctionPointer, xOffset, yOffset )
{
var divObject = document.getElementById(divID);
if( divObject != null )
{
if (document.selection)
document.selection.empty();
else if (window.getSelection)
window.getSelection().removeAllRanges();
if( xOffset == null )
xOffset = parseInt(divObject.style.left) - g_lastX;
if( yOffset == null )
yOffset = parseInt(divObject.style.top) - g_lastY;
dragList[ dragList.length ] = new dragObject( event, divID, divObject, xOffset, yOffset, dragFunctionPtr, dragStopFunctionPointer );
return true;
}
else
{
return false;
}
}
function doDrag( x, y )
{
for( var i=0; i < dragList.length; i++ )
{
if( dragList[i].dragFPtr != null )
dragList[i].dragFPtr( dragList[i], x, y );
}
if( dragList.length )
{
if (document.selection)
document.selection.empty();
else if (window.getSelection)
window.getSelection().removeAllRanges();
}
}
function stopDrag( divID, x, y )
{
var tmpDragObject;
for( var i=0; i < dragList.length; i++ )
{
if( dragList[i].divID == divID || divID == null )
{
tmpDragObject = dragList[i];
dragList[i] = dragList[ dragList.length - 1 ];
dragList.length = dragList.length - 1;
if( tmpDragObject.dragStopFPtr != null )
{
tmpDragObject.dragStopFPtr( tmpDragObject, x, y );
}
}
}
}
function PageViewChanged(newLeftPercent, newTopPercent, newWidthPercent, newHeightPercent)
{
if (dragList.length == 0 && !parent.parent.viewMgr.ChangingView)
{
var newLeft = null;
var newTop = null;
var newWidth = null;
var newHeight = null;
var PNZimg = document.getElementById("ConvertedImage");
if (newLeftPercent != null)
{
newLeft = (newLeftPercent * getPixelWidth()) + getPixelLeft();
}
if (newTopPercent != null)
{
newTop = (newTopPercent * getPixelHeight()) + getPixelTop();
}
if (newWidthPercent != null)
{
newWidth = newWidthPercent * getPixelWidth();
}
if (newHeightPercent != null)
{
newHeight = newHeightPercent * getPixelHeight();
}
setZWinSize (newWidth, newHeight, newLeft, newTop);
if (newLeftPercent <= 0 && newTopPercent <= 0 && newWidthPercent >= 1 && newHeightPercent >= 1)
{
zoomRectDiv.style.display = "none";
zoomRectDiv.style.visibility = "hidden";
}
else
{
zoomRectDiv.style.display = "inline";
zoomRectDiv.style.visibility = "visible";
}
if (newWidthPercent != null && newHeightPercent != null)
{
var newZoomLevel = GetZoomLevel (newWidthPercent, newHeightPercent);
SetCorrectTick (newZoomLevel);
}
}
}
function load()
{
parent.parent.g_ZoomLoaded = true;
if (parent.parent.g_LoadingWidgets)
{
parent.parent.g_LoadingWidgets = false;
parent.parent.location.reload();
}
}
function unload()
{
if (parent.parent.viewMgr)
{
parent.parent.viewMgr.viewChanged = null;
}
parent.parent.g_LoadingWidgets = true;
}
</script>
</head>
<body onload="load()" onunload="unload()" onmousedown="mouseDown(event)" onmousemove="mouseMove(event)" onmouseup="mouseUp(event)" onmouseout="mouseOut(event)">
<div id="divPZWindow" style="width: 100%; height: 100%;" onkeydown="keydown(event)" onmousedown="startNewZoomRectDrag(event);">
<div id="divThumbnail" style="position: absolute;"></div>
</div>
<div id="divTempThumbnail" style="position: absolute; visibility:hidden; display:none;" ></div>
<div id="zoomRectDiv" tabindex="1" title="Visible Area. Use mouse or arrow keys to move." onkeydown="keydown(event)" onkeyup="keyup(event)" style="display:none;position: absolute; border: solid red 2px; z-index: 3; background-color: #DDDDDD; filter:alpha(opacity=50); opacity:0.5;" onmousedown="startZoomRectDrag(event)" onmouseover="setZoomRectCursor(event)" onmousemove="setZoomRectCursor(event)"></div>
<div id="newZoomWindowDiv" style="position: absolute; border: solid blue 2px; z-index: 4; visibility: hidden;"></div>
</body>
</html>