Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.help.webapp/advanced')
-rw-r--r--org.eclipse.help.webapp/advanced/print.jsp17
-rw-r--r--org.eclipse.help.webapp/advanced/printAlert.css60
-rw-r--r--org.eclipse.help.webapp/advanced/printConfirm.jsp82
-rw-r--r--org.eclipse.help.webapp/advanced/printError.jsp66
4 files changed, 209 insertions, 16 deletions
diff --git a/org.eclipse.help.webapp/advanced/print.jsp b/org.eclipse.help.webapp/advanced/print.jsp
index bf6f95882..e3d2763bc 100644
--- a/org.eclipse.help.webapp/advanced/print.jsp
+++ b/org.eclipse.help.webapp/advanced/print.jsp
@@ -12,21 +12,6 @@
<%
PrintData data = new PrintData(application, request, response);
+ data.generateResources(out);
%>
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title><%=UrlUtil.htmlEncode(data.getTitle())%></title>
-<link rel="stylesheet" href="print.css" charset="utf-8" type="text/css">
-</head>
-<body dir="<%=direction%>" onload="print()">
-<%
- data.generateToc(out);
-%>
-</body>
-</html>
-
-<%
- data.generateContent(out);
-%>
diff --git a/org.eclipse.help.webapp/advanced/printAlert.css b/org.eclipse.help.webapp/advanced/printAlert.css
new file mode 100644
index 000000000..effeca152
--- /dev/null
+++ b/org.eclipse.help.webapp/advanced/printAlert.css
@@ -0,0 +1,60 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+/* need this one for Mozilla */
+HTML {
+ margin:0px;
+ padding:0px;
+}
+
+body{
+ font-family: Arial;
+}
+
+#titleText {
+ font-weight:bold;
+ color:WindowText;
+}
+
+.printAlertDiv {
+ width:400px;
+ border:1px solid ThreeDShadow;
+ background:button;
+}
+
+.caption {
+ background:ActiveCaption;
+ color:CaptionText;
+ height: 30px;
+}
+
+.message, .button {
+ background:ButtonFace;
+ color:ButtonText;
+ font-size: 12px;
+}
+
+.button a {
+ display:block;
+ margin-left:2px;
+ margin-right:2px;
+ width:18px;
+ height:18px;
+ border:1px solid ButtonFace;
+ writing-mode:tb-rl;
+ vertical-align:middle;
+}
+
+.button a:hover {
+ border-top:1px solid ButtonHighlight;
+ border-left:1px solid ButtonHighlight;
+ border-right:1px solid ButtonShadow;
+ border-bottom:1px solid ButtonShadow;
+}
diff --git a/org.eclipse.help.webapp/advanced/printConfirm.jsp b/org.eclipse.help.webapp/advanced/printConfirm.jsp
new file mode 100644
index 000000000..2908cb5a6
--- /dev/null
+++ b/org.eclipse.help.webapp/advanced/printConfirm.jsp
@@ -0,0 +1,82 @@
+<%--
+ Copyright (c) 2009 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+
+ Contributors:
+ IBM Corporation - initial API and implementation
+--%>
+<%@ include file="header.jsp"%>
+<%
+ String qs = request.getQueryString();
+ String location = "";
+ if (qs != null) {
+ location = "print.jsp?" + qs + "&confirmed=true";
+ }
+ String[] args = new String[] {
+ (String) request.getAttribute("topicsRequested"),
+ (String) request.getAttribute("allowedMaxTopics"),
+ ServletResources.getString("yes", request),
+ ServletResources.getString("no", request)};
+ String notice = ServletResources.getString("topicNumExceeded", args, request);
+%>
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta http-equiv="Pragma" content="no-cache">
+<meta http-equiv="Expires" content="-1">
+<link rel="stylesheet" href="printAlert.css" charset="utf-8" type="text/css">
+
+<script language="JavaScript">
+
+function onloadHandler() {
+ sizeButtons();
+}
+
+function sizeButtons() {
+ var minWidth=60;
+
+ if(document.getElementById("ok").offsetWidth < minWidth){
+ document.getElementById("ok").style.width = minWidth+"px";
+ }
+ if(document.getElementById("cancel").offsetWidth < minWidth){
+ document.getElementById("cancel").style.width = minWidth+"px";
+ }
+}
+
+</script>
+
+</head>
+<body dir="<%=direction%>" onload="onloadHandler()">
+<p>&nbsp;</p>
+<div align="center">
+<div class="printAlertDiv">
+<table align="center" cellpadding="10" cellspacing="0" width="400">
+ <form name="confirmForm" method="post" action="<%=location%>">
+ <tbody>
+ <tr>
+ <td class="caption"><strong><%=ServletResources.getString("alert", request)%></strong></td>
+ </tr>
+ <tr>
+ <td class="message">
+ <p><%=notice%></p>
+ </td>
+ </tr>
+ <tr>
+ <td class="button">
+ <div align="center">
+ <button id="ok" onClick="confirmForm.submit()"><%=ServletResources.getString("yes", request)%></button>
+ <button id="cancel" onClick="top.close()"><%=ServletResources.getString("no", request)%></button>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </form>
+</table>
+</div>
+</div>
+</body>
+</html>
diff --git a/org.eclipse.help.webapp/advanced/printError.jsp b/org.eclipse.help.webapp/advanced/printError.jsp
new file mode 100644
index 000000000..abceeb317
--- /dev/null
+++ b/org.eclipse.help.webapp/advanced/printError.jsp
@@ -0,0 +1,66 @@
+<%--
+ Copyright (c) 2009 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+
+ Contributors:
+ IBM Corporation - initial API and implementation
+--%>
+<%@ include file="header.jsp"%>
+<%
+ String msg = (String)request.getAttribute("msg");
+%>
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta http-equiv="Pragma" content="no-cache">
+<meta http-equiv="Expires" content="-1">
+<link rel="stylesheet" href="printAlert.css" charset="utf-8" type="text/css">
+
+<script language="JavaScript">
+
+function onloadHandler() {
+ sizeButtons();
+}
+
+function sizeButtons() {
+ var minWidth=60;
+
+ if(document.getElementById("ok").offsetWidth < minWidth){
+ document.getElementById("ok").style.width = minWidth+"px";
+ }
+}
+
+</script>
+
+</head>
+
+<body dir='<%=direction%>' onload="onloadHandler()">
+<p>&nbsp;</p>
+<div align="center">
+<div class="printAlertDiv">
+ <table align="center" width="400" cellpadding="10" cellspacing="0">
+ <tr>
+ <td class="caption"><strong><%=ServletResources.getString("error", request)%></strong></td>
+ </tr>
+ <tr>
+ <td height="50" class="message">
+ <p><%=ServletResources.getString(msg, request)%>
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td class="button">
+ <div align="center">
+ <button id="ok" onClick="top.close()"><%=ServletResources.getString("OK", request)%></button>
+ </div>
+ </td>
+ </tr>
+ </table>
+</Ddiv>
+</div>
+</body>
+</html> \ No newline at end of file

Back to the top