Files
Foxe Chen f141c19dca patch 9.2.0898: printing support is lacking
Problem:  printing support is lacking
Solution: Improve printing support by making use of pango and cairo
          libraries, use a graphical dialog for :hardcopy in the GTK4 ui
          (Foxe Chen).

fixes:  #8935
closes: #20648

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-08-02 18:33:37 +00:00

47 lines
966 B
C

/* vi:set ts=8 sts=4 sw=4 noet:
*
* VIM - Vi IMproved by Bram Moolenaar
*
* Do ":help uganda" in Vim to read copying and usage conditions.
* Do ":help credits" in Vim to see a list of people who contributed.
* See README.txt for an overview of the Vim source code.
*/
/*
* hardcopy.h: common stuff for hardcopy feature
*/
#ifndef HARDCOPY_H
#define HARDCOPY_H
#include "vim.h"
#if defined(FEAT_PRINTER)
# define PRCOLOR_BLACK (long_u)0
# define PRCOLOR_WHITE (long_u)0xFFFFFFL
extern int prt_curr_italic;
extern int prt_curr_bold;
extern int prt_curr_underline;
extern long_u prt_curr_bg;
extern long_u prt_curr_fg;
extern int prt_page_count;
# if defined(FEAT_POSTSCRIPT) || defined(FEAT_PRINT_PANGO)
typedef struct
{
char *name;
double width; // Width and height in points for portrait
double height;
} prt_mediasize_T;
# define PRT_MEDIASIZE_LEN 14
extern prt_mediasize_T prt_mediasize[PRT_MEDIASIZE_LEN];
# endif
#endif
#endif