aboutsummaryrefslogtreecommitdiff
path: root/src/hardcopy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hardcopy.h')
-rw-r--r--src/hardcopy.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/hardcopy.h b/src/hardcopy.h
index fb27ee4344..b1ebe8d0ea 100644
--- a/src/hardcopy.h
+++ b/src/hardcopy.h
@@ -32,6 +32,42 @@ typedef struct {
char_u *arguments;
} prt_settings_T;
+/*
+ * Generic option table item, only used for printer at the moment.
+ */
+typedef struct {
+ const char *name;
+ int hasnum;
+ long number;
+ char_u *string; /* points into option string */
+ int strlen;
+ int present;
+} option_table_T;
+
+#define OPT_PRINT_TOP 0
+#define OPT_PRINT_BOT 1
+#define OPT_PRINT_LEFT 2
+#define OPT_PRINT_RIGHT 3
+#define OPT_PRINT_HEADERHEIGHT 4
+#define OPT_PRINT_SYNTAX 5
+#define OPT_PRINT_NUMBER 6
+#define OPT_PRINT_WRAP 7
+#define OPT_PRINT_DUPLEX 8
+#define OPT_PRINT_PORTRAIT 9
+#define OPT_PRINT_PAPER 10
+#define OPT_PRINT_COLLATE 11
+#define OPT_PRINT_JOBSPLIT 12
+#define OPT_PRINT_FORMFEED 13
+#define OPT_PRINT_NUM_OPTIONS 14
+
+/* For prt_get_unit(). */
+#define PRT_UNIT_NONE -1
+#define PRT_UNIT_PERC 0
+#define PRT_UNIT_INCH 1
+#define PRT_UNIT_MM 2
+#define PRT_UNIT_POINT 3
+#define PRT_UNIT_NAMES {"pc", "in", "mm", "pt"}
+
#define PRINT_NUMBER_WIDTH 8
char_u *parse_printoptions(void);