INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "printer support class"
project: "Visual Eiffel"
revision: "$Revision: 1.1 $"
copyright: "Copyright (C) 1996-2005 Object Tools Group"
license: "http://visual-eiffel.com/license"
cluster: grape
class PRINT_PREVIEWER
inherit

DIALOG
rename
make as make_dialog
redefine
on_changed,
on_clicked,
on_create,
on_destroy,
on_hslide,
on_lbutton_down,
on_lbutton_up,
on_minmax,
on_paint,
on_size,
on_vslide
end
creation

make
feature

n_preview_pages: INTEGER

dgc: DISPLAY_GRAPHICS_CONTEXT

make (p_printer: PRINTER)
require
valid_printer_passed: p_printer /= void

set_n_preview_pages (p_pages: INTEGER)
require
valid_number_of_preview_pages: p_pages = 1 or else p_pages = 2

set_caption_text (str: STRING)
require
str_not_void: str /= void

set_close_btn_text (str: STRING)
require
str_not_void: str /= void

set_print_btn_text (str: STRING)
require
str_not_void: str /= void

set_onepage_btn_text (str: STRING)
require
str_not_void: str /= void

set_twopages_btn_text (str: STRING)
require
str_not_void: str /= void

set_next_btn_text (str: STRING)
require
str_not_void: str /= void

set_prev_btn_text (str: STRING)
require
str_not_void: str /= void

set_zoom_btn_text (str: STRING)
require
str_not_void: str /= void

set_unzoom_btn_text (str: STRING)
require
str_not_void: str /= void

set_page_text (str: STRING)
require
str_not_void: str /= void

set_pages_text (str: STRING)
require
str_not_void: str /= void

set_of_text (str: STRING)
require
str_not_void: str /= void
end -- class PRINT_PREVIEWER

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES