ARB
|
#include "awt_asciiprint.hxx"
#include "awt.hxx"
#include <aw_window.hxx>
#include <aw_root.hxx>
#include <aw_question.hxx>
#include <aw_awar.hxx>
#include <aw_msg.hxx>
#include <arbdbt.h>
Go to the source code of this file.
Functions | |
static double | awt_aps_get_xy_ratio (AW_root *awr) |
static int | awt_aps_get_default_lines_per_page (AW_root *awr) |
static void | awt_aps_calc_pages_needed (AW_root *awr) |
static void | awt_aps_set_magnification_to_fit_xpage (AW_root *awr) |
static void | awt_aps_set_magnification_to_fit_ypage (AW_root *awr) |
static void | awt_aps_set_magnification_to_fit_xpage (AW_window *aww) |
static void | awt_aps_set_magnification_to_fit_ypage (AW_window *aww) |
static void | awt_aps_text_changed (AW_root *awr) |
static void | write_file (const char *filename, const char *file) |
static char * | printFile (AW_root *awr) |
static void | awt_aps_go (AW_window *aww) |
static void | cutExt (char *name, const char *removeExt) |
static char * | correct_extension (const char *name, const char *newExt) |
static void | aps_correct_filename (AW_root *aw_root) |
void | AWT_create_ascii_print_window (AW_root *awr, const char *text_to_print, const char *title) |
void | AWT_show_file (AW_root *awr, const char *filename) |
|
static |
Definition at line 21 of file AWT_asciiprint.cxx.
References AW_root::awar(), AWAR_APRINT_ORIENTATION, AWT_APRINT_ORIENTATION_DOUBLE_PORTRAIT, AWT_APRINT_ORIENTATION_LANDSCAPE, AWT_APRINT_ORIENTATION_PORTRAIT, and AW_awar::read_int().
Referenced by awt_aps_calc_pages_needed(), awt_aps_go(), and awt_aps_set_magnification_to_fit_xpage().
Definition at line 39 of file AWT_asciiprint.cxx.
References AW_root::awar(), AWAR_APRINT_ORIENTATION, AWT_APRINT_ORIENTATION_DOUBLE_PORTRAIT, AWT_APRINT_ORIENTATION_LANDSCAPE, AWT_APRINT_ORIENTATION_PORTRAIT, and AW_awar::read_int().
Referenced by awt_aps_calc_pages_needed(), awt_aps_go(), awt_aps_set_magnification_to_fit_xpage(), and awt_aps_set_magnification_to_fit_ypage().
|
static |
Definition at line 53 of file AWT_asciiprint.cxx.
References AW_root::awar(), AWAR_APRINT_DX, AWAR_APRINT_DY, AWAR_APRINT_MAGNIFICATION, AWAR_APRINT_PAGES, AWAR_APRINT_SX, AWAR_APRINT_SY, awt_aps_get_default_lines_per_page(), awt_aps_get_xy_ratio(), AW_awar::read_int(), AW_awar::write_float(), AW_awar::write_int(), and y.
Referenced by awt_aps_set_magnification_to_fit_xpage(), awt_aps_set_magnification_to_fit_ypage(), and AWT_create_ascii_print_window().
|
static |
Definition at line 81 of file AWT_asciiprint.cxx.
References AW_root::awar(), AWAR_APRINT_DX, AWAR_APRINT_MAGNIFICATION, AWAR_APRINT_SX, awt_aps_calc_pages_needed(), awt_aps_get_default_lines_per_page(), awt_aps_get_xy_ratio(), AW_awar::read_float(), AW_awar::read_int(), and AW_awar::write_int().
Referenced by awt_aps_set_magnification_to_fit_xpage(), awt_aps_text_changed(), and AWT_create_ascii_print_window().
|
static |
Definition at line 96 of file AWT_asciiprint.cxx.
References AW_root::awar(), AWAR_APRINT_DY, AWAR_APRINT_MAGNIFICATION, AWAR_APRINT_SY, awt_aps_calc_pages_needed(), awt_aps_get_default_lines_per_page(), AW_awar::read_float(), AW_awar::read_int(), AW_awar::write_int(), and y.
Referenced by awt_aps_set_magnification_to_fit_ypage(), and AWT_create_ascii_print_window().
|
static |
Definition at line 109 of file AWT_asciiprint.cxx.
References awt_aps_set_magnification_to_fit_xpage(), and AW_window::get_root().
|
static |
Definition at line 112 of file AWT_asciiprint.cxx.
References awt_aps_set_magnification_to_fit_ypage(), and AW_window::get_root().
|
static |
Definition at line 115 of file AWT_asciiprint.cxx.
References AW_root::awar(), AWAR_APRINT_SX, AWAR_APRINT_SY, AWAR_APRINT_TEXT, awt_aps_set_magnification_to_fit_xpage(), GBS_replace_tabs_by_spaces(), AW_awar::read_string(), s, AW_awar::write_int(), and y.
Referenced by AWT_create_ascii_print_window().
Definition at line 145 of file AWT_asciiprint.cxx.
References aw_message(), aw_question(), and GBS_global_string().
Referenced by awt_aps_go().
Definition at line 163 of file AWT_asciiprint.cxx.
References AW_root::awar(), AWAR_APRINT_FILE, GB_getenv(), GBS_global_string_copy(), and AW_awar::read_char_pntr().
Referenced by awt_aps_go().
|
static |
Definition at line 169 of file AWT_asciiprint.cxx.
References aw_message(), AW_root::awar(), AWAR_APRINT_MAGNIFICATION, AWAR_APRINT_ORIENTATION, AWAR_APRINT_PRINTER, AWAR_APRINT_PRINTTO, AWAR_APRINT_SX, AWAR_APRINT_SY, AWAR_APRINT_TEXT, AWAR_APRINT_TITLE, AWT_APRINT_DEST_FILE_ASCII, AWT_APRINT_DEST_FILE_PS, AWT_APRINT_DEST_PREVIEW, AWT_APRINT_DEST_PRINTER, AWT_APRINT_ORIENTATION_DOUBLE_PORTRAIT, AWT_APRINT_ORIENTATION_LANDSCAPE, AWT_APRINT_ORIENTATION_PORTRAIT, awt_aps_get_default_lines_per_page(), awt_aps_get_xy_ratio(), awt_assert, error(), GB_await_error(), GB_create_tempfile(), GB_fopen_tempfile(), GB_getenvARB_GS(), GB_split_full_path(), GB_unique_filename(), GBK_singlequote(), GBK_system(), GBS_global_string(), GBS_global_string_copy(), GBS_replace_tabs_by_spaces(), AW_window::get_root(), line, name_only(), NULp, printFile(), AW_awar::read_char_pntr(), AW_awar::read_int(), AW_awar::read_string(), write_file(), and y.
Referenced by AWT_create_ascii_print_window().
Definition at line 321 of file AWT_asciiprint.cxx.
Referenced by correct_extension().
Definition at line 327 of file AWT_asciiprint.cxx.
References ARB_strdup(), cutExt(), and result.
Referenced by aps_correct_filename().
|
static |
Definition at line 341 of file AWT_asciiprint.cxx.
References AW_root::awar(), AWAR_APRINT_FILE, AWAR_APRINT_PRINTTO, AWT_APRINT_DEST_FILE_ASCII, AWT_APRINT_DEST_FILE_PS, awt_assert, correct_extension(), NULp, AW_awar::read_char_pntr(), AW_awar::read_int(), type, and AW_awar::write_string().
Referenced by AWT_create_ascii_print_window().
void AWT_create_ascii_print_window | ( | AW_root * | awr, |
const char * | text_to_print, | ||
const char * | title | ||
) |
Definition at line 362 of file AWT_asciiprint.cxx.
References AW_awar::add_callback(), aps_correct_filename(), ARB_strdup(), AW_HORIZONTAL, AW_POPDOWN(), AWAR_APRINT_DX, AWAR_APRINT_DY, AWAR_APRINT_FILE, AWAR_APRINT_MAGNIFICATION, AWAR_APRINT_ORIENTATION, AWAR_APRINT_PAGES, AWAR_APRINT_PAPER_SIZE, AWAR_APRINT_PRINTER, AWAR_APRINT_PRINTTO, AWAR_APRINT_SX, AWAR_APRINT_SY, AWAR_APRINT_TEXT, AWAR_APRINT_TITLE, AW_root::awar_float(), AW_root::awar_int(), AW_root::awar_string(), AWT_APRINT_DEST_FILE_ASCII, AWT_APRINT_DEST_FILE_PS, AWT_APRINT_DEST_PREVIEW, AWT_APRINT_DEST_PRINTER, AWT_APRINT_ORIENTATION_LANDSCAPE, AWT_APRINT_ORIENTATION_PORTRAIT, AWT_APRINT_PAPERSIZE_A4, AWT_APRINT_PAPERSIZE_US, awt_aps_calc_pages_needed(), awt_aps_go(), awt_aps_set_magnification_to_fit_xpage(), awt_aps_set_magnification_to_fit_ypage(), awt_aps_text_changed(), GBS_eval_env(), makeHelpCallback(), NULp, AW_awar::write_float(), and AW_awar::write_string().
Referenced by AWT_show_file(), and create_print_box_for_selection_lists().
Definition at line 484 of file AWT_asciiprint.cxx.
References aw_message(), AWT_create_ascii_print_window(), GB_await_error(), and GB_read_file().
Referenced by ARB_main().