From b0601b540ebd8fea81445c564638b9b51261f532 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 6 Dec 2011 22:17:26 +0000 Subject: [PATCH] UI for writing CSS to file. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40410 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiDocument.cpp | 5 +++++ src/frontends/qt4/ui/OutputUi.ui | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index bb643dae45..017d1fd19f 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -768,6 +768,8 @@ GuiDocument::GuiDocument(GuiView & lv) this, SLOT(change_adaptor())); connect(outputModule->strictCB, SIGNAL(stateChanged(int)), this, SLOT(change_adaptor())); + connect(outputModule->cssCB, SIGNAL(stateChanged(int)), + this, SLOT(change_adaptor())); connect(outputModule->mathoutCB, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor())); @@ -2514,6 +2516,7 @@ void GuiDocument::applyView() bp_.useNonTeXFonts = nontexfonts; bp_.output_sync = outputModule->outputsyncCB->isChecked(); + bp_.output_sync_macro = fromqstr(outputModule->synccustomCB->currentText()); int mathfmt = outputModule->mathoutCB->currentIndex(); @@ -2523,6 +2526,7 @@ void GuiDocument::applyView() static_cast(mathfmt); bp_.html_math_output = mo; bp_.html_be_strict = outputModule->strictCB->isChecked(); + bp_.html_css_as_file = outputModule->cssCB->isChecked(); bp_.html_math_img_scale = outputModule->mathimgSB->value(); // fonts @@ -2960,6 +2964,7 @@ void GuiDocument::paramsToDialog() outputModule->mathimgSB->setValue(bp_.html_math_img_scale); outputModule->mathoutCB->setCurrentIndex(bp_.html_math_output); outputModule->strictCB->setChecked(bp_.html_be_strict); + outputModule->cssCB->setChecked(bp_.html_css_as_file); // Fonts updateFontsize(documentClass().opt_fontsize(), diff --git a/src/frontends/qt4/ui/OutputUi.ui b/src/frontends/qt4/ui/OutputUi.ui index ee9385e29c..812d73612c 100644 --- a/src/frontends/qt4/ui/OutputUi.ui +++ b/src/frontends/qt4/ui/OutputUi.ui @@ -1,3 +1,4 @@ + OutputUi @@ -115,7 +116,7 @@ true - + Whether to comply strictly with XHTML 1.1. @@ -215,6 +216,13 @@ + + + + Write CSS to File + + +