]> git.lyx.org Git - features.git/commitdiff
UI for writing CSS to file.
authorRichard Heck <rgheck@comcast.net>
Tue, 6 Dec 2011 22:17:26 +0000 (22:17 +0000)
committerRichard Heck <rgheck@comcast.net>
Tue, 6 Dec 2011 22:17:26 +0000 (22:17 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40410 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiDocument.cpp
src/frontends/qt4/ui/OutputUi.ui

index bb643dae45893201f688ddabf995cb21f1b87242..017d1fd19f27c7b6c51d1c57ace3c17ea7bf21fb 100644 (file)
@@ -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<BufferParams::MathOutput>(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(),
index ee9385e29c3db1b82a52b6f7b34904ff78afa7fe..812d73612cb3c7a58e0f1e01646cad292f065a96 100644 (file)
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <ui version="4.0">
  <class>OutputUi</class>
  <widget class="QWidget" name="OutputUi">
       <bool>true</bool>
      </property>
      <layout class="QGridLayout" name="outGridLayout">
-      <item row="0" column="0" colspan="2">
+      <item row="0" column="0">
        <widget class="QCheckBox" name="strictCB">
         <property name="toolTip">
          <string>Whether to comply strictly with XHTML 1.1.</string>
         </property>
        </widget>
       </item>
+      <item row="0" column="1">
+       <widget class="QCheckBox" name="cssCB">
+        <property name="text">
+         <string>Write CSS to File</string>
+        </property>
+       </widget>
+      </item>
      </layout>
     </widget>
    </item>