~ubuntu-branches/ubuntu/quantal/gtkmm3.0/quantal

« back to all changes in this revision

Viewing changes to gtk/gtkmm/printoperation.h

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-03-01 23:42:36 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20120301234236-12w6m0hkomhi7h53
Tags: 3.3.16-0ubuntu1
* New upstream version
* debian/control.in: updated the glib requirement

Show diffs side-by-side

added added

removed removed

Lines of Context:
276
276
   * 
277
277
   * This page setup will be used by run(),
278
278
   * but it can be overridden on a per-page basis by connecting
279
 
   * to the Gtk::PrintOperation::request-page-setup signal.
 
279
   * to the Gtk::PrintOperation::signal_request_page_setup() signal.
280
280
   * 
281
281
   * @newin{2,10}
282
282
   * @param default_page_setup A Gtk::PageSetup, or <tt>0</tt>.
349
349
   * 
350
350
   * This <em>must</em> be set to a positive number
351
351
   * before the rendering starts. It may be set in a 
352
 
   * Gtk::PrintOperation::begin-print signal hander.
 
352
   * Gtk::PrintOperation::signal_begin_print() signal hander.
353
353
   * 
354
354
   * Note that the page numbers passed to the 
355
 
   * Gtk::PrintOperation::request-page-setup 
356
 
   * and Gtk::PrintOperation::draw-page signals are 0-based, i.e. if 
357
 
   * the user chooses to print all pages, the last ::draw-page signal 
 
355
   * Gtk::PrintOperation::signal_request_page_setup() 
 
356
   * and Gtk::PrintOperation::signal_draw_page() signals are 0-based, i.e. if 
 
357
   * the user chooses to print all pages, the last signal_draw_page() signal 
358
358
   * will be for page @a n_pages - 1.
359
359
   * 
360
360
   * @newin{2,10}
456
456
   * 
457
457
   * Normally that this function does not return until the rendering of all 
458
458
   * pages is complete. You can connect to the 
459
 
   * Gtk::PrintOperation::status-changed signal on @a op to obtain some 
 
459
   * Gtk::PrintOperation::signal_status_changed() signal on @a op to obtain some 
460
460
   * information about the progress of the print operation. 
461
461
   * Furthermore, it may use a recursive mainloop to show the print dialog.
462
462
   * 
463
463
   * If you call set_allow_async() or set the 
464
 
   * Gtk::PrintOperation:allow-async property the operation will run 
 
464
   * Gtk::PrintOperation::property_allow_async() property the operation will run 
465
465
   * asynchronously if this is supported on the platform. The 
466
 
   * Gtk::PrintOperation::done signal will be emitted with the result of the 
 
466
   * Gtk::PrintOperation::signal_done() signal will be emitted with the result of the 
467
467
   * operation when the it is done (i.e. when the dialog is canceled, or when 
468
468
   * the print succeeds or fails).
469
469
   * 
 
470
   * [C example ellipted]
470
471
   * 
471
472
   * Note that run() can only be called once on a
472
473
   * given Gtk::PrintOperation.
480
481
   * the used print settings with get_print_settings() 
481
482
   * and store them for reuse with the next print operation. A value of
482
483
   * Gtk::PRINT_OPERATION_RESULT_IN_PROGRESS means the operation is running
483
 
   * asynchronously, and will emit the Gtk::PrintOperation::done signal when 
 
484
   * asynchronously, and will emit the Gtk::PrintOperation::signal_done() signal when 
484
485
   * done.
485
486
   */
486
487
  PrintOperationResult run(PrintOperationAction action, Window& parent);
508
509
  Glib::ustring get_status_string() const;
509
510
  
510
511
  /** Cancels a running print operation. This function may
511
 
   * be called from a Gtk::PrintOperation::begin-print, 
512
 
   * Gtk::PrintOperation::paginate or Gtk::PrintOperation::draw-page
 
512
   * be called from a Gtk::PrintOperation::signal_begin_print(), 
 
513
   * Gtk::PrintOperation::signal_paginate() or Gtk::PrintOperation::signal_draw_page()
513
514
   * signal handler to stop the currently running print 
514
515
   * operation.
515
516
   * 
561
562
   */
562
563
  void set_support_selection(bool support_selection =  true);
