listings_params = string();
pagestyle = "default";
compressed = false;
- embedded = false;
+ embedded = lyxrc.use_bundled_format;
for (int iter = 0; iter < 4; ++iter) {
user_defined_bullet(iter) = ITEMIZE_DEFAULTS[iter];
temp_bullet(iter) = ITEMIZE_DEFAULTS[iter];
{ "\\tex_expects_windows_paths", LyXRC::RC_TEX_EXPECTS_WINDOWS_PATHS },
{ "\\ui_file", LyXRC::RC_UIFILE },
{ "\\use_alt_language", LyXRC::RC_USE_ALT_LANG },
+ { "\\use_bundled_format", LyXRC::RC_USE_BUNDLED_FORMAT },
{ "\\use_converter_cache", LyXRC::RC_USE_CONVERTER_CACHE },
{ "\\use_escape_chars", LyXRC::RC_USE_ESC_CHARS },
{ "\\use_input_encoding", LyXRC::RC_USE_INP_ENC },
#else
open_buffers_in_tabs = true;
#endif
+ use_bundled_format = false;
// Fullscreen settings
full_screen_limit = false;
if (lexrc.next())
open_buffers_in_tabs = lexrc.getBool();
break;
+ case RC_USE_BUNDLED_FORMAT:
+ if (lexrc.next())
+ use_bundled_format = lexrc.getBool();
+ break;
case RC_LAST: break; // this is just a dummy
}
}
if (tag != RC_LAST)
break;
+ case RC_USE_BUNDLED_FORMAT:
+ if (ignore_system_lyxrc ||
+ use_bundled_format != system_lyxrc.use_bundled_format) {
+ os << "\\use_bundled_format "
+ << convert<string>(use_bundled_format)
+ << '\n';
+ }
+ if (tag != RC_LAST)
+ break;
os << "\n#\n"
<< "# COLOR SECTION ###################################\n"
RC_USER_NAME,
RC_USETEMPDIR,
RC_USE_ALT_LANG,
+ RC_USE_BUNDLED_FORMAT,
RC_USE_CONVERTER_CACHE,
RC_USE_ESC_CHARS,
RC_USE_INP_ENC,
bool completion_popup_after_complete;
///
bool open_buffers_in_tabs;
+ ///
+ bool use_bundled_format;
};
this, SIGNAL(changed()));
connect(tooltipCB, SIGNAL(toggled(bool)),
this, SIGNAL(changed()));
+ connect(useBundledCB, SIGNAL(toggled(bool)),
+ this, SIGNAL(changed()));
lastfilesSB->setMaximum(maxlastfiles);
}
rc.num_lastfiles = lastfilesSB->value();
rc.use_tooltip = tooltipCB->isChecked();
rc.open_buffers_in_tabs = openDocumentsInTabsCB->isChecked();
+ rc.use_bundled_format = useBundledCB->isChecked();
}
lastfilesSB->setValue(rc.num_lastfiles);
tooltipCB->setChecked(rc.use_tooltip);
openDocumentsInTabsCB->setChecked(rc.open_buffers_in_tabs);
+ useBundledCB->setChecked(rc.use_bundled_format);
}
</property>
</widget>
</item>
+ <item row="3" column="0" colspan="4" >
+ <widget class="QCheckBox" name="useBundledCB" >
+ <property name="text" >
+ <string>Use &bundled format for new documents</string>
+ </property>
+ </widget>
+ </item>
</layout>
</widget>
</item>
<tabstop>autoSaveSB</tabstop>
<tabstop>lastfilesSB</tabstop>
<tabstop>openDocumentsInTabsCB</tabstop>
+ <tabstop>useBundledCB</tabstop>
</tabstops>
<includes>
<include location="local" >qt_helpers.h</include>