More binary-bundling removal
[pdfmod:pdfmod.git] / lib / poppler-sharp / poppler-sharp / generated / PSFile.cs
1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
3
4 namespace Poppler {
5
6         using System;
7         using System.Collections;
8         using System.Runtime.InteropServices;
9
10 #region Autogenerated code
11         public class PSFile : GLib.Object {
12
13                 [Obsolete]
14                 protected PSFile(GLib.GType gtype) : base(gtype) {}
15                 public PSFile(IntPtr raw) : base(raw) {}
16
17                 [DllImport("poppler-glib")]
18                 static extern IntPtr poppler_ps_file_new(IntPtr document, IntPtr filename, int first_page, int n_pages);
19
20                 public PSFile (Poppler.Document document, string filename, int first_page, int n_pages) : base (IntPtr.Zero)
21                 {
22                         if (GetType () != typeof (PSFile)) {
23                                 throw new InvalidOperationException ("Can't override this constructor.");
24                         }
25                         IntPtr native_filename = GLib.Marshaller.StringToPtrGStrdup (filename);
26                         Raw = poppler_ps_file_new(document == null ? IntPtr.Zero : document.Handle, native_filename, first_page, n_pages);
27                         GLib.Marshaller.Free (native_filename);
28                 }
29
30                 [DllImport("poppler-glib")]
31                 static extern void poppler_ps_file_set_paper_size(IntPtr raw, double width, double height);
32
33                 public void SetPaperSize(double width, double height) {
34                         poppler_ps_file_set_paper_size(Handle, width, height);
35                 }
36
37                 [DllImport("poppler-glib")]
38                 static extern IntPtr poppler_ps_file_get_type();
39
40                 public static new GLib.GType GType { 
41                         get {
42                                 IntPtr raw_ret = poppler_ps_file_get_type();
43                                 GLib.GType ret = new GLib.GType(raw_ret);
44                                 return ret;
45                         }
46                 }
47
48                 [DllImport("poppler-glib")]
49                 static extern void poppler_ps_file_free(IntPtr raw);
50
51                 public void Free() {
52                         poppler_ps_file_free(Handle);
53                 }
54
55                 [DllImport("poppler-glib")]
56                 static extern void poppler_ps_file_set_duplex(IntPtr raw, bool duplex);
57
58                 public bool Duplex { 
59                         set {
60                                 poppler_ps_file_set_duplex(Handle, value);
61                         }
62                 }
63
64 #endregion
65         }
66 }