aboutsummaryrefslogtreecommitdiff
path: root/src/hardcopy.h
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-03-06 16:11:38 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-07 08:02:38 -0300
commita86da86d9822e16ffe0e9da7fe21864cd869ddf8 (patch)
tree5d744ba3716192dbd672e78acdb448f8ee333a45 /src/hardcopy.h
parent3005681a02ca0478231329b5deae83a308687b21 (diff)
downloadrneovim-a86da86d9822e16ffe0e9da7fe21864cd869ddf8.tar.gz
rneovim-a86da86d9822e16ffe0e9da7fe21864cd869ddf8.tar.bz2
rneovim-a86da86d9822e16ffe0e9da7fe21864cd869ddf8.zip
Move some types and consts from structs.h to other headers
- `foldinfo_T` to `fold.h` - `context_sha256_T` to `sha256.h` - `tagname_T` to `tag.h` - `pumitem_T` to `popupmnu.h` - `prt_*_T` to hardcopy.h` - `CPT_*` consts to `edit.h` - `vimmenu_T`, `MNU_HIDDEN_CHAR`, and `MENU_*` constants to `menu.h`
Diffstat (limited to 'src/hardcopy.h')
-rw-r--r--src/hardcopy.h35
1 files changed, 34 insertions, 1 deletions
diff --git a/src/hardcopy.h b/src/hardcopy.h
index 43a9278370..fb27ee4344 100644
--- a/src/hardcopy.h
+++ b/src/hardcopy.h
@@ -1,6 +1,39 @@
#ifndef NEOVIM_HARDCOPY_H
#define NEOVIM_HARDCOPY_H
-/* hardcopy.c */
+
+/*
+ * Structure to hold printing color and font attributes.
+ */
+typedef struct {
+ long_u fg_color;
+ long_u bg_color;
+ int bold;
+ int italic;
+ int underline;
+ int undercurl;
+} prt_text_attr_T;
+
+/*
+ * Structure passed back to the generic printer code.
+ */
+typedef struct {
+ int n_collated_copies;
+ int n_uncollated_copies;
+ int duplex;
+ int chars_per_line;
+ int lines_per_page;
+ int has_color;
+ prt_text_attr_T number;
+ int modec;
+ int do_syntax;
+ int user_abort;
+ char_u *jobname;
+ char_u *outfile;
+ char_u *arguments;
+} prt_settings_T;
+
+#define PRINT_NUMBER_WIDTH 8
+
char_u *parse_printoptions(void);
char_u *parse_printmbfont(void);
int prt_header_height(void);