示例#1
0
        private void on_print_settings(cef_print_handler_t *self, cef_print_settings_t *settings, int get_defaults)
        {
            CheckSelf(self);
            CefPrintSettings mSettings = CefPrintSettings.FromNative(settings);

            OnPrintSettings(mSettings, get_defaults != 0);
        }
        private void on_print_settings(cef_print_handler_t *self, cef_browser_t *browser, cef_print_settings_t *settings, int get_defaults)
        {
            CheckSelf(self);

            var mBrowser   = CefBrowser.FromNative(browser);
            var m_settings = CefPrintSettings.FromNative(settings);

            OnPrintSettings(mBrowser, m_settings, get_defaults != 0);
            m_settings.Dispose();
        }
示例#3
0
        /// <summary>
        /// Continue printing with the specified |settings|.
        /// </summary>
        public void Continue(CefPrintSettings settings)
        {
            cef_print_settings_t *m_settings = settings.ToNative();

            cef_print_dialog_callback_t.cont(_self, m_settings);
        }
示例#4
0
 /// <summary>
 /// Synchronize |settings| with client state. If |get_defaults| is true then
 /// populate |settings| with the default print settings. Do not keep a
 /// reference to |settings| outside of this callback.
 /// </summary>
 protected abstract void OnPrintSettings(CefPrintSettings settings, bool getDefaults);
示例#5
0
 /// <summary>
 /// Returns a writable copy of this object.
 /// </summary>
 public CefPrintSettings Copy()
 {
     return(CefPrintSettings.FromNative(
                cef_print_settings_t.copy(_self)
                ));
 }
示例#6
0
 /// <summary>
 /// Create a new CefPrintSettings object.
 /// </summary>
 public static CefPrintSettings Create()
 {
     return(CefPrintSettings.FromNative(
                cef_print_settings_t.create()
                ));
 }
示例#7
0
 /// <summary>
 /// Synchronize |settings| with client state. If |get_defaults| is true then
 /// populate |settings| with the default print settings. Do not keep a
 /// reference to |settings| outside of this callback.
 /// </summary>
 protected abstract void OnPrintSettings(CefPrintSettings settings, bool getDefaults);
示例#8
0
 /// <summary>
 /// Continue printing with the specified |settings|.
 /// </summary>
 public void Continue(CefPrintSettings settings)
 {
     cef_print_settings_t* m_settings = settings.ToNative();
     cef_print_dialog_callback_t.cont(_self, m_settings);
 }