Code

Fixed the parenting of the print dialog so that it cannot fall behind the main inksca...
[inkscape.git] / src / ui / dialog / print.h
1 /**
2  * \brief Print dialog
3  *
4  * Authors:
5  *   Kees Cook <kees@outflux.net>
6  *
7  * Copyright (C) 2007 Kees Cook
8  *
9  * Released under GNU GPL.  Read the file 'COPYING' for more information.
10  */
12 #ifndef INKSCAPE_UI_DIALOG_PRINT_H
13 #define INKSCAPE_UI_DIALOG_PRINT_H
15 #include <glibmm/i18n.h>
16 #include <gtkmm/printoperation.h> // GtkMM
17 #include <gtk/gtkprintoperation.h> // Gtk
19 #include "desktop.h"
20 #include "sp-item.h"
22 #include "ui/widget/rendering-options.h"
25 namespace Inkscape {
26 namespace UI {
27 namespace Dialog {
29 class Print {
30 public:
31     Print(SPDocument *doc, SPItem *base);
33     Gtk::PrintOperationResult run(Gtk::PrintOperationAction action, Gtk::Window& parentWindow);
34     //GtkPrintOperationResult run(GtkPrintOperationAction action);
36 protected:
37     Glib::RefPtr<Gtk::PrintOperation> _printop;
38     //GtkPrintOperation *_printop;
40     Gtk::Widget *_create_custom_widget ();
41     void    _custom_widget_apply (Gtk::Widget *widget);
42     void    _draw_page (const Glib::RefPtr<Gtk::PrintContext> &context,
43                           int page_nr);
45 private:
46     SPDocument *_doc;
47     SPItem     *_base;
48     Inkscape::UI::Widget::RenderingOptions _tab;
49 };
51 } // namespace Dialog
52 } // namespace UI
53 } // namespace Inkscape
55 #endif // INKSCAPE_UI_DIALOG_PRINT_H
57 /*
58   Local Variables:
59   mode:c++
60   c-file-style:"stroustrup"
61   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
62   indent-tabs-mode:nil
63   fill-column:99
64   End:
65 */
66 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :