summaryrefslogtreecommitdiff
path: root/html/wb
diff options
context:
space:
mode:
authorscuri <scuri>2008-10-17 06:10:33 +0000
committerscuri <scuri>2008-10-17 06:10:33 +0000
commit7b52cc13af4e85f1ca2deb6b6c77de9c95ea0dcf (patch)
treed0857278bde2eff784227c57dcaf930346ceb7ac /html/wb
First commit - moving from LuaForge to SourceForge
Diffstat (limited to 'html/wb')
-rw-r--r--html/wb/.cvsignore2
-rw-r--r--html/wb/make_hh.lua274
-rw-r--r--html/wb/template_index.html28
-rw-r--r--html/wb/template_ssSearch.html22
-rw-r--r--html/wb/template_wb_bar.html26
-rw-r--r--html/wb/template_wb_title.html64
-rw-r--r--html/wb/template_wb_tree.html220
-rw-r--r--html/wb/wb2hh.bat29
-rw-r--r--html/wb/wb_build.bat1
-rw-r--r--html/wb/wb_build.lua364
-rw-r--r--html/wb/wb_usr.lua1043
11 files changed, 2073 insertions, 0 deletions
diff --git a/html/wb/.cvsignore b/html/wb/.cvsignore
new file mode 100644
index 0000000..2f42317
--- /dev/null
+++ b/html/wb/.cvsignore
@@ -0,0 +1,2 @@
+wb_en.hhp
+wb_tree_en.hhc \ No newline at end of file
diff --git a/html/wb/make_hh.lua b/html/wb/make_hh.lua
new file mode 100644
index 0000000..c7a5b6c
--- /dev/null
+++ b/html/wb/make_hh.lua
@@ -0,0 +1,274 @@
+---------------------------------------------------------------------
+-- This program converts from Tecgraf's WebBook to HTML Help Project Files.
+-- by Mark Stroetzel Glasberg and Antonio Scuri
+-- 09 Dec, 2004
+---------------------------------------------------------------------
+
+languages_description = {
+ en = "0x0409 English - United States",
+ es = "0x040A Spanish - Standard",
+ fr = "0x040C French - Standard",
+ de = "0x0407 German - Standard",
+-- pt = "0x0816 Portuguese - Standard",
+ pt = "0x0416 Portuguese - Brazil",
+ it = "0x0410 Italian - Standard"
+}
+
+-- INITIALIZATION ---------------------------------------------------
+
+function isinlist(lng, list)
+ local i = 1
+ local n = #list
+ while i <= n do
+ if list[i] == lng then
+ return 1
+ end
+ i = i + 1;
+ end
+ return nil
+end
+
+-- BASIC FUNCTIONS --------------------------------------------------
+
+function out(string)
+ file:write(string)
+end
+
+function outln(string)
+ local i = ident + 1
+ while i>0 do
+ file:write(" ")
+ i = i - 1
+ end
+ file:write(string.."\n")
+end
+
+-- HHP FILE FUNCTIONS ------------------------------------------------
+
+files = {}
+
+function add2files(v)
+ if v then
+ -- only up to "#"
+ local j = string.find(v, "#")
+ if j then
+ f = string.sub(v, 0, j-1)
+ else
+ f = v
+ end
+
+ files[f] = f
+ end
+end
+
+function writehhpheader()
+ out("[OPTIONS]\n")
+ outln("Binary Index=No")
+ outln("Compatibility=1.0")
+ outln("Compiled file=" .. wb_usr.file_title .. "_" .. lng .. ".chm")
+ outln("Contents file=wb_tree" .. "_" .. lng .. ".hhc")
+ outln("Default topic=" .. lng .. "/" .. wb_usr.tree.link)
+ outln("Display compile notes=Yes")
+ outln("Display compile progress=Yes")
+ outln("Full-text search=Yes")
+ outln("Language="..languages_description[lng])
+ outln("Title="..wb_usr.messages[lng].title)
+ out("\n")
+ out("[FILES]\n")
+ outln(lng .. "/" .. wb_usr.tree.link)
+end
+
+function writehhpfooter()
+ local tmp = [[
+[INFOTYPES]
+ ]]
+ out(tmp)
+end
+
+function writehhpcenter()
+ if (not files) then return end
+
+ local v = next(files, nil)
+ while v ~= nil do
+ outln(dir..v)
+ v = next(files, v)
+ end
+end
+
+function writehhp()
+ writehhpheader()
+ writehhpcenter()
+ writehhpfooter()
+end
+
+
+-- HHC FILE FUNCTIONS ------------------------------------------------
+
+function writeheader()
+ out("<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML//EN\">\n")
+ out("<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML//EN\">\n")
+ out("<HTML>\n")
+ out("<HEAD>\n")
+ out("<meta name=\"GENERATOR\" content=\"Microsoft&reg; HTML Help Workshop 4.1\">\n")
+ out("<!-- Sitemap 1.0 -->\n")
+ out("<!-- Generated by WebBook -->\n")
+ out("</HEAD><BODY>\n")
+ out(" <UL>\n")
+ out(" <LI> <OBJECT type=\"text/sitemap\">\n")
+ out(" <param name=\"Name\" value=\""..wb_usr.messages[lng].title.."\">\n")
+ out(" <param name=\"Local\" value=\""..lng .. "/" .. wb_usr.tree.link .. "\">\n")
+ out(" </OBJECT>\n")
+end
+
+function type_string (o)
+ return type(o) == "string"
+end
+
+function writeend()
+ out(" </UL>\n")
+ out("</BODY>\n")
+ out("</HTML>\n")
+end
+
+function writesubitems(tree, mainlink)
+ if (not tree) then
+ return
+ end
+ local i = 1
+ local n = #tree
+ while i <= n do
+ writetopic(tree[i], mainlink)
+ i = i + 1
+ end
+ ident = ident - 1
+end
+
+-- mainlink is the link of the father -> if no link is specified
+-- this is the one that is used.
+function writetopic(t, mainlink)
+ local link
+ local topic_name
+
+ add2files(mainlink)
+
+ if t.name == nil then
+ print("ERROR: Title is nil.")
+ return
+ end
+
+ if (t.name[lng]) then
+ topic_name = t.name[lng]
+ else
+ topic_name = t.name["nl"]
+ end
+
+ if topic_name == nil then
+ print("ERROR: Title is nil in language [" .. lng .. "].")
+ return
+ end
+
+ if t.link and t.link ~= "" then
+ link = t.link
+ else
+ link = nil
+ end
+
+ add2files(link)
+
+ if t.bookmark then
+ if link == nil and mainlink == nil then
+ print("Error saving bookmark!!!")
+ return
+ end
+
+ if link then
+ linkB = link .. "#" .. t.bookmark
+ else
+ linkB = mainlink .. "#" .. t.bookmark
+ end
+ else
+ linkB = nil
+ end
+
+ outln("<LI> <OBJECT type=\"text/sitemap\">")
+ outln("<param name=\"Name\" value=\""..topic_name.."\">")
+ if linkB then
+ outln("<param name=\"Local\" value=\""..dir..linkB.."\">")
+ else
+ if link then
+ outln("<param name=\"Local\" value=\""..dir..link.."\">")
+ end
+ end
+ if useimage == 1 then
+ if t.folder then
+ if ident == 0 then
+ outln("<param name=\"ImageNumber\" value=\"1\">")
+ else
+ outln("<param name=\"ImageNumber\" value=\"6\">")
+ end
+ else
+ outln("<param name=\"ImageNumber\" value=\"11\">")
+ end
+ end
+ outln("</OBJECT>")
+
+ -- Write folder --
+ if t.folder then
+ ident = ident + 1
+ outln("<UL>")
+ if link == nil then
+ writesubitems(t.folder, mainlink)
+ else
+ writesubitems(t.folder, link)
+ end
+ outln("</UL>")
+ end
+
+end
+
+function writetopics(tree)
+ if (not tree) then return end
+ local i = 1;
+ local n = #tree
+ while i <= n do
+ outln("<UL>")
+ writetopic(tree[i], nil)
+ outln("</UL>")
+ i = i + 1
+ end
+end
+
+-- MAIN -------------------------------------------------------------
+
+-- lng -> from the command line
+
+dofile("wb_usr.lua")
+
+if (not arg[1]) then
+ error("Missing language parameter.")
+end
+
+lng = arg[1]
+dir = lng.."/"
+ident = 0
+useimage = 1 -- Use images based on given information
+file = nil
+
+print("Writing \"wb_tree" .. "_" .. lng .. ".hhc\" file.")
+file = io.open("wb_tree" .. "_" .. lng .. ".hhc", "w")
+writeheader()
+writetopics(wb_usr.tree.folder)
+writeend()
+file:close()
+
+if ident ~= 0 then
+ print("Ident not correct!")
+end
+
+print("Writing \"wb" .. "_" .. lng .. ".hhp\" file.")
+file = io.open("wb" .. "_" .. lng .. ".hhp", "w")
+writehhp()
+file:close()
+
+print("done.")
+
diff --git a/html/wb/template_index.html b/html/wb/template_index.html
new file mode 100644
index 0000000..75c72e0
--- /dev/null
+++ b/html/wb/template_index.html
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
+<html>
+
+<head>
+<meta http-equiv="Content-Language" content="en-us">
+<title>WB_TITLE</title>
+</head>
+
+<frameset rows="51,*" frameborder="0" framespacing="0" bordercolor="#0B6DCE">
+ <frame name="wb_title" scrolling="no" noresize="noresize" src="wb_titleWB_LNG.html"
+ frameborder="0" marginheight="0" marginwidth="0" target="wb_cont">
+ <frameset cols="WB_START_SIZE,*" frameborder="1" framespacing="4" bordercolor="#0B6DCE" border="4">
+ <frameset rows="27,*" frameborder="0" framespacing="0" bordercolor="#0B6DCE">
+ <frame name="wb_bar" scrolling="no" src="wb_barWB_LNG.html" frameborder="0" target="wb_cont">
+ <frame name="wb_tree" src="wb_treeWB_LNG.html" frameborder="1" target="wb_cont">
+ </frameset>
+ <frame name="wb_cont" src="WB_START_PAGE" frameborder="0">
+ </frameset>
+ <noframes>
+ <body>
+
+ <p>This page uses frames, but your browser doesn&#39;t support them.</p>
+
+ </body>
+ </noframes>
+</frameset>
+
+</html>
diff --git a/html/wb/template_ssSearch.html b/html/wb/template_ssSearch.html
new file mode 100644
index 0000000..23d93ea
--- /dev/null
+++ b/html/wb/template_ssSearch.html
@@ -0,0 +1,22 @@
+<html>
+<head>
+<title>ssSearch</title>
+<link rel="stylesheet" type="text/css" href="style.css">
+</head>
+<body>
+<h3>WB_SEARCH</h3>
+<blockquote>
+<center>
+ <applet code="ssSearch.class" width="640" height="480">
+ <param name="BGCOLOR" value="0B6DCE">
+ <param name="LISTAREACOLOR" value="ffffff">
+ <!-- Use "_self", "_blank", "_parent", "_top" or any other user-defined name -->
+ <param name="TARGETFRAME" value="_self">
+ <param name="DATAFILE" value="wb_searchWB_LNG.txt">
+ <!-- The APPLETHOME param is just an acknowledgement -->
+ <!-- Do not edit the value of APPLETHOME param -->
+ <param name="APPLETHOME" value="http://www.geocities.com/SiliconValley/Lakes/5365/index.html">
+ </applet>
+</center>
+</blockquote>
+</body></html>
diff --git a/html/wb/template_wb_bar.html b/html/wb/template_wb_bar.html
new file mode 100644
index 0000000..46b98d8
--- /dev/null
+++ b/html/wb/template_wb_bar.html
@@ -0,0 +1,26 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
+<html>
+<head>
+ <meta http-equiv="Content-Language" content="en-us" >
+ <title>Bar</title>
+ <base target="wb_cont">
+ <style type="text/css">
+ .navigation{
+ padding: 0;
+ margin: 0;
+ white-space: nowrap;
+ border: 1px solid #7F93C7;
+ background-color: #FFFFFF;
+ line-height: 19px;
+ }
+ .navigation p { margin: 1px; white-space: nowrap; }
+ .navigation img { vertical-align: middle; }
+ </style>
+</head>
+
+<body style="margin: 2px; background-color: #F1F1F1">
+ <div class="navigation">
+ <p><a target="_blank" href="http://www.tecgraf.puc-rio.br/webbook"><img src="wb_img/webbook.png" onmouseover="this.src='wb_img/webbook_over.png'" onmouseout="this.src='wb_img/webbook.png'" style="border-width: 0px"></a><img src="wb_img/barlineleft.png"><img alt="WB_EXPALL_ALT" src="wb_img/showall.png" onclick="parent.wb_tree.showAllFolders()" onmouseover="this.src='wb_img/showall_over.png'" onmouseout="this.src='wb_img/showall.png'"><img alt="WB_CONTALL_ALT" src="wb_img/hideall.png" onclick="parent.wb_tree.hideAllFolders()" onmouseover="this.src='wb_img/hideall_over.png'" onmouseout="this.src='wb_img/hideall.png'"><img alt="WB_SYNC_ALT" src="wb_img/sync.png" onclick="parent.wb_tree.syncContents()" onmouseover="this.src='wb_img/sync_over.png'" onmouseout="this.src='wb_img/sync.png'"><img alt="WB_NEXT_ALT" src="wb_img/next.png" onclick="parent.wb_tree.nextContents()" onmouseover="this.src='wb_img/next_over.png'" onmouseout="this.src='wb_img/next.png'"><img alt="WB_PREV_ALT" src="wb_img/previous.png" onclick="parent.wb_tree.prevContents()" onmouseover="this.src='wb_img/previous_over.png'" onmouseout="this.src='wb_img/previous.png'">WB_LNG_BUTTON</p>
+ </div>
+</body>
+</html>
diff --git a/html/wb/template_wb_title.html b/html/wb/template_wb_title.html
new file mode 100644
index 0000000..e35662c
--- /dev/null
+++ b/html/wb/template_wb_title.html
@@ -0,0 +1,64 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
+<head>
+<meta http-equiv="Content-Language" content="en-us">
+<title>Title</title>
+<base target="wb_cont">
+<style type="text/css">
+td.title {
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 16pt;
+ font-weight: bold;
+ color: #FFFFFF;
+ text-align: left;
+ vertical-align: middle;
+}
+td.contact {
+ text-align: center;
+ vertical-align: middle;
+ width: 11em;
+}
+a.contact {
+ font-family: Arial, Helvetica, sans-serif;
+ color: #0962BB;
+ font-size: 9pt;
+ text-decoration: none;
+ font-weight: bold;
+}
+a.contact:hover {
+ text-decoration: underline;
+}
+</style>
+</head>
+
+<body style="background-color: WB_TITLE_BGCOLOR; margin-left: 3px; margin-right: 3px; margin-top: 2px; margin-bottom: 0; background-image: url('wb_img/title_background.png');">
+
+<table style="width: 100%" cellspacing="0" cellpadding="0">
+ <tr>
+ <td style="width: 50px;"><img src="logo.gif"></td>
+ <td class="title">WB_BAR_TITLE</td>
+ <td style="width: 3.5em">
+ <a class="contact" href="ssSearchWB_LNG.html">SimpleSearch</a>
+ </td>
+ <td style="width: 11em">
+ <FORM method=GET action="http://www.google.com/search" style="margin-bottom: 0; margin: 0; text-align: center; ">
+ <input type=hidden name=ie value=UTF-8>
+ <input type=hidden name=oe value=UTF-8>
+ <INPUT TYPE=text name=q size=21 maxlength=255 value=""><br>
+ <A HREF="http://www.google.com/"><IMG SRC="wb_img/google.gif" border="0" ALT="Google"></A>
+ <INPUT type=submit name=btnG VALUE="Search" style="height: 21px; vertical-align: top; font-size: x-small;">
+ <input type=hidden name=domains value="WB_SEARCH_LINK">
+ <input type=hidden name=sitesearch value="WB_SEARCH_LINK" checked>
+ <input type=hidden name=sitesearch value="">
+ </FORM>
+ </td>
+ <td class="contact">
+ <a class="contact" target="_blank" href="WB_COPYRIGHT_LINK">© WB_COPYRIGHT_NAME</a>
+ <br>
+ <a class="contact" href="mailto:WB_CONTACT">(WB_CONTACT)</a>
+ </td>
+ </tr>
+</table>
+
+</body>
+
+</html>
diff --git a/html/wb/template_wb_tree.html b/html/wb/template_wb_tree.html
new file mode 100644
index 0000000..4e45163
--- /dev/null
+++ b/html/wb/template_wb_tree.html
@@ -0,0 +1,220 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
+<html>
+<head>
+ <meta http-equiv="Content-Language" content="en-us" >
+ <title>Tree</title>
+ <base target="wb_cont">
+ <style type="text/css">
+ .tree { font-family: helvetica, sans-serif; font-size: 10pt; }
+ .tree h3 {
+ margin: 5px 0px 0px 0px;
+ font-size: 12pt;
+ }
+ .tree p { margin: 0px; white-space: nowrap; }
+ .tree p.sep { margin: 0px; white-space: nowrap; line-height: 8px; font-size: 5px; }
+ .tree div { display: none; margin: 0px; }
+ .tree img { vertical-align: middle; }
+ .tree a.el { text-decoration: none; margin-left: 4px; color: #003366; }
+ .tree a:hover { text-decoration: none; background-color: #e0e0ff }
+ </style>
+ <script type="text/javascript">
+ lastLink = null;
+
+ function hideFolder(folder, id)
+ {
+ var imageNode = document.images["img" + id];
+ if (imageNode != null)
+ {
+ var len = imageNode.src.length;
+ if (imageNode.src.substring(len-8,len-4) == "last")
+ imageNode.src = "wb_img/plusnodelast.png";
+ else if (imageNode.src.substring(len-8,len-4) == "node")
+ imageNode.src = "wb_img/plusnode.png";
+ }
+ folder.style.display = "none";
+ }
+
+ function showFolder(folder, id)
+ {
+ var imageNode = document.images["img" + id];
+ if (imageNode != null)
+ {
+ var len = imageNode.src.length;
+ if (imageNode.src.substring(len-8,len-4) == "last")
+ imageNode.src = "wb_img/minusnodelast.png";
+ else if (imageNode.src.substring(len-8,len-4) == "node")
+ imageNode.src = "wb_img/minusnode.png";
+ }
+ folder.style.display = "block";
+ }
+
+ function toggleFolder(id)
+ {
+ var folder = document.getElementById(id);
+ if (folder.style.display == "block")
+ hideFolder(folder, id);
+ else
+ showFolder(folder, id);
+ }
+
+ function setFoldersAtLevel(level, show)
+ {
+ var i = 1;
+ do
+ {
+ var folder_id = level + "." + i;
+ var id = "folder" + folder_id;
+ var folder = document.getElementById(id);
+ if (folder != null)
+ {
+ setFoldersAtLevel(folder_id, show);
+
+ if (show)
+ showFolder(folder, id);
+ else
+ hideFolder(folder, id);
+ }
+ i++;
+ } while(folder != null);
+ }
+
+ function showAllFolders()
+ {
+ setFoldersAtLevel("", true);
+ }
+
+ function hideAllFolders()
+ {
+ setFoldersAtLevel("", false);
+ }
+
+ function getFolderId(name)
+ {
+ return name.substring(name.indexOf("folder"), name.length);
+ }
+
+ function showFolderRec(id)
+ {
+ var folder = document.getElementById(id);
+ if (folder != null)
+ {
+ showFolder(folder, id);
+
+ var parent_id = id.substring(0, id.lastIndexOf("."))
+ if (parent_id != null && parent_id != "folder")
+ {
+ showFolderRec(parent_id)
+ }
+ }
+ }
+
+ function clearLastLink()
+ {
+ if (lastLink != null)
+ {
+ lastLink.style.color = ""
+ lastLink = null;
+ }
+ }
+
+ function goToLink(link)
+ {
+ var id = getFolderId(link.name);
+ showFolderRec(id);
+ location.hash = "#" + link.name;
+ link.style.color = "#ff0000";
+
+ clearLastLink();
+ lastLink = link;
+ }
+
+ function syncContents()
+ {
+ var cur_topic = parent.wb_cont.location.href
+
+ for (var i = 0; i < document.links.length; i++)
+ {
+ var link = document.links[i];
+ if (cur_topic == link.href)
+ {
+ goToLink(link)
+ return
+ }
+ }
+ }
+
+ function nextContents()
+ {
+ var cur_topic = parent.wb_cont.location.href
+
+ for (var i = 0; i < document.links.length; i++)
+ {
+ var link = document.links[i];
+ if (cur_topic == link.href)
+ {
+ if (i == document.links.length-1)
+ link = document.links[0];
+ else
+ link = document.links[i+1];
+
+ goToLink(link)
+ parent.wb_cont.location.href = link.href;
+ return
+ }
+ }
+ }
+
+ function prevContents()
+ {
+ var cur_topic = parent.wb_cont.location.href
+ var prev_link = document.links[document.links.length-1]
+
+ for (var i = 0; i < document.links.length; i++)
+ {
+ var link = document.links[i];
+ if (cur_topic == link.href)
+ {
+ if (i == 0)
+ link = document.links[document.links.length-1];
+ else
+ link = document.links[i-1];
+
+ goToLink(link)
+ parent.wb_cont.location.href = link.href;
+ return
+ }
+ }
+ }
+
+ function showStartPage()
+ {
+ var full_url = parent.document.URL;
+ if (full_url == null)
+ return;
+
+ var param = full_url.substring(full_url.indexOf("?") + 1, full_url.length);
+ if (param == null)
+ return;
+
+ var param_url = param.substring(param.indexOf("url=") + 4, param.length);
+ if (param_url == null)
+ return;
+
+ var param_len = param_url.length;
+ for (var i = 0; i < document.links.length; i++)
+ {
+ var link = document.links[i];
+ var link_url = link.href.substring(link.href.length-param_len, link.href.length)
+ if (link_url == param_url)
+ {
+ goToLink(link)
+ parent.wb_cont.location.href = link.href;
+ return
+ }
+ }
+ }
+ </script>
+</head>
+
+<body style="margin: 2px; background-color: #F1F1F1" onload="showStartPage()">
+ <div class="tree" onmouseout="clearLastLink()">
diff --git a/html/wb/wb2hh.bat b/html/wb/wb2hh.bat
new file mode 100644
index 0000000..94c4459
--- /dev/null
+++ b/html/wb/wb2hh.bat
@@ -0,0 +1,29 @@
+@echo off
+
+Echo Building...
+lua5.1 make_hh.lua %1
+Echo .
+pause
+
+Echo Preparing...
+move wb_%1.hhp ..
+move wb_tree_%1.hhc ..
+cd ..
+move download download.old
+Echo .
+pause
+
+Echo Compiling...
+hhc wb_%1.hhp
+Echo .
+pause
+
+Echo Finishing...
+move wb_%1.hhp wb
+move wb_tree_%1.hhc wb
+move download.old download
+move /y *.chm download
+cd wb
+Echo .
+
+Echo Done.
diff --git a/html/wb/wb_build.bat b/html/wb/wb_build.bat
new file mode 100644
index 0000000..9cf43fc
--- /dev/null
+++ b/html/wb/wb_build.bat
@@ -0,0 +1 @@
+@lua5.1 wb_build.lua
diff --git a/html/wb/wb_build.lua b/html/wb/wb_build.lua
new file mode 100644
index 0000000..1963158
--- /dev/null
+++ b/html/wb/wb_build.lua
@@ -0,0 +1,364 @@
+
+dofile("wb_usr.lua")
+
+lngCount = nil
+lngSuffix = nil
+lngIndex = nil
+lngNext = nil
+linkCount = 1
+
+function readFile(filename)
+ local file = io.open(filename)
+ local text = file:read("*a")
+ file:close()
+ return text
+end
+
+function writeFile(filename, text)
+ local file = io.open(filename, "w")
+ file:write(text)
+ file:close()
+end
+
+-- #####################################################################
+
+htmlFiles = {}
+
+function addHtmlFile(v)
+ if v then
+ -- only up to "#"
+ local j = string.find(v, "#")
+ if j then
+ f = string.sub(v, 0, j-1)
+ else
+ f = v
+ end
+
+ htmlFiles[f] = f
+ end
+end
+
+-- #####################################################################
+
+function writeIndexFile()
+ print("Writing \"../index"..lngSuffix..".html\".")
+
+ local wb_index = readFile("template_index.html")
+
+ wb_index = string.gsub(wb_index, "WB_TITLE", wb_usr.messages[lngIndex].title)
+ wb_index = string.gsub(wb_index, "WB_START_SIZE", wb_usr.start_size)
+ wb_index = string.gsub(wb_index, "WB_START_PAGE", lngIndex.."/"..wb_usr.tree.link)
+ if (lngCount > 1) then
+ wb_index = string.gsub(wb_index, "WB_LNG", lngSuffix)
+ else
+ wb_index = string.gsub(wb_index, "WB_LNG", "")
+ end
+
+ writeFile("../index"..lngSuffix..".html", wb_index)
+end
+
+-- #####################################################################
+
+function writeTitleFile()
+ print("Writing \"../wb_title"..lngSuffix..".html\".")
+
+ local wb_title = readFile("template_wb_title.html")
+
+ wb_title = string.gsub(wb_title, "WB_BAR_TITLE", wb_usr.messages[lngIndex].bar_title)
+ wb_title = string.gsub(wb_title, "WB_TITLE_BGCOLOR", wb_usr.title_bgcolor)
+ wb_title = string.gsub(wb_title, "WB_SEARCH_LINK", wb_usr.search_link)
+ wb_title = string.gsub(wb_title, "WB_COPYRIGHT_LINK", wb_usr.copyright_link)
+ wb_title = string.gsub(wb_title, "WB_COPYRIGHT_NAME", wb_usr.copyright_name)
+ wb_title = string.gsub(wb_title, "WB_CONTACT", wb_usr.contact)
+
+ if (lngCount > 1) then
+ wb_title = string.gsub(wb_title, "WB_LNG", lngSuffix)
+ else
+ wb_title = string.gsub(wb_title, "WB_LNG", "")
+ end
+
+ writeFile("../wb_title"..lngSuffix..".html", wb_title)
+end
+
+-- #####################################################################
+
+function writeIndent(file, level)
+ -- base identation
+ file:write(" ")
+
+ for i = 1, level*2, 1 do
+ file:write(" ")
+ end
+end
+
+function getNodeName(node)
+ local name = nil
+ if (node.name[lngIndex]) then
+ name = node.name[lngIndex]
+ else
+ name = node.name["nl"]
+ end
+
+ if not name then
+ error("Name not found.")
+ end
+
+ return name
+end
+
+function writeNode(file, node, opened, level, folder_index, folder_suffix, node_suffix, child_prefix)
+ if (node.folder) then -- folder
+ -- box image
+ writeIndent(file, level)
+ file:write("<p>")
+
+ folder_suffix = folder_suffix .. "." .. folder_index
+
+ file:write(child_prefix.."<img name=\"imgfolder"..folder_suffix.."\" ")
+
+ if (opened) then
+ file:write("src=\"wb_img/minusnode"..node_suffix..".png\" ")
+ else
+ file:write("src=\"wb_img/plusnode"..node_suffix..".png\" ")
+ end
+
+ file:write("onclick=\"toggleFolder('folder"..folder_suffix.."')\">")
+
+ if (node.link) then
+ file:write("<a name=\"link"..linkCount.."folder"..folder_suffix.."\" class=\"el\" href=\""..lngIndex.."/"..node.link.."\">"..getNodeName(node).."</a>")
+ addHtmlFile(node.link)
+ linkCount = linkCount + 1
+ else
+ file:write(" "..getNodeName(node))
+ end
+
+ file:write("</p>\n")
+
+ -- folder div
+ writeIndent(file, level)
+ if (opened) then
+ file:write("<div id=\"folder"..folder_suffix.."\" style=\"display:block\">\n")
+ else
+ file:write("<div id=\"folder"..folder_suffix.."\">\n")
+ end
+
+ local n = #(node.folder)
+ local next_folder_index = 0
+ local next_node_suffix = ""
+ local next_child_prefix = "<img src=\"wb_img/vertline.png\">"
+ if (node_suffix == "last") then
+ next_child_prefix = "<img src=\"wb_img/blank.png\">"
+ end
+ for i = 1, n, 1 do
+ if (i == n) then
+ next_node_suffix = "last"
+ end
+ if (node.folder[i].folder) then
+ next_folder_index = next_folder_index + 1
+ end
+ writeNode(file, node.folder[i], false, level+1, next_folder_index, folder_suffix, next_node_suffix, child_prefix..next_child_prefix)
+ end
+
+ writeIndent(file, level)
+ file:write("</div>\n")
+ else -- leaf
+ if (node.link and node.link ~= "") then -- normal leaf
+ writeIndent(file, level)
+ file:write("<p>"..child_prefix.."<img src=\"wb_img/node"..node_suffix..".png\"><a class=\"el\" name=\"link"..linkCount.."folder"..folder_suffix.."\" href=\""..lngIndex.."/"..node.link.."\">"..getNodeName(node).."</a></p>\n")
+ addHtmlFile(node.link)
+ linkCount = linkCount + 1
+ else -- separator leaf
+ writeIndent(file, level)
+ file:write("<p class=\"sep\">")
+
+ local sep_child_prefix = string.gsub(child_prefix, "/vertline", "/sepvertline")
+ sep_child_prefix = string.gsub(sep_child_prefix, "/blank", "/sepblank")
+
+ file:write(sep_child_prefix.."<img src=\"wb_img/sepnode.png\"></p>\n")
+ end
+ end
+end
+
+function writeTree(file)
+ -- root node
+ file:write(" <h3><a name=\"link0folder.0\" class=\"el\" href=\""..lngIndex.."/"..wb_usr.tree.link.."\">"..getNodeName(wb_usr.tree).."</a></h3>\n")
+ addHtmlFile(wb_usr.tree.link)
+
+ local folder = wb_usr.tree.folder
+ local n = #folder
+ local node_suffix = ""
+ local folder_index = 0
+ for i = 1, n, 1 do
+ if (i == n) then
+ node_suffix = "last"
+ end
+ if (folder[i].folder) then
+ folder_index = folder_index + 1
+ end
+ if (i == 1 and wb_usr.start_open) then
+ writeNode(file, folder[i], true, 1, folder_index, "", node_suffix, "")
+ else
+ writeNode(file, folder[i], false, 1, folder_index, "", node_suffix, "")
+ end
+ end
+end
+
+function writeTreeFile()
+ print("Writing \"../wb_tree"..lngSuffix..".html\".")
+
+ local file = io.open("../wb_tree"..lngSuffix..".html", "w")
+
+ -- Write Header
+ local wb_tree = readFile("template_wb_tree.html")
+ file:write(wb_tree)
+
+ -- Write Tree Nodes and Leafs
+ writeTree(file)
+
+ -- Write Footer
+ file:write(" </div>\n")
+ file:write("</body>\n")
+ file:write("</html>\n")
+
+ file:close()
+end
+
+-- #####################################################################
+
+lngMessages =
+{
+ search= {
+ en= "Simple Search",
+ pt= "Busca Simples",
+ es= "Busca Simples",
+ },
+ exp_all= {
+ en= "Expand All Nodes",
+ pt= "Expande Todos os Nós",
+ es= "Ensanchar Todos Nodos",
+ },
+ cont_all= {
+ en= "Contract All Nodes",
+ pt= "Contrai Todos os Nós",
+ es= "Contrato Todos Nodos",
+ },
+ sync= {
+ en= "Sync Tree with Contents",
+ pt= "Sincroniza Árvore com Conteúdo",
+ es= "Sincroniza Árbol con el Contenido",
+ },
+ lang= {
+ en= "Switch Language",
+ pt= "Troca Idioma",
+ es= "Cambie Idioma",
+ },
+ next= {
+ en= "Next Link",
+ pt= "Próximo Link",
+ es= "Próximo Link",
+ },
+ prev= {
+ en= "Previous Link",
+ pt= "Link Anterior",
+ es= "Link Anterior",
+ },
+}
+
+function writeBarFile()
+ print("Writing \"../wb_bar"..lngSuffix..".html\".")
+
+ local file = io.open("../wb_bar"..lngSuffix..".html", "w")
+
+ local wb_bar = readFile("template_wb_bar.html")
+
+ wb_bar = string.gsub(wb_bar, "WB_EXPALL_ALT", lngMessages.exp_all[lngIndex])
+ wb_bar = string.gsub(wb_bar, "WB_CONTALL_ALT", lngMessages.cont_all[lngIndex])
+ wb_bar = string.gsub(wb_bar, "WB_SYNC_ALT", lngMessages.sync[lngIndex])
+ wb_bar = string.gsub(wb_bar, "WB_NEXT_ALT", lngMessages.next[lngIndex])
+ wb_bar = string.gsub(wb_bar, "WB_PREV_ALT", lngMessages.prev[lngIndex])
+
+ if (lngCount > 1) then
+ local lng_button = "<img src=\"wb_img/barlineright.png\">"
+ lng_button = lng_button .. "<a target=\"_top\" href=\"index_"..lngNext..".html\"><img alt=\""..lngMessages.lang[lngIndex].."\" src=\"wb_img/lng"..lngSuffix..".png\" onmouseover=\"this.src='wb_img/lng"..lngSuffix.."_over.png'\" onmouseout=\"this.src='wb_img/lng"..lngSuffix..".png'\" style=\"border-width: 0px\"></a>"
+ wb_bar = string.gsub(wb_bar, "WB_LNG_BUTTON", lng_button)
+ else
+ wb_bar = string.gsub(wb_bar, "WB_LNG_BUTTON", "")
+ end
+
+ file:write(wb_bar)
+ file:close()
+end
+
+-- #####################################################################
+
+function writeSearchFile()
+ print("Writing \"../ssSearch"..lngSuffix..".html\".")
+
+ local file = io.open("../ssSearch"..lngSuffix..".html", "w")
+
+ local wb_search = readFile("template_ssSearch.html")
+
+ wb_search = string.gsub(wb_search, "WB_SEARCH", lngMessages.search[lngIndex])
+
+ if (lngCount > 1) then
+ wb_search = string.gsub(wb_search, "WB_LNG", lngSuffix)
+ else
+ wb_search = string.gsub(wb_search, "WB_LNG", "")
+ end
+
+ file:write(wb_search)
+ file:close()
+end
+
+function writeSearchIndexFile()
+ print("Writing \"../wb_search"..lngSuffix..".txt\".")
+
+ local file = io.open("../wb_search"..lngSuffix..".txt", "w")
+
+ local v = next(htmlFiles, nil)
+ while v ~= nil do
+ file:write(lngIndex.."/"..v.."\n")
+ v = next(htmlFiles, v)
+ end
+
+ file:close()
+end
+
+-- #####################################################################
+
+lngCount = 0
+local first_name = nil
+local prev_elem = nil
+for name, elem in pairs(wb_usr.messages) do
+ if (lngCount == 0) then
+ first_name = name
+ end
+ lngCount = lngCount + 1
+ if (prev_elem) then
+ prev_elem.next = name
+ end
+ prev_elem = elem
+end
+prev_elem.next = first_name
+
+print("Building...")
+
+for name, elem in pairs(wb_usr.messages) do
+ lngIndex = name
+ lngNext = elem.next
+
+ if (lngCount > 1) then
+ lngSuffix = "_"..lngIndex
+ else
+ lngSuffix = ""
+ end
+
+ writeIndexFile()
+ writeTitleFile()
+ writeBarFile()
+ writeTreeFile()
+ writeSearchFile()
+ writeSearchIndexFile()
+end
+
+print("Done.")
diff --git a/html/wb/wb_usr.lua b/html/wb/wb_usr.lua
new file mode 100644
index 0000000..bcbaeec
--- /dev/null
+++ b/html/wb/wb_usr.lua
@@ -0,0 +1,1043 @@
+wb_usr = {
+ contact = "cd@tecgraf.puc-rio.br",
+ title_bgcolor = "#3366CC",
+ copyright_link = "http://www.tecgraf.puc-rio.br",
+ search_link = "http://www.tecgraf.puc-rio.br/cd",
+ start_size = "180",
+ langs = {"en"},
+ copyright_name = "Tecgraf/PUC-Rio",
+ file_title = "cd",
+ start_open = "1"
+}
+
+wb_usr.messages = {
+ en = {
+ bar_title = "CD - Version 5.1",
+ title = "CD - Canvas Draw",
+ }
+}
+
+wb_usr.tree =
+{
+ name= {nl= "CD"},
+ link= "home.html",
+ folder=
+ {
+ {
+ name= {en= "Product", pt= "Produto"},
+ link= "prod.html",
+ folder=
+ {
+ {
+ name= {en= "Overview", pt= "Visão Geral"},
+ link= "prod.html#Overview"
+ },
+ {
+ name= {en= "Availability", pt= "Disponibilidade"},
+ link= "prod.html#Availability"
+ },
+ {
+ name= {en= "Support", pt= "Suporte"},
+ link= "prod.html#Suport"
+ },
+ {
+ name= {en= "Credits", pt= "Créditos"},
+ link= "prod.html#Acknowledgments"
+ },
+ {
+ name= {en= "Documentation", pt= "Documentação"},
+ link= "prod.html#About"
+ },
+ { link= "", name= {en= "" } },
+ {
+ name= {nl= "Copyright/License"},
+ link= "copyright.html"
+ },
+ {
+ name= {nl= "Download"},
+ link= "download.html",
+ folder=
+ {
+ {
+ name= {en= "Library Download Tips"},
+ link= "download_tips.html"
+ }
+ }
+ },
+ {
+ name= {nl= "CVS"},
+ link= "cvs.html"
+ },
+ {
+ name= {en= "History", pt= "Histórico"},
+ link= "history.html"
+ },
+ {
+ name= {en= "To Do", pt= "Pendências"},
+ link= "to_do.html"
+ },
+ {
+ name= {en= "Comparing", pt= "Outras Bibliotecas Gráficas"},
+ link= "toolkits.html"
+ }
+ }
+ },
+ {
+ name= {en= "Guide", pt= "Guia"},
+ link= "guide.html",
+ folder=
+ {
+ {
+ name= {en= "Getting Started", pt= "Notas de Implementação"},
+ link= "guide.html#start"
+ },
+ {
+ name= {en= "Building Applications", pt= "Arquivos de Inclusão"},
+ link= "guide.html#buildapp"
+ },
+ { name= {en= "Building the Library"}, link= "guide.html#buildlib" },
+ {
+ name= {en= "Environment Variables", pt= "Variável de Ambiente"},
+ link= "guide.html#Environment"
+ },
+ {
+ name= {en= "Implementing a Driver", pt= "Implementando um Driver"},
+ link= "guide.html#NewDriver"
+ },
+ {
+ name= {en= "Intercepting Primitives", pt= "Interceptando Primitivas"},
+ link= "guide.html#Play"
+ },
+ {
+ name= {en= "IUP Compatibility", pt= "Uso com a Biblioteca IUP"},
+ link= "guide.html#IUP"
+ },
+ { link= "", name= {en= "" } },
+ {
+ name= {en= "Internal Architecture", pt= "Arquitetura Interna"},
+ link= "internal.html"
+ },
+ {
+ name= {en= "Samples", pt= "Exemplos"},
+ link= "samples.html"
+ },
+ {
+ name= {en= "Lua Binding", pt= "Ligação com Lua"},
+ link= "cdlua.html"
+ },
+ {
+ name= {en= "CDLua+IMLua", pt= "Ligação com Lua"},
+ link= "cdluaim.html"
+ }
+ }
+ },
+ { link= "", name= {en= "" } },
+ {
+ name= {en= "Canvas"},
+ link= "canvas.html",
+ folder=
+ {
+ {
+ name= {en= "Initialization"},
+ folder=
+ {
+ {
+ name= {nl= "CreateCanvas"},
+ link= "func/init.html#cdCreateCanvas"
+ },
+ {
+ name= {nl= "CreateCanvasf"},
+ link= "func/init.html#cdCreateCanvasf"
+ },
+ {
+ name= {nl= "KillCanvas"},
+ link= "func/init.html#cdKillCanvas"
+ },
+ {
+ name= {nl= "Activate"},
+ link= "func/init.html#cdCanvasActivate"
+ },
+ {
+ name= {nl= "Deactivate"},
+ link= "func/init.html#cdCanvasDeactivate"
+ },
+ {
+ name= {nl= "UseContextPlus"},
+ link= "func/init.html#cdUseContextPlus"
+ },
+ {
+ name= {nl= "InitContextPlus"},
+ link= "func/init.html#cdInitContextPlus"
+ },
+ { link= "", name= {en= "" } },
+ {
+ name= {nl= "GetContext"},
+ link= "func/init.html#cdGetContext"
+ },
+ {
+ name= {nl= "ContextCaps"},
+ link= "func/init.html#cdContextCaps"
+ },
+ {
+ name= {nl= "Simulate"},
+ link= "func/init.html#cdSimulate"
+ },
+ { link= "", name= {en= "" } },
+ {
+ name= {nl= "cdlua_open"},
+ link= "func/init.html#cdlua_open"
+ },
+ {
+ name= {nl= "cdlua_close"},
+ link= "func/init.html#cdlua_close"
+ },
+ {
+ name= {nl= "cdlua_getcanvas"},
+ link= "func/init.html#cdlua_getcanvas"
+ }
+ }
+ },
+ {
+ name= {en= "Control"},
+ folder=
+ {
+ {
+ name= {nl= "Clear"},
+ link= "func/control.html#cdClear"
+ },
+ {
+ name= {nl= "Flush"},
+ link= "func/control.html#cdFlush"
+ },
+ {
+ name= {nl= "SaveState"},
+ link= "func/control.html#cdSaveState"
+ },
+ {
+ name= {nl= "RestoreState"},
+ link= "func/control.html#cdRestoreState"
+ },
+ {
+ name= {nl= "ReleaseState"},
+ link= "func/control.html#cdReleaseState"
+ },
+ {
+ name= {nl= "SetAttribute"},
+ link= "func/control.html#cdSetAttribute"
+ },
+ {
+ name= {nl= "SetfAttribute"},
+ link= "func/control.html#cdSetfAttribute"
+ },
+ {
+ name= {nl= "GetAttribute"},
+ link= "func/control.html#cdGetAttribute"
+ }
+ }
+ },
+ {
+ name= {en= "Coordinate System"},
+ folder=
+ {
+ {
+ name= {nl= "GetCanvasSize"},
+ link= "func/coordinates.html#cdGetCanvasSize"
+ },
+ {
+ name= {nl= "UpdateYAxis"},
+ link= "func/coordinates.html#cdUpdateYAxis"
+ },
+ {
+ name= {nl= "MM2Pixel"},
+ link= "func/coordinates.html#cdMM2Pixel"
+ },
+ {
+ name= {nl= "Pixel2MM"},
+ link= "func/coordinates.html#cdPixel2MM"
+ },
+ {
+ name= {nl= "Origin"},
+ link= "func/coordinates.html#cdOrigin"
+ },
+ { link= "", name= {en= "" } },
+ {
+ name= {nl= "Transform"},
+ link= "func/coordinates.html#cdTransform"
+ },
+ {
+ name= {nl= "GetTransform"},
+ link= "func/coordinates.html#cdGetTransform"
+ },
+ {
+ name= {nl= "TransformMultiply"},
+ link= "func/coordinates.html#cdTransformMultiply"
+ },
+ {
+ name= {nl= "TransformTranslate"},
+ link= "func/coordinates.html#cdTransformTranslate"
+ },
+ {
+ name= {nl= "TransformScale"},
+ link= "func/coordinates.html#cdTransformScale"
+ },
+ {
+ name= {nl= "TransformRotate"},
+ link= "func/coordinates.html#cdTransformRotate"
+ }
+ }
+ },
+ {
+ name= {en= "World Coordinates"},
+ link= "func/wd.html",
+ folder=
+ {
+ {
+ name= {nl= "Window"},
+ link= "func/wd.html#wdWindow"
+ },
+ {
+ name= {nl= "GetWindow"},
+ link= "func/wd.html#wdGetWindow"
+ },
+ {
+ name= {nl= "Viewport"},
+ link= "func/wd.html#wdViewport"
+ },
+ {
+ name= {nl= "GetViewport"},
+ link= "func/wd.html#wdGetViewport"
+ },
+ {
+ name= {nl= "World2Canvas"},
+ link= "func/wd.html#wdWorld2Canvas"
+ },
+ {
+ name= {nl= "Canvas2World"},
+ link= "func/wd.html#wdCanvas2World"
+ },
+ {
+ name= {en= "Extra"},
+ folder=
+ {
+ {
+ name= {nl= "Hardcopy"},
+ link= "func/wd.html#wdHardcopy"
+ }
+ }
+ }
+ }
+ },
+ {
+ name= {en= "General Attributes"},
+ folder=
+ {
+ {
+ name= {nl= "Foreground"},
+ link= "func/attributes.html#cdForeground"
+ },
+ {
+ name= {nl= "Background"},
+ link= "func/attributes.html#cdBackground"
+ },
+ {
+ name= {nl= "WriteMode"},
+ link= "func/attributes.html#cdWriteMode"
+ }
+ }
+ },
+ {
+ name= {nl= "Clipping"},
+ link= "func/clipping.html",
+ folder=
+ {
+ {
+ name= {nl= "Clip"},
+ link= "func/clipping.html#cdClip"
+ },
+ {
+ name= {nl= "ClipArea"},
+ link= "func/clipping.html#cdClipArea"
+ },
+ {
+ name= {nl= "GetClipArea"},
+ link= "func/clipping.html#cdGetClipArea"
+ },
+ {
+ name= {nl= "Polygons"},
+ link= "func/clipping.html#Polygons"
+ },
+ {
+ name= {nl= "Regions"},
+ link= "func/region.html",
+ folder=
+ {
+ {
+ name= {nl= "Creating"},
+ link= "func/region.html#Creating"
+ },
+ {
+ name= {nl= "RegionCombineMode"},
+ link= "func/region.html#cdRegionCombineMode"
+ },
+ {
+ name= {nl= "RegionCombineMode"},
+ link= "func/region.html#cdRegionCombineMode"
+ },
+ {
+ name= {nl= "PointInRegion"},
+ link= "func/region.html#cdPointInRegion"
+ },
+ {
+ name= {nl= "OffsetRegion"},
+ link= "func/region.html#cdOffsetRegion"
+ },
+ {
+ name= {nl= "RegionBox"},
+ link= "func/region.html#cdRegionBox"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ name= {en= "Primitives"},
+ folder=
+ {
+ {
+ name= {en= "Marks"},
+ link= "func/marks.html",
+ folder=
+ {
+ {
+ name= {nl= "Pixel"},
+ link= "func/marks.html#cdPixel"
+ },
+ {
+ name= {nl= "Mark"},
+ link= "func/marks.html#cdMark"
+ },
+ {
+ name= {en= "Attributes"},
+ folder=
+ {
+ {
+ name= {nl= "MarkType"},
+ link= "func/marks.html#cdMarkType"
+ },
+ {
+ name= {nl= "MarkSize"},
+ link= "func/marks.html#cdMarkSize"
+ }
+ }
+ }
+ }
+ },
+ {
+ name= {en= "Lines"},
+ link= "func/lines.html",
+ folder=
+ {
+ {
+ name= {nl= "Line"},
+ link= "func/lines.html#cdLine"
+ },
+ {
+ name= {nl= "Line Polygons/Bezier Curves"},
+ link= "func/lines.html#Polygons",
+ folder=
+ {
+ {
+ name= {nl= "Polygons and Regions"},
+ link= "func/polygon.html"
+ }
+ }
+ },
+ {
+ name= {nl= "Rect"},
+ link= "func/lines.html#cdRect"
+ },
+ {
+ name= {nl= "Arc"},
+ link= "func/lines.html#cdArc"
+ },
+ {
+ name= {en= "Attributes"},
+ folder=
+ {
+ {
+ name= {nl= "LineStyle"},
+ link= "func/lines.html#cdLineStyle"
+ },
+ {
+ name= {nl= "LineStyleDashes"},
+ link= "func/lines.html#cdLineStyleDashes"
+ },
+ {
+ name= {nl= "LineWidth"},
+ link= "func/lines.html#cdLineWidth"
+ },
+ {
+ name= {nl= "LineJoin"},
+ link= "func/lines.html#cdLineJoin"
+ },
+ {
+ name= {nl= "LineCap"},
+ link= "func/lines.html#cdLineCap"
+ }
+ }
+ }
+ }
+ },
+ {
+ name= {en= "Filled Areas"},
+ link= "func/filled.html",
+ folder=
+ {
+ {
+ name= {nl= "Polygons"},
+ link= "func/filled.html#Polygons"
+ },
+ {
+ name= {nl= "Box"},
+ link= "func/filled.html#cdBox"
+ },
+ {
+ name= {nl= "Sector"},
+ link= "func/filled.html#cdSector"
+ },
+ {
+ name= {nl= "Chord"},
+ link= "func/filled.html#cdChord"
+ },
+ {
+ name= {en= "Attributes"},
+ folder=
+ {
+ {
+ name= {nl= "BackOpacity"},
+ link= "func/filled.html#cdBackOpacity"
+ },
+ {
+ name= {nl= "FillMode"},
+ link= "func/filled.html#cdFillMode"
+ },
+ {
+ name= {nl= "InteriorStyle"},
+ link= "func/filled.html#cdInteriorStyle"
+ },
+ {
+ name= {nl= "Hatch"},
+ link= "func/filled.html#cdHatch"
+ },
+ {
+ name= {nl= "Stipple"},
+ link= "func/filled.html#cdStipple"
+ },
+ {
+ name= {nl= "Stipple (WC)"},
+ link= "func/filled.html#wdStipple"
+ },
+ {
+ name= {nl= "GetStipple"},
+ link= "func/filled.html#cdGetStipple"
+ },
+ {
+ name= {nl= "Pattern"},
+ link= "func/filled.html#cdPattern"
+ },
+ {
+ name= {nl= "Pattern (WC)"},
+ link= "func/filled.html#wdPattern"
+ },
+ {
+ name= {nl= "GetPattern"},
+ link= "func/filled.html#cdGetPattern"
+ },
+ {
+ name= {nl= "Data Access"},
+ link= "func/filled.html#DataAccess"
+ }
+ }
+ },
+ {
+ name= {en= "Extras in Lua"},
+ folder=
+ {
+ {
+ name= {nl= "CreatePattern"},
+ link= "func/filled.html#cdCreatePattern"
+ },
+ {
+ name= {nl= "KillPattern"},
+ link= "func/filled.html#cdKillPattern"
+ },
+ {
+ name= {nl= "CreateStipple"},
+ link= "func/filled.html#cdCreateStipple"
+ },
+ {
+ name= {nl= "KillStipple"},
+ link= "func/filled.html#cdKillStipple"
+ }
+ }
+ }
+ }
+ },
+ {
+ name= {en= "Text"},
+ link= "func/text.html",
+ folder=
+ {
+ {
+ name= {nl= "Text"},
+ link= "func/text.html#cdText"
+ },
+ {
+ name= {en= "Attributes"},
+ folder=
+ {
+ {
+ name= {nl= "Font"},
+ link= "func/text.html#cdFont"
+ },
+ {
+ name= {nl= "GetFont"},
+ link= "func/text.html#cdGetFont"
+ },
+ {
+ name= {nl= "NativeFont"},
+ link= "func/text.html#cdNativeFont"
+ },
+ {
+ name= {nl= "TextAlignment"},
+ link= "func/text.html#cdTextAlignment"
+ },
+ {
+ name= {nl= "TextOrientation"},
+ link= "func/text.html#cdTextOrientation"
+ }
+ }
+ },
+ {
+ name= {en= "Properties"},
+ folder=
+ {
+ {
+ name= {nl= "FontDim"},
+ link= "func/text.html#cdFontDim"
+ },
+ {
+ name= {nl= "TextSize"},
+ link= "func/text.html#cdTextSize"
+ },
+ {
+ name= {nl= "TextBox"},
+ link= "func/text.html#cdTextBox"
+ },
+ {
+ name= {nl= "TextBounds"},
+ link= "func/text.html#cdTextBounds"
+ }
+ }
+ }
+ }
+ },
+ {
+ name= {en= "Vector Text"},
+ link= "func/vectortext.html",
+ folder=
+ {
+ {
+ name= {nl= "VectorText"},
+ link= "func/vectortext.html#cdVectorText"
+ },
+ {
+ name= {nl= "MultiLineVectorText"},
+ link= "func/vectortext.html#cdMultiLineVectorText"
+ },
+ {
+ name= {en= "Attributes"},
+ folder=
+ {
+ {
+ name= {nl= "VectorTextDirection"},
+ link= "func/vectortext.html#cdVectorTextDirection"
+ },
+ {
+ name= {nl= "VectorTextTransform"},
+ link= "func/vectortext.html#cdVectorTextTransform"
+ },
+ {
+ name= {nl= "VectorTextSize"},
+ link= "func/vectortext.html#cdVectorTextSize"
+ },
+ {
+ name= {nl= "VectorCharSize"},
+ link= "func/vectortext.html#cdVectorCharSize"
+ },
+ {
+ name= {nl= "VectorFont"},
+ link= "func/vectortext.html#cdVectorFont"
+ }
+ }
+ },
+ {
+ name= {en= "Properties"},
+ folder=
+ {
+ {
+ name= {nl= "GetVectorTextSize"},
+ link= "func/vectortext.html#cdGetVectorTextSize"
+ },
+ {
+ name= {nl= "GetVectorTextBounds"},
+ link= "func/vectortext.html#cdGetVectorTextBounds"
+ }
+ }
+ }
+ }
+ },
+ {
+ name= {en= "Client Images"},
+ link= "func/client.html",
+ folder=
+ {
+ {
+ name= {nl= "GetImageRGB"},
+ link= "func/client.html#cdGetImageRGB"
+ },
+ {
+ name= {nl= "PutImageRectRGB"},
+ link= "func/client.html#cdPutImageRectRGB"
+ },
+ {
+ name= {nl= "PutImageRectRGBA"},
+ link= "func/client.html#cdPutImageRectRGBA"
+ },
+ {
+ name= {nl= "PutImageRectMap"},
+ link= "func/client.html#cdPutImageRectMap"
+ },
+ {
+ name= {nl= "RGB2Map"},
+ link= "func/client.html#cdRGB2Map"
+ },
+ {
+ name= {en= "Extras"},
+ folder=
+ {
+ {
+ name= {nl= "CreateBitmap"},
+ link= "func/client.html#cdCreateBitmap"
+ },
+ {
+ name= {nl= "InitBitmap"},
+ link= "func/client.html#cdInitBitmap"
+ },
+ {
+ name= {nl= "KillBitmap"},
+ link= "func/client.html#cdKillBitmap"
+ },
+ {
+ name= {nl= "BitmapGetData"},
+ link= "func/client.html#cdBitmapGetData"
+ },
+ {
+ name= {nl= "BitmapSetRect"},
+ link= "func/client.html#cdBitmapSetRect"
+ },
+ {
+ name= {nl= "GetBitmap"},
+ link= "func/client.html#cdGetBitmap"
+ },
+ {
+ name= {nl= "PutBitmap"},
+ link= "func/client.html#cdPutBitmap"
+ },
+ {
+ name= {nl= "BitmapRGB2Map"},
+ link= "func/client.html#cdBitmapRGB2Map"
+ }
+ }
+ },
+ {
+ name= {en= "Extras in Lua"},
+ folder=
+ {
+ {
+ name= {nl= "CreateImageRGB"},
+ link= "func/client.html#cdCreateImageRGB"
+ },
+ {
+ name= {nl= "KillImageRGB"},
+ link= "func/client.html#cdKillImageRGB"
+ },
+ {
+ name= {nl= "CreateImageRGBA"},
+ link= "func/client.html#cdCreateImageRGBA"
+ },
+ {
+ name= {nl= "KillImageRGBA"},
+ link= "func/client.html#cdKillImageRGBA"
+ },
+ {
+ name= {nl= "CreateImageMap"},
+ link= "func/client.html#cdCreateImageMap"
+ },
+ {
+ name= {nl= "KillImageMap"},
+ link= "func/client.html#cdKillImageMap"
+ },
+ {
+ name= {nl= "Data Access"},
+ link= "func/client.html#DataAccess"
+ }
+ }
+ }
+ }
+ },
+ {
+ name= {en= "Server Images"},
+ link= "func/server.html",
+ folder=
+ {
+ {
+ name= {nl= "CreateImage"},
+ link= "func/server.html#cdCreateImage"
+ },
+ {
+ name= {nl= "KillImage"},
+ link= "func/server.html#cdKillImage"
+ },
+ {
+ name= {nl= "GetImage"},
+ link= "func/server.html#cdGetImage"
+ },
+ {
+ name= {nl= "PutImageRect"},
+ link= "func/server.html#cdPutImageRect"
+ },
+ {
+ name= {nl= "ScrollArea"},
+ link= "func/server.html#cdScrollArea"
+ }
+ }
+ }
+ }
+ },
+ {
+ name= {en= "Other"},
+ folder=
+ {
+ {
+ name= {en= "System", pt= "Sistema"},
+ folder=
+ {
+ {
+ name= {nl= "Version"},
+ link= "func/other.html#cdVersion"
+ }
+ }
+ },
+ {
+ name= {en= "Metafile Interpretation", pt= "Interpretação de Metafiles"},
+ folder=
+ {
+ {
+ name= {nl= "Play"},
+ link= "func/other.html#cdPlay"
+ },
+ {
+ name= {nl= "RegisterCallback"},
+ link= "func/other.html#cdRegisterCallback"
+ }
+ }
+ },
+ {
+ name= {en= "Color Coding", pt= "Codificação de Cores"},
+ folder=
+ {
+ {
+ name= {nl= "EncodeColor"},
+ link= "func/color.html#cdEncodeColor"
+ },
+ {
+ name= {nl= "DecodeColor"},
+ link= "func/color.html#cdDecodeColor"
+ },
+ {
+ name= {nl= "EncodeAlpha"},
+ link= "func/color.html#cdEncodeAlpha"
+ },
+ {
+ name= {nl= "DecodeAlpha"},
+ link= "func/color.html#cdDecodeAlpha"
+ },
+ {
+ name= {nl= "Red"},
+ link= "func/color.html#cdRed"
+ },
+ {
+ name= {nl= "Green"},
+ link= "func/color.html#cdGreen"
+ },
+ {
+ name= {nl= "Blue"},
+ link= "func/color.html#cdBlue"
+ },
+ { link= "", name= {en= "" } },
+ {
+ name= {nl= "GetColorPlanes"},
+ link= "func/color.html#cdGetColorPlanes"
+ },
+ {
+ name= {nl= "Palette"},
+ link= "func/color.html#cdPalette"
+ },
+ {
+ name= {nl= "CreatePalette"},
+ link= "func/color.html#cdCreatePalette"
+ },
+ {
+ name= {nl= "KillPalette"},
+ link= "func/color.html#cdKillPalette"
+ }
+ }
+ }
+ }
+ },
+ {
+ name= {nl= "Drivers"},
+ link= "drv.html",
+ folder=
+ {
+ {
+ name= {en= "Window Systems", pt= "Sistemas de Janelas"},
+ folder=
+ {
+ {
+ name= {nl= "IUP"},
+ link= "drv/iup.html"
+ },
+ {
+ name= {nl= "Native Window"},
+ link= "drv/native.html"
+ }
+ }
+ },
+ {
+ name= {en= "Devices", pt= "Dispositivos"},
+ folder=
+ {
+ {
+ name= {nl= "Clipboard"},
+ link= "drv/clipbd.html"
+ },
+ {
+ name= {en= "Printer", pt= "Impressora"},
+ link= "drv/printer.html"
+ },
+ {
+ name= {en= "Picture"},
+ link= "drv/picture.html"
+ }
+ }
+ },
+ {
+ name= {en= "Images", pt= "Memória"},
+ folder=
+ {
+ {
+ name= {en= "Client Image", pt= "Imagem de Cliente"},
+ link= "drv/irgb.html"
+ },
+ {
+ name= {en= "Server Image", pt= "Imagem de Servidor"},
+ link= "drv/image.html"
+ },
+ {
+ name= {nl= "Client Double Buffer"},
+ link= "drv/dbufrgb.html"
+ },
+ {
+ name= {nl= "Server Double Buffer"},
+ link= "drv/dbuf.html"
+ }
+ }
+ },
+ {
+ name= {en= "File", pt= "Arquivo"},
+ folder=
+ {
+ {
+ name= {nl= "PDF"},
+ link= "drv/pdf.html"
+ },
+ {
+ name= {nl= "PS"},
+ link= "drv/ps.html"
+ },
+ {
+ name= {nl= "MF"},
+ link= "drv/mf.html"
+ },
+ { link= "", name= {en= "" } },
+ {
+ name= {nl= "CGM"},
+ link= "drv/cgm.html"
+ },
+ {
+ name= {nl= "DGN"},
+ link= "drv/dgn.html"
+ },
+ {
+ name= {nl= "DXF"},
+ link= "drv/dxf.html"
+ },
+ { link= "", name= {en= "" } },
+ {
+ name= {nl= "EMF"},
+ link= "drv/emf.html"
+ },
+ {
+ name= {nl= "WMF"},
+ link= "drv/wmf.html"
+ },
+ {
+ name= {nl= "DEBUG"},
+ link= "drv/debug.html"
+ }
+ }
+ },
+ {
+ name= {en= "Base Drivers"},
+ folder=
+ {
+ {
+ name= {en= "Simulation"},
+ link= "drv/sim.html"
+ },
+ {
+ name= {nl= "Win32"},
+ link= "drv/win32.html"
+ },
+ {
+ name= {nl= "Win32 GDI+"},
+ link= "drv/gdiplus.html"
+ },
+ {
+ name= {nl= "X-Win"},
+ link= "drv/xwin.html"
+ },
+ {
+ name= {nl= "XRender"},
+ link= "drv/xrender.html"
+ }
+ }
+ }
+ }
+ }
+ }
+}