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