[gtkmm] gtkmm: PrintJob: Add new methods:



commit b6f5c3db5f2d08fb6b8ca4b58e06227aa580bcb5
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Jul 27 11:55:15 2011 +0200

    gtkmm: PrintJob: Add new methods:
    
    * gtk/src/printjob.hg: Added set/get_pages(), set/get_page_set(),
    set/get_num_copies(), set/get_scale(), set/get_n_up(), set/get_n_up_layout(),
    set/get_rotate(), set/get_collate(), set/get_reverse().

 ChangeLog           |    8 ++++++++
 gtk/src/printjob.hg |   24 ++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d451d58..724b467 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-07-27  Murray Cumming  <murrayc murrayc com>
 
+	gtkmm: PrintJob: Add new methods:
+
+	* gtk/src/printjob.hg: Added set/get_pages(), set/get_page_set(), 
+	set/get_num_copies(), set/get_scale(), set/get_n_up(), set/get_n_up_layout(),
+	set/get_rotate(), set/get_collate(), set/get_reverse().
+
+2011-07-27  Murray Cumming  <murrayc murrayc com>
+
 	gtkmm: Add some properties.
 
 	* gtk/src/gtk_signals.defs: Regenerated.
diff --git a/gtk/src/printjob.hg b/gtk/src/printjob.hg
index c0ba039..315e5b2 100644
--- a/gtk/src/printjob.hg
+++ b/gtk/src/printjob.hg
@@ -82,6 +82,30 @@ public:
    */
   void send(const SlotPrintJobComplete& slot);
   _IGNORE(gtk_print_job_send)
+  
+  
+  _WRAP_METHOD(PrintPages get_pages() const, gtk_print_job_get_pages)
+  _WRAP_METHOD(void set_pages(PrintPages pages), gtk_print_job_set_pages)
+//TODO:  _WRAP_METHOD(PageRange* get_page_ranges(int *n_ranges), gtk_print_job_get_page_ranges)
+//TODO: _WRAP_METHOD(void set_page_ranges(GtkPageRange* ranges, int n_ranges), gtk_print_job_set_page_ranges)
+  _WRAP_METHOD(PageSet get_page_set() const, gtk_print_job_get_page_set)
+  _WRAP_METHOD(void set_page_set(PageSet page_set), gtk_print_job_set_page_set)
+  _WRAP_METHOD(int get_num_copies() const, gtk_print_job_get_num_copies)
+  _WRAP_METHOD(void set_num_copies(int num_copies), gtk_print_job_set_num_copies)
+  _WRAP_METHOD(double get_scale() const, gtk_print_job_get_scale)
+  _WRAP_METHOD(void set_scale(double scale), gtk_print_job_set_scale)
+  _WRAP_METHOD(guint get_n_up() const, gtk_print_job_get_n_up)
+  _WRAP_METHOD(void set_n_up(guint n_up), gtk_print_job_set_n_up)
+  _WRAP_METHOD(NumberUpLayout get_n_up_layout() const, gtk_print_job_get_n_up_layout)
+  _WRAP_METHOD(void set_n_up_layout(NumberUpLayout  layout), gtk_print_job_set_n_up_layout)
+  _WRAP_METHOD(bool get_rotate() const, gtk_print_job_get_rotate)
+  _WRAP_METHOD(void set_rotate(bool rotate = true), gtk_print_job_set_rotate)
+  _WRAP_METHOD(bool get_collate() const, gtk_print_job_get_collate)
+  _WRAP_METHOD(void set_collate(bool collate = true), gtk_print_job_set_collate)
+  _WRAP_METHOD(bool get_reverse() const, gtk_print_job_get_reverse)
+  _WRAP_METHOD(void set_reverse(bool reverse = true), gtk_print_job_set_reverse)
+
+
 
   _WRAP_SIGNAL(void status_changed(), "status_changed")
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]