diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index f742d04b04..6f87dff11f 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -750,7 +750,7 @@ GuiDocument::GuiDocument(GuiView & lv) masterChildModule->childrenTW->resizeColumnToContents(2); - // output + // Format outputModule = new UiWidget; connect(outputModule->defaultFormatCO, SIGNAL(activated(int)), @@ -776,6 +776,9 @@ GuiDocument::GuiDocument(GuiView & lv) outputModule->synccustomCB->setValidator(new NoNewLineValidator( outputModule->synccustomCB)); + connect(outputModule->saveTransientPropertiesCB, SIGNAL(clicked()), + this, SLOT(change_adaptor())); + // fonts fontModule = new FontModule; connect(fontModule->osFontsCB, SIGNAL(clicked()), @@ -1424,7 +1427,7 @@ GuiDocument::GuiDocument(GuiView & lv) docPS->addPanel(listingsModule, N_("Listings[[inset]]")); docPS->addPanel(bulletsModule, N_("Bullets")); docPS->addPanel(branchesModule, N_("Branches")); - docPS->addPanel(outputModule, N_("Output")); + docPS->addPanel(outputModule, N_("Format")); docPS->addPanel(preambleModule, N_("LaTeX Preamble")); docPS->setCurrentPanel("Document Class"); // FIXME: hack to work around resizing bug in Qt >= 4.2 @@ -2839,7 +2842,7 @@ void GuiDocument::applyView() bp_.listings_params = InsetListingsParams(fromqstr(listingsModule->listingsED->toPlainText())).params(); - // output + // Format bp_.default_output_format = fromqstr(outputModule->defaultFormatCO->itemData( outputModule->defaultFormatCO->currentIndex()).toString()); @@ -2861,6 +2864,9 @@ void GuiDocument::applyView() bp_.html_math_img_scale = outputModule->mathimgSB->value(); bp_.display_pixel_ratio = theGuiApp()->pixelRatio(); + bp_.save_transient_properties = + outputModule->saveTransientPropertiesCB->isChecked(); + // fonts bp_.fonts_roman[nontexfonts] = fromqstr(fontModule->fontsRomanCO-> @@ -3396,7 +3402,7 @@ void GuiDocument::paramsToDialog() fontModule->fontencLE->setText(toqstr(bp_.fontenc)); } - // Output + // Format // This must be set _after_ fonts since updateDefaultFormat() // checks osFontsCB settings. // update combobox with formats @@ -3416,6 +3422,9 @@ void GuiDocument::paramsToDialog() outputModule->strictCB->setChecked(bp_.html_be_strict); outputModule->cssCB->setChecked(bp_.html_css_as_file); + outputModule->saveTransientPropertiesCB + ->setChecked(bp_.save_transient_properties); + // paper bool const extern_geometry = documentClass().provides("geometry"); diff --git a/src/frontends/qt4/ui/OutputUi.ui b/src/frontends/qt4/ui/OutputUi.ui index 717181eef5..2bcf0f15cb 100644 --- a/src/frontends/qt4/ui/OutputUi.ui +++ b/src/frontends/qt4/ui/OutputUi.ui @@ -7,7 +7,7 @@ 0 0 388 - 334 + 413 @@ -23,7 +23,16 @@ true - + + 9 + + + 9 + + + 9 + + 9 @@ -34,7 +43,16 @@ 6 - + + 0 + + + 0 + + + 0 + + 0 @@ -62,6 +80,31 @@ + + + + LyX Format + + + true + + + false + + + + + + Save all parameters in the LyX file, including ones that are frequently switched or that are specific to the user (such as the output of the tracked changes, or the document directory path). Disabling this option plays nicer in collaborative settings and with version control systems. + + + Save &transient properties + + + + + + @@ -226,7 +269,7 @@ - + Qt::Vertical