Beispiel #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();
        }
Beispiel #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);
        }
Beispiel #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);
Beispiel #5
0
 /// <summary>
 /// Returns a writable copy of this object.
 /// </summary>
 public CefPrintSettings Copy()
 {
     return(CefPrintSettings.FromNative(
                cef_print_settings_t.copy(_self)
                ));
 }
Beispiel #6
0
 /// <summary>
 /// Create a new CefPrintSettings object.
 /// </summary>
 public static CefPrintSettings Create()
 {
     return(CefPrintSettings.FromNative(
                cef_print_settings_t.create()
                ));
 }
Beispiel #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);
 /// <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);
 }