Commit 2f07411b51a0d29823d58aa8e361593b008f5abd

Authored by Perry Werneck
1 parent 92373d97
Exists in master and in 1 other branch develop

Reimplementing print dialog as a component.

src/dialogs/print/draw.c 0 → 100644
... ... @@ -0,0 +1,37 @@
  1 +/*
  2 + * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270
  3 + * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a
  4 + * aplicativos mainframe. Registro no INPI sob o nome G3270.
  5 + *
  6 + * Copyright (C) <2008> <Banco do Brasil S.A.>
  7 + *
  8 + * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob
  9 + * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela
  10 + * Free Software Foundation.
  11 + *
  12 + * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER
  13 + * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
  14 + * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
  15 + * obter mais detalhes.
  16 + *
  17 + * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este
  18 + * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin
  19 + * St, Fifth Floor, Boston, MA 02110-1301 USA
  20 + *
  21 + * Este programa está nomeado como - e possui - linhas de código.
  22 + *
  23 + * Contatos:
  24 + *
  25 + * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
  26 + * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça)
  27 + *
  28 + */
  29 +
  30 + #include "private.h"
  31 +
  32 +/*--[ Implement ]------------------------------------------------------------------------------------*/
  33 +
  34 + void V3270PrintOperation_draw_page(GtkPrintOperation *prt, GtkPrintContext *context, gint page)
  35 + {
  36 +
  37 + }
... ...
src/dialogs/print/print.c
... ... @@ -146,6 +146,7 @@
146 146 G_OBJECT_CLASS(klass)->dispose = dispose;
147 147 operation->done = done;
148 148 operation->begin_print = V3270PrintOperation_begin_print;
  149 + operation->draw_page = V3270PrintOperation_draw_page;
149 150  
150 151 #ifndef _WIN32
151 152 operation->create_custom_widget = create_custom_widget;
... ...
src/dialogs/print/private.h
... ... @@ -68,5 +68,6 @@
68 68 /*--[ Prototypes ]-----------------------------------------------------------------------------------*/
69 69  
70 70 G_GNUC_INTERNAL void V3270PrintOperation_begin_print(GtkPrintOperation *prt, GtkPrintContext *context);
  71 + G_GNUC_INTERNAL void V3270PrintOperation_draw_page(GtkPrintOperation *prt, GtkPrintContext *context, gint page);
71 72  
72 73  
... ...
v3270.cbp
... ... @@ -54,6 +54,9 @@
54 54 <Unit filename="src/dialogs/print/begin.c">
55 55 <Option compilerVar="CC" />
56 56 </Unit>
  57 + <Unit filename="src/dialogs/print/draw.c">
  58 + <Option compilerVar="CC" />
  59 + </Unit>
57 60 <Unit filename="src/dialogs/print/print.c">
58 61 <Option compilerVar="CC" />
59 62 </Unit>
... ...