nsIPrintPreviewNavigation.idl 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  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/. */
  6. #include "nsISupports.idl"
  7. /**
  8. * The nsIPrintPreviewNavigation
  9. */
  10. [scriptable, uuid(8148E3F1-2E8B-11d5-A86C-00105A183419)]
  11. interface nsIPrintPreviewNavigation : nsISupports
  12. {
  13. readonly attribute long pageCount;
  14. /**
  15. * Preview the next Page
  16. *
  17. * Return - PR_TRUE if success
  18. */
  19. boolean nextPage();
  20. /**
  21. * Preview the previous Page
  22. *
  23. * Return - PR_TRUE if success
  24. */
  25. boolean previousPage();
  26. /**
  27. * Go to a page to preview
  28. *
  29. * aPageNumber - Page to go preview
  30. * Return - PR_TRUE if success
  31. */
  32. boolean goToPage(unsigned long aPageNumber);
  33. /**
  34. * Skip pages
  35. *
  36. * aNumPages - number of pages to skip including the current page. Neg. goes back
  37. * Return - true if success
  38. */
  39. boolean skipPages(long aNumPages);
  40. };