563
564
  
564
 
  /** Gets the value of Gtk::PrintOperation::support-selection property.
 
565
  /** Gets the value of Gtk::PrintOperation::property_support_selection() property.
565
566
   * 
566
567
   * @newin{2,18}
567
568
   * @return Whether the application supports print of selection.
572
573
   * 
573
574
   * Application has to set number of pages to which the selection
574
575
   * will draw by set_n_pages() in a callback of
575
 
   * Gtk::PrintOperation::begin-print.
 
576
   * Gtk::PrintOperation::signal_begin_print().
576
577
   * 
577
578
   * @newin{2,18}
578
579
   * @param has_selection <tt>true</tt> indicates that a selection exists.
579
580
   */
580
581
  void set_has_selection(bool has_selection =  true);
581
582
  
582
 
  /** Gets the value of Gtk::PrintOperation::has-selection property.
 
583
  /** Gets the value of Gtk::PrintOperation::property_has_selection() property.
583
584
   * 
584
585
   * @newin{2,18}
585
586
   * @return Whether there is a selection.
595
596
   */
596
597
  void set_embed_page_setup(bool embed =  true);
597
598
  
598
 
  /** Gets the value of Gtk::PrintOperation::embed-page-setup property.
 
599
  /** Gets the value of Gtk::PrintOperation::property_embed_page_setup() property.
599
600
   * 
600
601
   * @newin{2,18}
601
602
   * @return Whether page setup selection combos are embedded.
607
608
   * Note that this value is set during print preparation phase
608
609
   * (Gtk::PRINT_STATUS_PREPARING), so this function should never be
609
610
   * called before the data generation phase (Gtk::PRINT_STATUS_GENERATING_DATA).
610
 
   * You can connect to the Gtk::PrintOperation::status-changed signal
 
611
   * You can connect to the Gtk::PrintOperation::signal_status_changed() signal
611
612
   * and call get_n_pages_to_print() when
612
613
   * print status is Gtk::PRINT_STATUS_GENERATING_DATA.
613
614
   * This is typically used to track the progress of print operation.
622
623
  // that an error occurred, and in that case it is up to him to handle it.
623
624
  
624
625
  /**
625
 
   * @par Prototype:
 
626
   * @par Slot Prototype:
626
627
   * <tt>void on_my_%done(PrintOperationResult result)</tt>
 
628
   *
 
629
   * Emitted when the print operation run has finished doing
 
630
   * everything required for printing. 
 
631
   * 
 
632
   *  @a result gives you information about what happened during the run. 
 
633
   * If @a result is Gtk::PRINT_OPERATION_RESULT_ERROR then you can call
 
634
   * Gtk::PrintOperation::get_error() for more information.
 
635
   * 
 
636
   * If you enabled print status tracking then 
 
637
   * Gtk::PrintOperation::is_finished() may still return <tt>false</tt> 
 
638
   * after Gtk::PrintOperation::signal_done() was emitted.
 
639
   * 
 
640
   * @newin{2,10}
 
641
   * @param result The result of the print operation.
627
642
   */
628
643
 
 
644
 
629
645
  Glib::SignalProxy1< void,PrintOperationResult > signal_done();
630
646
 
631
647
 
632
648
  /**
633
 
   * @par Prototype:
 
649
   * @par Slot Prototype:
634
650
   * <tt>void on_my_%begin_print(const Glib::RefPtr<PrintContext>& context)</tt>
 
651
   *
 
652
   * Emitted after the user has finished changing print settings
 
653
   * in the dialog, before the actual rendering starts. 
 
654
   * 
 
655
   * A typical use for signal_begin_print() is to use the parameters from the
 
656
   * Gtk::PrintContext and paginate the document accordingly, and then
 
657
   * set the number of pages with Gtk::PrintOperation::set_n_pages().
 
658
   * 
 
659
   * @newin{2,10}
 
660
   * @param context The Gtk::PrintContext for the current operation.
635
661
   */
636
662
 
 
663
 
637
664
  Glib::SignalProxy1< void,const Glib::RefPtr<PrintContext>& > signal_begin_print();
638
665
 
639
666
  
