]> git.sur5r.net Git - glabels/blobdiff - glabels2/src/print-op.c
2009-09-22 Jim Evins <evins@snaught.com>
[glabels] / glabels2 / src / print-op.c
index 8414d872ea3495b6f7ee881f92b56fb0b43ac64a..2c78f488978042944b1382ba6cb22bfd031e2335 100644 (file)
@@ -1,46 +1,40 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
 /*
- *  (GLABELS) Label and Business Card Creation program for GNOME
- *
- *  print-op.c:  Print operation module
+ *  print-op.c
+ *  Copyright (C) 2001-2009  Jim Evins <evins@snaught.com>.
  *
- *  Copyright (C) 2001-2007  Jim Evins <evins@snaught.com>.
+ *  This file is part of gLabels.
  *
- *  This program is free software; you can redistribute it and/or modify
+ *  gLabels is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
+ *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
- *  This program is distributed in the hope that it will be useful,
+ *  gLabels is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ *  along with gLabels.  If not, see <http://www.gnu.org/licenses/>.
  */
+
 #include <config.h>
 
 #include "print-op.h"
 
 #include <glib/gi18n.h>
-#include <gtk/gtkbuilder.h>
+#include <gtk/gtk.h>
 #include <math.h>
 #include <time.h>
 #include <ctype.h>
-#include <gtk/gtktogglebutton.h>
 
-#include <libglabels/db.h>
+#include <libglabels/libglabels.h>
 #include "print.h"
 #include "label.h"
 
-#include "wdgt-print-copies.h"
-#include "wdgt-print-merge.h"
-
 #include "debug.h"
 
+
 /*===========================================*/
 /* Private data types                        */
 /*===========================================*/
@@ -49,20 +43,6 @@ struct _glPrintOpPrivate {
 
        glLabel   *label;
 
-        GtkBuilder *gui;
-
-       GtkWidget *simple_frame;
-       GtkWidget *copies_vbox;
-       GtkWidget *copies;
-
-       GtkWidget *merge_frame;
-       GtkWidget *prmerge_vbox;
-       GtkWidget *prmerge;
-
-       GtkWidget *outline_check;
-       GtkWidget *reverse_check;
-       GtkWidget *crop_marks_check;
-
         gboolean   force_outline_flag;
 
         gchar     *filename;
@@ -103,36 +83,16 @@ struct _glPrintOpSettings
 /* Private globals                           */
 /*===========================================*/
 
+
 /*===========================================*/
 /* Local function prototypes                 */
 /*===========================================*/
 
-static void     gl_print_op_finalize      (GObject            *object);
-
-static void     gl_print_op_construct       (glPrintOp          *op,
-                                             glLabel            *label);
-
-static void     gl_print_op_construct_batch (glPrintOp          *op,
-                                             glLabel            *label,
-                                             gchar              *filename,
-                                             gint                n_sheets,
-                                             gint                n_copies,
-                                             gint                first,
-                                             gboolean            outline_flag,
-                                             gboolean            reverse_flag,
-                                             gboolean            crop_marks_flag);
-
+static void     gl_print_op_finalize          (GObject           *object);
 
 static void     set_page_size                 (glPrintOp         *op,
                                                glLabel           *label);
 
-static GObject *create_custom_widget_cb       (GtkPrintOperation *operation,
-                                               gpointer           user_data);
-
-static void     custom_widget_apply_cb        (GtkPrintOperation *operation,
-                                               GtkWidget         *widget,
-                                               gpointer           user_data);
-
 static void     begin_print_cb                (GtkPrintOperation *operation,
                                                GtkPrintContext   *context,
                                                gpointer           user_data);
@@ -143,13 +103,12 @@ static void     draw_page_cb                  (GtkPrintOperation *operation,
                                                gpointer           user_data);
 
 
-
-\f
 /*****************************************************************************/
 /* Boilerplate object stuff.                                                 */
 /*****************************************************************************/
 G_DEFINE_TYPE (glPrintOp, gl_print_op, GTK_TYPE_PRINT_OPERATION);
 
+
 static void
 gl_print_op_class_init (glPrintOpClass *class)
 {
@@ -162,6 +121,7 @@ gl_print_op_class_init (glPrintOpClass *class)
        object_class->finalize = gl_print_op_finalize;
 }
 
+
 static void
 gl_print_op_init (glPrintOp *op)
 {
@@ -175,10 +135,11 @@ gl_print_op_init (glPrintOp *op)
 
 }
 
+
 static void 
 gl_print_op_finalize (GObject *object)
 {
-       glPrintOpop = GL_PRINT_OP (object);
+       glPrintOp *op = GL_PRINT_OP (object);
        
        gl_debug (DEBUG_PRINT, "");
 
@@ -186,12 +147,7 @@ gl_print_op_finalize (GObject *object)
         g_return_if_fail (GL_IS_PRINT_OP (op));
        g_return_if_fail (op->priv != NULL);
 
-       if (op->priv->label) {
-               g_object_unref (G_OBJECT(op->priv->label));
-       }
-       if (op->priv->gui) {
-               g_object_unref (G_OBJECT(op->priv->gui));
-       }
+        g_object_unref (G_OBJECT(op->priv->label));
         g_free (op->priv->filename);
        g_free (op->priv);
 
@@ -200,6 +156,7 @@ gl_print_op_finalize (GObject *object)
        g_free (op->priv);
 }
 
+
 /*****************************************************************************/
 /* NEW print op.                                                         */
 /*****************************************************************************/
@@ -217,20 +174,24 @@ gl_print_op_new (glLabel      *label)
        return op;
 }
 
