Esempio n. 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);
        }
Esempio n. 2
0
 public static void add_ref(cef_print_settings_t* self)
 {
     add_ref_delegate d;
     var p = self->_base._add_ref;
     if (p == _p0) { d = _d0; }
     else
     {
         d = (add_ref_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(add_ref_delegate));
         if (_p0 == IntPtr.Zero) { _d0 = d; _p0 = p; }
     }
     d(self);
 }
Esempio n. 3
0
 internal static CefPrintSettings FromNativeOrNull(cef_print_settings_t* ptr)
 {
     if (ptr == null) return null;
     return new CefPrintSettings(ptr);
 }
 public static void cont(cef_print_dialog_callback_t* self, cef_print_settings_t* settings)
 {
     cont_delegate d;
     var p = self->_cont;
     if (p == _p3) { d = _d3; }
     else
     {
         d = (cont_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(cont_delegate));
         if (_p3 == IntPtr.Zero) { _d3 = d; _p3 = p; }
     }
     d(self, settings);
 }
Esempio n. 5
0
 public static void set_duplex_mode(cef_print_settings_t* self, CefDuplexMode mode)
 {
     set_duplex_mode_delegate d;
     var p = self->_set_duplex_mode;
     if (p == _p18) { d = _d18; }
     else
     {
         d = (set_duplex_mode_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_duplex_mode_delegate));
         if (_p18 == IntPtr.Zero) { _d18 = d; _p18 = p; }
     }
     d(self, mode);
 }
Esempio n. 6
0
 public static void set_copies(cef_print_settings_t* self, int copies)
 {
     set_copies_delegate d;
     var p = self->_set_copies;
     if (p == _p16) { d = _d16; }
     else
     {
         d = (set_copies_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_copies_delegate));
         if (_p16 == IntPtr.Zero) { _d16 = d; _p16 = p; }
     }
     d(self, copies);
 }
Esempio n. 7
0
 public static void set_color_model(cef_print_settings_t* self, CefColorModel model)
 {
     set_color_model_delegate d;
     var p = self->_set_color_model;
     if (p == _p14) { d = _d14; }
     else
     {
         d = (set_color_model_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_color_model_delegate));
         if (_p14 == IntPtr.Zero) { _d14 = d; _p14 = p; }
     }
     d(self, model);
 }
Esempio n. 8
0
 public static void set_collate(cef_print_settings_t* self, int collate)
 {
     set_collate_delegate d;
     var p = self->_set_collate;
     if (p == _p12) { d = _d12; }
     else
     {
         d = (set_collate_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_collate_delegate));
         if (_p12 == IntPtr.Zero) { _d12 = d; _p12 = p; }
     }
     d(self, collate);
 }
Esempio n. 9
0
 public static int is_landscape(cef_print_settings_t* self)
 {
     is_landscape_delegate d;
     var p = self->_is_landscape;
     if (p == _p7) { d = _d7; }
     else
     {
         d = (is_landscape_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_landscape_delegate));
         if (_p7 == IntPtr.Zero) { _d7 = d; _p7 = p; }
     }
     return d(self);
 }
Esempio n. 10
0
 public static void set_orientation(cef_print_settings_t* self, int landscape)
 {
     set_orientation_delegate d;
     var p = self->_set_orientation;
     if (p == _p6) { d = _d6; }
     else
     {
         d = (set_orientation_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_orientation_delegate));
         if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; }
     }
     d(self, landscape);
 }
Esempio n. 11
0
 public static cef_print_settings_t* copy(cef_print_settings_t* self)
 {
     copy_delegate d;
     var p = self->_copy;
     if (p == _p5) { d = _d5; }
     else
     {
         d = (copy_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(copy_delegate));
         if (_p5 == IntPtr.Zero) { _d5 = d; _p5 = p; }
     }
     return d(self);
 }
Esempio n. 12
0
 public static int is_valid(cef_print_settings_t* self)
 {
     is_valid_delegate d;
     var p = self->_is_valid;
     if (p == _p3) { d = _d3; }
     else
     {
         d = (is_valid_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_valid_delegate));
         if (_p3 == IntPtr.Zero) { _d3 = d; _p3 = p; }
     }
     return d(self);
 }
Esempio n. 13
0
 public static int has_one_ref(cef_print_settings_t* self)
 {
     has_one_ref_delegate d;
     var p = self->_base._has_one_ref;
     if (p == _p2) { d = _d2; }
     else
     {
         d = (has_one_ref_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_one_ref_delegate));
         if (_p2 == IntPtr.Zero) { _d2 = d; _p2 = p; }
     }
     return d(self);
 }
Esempio n. 14
0
 public static int release(cef_print_settings_t* self)
 {
     release_delegate d;
     var p = self->_base._release;
     if (p == _p1) { d = _d1; }
     else
     {
         d = (release_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(release_delegate));
         if (_p1 == IntPtr.Zero) { _d1 = d; _p1 = p; }
     }
     return d(self);
 }
Esempio n. 15
0
 public static void set_selection_only(cef_print_settings_t* self, int selection_only)
 {
     set_selection_only_delegate d;
     var p = self->_set_selection_only;
     if (p == _p10) { d = _d10; }
     else
     {
         d = (set_selection_only_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_selection_only_delegate));
         if (_p10 == IntPtr.Zero) { _d10 = d; _p10 = p; }
     }
     d(self, selection_only);
 }
