Go to the documentation of this file.
25 #ifndef CGU_FILE_PRINTMANAGER_H
26 #define CGU_FILE_PRINTMANAGER_H
35 #if GTK_CHECK_VERSION(2,14,0)
36 #include <gtk/gtkunixprint.h>
38 #include <gtk/gtkprintunixdialog.h>
39 #include <gtk/gtkprintjob.h>
40 #include <gtk/gtkprinter.h>
54 #if defined(DOXYGEN_PARSING) || defined(CGU_USE_GTK)
76 #ifndef DOXYGEN_PARSING
138 FilePrintDialog(GtkWindow* parent, GtkPrintSettings* print_settings = 0,
139 const char* caption = 0, GdkPixbuf* window_icon = 0);
206 std::string filename;
220 #ifndef DOXYGEN_PARSING
265 const std::string& caption =
"",
283 bool set_filename(
const char* filename,
bool manage_file =
false);
317 #ifdef CGU_USE_GLIB_MEMORY_SLICES_NO_COMPAT
322 #endif // CGU_USE_GTK
326 #endif // CGU_FILE_PRINTMANAGER_H
Emitter accepted
Definition: file_print_manager.h:90
This is a class for managing the lifetime of top level widgets.
Definition: window.h:226
Definition: application.h:44
This is a smart pointer for managing objects allocated on freestore which maintain their own referenc...
Definition: intrusive_ptr.h:98
A class to print a file using the GTK+ print system.
Definition: file_print_manager.h:200
Provides thread-safe signalling between a worker thread and the main program thread.
Definition: notifier.h:181
A print dialog class for FilePrintManager.
Definition: file_print_manager.h:65
GobjHandle< GtkPrintSettings > get_settings() const
This file provides a Notifier class to provide thread-safe signalling between a worker thread and the...
#define CGU_GLIB_MEMORY_SLICES_FUNCS
Definition: cgu_config.h:84
This is a counter class providing the ref() and unref() functions required by IntrusivePtr,...
Definition: intrusive_ptr.h:349
Emitter rejected
Definition: file_print_manager.h:99
bool set_filename(const char *filename, bool manage_file=false)
Provides wrapper classes for pthread mutexes and condition variables, and scoped locking classes for ...
FilePrintDialog(GtkWindow *parent, GtkPrintSettings *print_settings=0, const char *caption=0, GdkPixbuf *window_icon=0)
A class to execute callbacks connected to it, with provision for automatic disconnection.
Definition: emitter.h:307
GtkPrinter * get_printer() const
GtkPageSetup * get_page_setup() const
This file provides a thread-safe signal/slot mechanism, with automatic disconnection.
A wrapper class for pthread mutexes.
Definition: mutex.h:117
static Cgu::IntrusivePtr< Cgu::FilePrintManager > create_manager(GtkWindow *parent=0, const std::string &caption="", const GobjHandle< GdkPixbuf > &window_icon=GobjHandle< GdkPixbuf >(0))
virtual void on_delete_event()
FilePrintManager & operator=(const FilePrintManager &)=delete