-/*--------------------------------------------------------------------------*/
-/* PRIVATE.  Construct op.                                              */
-/*--------------------------------------------------------------------------*/
-static void
+
+/*****************************************************************************/
+/* Construct print op.                                                       */
+/*****************************************************************************/
+void
 gl_print_op_construct (glPrintOp      *op,
                        glLabel        *label)
 {
+        glMerge                *merge = NULL;
         const lglTemplateFrame *frame;
 
        op->priv->label              = label;
        op->priv->force_outline_flag = FALSE;
 
+        merge = gl_label_get_merge (label);
         frame = (lglTemplateFrame *)label->template->frames->data;
 
+        op->priv->merge_flag         = (merge != NULL);
         op->priv->n_sheets           = 1;
         op->priv->first              = 1;
         op->priv->last               = lgl_template_frame_get_n_labels (frame);
@@ -241,12 +202,6 @@ gl_print_op_construct (glPrintOp      *op,
        gtk_print_operation_set_custom_tab_label ( GTK_PRINT_OPERATION (op),
                                                   _("Labels"));
 
-       g_signal_connect (G_OBJECT (op), "create-custom-widget",
-                         G_CALLBACK (create_custom_widget_cb), label);
-
-       g_signal_connect (G_OBJECT (op), "custom-widget-apply",
-                         G_CALLBACK (custom_widget_apply_cb), label);
-
        g_signal_connect (G_OBJECT (op), "begin-print",
                          G_CALLBACK (begin_print_cb), label);
 
@@ -254,173 +209,175 @@ gl_print_op_construct (glPrintOp      *op,
                          G_CALLBACK (draw_page_cb), label);
 }
 
+
 /*****************************************************************************/
-/* NEW batch print operation.                                                */
+/* Set outline flag/checkbox.                                                */
 /*****************************************************************************/
-glPrintOp *
-gl_print_op_new_batch (glLabel       *label,
-                       gchar         *filename,
-                       gint           n_sheets,
-                       gint           n_copies,
-                       gint           first,
-                       gboolean       outline_flag,
-                       gboolean       reverse_flag,
-                       gboolean       crop_marks_flag)
+void
+gl_print_op_force_outline (glPrintOp *op)
 {
-       glPrintOp *op;
-
-       gl_debug (DEBUG_PRINT, "");
-
-       op = GL_PRINT_OP (g_object_new (GL_TYPE_PRINT_OP, NULL));
+        op->priv->force_outline_flag = TRUE;
+}
 
-       gl_print_op_construct_batch (GL_PRINT_OP(op),
-                                         label,
-                                         filename,
-                                         n_sheets,
-                                         n_copies,
-                                         first,
-                                         outline_flag,
-                                         reverse_flag,
-                                         crop_marks_flag);
 
-       return op;
+/*****************************************************************************/
+/* Set outline flag/checkbox.                                                */
+/*****************************************************************************/
+gboolean
+gl_print_op_is_outline_forced (glPrintOp *op)
+{
+        return op->priv->force_outline_flag;
 }
 
+
 /*****************************************************************************/
-/* Get print operation settings.                                             */
+/* Set job parameters.                                                       */
 /*****************************************************************************/
-glPrintOpSettings *
-gl_print_op_get_settings (glPrintOp         *print_op)
+void
+gl_print_op_set_filename (glPrintOp *op,
+                          gchar     *filename)
 {
-        glPrintOpSettings *settings;
+        gtk_print_operation_set_export_filename (GTK_PRINT_OPERATION (op),
+                                                 filename);
+}
 
-        settings = g_new0 (glPrintOpSettings, 1);
 
-        if ( settings )
-        {
-                settings->gtk_settings =
-                        gtk_print_operation_get_print_settings (GTK_PRINT_OPERATION (print_op));
+void
+gl_print_op_set_n_sheets (glPrintOp *op,
+                          gint       n_sheets)
+{
+        op->priv->n_sheets = n_sheets;
+}
 
-                settings->outline_flag     = print_op->priv->outline_flag;
-                settings->reverse_flag     = print_op->priv->reverse_flag;
-                settings->crop_marks_flag  = print_op->priv->crop_marks_flag;
-                settings->collate_flag     = print_op->priv->collate_flag;
 
-                settings->first            = print_op->priv->first;
-                settings->last             = print_op->priv->last;
-                settings->n_sheets         = print_op->priv->n_sheets;
-                settings->n_copies         = print_op->priv->n_copies;
-        }
+void
+gl_print_op_set_n_copies (glPrintOp *op,
+                          gint       n_copies)
+{
+        op->priv->n_copies = n_copies;
+}
 
-        return settings;
+
+void
+gl_print_op_set_first (glPrintOp *op,
+                       gint       first)
+{
+        op->priv->first = first;
 }
 
-/*****************************************************************************/
-/* Set print operation settings.                                             */
-/*****************************************************************************/
+
 void
-gl_print_op_set_settings (glPrintOp         *print_op,
-                          glPrintOpSettings *settings)
+gl_print_op_set_last (glPrintOp *op,
+                      gint       last)
 {
+        op->priv->last = last;
+}
 
-        if ( settings )
-        {
-                gtk_print_operation_set_print_settings (GTK_PRINT_OPERATION (print_op),
-                                                        settings->gtk_settings);
 
-                print_op->priv->outline_flag     = settings->outline_flag;
-                print_op->priv->reverse_flag     = settings->reverse_flag;
-                print_op->priv->crop_marks_flag  = settings->crop_marks_flag;
-                print_op->priv->collate_flag     = settings->collate_flag;
+void
+gl_print_op_set_collate_flag (glPrintOp *op,
+                              gboolean   collate_flag)
+{
+        op->priv->collate_flag = collate_flag;
+}
 
-                print_op->priv->first            = settings->first;
-                print_op->priv->last             = settings->last;
-                print_op->priv->n_sheets         = settings->n_sheets;
-                print_op->priv->n_copies         = settings->n_copies;
-        }
 
- }
+void
+gl_print_op_set_outline_flag (glPrintOp *op,
+                              gboolean   outline_flag)
+{
+        op->priv->outline_flag = outline_flag;
+}
+
+
+void
+gl_print_op_set_reverse_flag (glPrintOp *op,
+                              gboolean   reverse_flag)
+{
+        op->priv->reverse_flag = reverse_flag;
+}
+
+
+void
+gl_print_op_set_crop_marks_flag (glPrintOp *op,
+                                 gboolean   crop_marks_flag)
+{
+        op->priv->crop_marks_flag = crop_marks_flag;
+}
+
 
 /*****************************************************************************/