640
667
  /**
641
 
   * @par Prototype:
 
668
   * @par Slot Prototype:
642
669
   * <tt>bool on_my_%paginate(const Glib::RefPtr<PrintContext>& context)</tt>
 
670
   *
 
671
   * Emitted after the Gtk::PrintOperation::signal_begin_print() signal, but before 
 
672
   * the actual rendering starts. It keeps getting emitted until a connected 
 
673
   * signal handler returns <tt>true</tt>.
 
674
   * 
 
675
   * The signal_paginate() signal is intended to be used for paginating a document
 
676
   * in small chunks, to avoid blocking the user interface for a long
 
677
   * time. The signal handler should update the number of pages using
 
678
   * Gtk::PrintOperation::set_n_pages(), and return <tt>true</tt> if the document
 
679
   * has been completely paginated.
 
680
   * 
 
681
   * If you don't need to do pagination in chunks, you can simply do
 
682
   * it all in the signal_begin_print() handler, and set the number of pages
 
683
   * from there.
 
684
   * 
 
685
   * @newin{2,10}
 
686
   * @param context The Gtk::PrintContext for the current operation.
 
687
   * @return <tt>true</tt> if pagination is complete.
643
688
   */
644
689
 
 
690
 
645
691
  Glib::SignalProxy1< bool,const Glib::RefPtr<PrintContext>& > signal_paginate();
646
692
 
647
693
 
648
694
  /**
649
 
   * @par Prototype:
 
695
   * @par Slot Prototype:
650
696
   * <tt>void on_my_%request_page_setup(const Glib::RefPtr<PrintContext>& context, int page_no, const Glib::RefPtr<PageSetup>& setup)</tt>
 
697
   *
 
698
   * Emitted once for every page that is printed, to give
 
699
   * the application a chance to modify the page setup. Any changes 
 
700
   * done to @a setup will be in force only for printing this page.
 
701
   * 
 
702
   * @newin{2,10}
 
703
   * @param context The Gtk::PrintContext for the current operation.
 
704
   * @param page_nr The number of the currently printed page (0-based).
 
705
   * @param setup The Gtk::PageSetup.
651
706
   */
652
707
 
 
708
 
653
709
  Glib::SignalProxy3< void,const Glib::RefPtr<PrintContext>&,int,const Glib::RefPtr<PageSetup>& > signal_request_page_setup();
654
710
 
655
711
  
656
712
  /**
657
 
   * @par Prototype:
 
713
   * @par Slot Prototype:
658
714
   * <tt>void on_my_%draw_page(const Glib::RefPtr<PrintContext>& context, int page_nr)</tt>
 
715
   *
 
716
   * Emitted for every page that is printed. The signal handler
 
717
   * must render the @a page_nr's page onto the cairo context obtained
 
718
   * from @a context using gtk_print_context_get_cairo_context().
 
719
   * 
 
720
   * [C example ellipted]
 
721
   * 
 
722
   * Use Gtk::PrintOperation::set_use_full_page() and 
 
723
   * Gtk::PrintOperation::set_unit() before starting the print operation
 
724
   * to set up the transformation of the cairo context according to your
 
725
   * needs.
 
726
   * 
 
727
   * @newin{2,10}
 
728
   * @param context The Gtk::PrintContext for the current operation.
 
729
   * @param page_nr The number of the currently printed page (0-based).
659
730
   */
660
731
 
 
732
 
661
733
  Glib::SignalProxy2< void,const Glib::RefPtr<PrintContext>&,int > signal_draw_page();
662
734
 
663
735
  
664
736
  /**
665
 
   * @par Prototype:
 
737
   * @par Slot Prototype:
666
738
   * <tt>void on_my_%end_print(const Glib::RefPtr<PrintContext>& context)</tt>
 
739
   *
 
740
   * Emitted after all pages have been rendered. 
 
741
   * A handler for this signal can clean up any resources that have
 
742
   * been allocated in the Gtk::PrintOperation::signal_begin_print() handler.
 
743
   * 
 
744
   * @newin{2,10}
 
745
   * @param context The Gtk::PrintContext for the current operation.
667
746
   */
668
747
 
 
748
 
669
749
  Glib::SignalProxy1< void,const Glib::RefPtr<PrintContext>& > signal_end_print();
670
750
 
671
751
  
