1
2
3
4
5
6
7
8
9
10
11
12
13 #ifndef MC__EDIT_H
14 #define MC__EDIT_H
15
16 #include "lib/global.h"
17 #include "lib/vfs/vfs.h"
18
19
20
21 #define DEFAULT_WRAP_LINE_LENGTH 72
22
23
24
25
26
27
28 struct WEdit;
29 typedef struct WEdit WEdit;
30
31
32
33 extern int option_word_wrap_line_length;
34 extern gboolean option_typewriter_wrap;
35 extern gboolean option_auto_para_formatting;
36 extern gboolean option_fill_tabs_with_spaces;
37 extern gboolean option_return_does_auto_indent;
38 extern gboolean option_backspace_through_tabs;
39 extern gboolean option_fake_half_tabs;
40 extern gboolean option_persistent_selections;
41 extern gboolean option_drop_selection_on_copy;
42 extern gboolean option_cursor_beyond_eol;
43 extern gboolean option_cursor_after_inserted_block;
44 extern gboolean option_state_full_filename;
45 extern gboolean option_line_state;
46 extern int option_save_mode;
47 extern gboolean option_save_position;
48 extern gboolean option_syntax_highlighting;
49 extern gboolean option_group_undo;
50 extern char *option_backup_ext;
51 extern char *option_filesize_threshold;
52 extern char *option_stop_format_chars;
53
54 extern gboolean edit_confirm_save;
55
56 extern gboolean visible_tabs;
57 extern gboolean visible_tws;
58
59 extern gboolean simple_statusbar;
60 extern gboolean option_check_nl_at_eof;
61 extern gboolean show_right_margin;
62
63
64
65
66 void edit_stack_init (void);
67 void edit_stack_free (void);
68
69 gboolean edit_file (const vfs_path_t * file_vpath, long line);
70 gboolean edit_files (const GList * files);
71
72 const char *edit_get_file_name (const WEdit * edit);
73 off_t edit_get_cursor_offset (const WEdit * edit);
74 long edit_get_curs_col (const WEdit * edit);
75 const char *edit_get_syntax_type (const WEdit * edit);
76
77
78 #endif