-/* Free print operation settings structure.                                  */
+/* Get job parameters.                                                       */
 /*****************************************************************************/
-void
-gl_print_op_free_settings(glPrintOpSettings *settings)
+gchar *
+gl_print_op_get_filename (glPrintOp *op)
 {
-        
-        if ( settings )
-        {
-                if ( settings->gtk_settings )
-                {
-                        g_object_unref (settings->gtk_settings);
-                }
+        gchar *filename = NULL;
 
-                g_free (settings);
-        }
+        g_object_get (G_OBJECT (op),
+                      "export_filename", filename,
+                      NULL);
+
+        return filename;
 }
 
-/*--------------------------------------------------------------------------*/
-/* PRIVATE.  Construct op.                                                  */
-/*--------------------------------------------------------------------------*/
-static void
-gl_print_op_construct_batch (glPrintOp      *op,
-                             glLabel        *label,
-                             gchar          *filename,
-                             gint            n_sheets,
-                             gint            n_copies,
-                             gint            first,
-                             gboolean        outline_flag,
-                             gboolean        reverse_flag,
-                             gboolean        crop_marks_flag)
 
+gint
+gl_print_op_get_n_sheets (glPrintOp *op)
 {
-        glMerge                *merge = NULL;
-        const lglTemplateFrame *frame = NULL;
+        return op->priv->n_sheets;
+}
 
