6 * \brief Header: editor public API
9 * \author Andrew Borodin
16 #include "lib/global.h" /* PATH_SEP_STR */
17 #include "lib/fileloc.h"
19 /*** typedefs(not structures) and defined constants **********************************************/
21 #define DEFAULT_WRAP_LINE_LENGTH 72
23 /*** enums ***************************************************************************************/
25 /*** structures declarations (and typedefs of structures)*****************************************/
29 typedef struct WEdit WEdit
;
31 /*** global variables defined in .c file *********************************************************/
33 extern int option_word_wrap_line_length
;
34 extern int option_typewriter_wrap
;
35 extern int option_auto_para_formatting
;
36 extern int option_fill_tabs_with_spaces
;
37 extern int option_return_does_auto_indent
;
38 extern int option_backspace_through_tabs
;
39 extern int option_fake_half_tabs
;
40 extern int option_persistent_selections
;
41 extern int option_cursor_beyond_eol
;
42 extern int option_line_state
;
43 extern int option_save_mode
;
44 extern int option_save_position
;
45 extern int option_syntax_highlighting
;
46 extern int option_group_undo
;
47 extern char *option_backup_ext
;
49 extern int edit_confirm_save
;
51 extern int visible_tabs
;
52 extern int visible_tws
;
54 extern int simple_statusbar
;
55 extern int option_check_nl_at_eof
;
56 extern int show_right_margin
;
58 /*** declarations of public functions ************************************************************/
61 void edit_stack_init (void);
62 void edit_stack_free (void);
64 int edit_file (const char *_file
, int line
);
66 const char *edit_get_file_name (const WEdit
* edit
);
67 int edit_get_curs_col (const WEdit
* edit
);
68 const char *edit_get_syntax_type (const WEdit
* edit
);
70 /*** inline functions ****************************************************************************/
71 #endif /* MC__EDIT_H */