1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include
"nsISupports.idl"
11 * The nsIPrintPreviewNavigation
13 [scriptable
, uuid(8148E3F1
-2E8B
-11d5
-A86C
-00105A183419
)]
14 interface nsIPrintPreviewNavigation
: nsISupports
17 readonly attribute
long pageCount
;
21 * Preview the next Page
23 * Return - PR_TRUE if success
28 * Preview the previous Page
30 * Return - PR_TRUE if success
32 boolean previousPage
();
35 * Go to a page to preview
37 * aPageNumber - Page to go preview
38 * Return - PR_TRUE if success
40 boolean goToPage
(unsigned long aPageNumber
);
46 * aNumPages - number of pages to skip including the current page. Neg. goes back
47 * Return - true if success
49 boolean skipPages
(long aNumPages
);