/// <summary> /// Called to allow customization of standard print options before the /// print dialog is displayed. |printOptions| allows specification of /// paper size, orientation and margins. Note that the specified margins /// may be adjusted if they are outside the range supported by the /// printer. All units are in inches. Return false to display the default /// print options or true to display the modified |printOptions|. /// </summary> private int get_print_options(cef_print_handler_t *self, cef_browser_t *browser, cef_print_options_t *printOptions) { ThrowIfObjectDisposed(); var m_browser = CefBrowser.From(browser); var m_printOptions = CefPrintOptions.From(printOptions); var handled = this.GetPrintOptions(m_browser, m_printOptions); m_printOptions.Dispose(); return(handled ? 1 : 0); }
/// <summary> /// Called to allow customization of standard print options before the print dialog is displayed. /// |printOptions| allows specification of paper size, orientation and margins. /// Note that the specified margins may be adjusted if they are outside the range supported by the printer. /// All units are in inches. /// Return false to display the default print options /// or true to display the modified |printOptions|. /// </summary> protected virtual bool GetPrintOptions(CefBrowser browser, CefPrintOptions printOptions) { return false; }
/// <summary> /// Called to allow customization of standard print options before the print dialog is displayed. /// |printOptions| allows specification of paper size, orientation and margins. /// Note that the specified margins may be adjusted if they are outside the range supported by the printer. /// All units are in inches. /// Return false to display the default print options /// or true to display the modified |printOptions|. /// </summary> protected virtual bool GetPrintOptions(CefBrowser browser, CefPrintOptions printOptions) { return(false); }