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 165 FilePrintDialog(GtkWindow* parent, GtkPrintSettings* print_settings = 0,
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 =
"",
334 bool set_filename(
const char* filename,
bool manage_file =
false);
368 #ifdef CGU_USE_GLIB_MEMORY_SLICES_NO_COMPAT 373 #endif // CGU_USE_GTK 377 #endif // CGU_FILE_PRINTMANAGER_H
FilePrintManager & operator=(const FilePrintManager &)=delete
Emitter accepted
Definition: file_print_manager.h:114
virtual void on_delete_event()
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
This is a smart pointer for managing objects allocated on freestore which maintain their own referenc...
Definition: intrusive_ptr.h:98
Emitter rejected
Definition: file_print_manager.h:123
This is a class for managing the lifetime of top level widgets.
Definition: window.h:227
A wrapper class for pthread mutexes.
Definition: mutex.h:117
A print dialog class for FilePrintManager.
Definition: file_print_manager.h:65
This is a counter class providing the ref() and unref() functions required by IntrusivePtr, with a thread safe reference count..
Definition: intrusive_ptr.h:349
This file provides a thread-safe signal/slot mechanism, with automatic disconnection.
Provides wrapper classes for pthread mutexes and condition variables, and scoped locking classes for ...
Definition: application.h:44
virtual void on_close_request()
bool set_filename(const char *filename, bool manage_file=false)
A class to print a file using the GTK print system.
Definition: file_print_manager.h:234
A class to execute callbacks connected to it, with provision for automatic disconnection.
Definition: emitter.h:326
GobjHandle< GtkPrintSettings > get_settings() const
GtkPrinter * get_printer() 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)/"")
GtkPageSetup * get_page_setup() const
#define CGU_GLIB_MEMORY_SLICES_FUNCS
Definition: cgu_config.h:84
This file provides a Notifier class to provide thread-safe signalling between a worker thread and the...