1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 11:58:00 +01:00

add a special version to :hardcopy to skip the print dialog and move print

related help to a dedicated page
This commit is contained in:
Doug Kearns
2008-08-05 02:30:17 +00:00
parent 2a0c5ef869
commit 19916d7118
6 changed files with 39 additions and 10 deletions

1
NEWS
View File

@@ -10,6 +10,7 @@
generous donation which made this behavior possible)
* IMPORTANT: ctrl-x/a never take possible negative URLs into account, it was just
too unpredictable
* add a special version to :hardcopy to skip the Print dialog
* add :bl[ast], :bf[irst], :br[ewind] to go to first/last tab
* add :bn[ext], :bp[revious], :bN[ext] to switch to next/previous tab
* add :pagestyle command to allow for switching between alternate style sheets

View File

@@ -446,7 +446,17 @@ liberator.Buffer = function () //{{{
liberator.commands.add(["ha[rdcopy]"],
"Print current document",
function () { getBrowser().contentWindow.print(); });
function (args, special)
{
// TODO: Hide the progress bar ("print.show_print_progress") when
// the special version is called?
var value = liberator.options.getPref("print.always_print_silent");
liberator.options.setPref("print.always_print_silent", special);
getBrowser().contentWindow.print();
liberator.options.setPref("print.always_print_silent", value);
});
liberator.commands.add(["pa[geinfo]"],
"Show various page information",

View File

@@ -382,7 +382,7 @@ const liberator = (function () //{{{
// TODO: move files to liberator.config
var files = ["intro.html", "tutorial.html", "starting.html", "browsing.html", "buffer.html",
"options.html", "tabs.html", "hints.html", "map.html", "eval.html", "marks.html",
"repeat.html", "autocommands.html", "developer.html", "various.html"];
"repeat.html", "autocommands.html", "print.html", "developer.html", "various.html"];
for (var file in files)
{

View File

@@ -61,6 +61,7 @@ section:Help{nbsp}topics[overview]
recurring workflows.
- help:Autocommands[autocommands.html]: Automatically execute code on certain
events.
- help:Print[print.html]: Printing commands.
- help:Developer{nbsp}information[developer.html]: How to write docs or
plugins.
- help:Various[various.html]: Other help which didn't fit into any other category.

25
locale/en-US/print.txt Normal file
View File

@@ -0,0 +1,25 @@
HEADER
|printing| +
|:ha| |:hardcopy| +
||:ha[rdcopy][!]||
________________________________________________________________________________
Print current document. Open a GUI dialog where you can select the printer,
number of copies, orientation, etc. When used with [a]![a], the dialog is
skipped and the default printer used.
________________________________________________________________________________
section:Firefox{nbsp}printing{nbsp}dialogs[firefox-print-dialogs]
The "Print Preview" and "Page Setup" dialogs can be opened via the :dialog command
:dialog printpreview
and
:dialog printsetup
respectively.
// vim: set syntax=asciidoc:

View File

@@ -238,14 +238,6 @@ in a new tab. Here, downloads can be paused, canceled and resumed.
________________________________________________________________________________
|:ha| |:hardcopy| +
||:ha[rdcopy]||
________________________________________________________________________________
Print current document. Open a GUI dialog where you can select the printer,
number of copies, orientation, etc.
________________________________________________________________________________
|:noh| |:nohlsearch| +
||:noh[lsearch]||
________________________________________________________________________________