-} // namespace anon
-
-
-LyXRC::LyXRC()
-{
- setDefaults();
-}
-
-
-void LyXRC::setDefaults()
-{
- icon_set = string();
- use_system_theme_icons = false;
- bind_file = "cua";
- def_file = "default";
- ui_file = "default";
- // The current document directory
- texinputs_prefix = ".";
- print_landscape_flag = "-t landscape";
- print_paper_flag = "-t";
- print_paper_dimension_flag = "-T";
- document_path.erase();
- view_dvi_paper_option.erase();
- default_view_format = "pdf2";
- default_otf_view_format = "pdf4";
- chktex_command = "chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38";
- bibtex_command = "bibtex";
- fontenc = "default";
- index_command = "makeindex -c -q";
- nomencl_command = "makeindex -s nomencl.ist";
- dpi = 75;
- // Because a screen is typically wider than a piece of paper:
- zoom = 150;
- allow_geometry_session = true;
- // Default LaTeX font size:
- font_sizes[FONT_SIZE_TINY] = "5.0";
- font_sizes[FONT_SIZE_SCRIPT] = "7.0";
- font_sizes[FONT_SIZE_FOOTNOTE] = "8.0";
- font_sizes[FONT_SIZE_SMALL] = "9.0";
- font_sizes[FONT_SIZE_NORMAL] = "10.0";
- font_sizes[FONT_SIZE_LARGE] = "12.0";
- font_sizes[FONT_SIZE_LARGER] = "14.4";
- font_sizes[FONT_SIZE_LARGEST] = "17.26";
- font_sizes[FONT_SIZE_HUGE] = "20.74";
- font_sizes[FONT_SIZE_HUGER] = "24.88";
- use_scalable_fonts = true;
- roman_font_name = "";
- sans_font_name = "";
- typewriter_font_name = "";
- autosave = 300;
- auto_region_delete = true;
- auto_reset_options = false;
- plaintext_linelen = 65;
- mouse_wheel_speed = 1.0;
- num_lastfiles = maxlastfiles;
- check_lastfiles = true;
- use_lastfilepos = true;
- load_session = false;
- make_backup = true;
- save_compressed = false;
- save_origin = false;
- backupdir_path.erase();
- display_graphics = true;
- // Spellchecker settings:
-// FIXME: this check should test the target platform (darwin)
-#if defined(USE_MACOSX_PACKAGING)
- spellchecker = "native";
-#elif defined(USE_ASPELL)
- spellchecker = "aspell";
-#elif defined(USE_HUNSPELL)
- spellchecker = "hunspell";
-#else
- spellchecker = "aspell";
-#endif
- spellchecker_accept_compound = false;
- spellcheck_continuously = false;
- completion_minlength = 6;
- spellcheck_notes = true;
- use_kbmap = false;
- visual_cursor = false;
- auto_number = true;
- mark_foreign_language = true;
- language_auto_begin = true;
- language_auto_end = true;
- language_global_options = true;
- language_package_selection = LP_AUTO;
- language_custom_package = "\\usepackage{babel}";
- language_command_begin = "\\selectlanguage{$$lang}";
- language_command_local = "\\foreignlanguage{$$lang}{";
- sort_layouts = false;
- group_layouts = true;
- gui_language = "auto";
- show_banner = true;
- windows_style_tex_paths = false;
- tex_allows_spaces = false;
- date_insert_format = "%x";
- cursor_follows_scrollbar = false;
- scroll_below_document = false;
- scroll_wheel_zoom = SCROLL_WHEEL_ZOOM_CTRL;
- paragraph_markers = false;
- mac_dontswap_ctrl_meta = false;
- mac_like_cursor_movement = false;
- macro_edit_style = MACRO_EDIT_INLINE_BOX;
- dialogs_iconify_with_main = false;
- preview = PREVIEW_OFF;
- preview_hashed_labels = false;
- preview_scale_factor = 1.0;
- use_converter_cache = true;
- use_system_colors = false;
- use_tooltip = true;
- use_pixmap_cache = false;
- use_qimage = true;
- converter_cache_maxage = 6 * 30 * 24 * 3600; // 6 months
- user_name = to_utf8(support::user_name());
- user_email = to_utf8(support::user_email());
- open_buffers_in_tabs = true;
- single_close_tab_button = false;
- single_instance = true;
- forward_search_dvi = string();
- forward_search_pdf = string();
- export_overwrite = NO_FILES;
-
- // Fullscreen settings
- full_screen_limit = false;
- full_screen_toolbars = true;
- full_screen_tabbar = true;
- full_screen_menubar = true;
- full_screen_scrollbar = true;
- full_screen_width = 700;
-
- completion_cursor_text = true;
- completion_popup_math = true;
- completion_popup_text = false;
- completion_popup_delay = 2.0;
- completion_popup_after_complete = true;
- autocorrection_math = false;
- completion_inline_math = true;
- completion_inline_text = false;
- completion_inline_dots = -1;
- completion_inline_delay = 0.2;
- default_decimal_point = ".";
- default_length_unit = Length::CM;
- cursor_width = 1;
- close_buffer_with_last_view = "yes";
- mouse_middlebutton_paste = true;
-}
-
-
-namespace {