672
752
  /**
673
 
   * @par Prototype:
 
753
   * @par Slot Prototype:
674
754
   * <tt>void on_my_%status_changed()</tt>
 
755
   *
 
756
   * Emitted at between the various phases of the print operation.
 
757
   * See Gtk::PrintStatus for the phases that are being discriminated.
 
758
   * Use Gtk::PrintOperation::get_status() to find out the current
 
759
   * status.
 
760
   * 
 
761
   * @newin{2,10}
675
762
   */
676
763
 
 
764
 
677
765
  Glib::SignalProxy0< void > signal_status_changed();
678
766
 
679
767
 
680
768
  /**
681
 
   * @par Prototype:
 
769
   * @par Slot Prototype:
682
770
   * <tt>Widget* on_my_%create_custom_widget()</tt>
 
771
   *
 
772
   * Emitted when displaying the print dialog. If you return a
 
773
   * widget in a handler for this signal it will be added to a custom
 
774
   * tab in the print dialog. You typically return a container widget
 
775
   * with multiple widgets in it.
 
776
   * 
 
777
   * The print dialog owns the returned widget, and its lifetime is not 
 
778
   * controlled by the application. However, the widget is guaranteed 
 
779
   * to stay around until the Gtk::PrintOperation::signal_custom_widget_apply() 
 
780
   * signal is emitted on the operation. Then you can read out any 
 
781
   * information you need from the widgets.
 
782
   * 
 
783
   * @newin{2,10}
 
784
   * @return A custom widget that gets embedded in
 
785
   * the print dialog, or <tt>0</tt>.
683
786
   */
684
787
 
 
788
 
685
789
  Glib::SignalProxy0< Widget* > signal_create_custom_widget();
686
790
 
687
791
 
688
792
  /**
689
 
   * @par Prototype:
 
793
   * @par Slot Prototype:
690
794
   * <tt>void on_my_%custom_widget_apply(Widget* widget)</tt>
 
795
   *
 
796
   * Emitted right before Gtk::PrintOperation::signal_begin_print() if you added
 
797
   * a custom widget in the Gtk::PrintOperation::signal_create_custom_widget() handler. 
 
798
   * When you get this signal you should read the information from the 
 
799
   * custom widgets, as the widgets are not guaraneed to be around at a 
 
800
   * later time.
 
801
   * 
 
802
   * @newin{2,10}
 
803
   * @param widget The custom widget added in create-custom-widget.
691
804
   */
692
805
 
 
806
 
693
807
  Glib::SignalProxy1< void,Widget* > signal_custom_widget_apply();
694
808
 
695
809
 
696
810
  //TODO: This is causing crashes. Is it still causing crashes? murrayc.
697
811
  
698
812
  /**
699
 
   * @par Prototype:
 
813
   * @par Slot Prototype:
700
814
   * <tt>bool on_my_%preview(const Glib::RefPtr<PrintOperationPreview>& preview, const Glib::RefPtr<PrintContext>& context, Window* parent)</tt>
 
815
   *
 
816
   * Gets emitted when a preview is requested from the native dialog.
 
817
   * 
 
818
   * The default handler for this signal uses an external viewer 
 
819
   * application to preview.
 
820
   * 
 
821
   * To implement a custom print preview, an application must return
 
822
   * <tt>true</tt> from its handler for this signal. In order to use the
 
823
   * provided @a context for the preview implementation, it must be
 
824
   * given a suitable cairo context with gtk_print_context_set_cairo_context().
 
825
   * 
 
826
   * The custom preview implementation can use 
 
827
   * Gtk::PrintOperationPreview::is_selected() and 
 
828
   * Gtk::PrintOperationPreview::render_page() to find pages which
 
829
   * are selected for print and render them. The preview must be
 
830
   * finished by calling Gtk::PrintOperationPreview::end_preview()
 
831
   * (typically in response to the user clicking a close button).
 
832
   * 
 
833
   * @newin{2,10}
 
834
   * @param preview The Gtk::PrintPreviewOperation for the current operation.
 
835
   * @param context The Gtk::PrintContext that will be used.
 
836
   * @param parent The Gtk::Window to use as window parent, or <tt>0</tt>.
 
837
   * @return <tt>true</tt> if the listener wants to take over control of the preview.
701
838
   */