-       op->priv->label              = label;
-       op->priv->force_outline_flag = FALSE;
-        op->priv->filename           = g_strdup (filename);
-        op->priv->n_sheets           = n_sheets;
-        op->priv->n_copies           = n_copies;
-        op->priv->first              = first;
-        op->priv->outline_flag       = outline_flag;
-        op->priv->reverse_flag       = reverse_flag;
-        op->priv->crop_marks_flag    = crop_marks_flag;
 
-        merge = gl_label_get_merge (label);
+gint
+gl_print_op_get_n_copies (glPrintOp *op)
+{
+        return op->priv->n_copies;
+}
 
-        frame = (lglTemplateFrame *)label->template->frames->data;
-        if (merge == NULL)
-        {
-                op->priv->merge_flag = FALSE;
 
-                op->priv->last = lgl_template_frame_get_n_labels (frame);
+gint
+gl_print_op_get_first (glPrintOp *op)
+{
+        return op->priv->first;
+}
 
-        }
-        else
-        {
-                op->priv->merge_flag = TRUE;
 
-                op->priv->n_sheets =
-                        ceil ((double)(first-1 + n_copies * gl_merge_get_record_count(merge))
-                              / lgl_template_frame_get_n_labels (frame));;
+gint
+gl_print_op_get_last (glPrintOp *op)
+{
+        return op->priv->last;
+}
 
-                g_object_unref (G_OBJECT(merge));
 
-        }
+gboolean
+gl_print_op_get_collate_flag (glPrintOp *op)
+{
+        return op->priv->collate_flag;
+}
 
-        set_page_size (op, label);
 
-        gtk_print_operation_set_export_filename (GTK_PRINT_OPERATION (op),
-                                                 filename);
+gboolean
+gl_print_op_get_outline_flag (glPrintOp *op)
+{
+        return op->priv->outline_flag;
+}
 
-       g_signal_connect (G_OBJECT (op), "begin-print",
-                         G_CALLBACK (begin_print_cb), label);
 
-       g_signal_connect (G_OBJECT (op), "draw-page",
-                         G_CALLBACK (draw_page_cb), label);
+gboolean
+gl_print_op_get_reverse_flag (glPrintOp *op)
+{
+        return op->priv->reverse_flag;
 }
 
+
+gboolean
+gl_print_op_get_crop_marks_flag (glPrintOp *op)
+{
+        return op->priv->crop_marks_flag;
+}
+
+
 /*--------------------------------------------------------------------------*/
 /* PRIVATE.  Set page size.                                                 */
 /*--------------------------------------------------------------------------*/
@@ -474,150 +431,83 @@ set_page_size (glPrintOp  *op,
        gl_debug (DEBUG_PRINT, "end");
 }
 
