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 163 #ifdef DOXYGEN_PARSING 164 FilePrintDialog(GtkWindow* parent, GtkPrintSettings* print_settings = 0,
165 const char* caption = 0, GdkPixbuf/GdkTexture* window_icon = 0);
166 #elif GTK_CHECK_VERSION(3,93,0) 167 FilePrintDialog(GtkWindow* parent, GtkPrintSettings* print_settings = 0,
168 const char* caption = 0, GdkTexture* window_icon = 0);
170 FilePrintDialog(GtkWindow* parent, GtkPrintSettings* print_settings = 0,
171 const char* caption = 0, GdkPixbuf* window_icon = 0);
237 #if GTK_CHECK_VERSION(3,93,0) 243 std::string filename;
257 #ifndef DOXYGEN_PARSING 303 #ifdef DOXYGEN_PARSING 305 const std::string& caption =
"",
307 #elif GTK_CHECK_VERSION(3,93,0) 309 const std::string& caption =
"",
313 const std::string& caption =
"",
332 bool set_filename(
const char* filename,
bool manage_file =
false);
366 #ifdef CGU_USE_GLIB_MEMORY_SLICES_NO_COMPAT 371 #endif // CGU_USE_GTK 375 #endif // CGU_FILE_PRINTMANAGER_H
FilePrintManager & operator=(const FilePrintManager &)=delete
FilePrintDialog(GtkWindow *parent, GtkPrintSettings *print_settings=0, const char *caption=0, GdkPixbuf/GdkTexture *window_icon=0)
Emitter accepted
Definition: file_print_manager.h:114
virtual void on_delete_event()
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
static Cgu::IntrusivePtr< Cgu::FilePrintManager > create_manager(GtkWindow *parent=0, const std::string &caption="", const GobjHandle< GdkPixbuf/GdkTexture > &window_icon=GobjHandle< GdkPixbuf/GdkTexture >(0))
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:233
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
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...