702
839
 
 
840
 
703
841
  Glib::SignalProxy3< bool,const Glib::RefPtr<PrintOperationPreview>&,const Glib::RefPtr<PrintContext>&,Window* > signal_preview();
704
842
 
705
843
 
707
845
   
708
846
 
709
847
  /**
710
 
   * @par Prototype:
 
848
   * @par Slot Prototype:
711
849
   * <tt>void on_my_%update_custom_widget(Widget* widget, const Glib::RefPtr<PageSetup>& setup, const Glib::RefPtr<PrintSettings>& settings)</tt>
 
850
   *
 
851
   * Emitted after change of selected printer. The actual page setup and
 
852
   * print settings are passed to the custom widget, which can actualize
 
853
   * itself according to this change.
 
854
   * 
 
855
   * @newin{2,18}
 
856
   * @param widget The custom widget added in create-custom-widget.
 
857
   * @param setup Actual page setup.
 
858
   * @param settings Actual print settings.
712
859
   */
713
860
 
 
861
 
714
862
  Glib::SignalProxy3< void,Widget*,const Glib::RefPtr<PageSetup>&,const Glib::RefPtr<PrintSettings>& > signal_update_custom_widget();
715
863
 
716
864
 
717
865
  #ifdef GLIBMM_PROPERTIES_ENABLED
718
 
