mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
680815cd6e
This patch was generated automatically by the "modeline.py" script, available here: https://github.com/amccreight/moz-source-tools/blob/master/modeline.py For every file that is modified in this patch, the changes are as follows: (1) The patch changes the file to use the exact C++ mode lines from the Mozilla coding style guide, available here: https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line (2) The patch deletes any blank lines between the mode line & the MPL boilerplate comment. (3) If the file previously had the mode lines and MPL boilerplate in a single contiguous C++ comment, then the patch splits them into separate C++ comments, to match the boilerplate in the coding style. MozReview-Commit-ID: EuRsDue63tK --HG-- extra : rebase_source : 3356d4b80ff6213935192e87cdbc9103fec6084c
64 lines
2.2 KiB
C++
64 lines
2.2 KiB
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
#ifndef nsIPageSequenceFrame_h___
|
|
#define nsIPageSequenceFrame_h___
|
|
|
|
#include "nsQueryFrame.h"
|
|
#include "nsCoord.h"
|
|
|
|
class nsPresContext;
|
|
class nsIPrintSettings;
|
|
class nsITimerCallback;
|
|
|
|
/**
|
|
* Interface for accessing special capabilities of the page sequence frame.
|
|
*
|
|
* Today all that exists are member functions for printing.
|
|
*/
|
|
class nsIPageSequenceFrame : public nsQueryFrame
|
|
{
|
|
public:
|
|
NS_DECL_QUERYFRAME_TARGET(nsIPageSequenceFrame)
|
|
|
|
/**
|
|
* Print the set of pages.
|
|
*
|
|
* @param aPrintOptions options for printing
|
|
* @param aStatusCallback interface that the client provides to receive
|
|
* progress notifications. Can be nullptr
|
|
* @return NS_OK if successful
|
|
* NS_ERROR_ABORT if the client cancels printing using the callback
|
|
* interface
|
|
* NS_ERROR_INVALID_ARG if printing a range of pages (not all pages)
|
|
* and the start page is greater than the total number of pages
|
|
* NS_ERROR_FAILURE if there is an error
|
|
*/
|
|
NS_IMETHOD StartPrint(nsPresContext* aPresContext,
|
|
nsIPrintSettings* aPrintOptions,
|
|
const nsAString& aDocTitle,
|
|
const nsAString& aDocURL) = 0;
|
|
|
|
NS_IMETHOD PrePrintNextPage(nsITimerCallback* aCallback, bool* aDone) = 0;
|
|
NS_IMETHOD PrintNextPage() = 0;
|
|
NS_IMETHOD ResetPrintCanvasList() = 0;
|
|
NS_IMETHOD GetCurrentPageNum(int32_t* aPageNum) = 0;
|
|
NS_IMETHOD GetNumPages(int32_t* aNumPages) = 0;
|
|
NS_IMETHOD IsDoingPrintRange(bool* aDoing) = 0;
|
|
NS_IMETHOD GetPrintRange(int32_t* aFromPage, int32_t* aToPage) = 0;
|
|
|
|
NS_IMETHOD DoPageEnd() = 0;
|
|
NS_IMETHOD SetSelectionHeight(nscoord aYOffset, nscoord aHeight) = 0;
|
|
|
|
NS_IMETHOD SetTotalNumPages(int32_t aTotal) = 0;
|
|
|
|
// For Shrink To Fit
|
|
NS_IMETHOD GetSTFPercent(float& aSTFPercent) = 0;
|
|
};
|
|
|
|
#endif /* nsIPageSequenceFrame_h___ */
|
|
|
|
|