1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/embedding/browser/webBrowser/nsIPrintPreviewNavigation.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,52 @@ 1.4 +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.5 + * 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#include "nsISupports.idl" 1.11 + 1.12 + 1.13 +/** 1.14 + * The nsIPrintPreviewNavigation 1.15 + */ 1.16 +[scriptable, uuid(8148E3F1-2E8B-11d5-A86C-00105A183419)] 1.17 +interface nsIPrintPreviewNavigation : nsISupports 1.18 +{ 1.19 + 1.20 + readonly attribute long pageCount; 1.21 + 1.22 + 1.23 + /** 1.24 + * Preview the next Page 1.25 + * 1.26 + * Return - PR_TRUE if success 1.27 + */ 1.28 + boolean nextPage(); 1.29 + 1.30 + /** 1.31 + * Preview the previous Page 1.32 + * 1.33 + * Return - PR_TRUE if success 1.34 + */ 1.35 + boolean previousPage(); 1.36 + 1.37 + /** 1.38 + * Go to a page to preview 1.39 + * 1.40 + * aPageNumber - Page to go preview 1.41 + * Return - PR_TRUE if success 1.42 + */ 1.43 + boolean goToPage(unsigned long aPageNumber); 1.44 + 1.45 + 1.46 + /** 1.47 + * Skip pages 1.48 + * 1.49 + * aNumPages - number of pages to skip including the current page. Neg. goes back 1.50 + * Return - true if success 1.51 + */ 1.52 + boolean skipPages(long aNumPages); 1.53 + 1.54 + 1.55 +};