Esempio n. 16
0
 public static int is_selection_only(cef_print_settings_t* self)
 {
     is_selection_only_delegate d;
     var p = self->_is_selection_only;
     if (p == _p11) { d = _d11; }
     else
     {
         d = (is_selection_only_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_selection_only_delegate));
         if (_p11 == IntPtr.Zero) { _d11 = d; _p11 = p; }
     }
     return d(self);
 }
Esempio n. 17
0
 public static void set_printer_printable_area(cef_print_settings_t* self, cef_size_t* physical_size_device_units, cef_rect_t* printable_area_device_units, int landscape_needs_flip)
 {
     set_printer_printable_area_delegate d;
     var p = self->_set_printer_printable_area;
     if (p == _p8) { d = _d8; }
     else
     {
         d = (set_printer_printable_area_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_printer_printable_area_delegate));
         if (_p8 == IntPtr.Zero) { _d8 = d; _p8 = p; }
     }
     d(self, physical_size_device_units, printable_area_device_units, landscape_needs_flip);
 }
Esempio n. 18
0
 public static int will_collate(cef_print_settings_t* self)
 {
     will_collate_delegate d;
     var p = self->_will_collate;
     if (p == _p13) { d = _d13; }
     else
     {
         d = (will_collate_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(will_collate_delegate));
         if (_p13 == IntPtr.Zero) { _d13 = d; _p13 = p; }
     }
     return d(self);
 }
Esempio n. 19
0
 public static void set_device_name(cef_print_settings_t* self, cef_string_t* name)
 {
     set_device_name_delegate d;
     var p = self->_set_device_name;
     if (p == _p9) { d = _d9; }
     else
     {
         d = (set_device_name_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_device_name_delegate));
         if (_p9 == IntPtr.Zero) { _d9 = d; _p9 = p; }
     }
     d(self, name);
 }
Esempio n. 20
0
 public static CefColorModel get_color_model(cef_print_settings_t* self)
 {
     get_color_model_delegate d;
     var p = self->_get_color_model;
     if (p == _p15) { d = _d15; }
     else
     {
         d = (get_color_model_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_color_model_delegate));
         if (_p15 == IntPtr.Zero) { _d15 = d; _p15 = p; }
     }
     return d(self);
 }
Esempio n. 21
0
 public static cef_string_userfree* get_device_name(cef_print_settings_t* self)
 {
     get_device_name_delegate d;
     var p = self->_get_device_name;
     if (p == _pa) { d = _da; }
     else
     {
         d = (get_device_name_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_device_name_delegate));
         if (_pa == IntPtr.Zero) { _da = d; _pa = p; }
     }
     return d(self);
 }
Esempio n. 22
0
 public static int get_copies(cef_print_settings_t* self)
 {
     get_copies_delegate d;
     var p = self->_get_copies;
     if (p == _p17) { d = _d17; }
     else
     {
         d = (get_copies_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_copies_delegate));
         if (_p17 == IntPtr.Zero) { _d17 = d; _p17 = p; }
     }
     return d(self);
 }
Esempio n. 23
0
 public static void set_dpi(cef_print_settings_t* self, int dpi)
 {
     set_dpi_delegate d;
     var p = self->_set_dpi;
     if (p == _pb) { d = _db; }
     else
     {
         d = (set_dpi_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_dpi_delegate));
         if (_pb == IntPtr.Zero) { _db = d; _pb = p; }
     }
     d(self, dpi);
 }
Esempio n. 24
0
 public static CefDuplexMode get_duplex_mode(cef_print_settings_t* self)
 {
     get_duplex_mode_delegate d;
     var p = self->_get_duplex_mode;
     if (p == _p19) { d = _d19; }
     else
     {
         d = (get_duplex_mode_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_duplex_mode_delegate));
         if (_p19 == IntPtr.Zero) { _d19 = d; _p19 = p; }
     }
     return d(self);
 }
Esempio n. 25
0
 public static int get_dpi(cef_print_settings_t* self)
 {
     get_dpi_delegate d;
     var p = self->_get_dpi;
     if (p == _pc) { d = _dc; }
     else
     {
         d = (get_dpi_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_dpi_delegate));
         if (_pc == IntPtr.Zero) { _dc = d; _pc = p; }
     }
     return d(self);
 }
Esempio n. 26
0
 internal static CefPrintSettings FromNative(cef_print_settings_t* ptr)
 {
     return new CefPrintSettings(ptr);
 }
Esempio n. 27
0
 public static UIntPtr get_page_ranges_count(cef_print_settings_t* self)
 {
     get_page_ranges_count_delegate d;
     var p = self->_get_page_ranges_count;
     if (p == _pe) { d = _de; }
     else
     {
         d = (get_page_ranges_count_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_page_ranges_count_delegate));
         if (_pe == IntPtr.Zero) { _de = d; _pe = p; }
     }
     return d(self);
 }
Esempio n. 28
0
 private CefPrintSettings(cef_print_settings_t* ptr)
 {
     if (ptr == null) throw new ArgumentNullException("ptr");
     _self = ptr;
 }
Esempio n. 29
0
 public static void get_page_ranges(cef_print_settings_t* self, UIntPtr* rangesCount, cef_page_range_t* ranges)
 {
     get_page_ranges_delegate d;
     var p = self->_get_page_ranges;
     if (p == _pf) { d = _df; }
     else
     {
         d = (get_page_ranges_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_page_ranges_delegate));
         if (_pf == IntPtr.Zero) { _df = d; _pf = p; }
     }
     d(self, rangesCount, ranges);
 }