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)
80 #if defined(DOXYGEN_PARSING) || GTK_CHECK_VERSION(3,94,0)
95 #if defined(DOXYGEN_PARSING) || !GTK_CHECK_VERSION(3,94,0)
100 #ifndef DOXYGEN_PARSING
164 #ifdef DOXYGEN_PARSING
166 const char* caption = 0, GdkPixbuf*/
const char* window_icon = 0);
167 #elif GTK_CHECK_VERSION(3,96,0)
168 FilePrintDialog(GtkWindow* parent, GtkPrintSettings* print_settings = 0,
169 const char* caption = 0,
const char* window_icon = 0);
171 FilePrintDialog(GtkWindow* parent, GtkPrintSettings* print_settings = 0,
172 const char* caption = 0, GdkPixbuf* window_icon = 0);
238 #if GTK_CHECK_VERSION(3,96,0)
239 std::string window_icon;
244 std::string filename;
258 #ifndef DOXYGEN_PARSING
305 #ifdef DOXYGEN_PARSING
307 const std::string& caption =
"",
309 #elif GTK_CHECK_VERSION(3,96,0)
311 const std::string& caption =
"",
312 const std::string& window_icon =
"");
315 const std::string& caption =
"",
368 #ifdef CGU_USE_GLIB_MEMORY_SLICES_NO_COMPAT
373 #endif // CGU_USE_GTK
377 #endif // CGU_FILE_PRINTMANAGER_H
Emitter accepted
Definition: file_print_manager.h:114
virtual void on_close_request()
This is a class for managing the lifetime of top level widgets.
Definition: window.h:230
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:234
FilePrintDialog(GtkWindow *parent, GtkPrintSettings *print_settings=0, const char *caption=0, GdkPixbuf */const char *window_icon=0)
Provides thread-safe signalling between a worker thread and the main program thread.
Definition: notifier.h:214
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:123
bool set_filename(const char *filename, bool manage_file=false)
Provides wrapper classes for pthread mutexes and condition variables, and scoped locking classes for ...
FilePrintManager(const FilePrintManager &)=delete
A class to execute callbacks connected to it, with provision for automatic disconnection.
Definition: emitter.h:496
GtkPrinter * get_printer() const
GtkPageSetup * get_page_setup() const
static Cgu::IntrusivePtr< Cgu::FilePrintManager > create_manager(GtkWindow *parent=0, const std::string &caption="", const GobjHandle< GdkPixbuf > &/const std::string &window_icon=GobjHandle< GdkPixbuf >(0)/"")
This file provides a thread-safe signal/slot mechanism, with automatic disconnection.
A wrapper class for pthread mutexes.
Definition: mutex.h:117
virtual void on_delete_event()
FilePrintManager & operator=(const FilePrintManager &)=delete