-/*--------------------------------------------------------------------------*/
-/* PRIVATE.  "Create custom widget" callback                                */
-/*--------------------------------------------------------------------------*/
-static GObject *
-create_custom_widget_cb (GtkPrintOperation *operation,
-                        gpointer           user_data)
-{
-       GtkBuilder    *gui;
-        GError        *error = NULL;
-       glPrintOp     *op = GL_PRINT_OP (operation);
-       glLabel       *label  = GL_LABEL (user_data);
-       GtkWidget     *vbox;
-        glMerge       *merge = NULL;
-
-       gui = gtk_builder_new ();
-        gtk_builder_add_from_file (gui,
-                                   GLABELS_BUILDER_DIR "print-custom-widget.builder",
-                                   &error);
-       if (error) {
-               g_critical ("%s\n\ngLabels may not be installed correctly!", error->message);
-                g_error_free (error);
-               return;
-       }
-
-        gl_util_get_builder_widgets (gui,
-                                     "print_custom_widget_vbox", &vbox,
-                                     "simple_frame",             &op->priv->simple_frame,
-                                     "copies_vbox",              &op->priv->copies_vbox,
-                                     "merge_frame",              &op->priv->merge_frame,
-                                     "prmerge_vbox",             &op->priv->prmerge_vbox,
-                                     "outline_check",            &op->priv->outline_check,
-                                     "reverse_check",            &op->priv->reverse_check,
-                                     "crop_marks_check",         &op->priv->crop_marks_check,
-                                     NULL);
-
-       /* ----- Simple print control ----- */
-       op->priv->copies = gl_wdgt_print_copies_new (label);
-       gtk_box_pack_start (GTK_BOX(op->priv->copies_vbox),
-                           op->priv->copies, FALSE, FALSE, 0);
-
-       /* ----- Merge print control ----- */
-       op->priv->prmerge = gl_wdgt_print_merge_new (label);
-       gtk_box_pack_start (GTK_BOX(op->priv->prmerge_vbox),
-                           op->priv->prmerge, FALSE, FALSE, 0);
-
-
-        op->priv->gui = gui;
 
-        
-        /* ---- Activate either simple or merge print control widgets. ---- */
-        merge = gl_label_get_merge (op->priv->label);
-       if (merge == NULL) {
-
-                gl_wdgt_print_copies_set_range (GL_WDGT_PRINT_COPIES (op->priv->copies),
-                                                op->priv->n_sheets,
-                                                op->priv->first,
-                                                op->priv->last);
-
-               gtk_widget_show_all (op->priv->simple_frame);
-               gtk_widget_hide_all (op->priv->merge_frame);
-
-       } else {
-
-               gint n_records = gl_merge_get_record_count( merge );
-                gl_wdgt_print_merge_set_copies (GL_WDGT_PRINT_MERGE (op->priv->prmerge),
-                                                op->priv->n_copies,
-                                                op->priv->first,
-                                                n_records,
-                                                op->priv->collate_flag);
-               g_object_unref (G_OBJECT(merge));
-
-               gtk_widget_hide_all (op->priv->simple_frame);
-               gtk_widget_show_all (op->priv->merge_frame);
-       }
-
-        /* --- Set options --- */
-        gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (op->priv->outline_check),
-                                      op->priv->outline_flag);
-        gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (op->priv->reverse_check),
-                                      op->priv->reverse_flag);
-        gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (op->priv->crop_marks_check),
-                                      op->priv->crop_marks_flag);
-
-        /* --- Do we need to force the outline flag --- */
-        if (op->priv->force_outline_flag)
+/*****************************************************************************/
+/* Get print operation settings.                                             */
+/*****************************************************************************/
+glPrintOpSettings *
+gl_print_op_get_settings (glPrintOp         *print_op)
+{
+        glPrintOpSettings *settings;
+
+        settings = g_new0 (glPrintOpSettings, 1);
+
+        if ( settings )
         {
-                gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(op->priv->outline_check),
-                                              TRUE);
+                settings->gtk_settings =
+                        gtk_print_operation_get_print_settings (GTK_PRINT_OPERATION (print_op));
+
+                settings->outline_flag     = print_op->priv->outline_flag;
+                settings->reverse_flag     = print_op->priv->reverse_flag;
+                settings->crop_marks_flag  = print_op->priv->crop_marks_flag;
+                settings->collate_flag     = print_op->priv->collate_flag;
 
-                gtk_widget_set_sensitive (op->priv->outline_check, FALSE);
-                gtk_widget_set_sensitive (op->priv->reverse_check, FALSE);
-                gtk_widget_set_sensitive (op->priv->crop_marks_check, FALSE);
+                settings->first            = print_op->priv->first;
+                settings->last             = print_op->priv->last;
+                settings->n_sheets         = print_op->priv->n_sheets;
+                settings->n_copies         = print_op->priv->n_copies;
         }
 