/** The GtkPageSetup used by default.
 
866
/** 
719
867
   *
720
868
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
721
869
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
735
883
#endif //#GLIBMM_PROPERTIES_ENABLED
736
884
 
737
885
  #ifdef GLIBMM_PROPERTIES_ENABLED
738
 
/** The GtkPrintSettings used for initializing the dialog.
 
886
/** 
739
887
   *
740
888
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
741
889
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
755
903
#endif //#GLIBMM_PROPERTIES_ENABLED
756
904
 
757
905
  #ifdef GLIBMM_PROPERTIES_ENABLED
758
 
/** A string used for identifying the print job.
 
906
/** 
759
907
   *
760
908
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
761
909
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
775
923
#endif //#GLIBMM_PROPERTIES_ENABLED
776
924
 
777
925
  #ifdef GLIBMM_PROPERTIES_ENABLED
778
 
/** The number of pages in the document.
 
926
/** 
779
927
   *
780
928
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
781
929
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
795
943
#endif //#GLIBMM_PROPERTIES_ENABLED
796
944
 
797
945
  #ifdef GLIBMM_PROPERTIES_ENABLED
798
 
/** The current page in the document.
 
946
/** 
799
947
   *
800
948
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
801
949
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
815
963
#endif //#GLIBMM_PROPERTIES_ENABLED
816
964
 
817
965
  #ifdef GLIBMM_PROPERTIES_ENABLED
818
 
/** TRUE if the origin of the context should be at the corner of the page and not the corner of the imageable area.
 
966
/** 
819
967
   *
820
968
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
821
969
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
835
983
#endif //#GLIBMM_PROPERTIES_ENABLED
836
984
 
837
985
  #ifdef GLIBMM_PROPERTIES_ENABLED
838
 
/** TRUE if the print operation will continue to report on the print job status after the print data has been sent to the printer or print server.
 
986
/** 
839
987
   *
840
988
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
841
989
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
855
1003
#endif //#GLIBMM_PROPERTIES_ENABLED
856
1004
 
857
1005
  #ifdef GLIBMM_PROPERTIES_ENABLED
858
 
/** The unit in which distances can be measured in the context.
 
1006
/** 
859
1007
   *
860
1008
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
861
1009
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
875
1023
#endif //#GLIBMM_PROPERTIES_ENABLED
876
1024
 
877
1025
  #ifdef GLIBMM_PROPERTIES_ENABLED
878
 
/** TRUE if a progress dialog is shown while printing.
 
1026
/** 
879
1027
   *
880
1028
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
881
1029
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
895
1043
#endif //#GLIBMM_PROPERTIES_ENABLED
896
1044
 
897
1045
  #ifdef GLIBMM_PROPERTIES_ENABLED
898
 
/** TRUE if print process may run asynchronous.
 
1046
/** 
899
1047
   *
900
1048
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
901
1049
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
915
1063
#endif //#GLIBMM_PROPERTIES_ENABLED
916
1064
 
917
1065
  #ifdef GLIBMM_PROPERTIES_ENABLED
918
 
/** Export filename.
 
1066
/** 
919
1067
   *
920
1068
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
921
1069
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
935
1083
#endif //#GLIBMM_PROPERTIES_ENABLED
936
1084
 
937
1085
  #ifdef GLIBMM_PROPERTIES_ENABLED
938
 
/** The status of the print operation.
 
1086
/** 
939
1087
   *
940
1088
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
941
1089
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
946
1094
 
947
1095
 
948
1096
  #ifdef GLIBMM_PROPERTIES_ENABLED
949
 
/** A human-readable description of the status.
 
1097
/** 
950
1098
   *
951
1099
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
952
1100
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
957
1105
 
958
1106
 
959
1107
  #ifdef GLIBMM_PROPERTIES_ENABLED
960
 
/** Label for the tab containing custom widgets.
 
1108
/** 
961
1109
   *
962
1110
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
963
1111
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
977
1125
#endif //#GLIBMM_PROPERTIES_ENABLED
978
1126
 
979
1127
  #ifdef GLIBMM_PROPERTIES_ENABLED
980
 
/** TRUE if the print operation will support print of selection.
 
1128
/** 
981
1129
   *
982
1130
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
983
1131
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
997
1145
#endif //#GLIBMM_PROPERTIES_ENABLED
998
1146
 
999
1147
  #ifdef GLIBMM_PROPERTIES_ENABLED
1000
 
/** TRUE if a selection exists.
 
1148
/** 
1001
1149
   *
1002
1150
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
1003
1151
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
1017
1165
#endif //#GLIBMM_PROPERTIES_ENABLED
1018
1166
 
1019
1167
  #ifdef GLIBMM_PROPERTIES_ENABLED
1020
 
/** TRUE if page setup combos are embedded in GtkPrintDialog.
 
1168
/** 
1021
1169
   *
1022
1170
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
1023
1171
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
1037
1185
#endif //#GLIBMM_PROPERTIES_ENABLED
1038
1186
 
1039
1187
  #ifdef GLIBMM_PROPERTIES_ENABLED
1040
 
/** The number of pages that will be printed.
 
1188
/** 
1041
1189
   *
1042
1190
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
1043
1191
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
1056
1204
  //GTK+ Virtual Functions (override these to change behaviour):
1057
1205
 
1058
1206
  //Default Signal Handlers::
 
1207
  /// This is a default handler for the signal signal_done().
1059
1208
  virtual void on_done(PrintOperationResult result);
 
1209
  /// This is a default handler for the signal signal_begin_print().
1060
1210
  virtual void on_begin_print(const Glib::RefPtr<PrintContext>& context);
 
1211
  /// This is a default handler for the signal signal_paginate().
1061
1212
  virtual bool on_paginate(const Glib::RefPtr<PrintContext>& context);
 
1213
  /// This is a default handler for the signal signal_request_page_setup().
1062
1214
  virtual void on_request_page_setup(const Glib::RefPtr<PrintContext>& context, int page_no, const Glib::RefPtr<PageSetup>& setup);
 
1215
  /// This is a default handler for the signal signal_draw_page().
1063
1216
  virtual void on_draw_page(const Glib::RefPtr<PrintContext>& context, int page_nr);
 
1217
  /// This is a default handler for the signal signal_end_print().
1064
1218
  virtual void on_end_print(const Glib::RefPtr<PrintContext>& context);
 
1219
  /// This is a default handler for the signal signal_status_changed().
1065
1220
  virtual void on_status_changed();
 
1221
  /// This is a default handler for the signal signal_create_custom_widget().
1066
1222
  virtual Widget* on_create_custom_widget();
 
1223
  /// This is a default handler for the signal signal_custom_widget_apply().
1067
1224
  virtual void on_custom_widget_apply(Widget* widget);
 
1225
  /// This is a default handler for the signal signal_preview().
1068
1226
  virtual bool on_preview(const Glib::RefPtr<PrintOperationPreview>& preview, const Glib::RefPtr<PrintContext>& context, Window* parent);
1069
1227
 
1070
1228