/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* 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/. */
/** * Initialize the device context spec. * @param aWidget A widget a dialog can be hosted in * @param aPrintSettings Print settings for the print operation * @param aIsPrintPreview True if creating Spec for PrintPreview * @return NS_OK or a suitable error code.
*/
NS_IMETHOD Init(nsIPrintSettings* aPrintSettings, bool aIsPrintPreview) = 0;
/** * If required override to return a recorder to record the print. * * @param aDrawEventRecorder out param for the recorder to use * @return NS_OK or a suitable error code
*/
NS_IMETHOD GetDrawEventRecorder(
mozilla::gfx::DrawEventRecorder** aDrawEventRecorder) {
MOZ_ASSERT(aDrawEventRecorder);
*aDrawEventRecorder = nullptr; return NS_OK;
}
#ifdef MOZ_ENABLE_SKIA_PDF // This variable is independant of nsIPrintSettings::kOutputFormatPDF (i.e. // save-to-PDF). If set to true, then even when we print to a printer we // output and send it PDF. bool mPrintViaSkPDF = false; #endif
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.