-       return G_OBJECT (vbox);
+        return settings;
 }
 
-/*--------------------------------------------------------------------------*/
-/* PRIVATE.  "Custom widget apply" callback                                 */
-/*--------------------------------------------------------------------------*/
-static void
-custom_widget_apply_cb (GtkPrintOperation *operation,
-                        GtkWidget         *widget,
-                        gpointer           user_data)
+
+/*****************************************************************************/
+/* Set print operation settings.                                             */
+/*****************************************************************************/
+void
+gl_print_op_set_settings (glPrintOp         *print_op,
+                          glPrintOpSettings *settings)
 {
-        glPrintOp *op = GL_PRINT_OP (operation);
-        glMerge       *merge = NULL;
 
+        if ( settings )
+        {
+                gtk_print_operation_set_print_settings (GTK_PRINT_OPERATION (print_op),
+                                                        settings->gtk_settings);
 
-        op->priv->outline_flag =
-                gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON
-                                              (op->priv->outline_check));
-        op->priv->reverse_flag =
-                gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON
-                                              (op->priv->reverse_check));
-        op->priv->crop_marks_flag =
-                gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON
-                                              (op->priv->crop_marks_check));
+                print_op->priv->outline_flag     = settings->outline_flag;
+                print_op->priv->reverse_flag     = settings->reverse_flag;
+                print_op->priv->crop_marks_flag  = settings->crop_marks_flag;
+                print_op->priv->collate_flag     = settings->collate_flag;
+
+                print_op->priv->first            = settings->first;
+                print_op->priv->last             = settings->last;
+                print_op->priv->n_sheets         = settings->n_sheets;
+                print_op->priv->n_copies         = settings->n_copies;
+        }
 
-        merge = gl_label_get_merge (op->priv->label);
+}
 
-        if (merge == NULL)
-        {
 
-                op->priv->merge_flag = FALSE;
-                gl_wdgt_print_copies_get_range (GL_WDGT_PRINT_COPIES (op->priv->copies),
-                                                &op->priv->n_sheets,
-                                                &op->priv->first,
-                                                &op->priv->last);
-        }
-        else
+/*****************************************************************************/
+/* Free print operation settings structure.                                  */
+/*****************************************************************************/
+void
+gl_print_op_free_settings(glPrintOpSettings *settings)
+{
+        
+        if ( settings )
         {
+                if ( settings->gtk_settings )
+                {
+                        g_object_unref (settings->gtk_settings);
+                }
 
-                op->priv->merge_flag = TRUE;
-                gl_wdgt_print_merge_get_copies (GL_WDGT_PRINT_MERGE (op->priv->prmerge),
-                                                &op->priv->n_copies,
-                                                &op->priv->first,
-                                                &op->priv->collate_flag,
-                                                &op->priv->n_sheets);
-                g_object_unref (G_OBJECT(merge));
+                g_free (settings);
         }
-
 }
 
+
 /*--------------------------------------------------------------------------*/
 /* PRIVATE.  "Begin print" callback                                         */
 /*--------------------------------------------------------------------------*/
@@ -632,6 +522,7 @@ begin_print_cb (GtkPrintOperation *operation,
 
 }
 
+
 /*--------------------------------------------------------------------------*/
 /* PRIVATE.  "Draw page" callback.                                          */
 /*--------------------------------------------------------------------------*/
@@ -688,13 +579,13 @@ draw_page_cb (GtkPrintOperation *operation,
 }
 
 
-/*****************************************************************************/
-/* Set outline flag/checkbox.                                                */
-/*****************************************************************************/
-void
-gl_print_op_force_outline_flag (glPrintOp *op)
-{
-        op->priv->force_outline_flag = TRUE;
-}
 
 
+/*
+ * Local Variables:       -- emacs
+ * mode: C                -- emacs
+ * c-basic-offset: 8      -- emacs
+ * tab-width: 8           -- emacs
+ * indent-tabs-mode: nil  -- emacs
+ * End:                   -- emacs
+ */