fb8876dc0500376fa39f87ac36db0228a586d825
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 printoperation
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 : public Gtk::PrintOperation {
30 public:
31 Print(SPDocument *doc, SPItem *base);
33 protected:
34 Gtk::Widget *on_create_custom_widget ();
36 void on_begin_print(const Glib::RefPtr<Gtk::PrintContext> &context);
37 bool on_paginate(const Glib::RefPtr<Gtk::PrintContext> &context);
38 void on_draw_page (const Glib::RefPtr<Gtk::PrintContext> &context,
39 int page_nr);
41 private:
42 SPDocument *_doc;
43 SPItem *_base;
44 Inkscape::UI::Widget::RenderingOptions _tab;
45 };
47 } // namespace Dialog
48 } // namespace UI
49 } // namespace Inkscape
51 #endif // INKSCAPE_UI_DIALOG_PRINT_H
53 /*
54 Local Variables:
55 mode:c++
56 c-file-style:"stroustrup"
57 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
58 indent-tabs-mode:nil
59 fill-column:99
60 End:
61 */
62 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :