]> git.lyx.org Git - features.git/commitdiff
More expansion of gtk document dialog
authorJohn Spray <spray@lyx.org>
Mon, 21 Mar 2005 09:57:51 +0000 (09:57 +0000)
committerJohn Spray <spray@lyx.org>
Mon, 21 Mar 2005 09:57:51 +0000 (09:57 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9726 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/gtk/ChangeLog
src/frontends/gtk/GDocument.C
src/frontends/gtk/GDocument.h
src/frontends/gtk/glade/document.glade

index 4d1fba6832bff1f9a65de49304d711fcc9bad8cb..4d86e297114ab33818f5f86d432c4f373b3c34f2 100644 (file)
@@ -1,3 +1,6 @@
+2005-03-21  John Spray  <spray_john@users.sf.net>
+
+       * GDocument.[Ch]: add "Page", "Margins", "Language" tabs.
 
 2005-03-20  Alfredo Braunstein  <abraunst@lyx.org>
 
index 82f0548c37b808abcc51f3471c1988952effa0ee..606097b7697a2adfb62046ec13a1108145f76d8c 100644 (file)
 
 #include "ControlDocument.h"
 #include "controllers/helper_funcs.h"
+#include "controllers/frnt_lang.h"
 
 #include "support/lstrings.h"
+#include "lyxrc.h"
 
 #include "lyxtextclasslist.h"
 #include "bufferparams.h"
 #include "tex-strings.h"
+#include "language.h"
 
 using std::string;
+using std::vector;
 
 namespace lyx {
 
 using support::bformat;
+using support::token;
 
 namespace frontend {
 
+namespace {
+
+char const * const encodings[] = { "Language Default", "LaTeX default",
+       "latin1", "latin2", "latin3", "latin4", "latin5", "latin9",
+       "koi8-r", "koi8-u", "cp866", "cp1251", "iso88595", "pt154", 0
+};
+
+}
+
+
 GDocument::GDocument(Dialog & parent)
-       : GViewCB<ControlDocument, GViewGladeB>(parent, _("Document Settings"), false)
+       : GViewCB<ControlDocument, GViewGladeB>(parent, _("Document Settings"), false),
+       lang_(getSecond(getLanguageData(false)))
 {}
 
 void GDocument::doBuild()
@@ -74,6 +90,9 @@ void GDocument::doBuild()
        box->pack_start(classcombo_, true, true, 0);
        box->show_all();
 
+       classcombo_.signal_changed().connect(
+               sigc::mem_fun(*this, &GDocument::classChanged));
+
        // Populate Document Class combo
        for (LyXTextClassList::const_iterator cit = textclasslist.begin();
             cit != textclasslist.end(); ++cit) {
@@ -109,15 +128,6 @@ void GDocument::doBuild()
        xml_->get_widget("FontSize", box);
        box->pack_start(fontsizecombo_, true, true, 0);
        box->show_all();
-       fontsizecombo_.append_text(_("Default"));
-       fontsizecombo_.append_text(_("10"));
-       fontsizecombo_.append_text(_("11"));
-       fontsizecombo_.append_text(_("12"));
-       // These are the corresponding strings to be passed to the backend
-       fontsizemap_[0] = "default";
-       fontsizemap_[1] = "10";
-       fontsizemap_[2] = "11";
-       fontsizemap_[3] = "12";
 
        Gtk::SpinButton * spin;
        xml_->get_widget("LineSpacing", spin);
@@ -155,8 +165,118 @@ void GDocument::doBuild()
        populateUnitCombo(vspaceunitcombo_, false);
 
        updateParagraphSeparationSensitivity();
-
        // *** End "Document" Page ***
+
+       // *** Begin "Page" Page ***
+       xml_->get_widget("PageSize", box);
+       box->pack_start(pagesizecombo_, true, true, 0);
+       box->show_all();
+       pagesizecombo_.append_text(_("Default"));
+       pagesizecombo_.append_text(_("Custom"));
+       pagesizecombo_.append_text(_("US letter"));
+       pagesizecombo_.append_text(_("US legal"));
+       pagesizecombo_.append_text(_("US executive"));
+       pagesizecombo_.append_text(_("A3"));
+       pagesizecombo_.append_text(_("A4"));
+       pagesizecombo_.append_text(_("A5"));
+       pagesizecombo_.append_text(_("B3"));
+       pagesizecombo_.append_text(_("B4"));
+       pagesizecombo_.append_text(_("B5"));
+       pagesizecombo_.signal_changed().connect(
+               sigc::mem_fun(*this, &GDocument::pageSizeChanged));
+
+       xml_->get_widget("PageWidth", pagewidthspin_);
+       xml_->get_widget("PageHeight", pageheightspin_);
+       xml_->get_widget("PageWidthUnits", box);
+       box->pack_start(pagewidthunitscombo_, true, true, 0);
+       box->show_all();
+       populateUnitCombo(pagewidthunitscombo_, false);
+       xml_->get_widget("PageHeightUnits", box);
+       box->pack_start(pageheightunitscombo_, true, true, 0);
+       box->show_all();
+       populateUnitCombo(pageheightunitscombo_, false);
+
+       xml_->get_widget("Portrait", portraitradio_);
+       xml_->get_widget("Landscape", landscaperadio_);
+
+       xml_->get_widget("PageStyle", box);
+       box->pack_start(pagestylecombo_, true, true, 0);
+       box->show_all();
+       xml_->get_widget("DoubleSided", doublesidedtoggle_);
+       xml_->get_widget("TwoColumns", twocolumnstoggle_);
+       // *** End "Page" Page ***
+
+       // *** Begin "Margins" Page ***
+       xml_->get_widget("Margins", box);
+       box->pack_start(marginscombo_, true, true, 0);
+       box->show_all();
+       marginscombo_.signal_changed().connect(
+               sigc::mem_fun(*this, &GDocument::marginsChanged));
+       pagesizecombo_.signal_changed().connect(
+               sigc::mem_fun(*this, &GDocument::populateMargins));
+
+       xml_->get_widget("MarginTop", mtopspin_);
+       xml_->get_widget("MarginBottom", mbottomspin_);
+       xml_->get_widget("MarginInner", minnerspin_);
+       xml_->get_widget("MarginOuter", mouterspin_);
+       xml_->get_widget("MarginHeadSep", mheadsepspin_);
+       xml_->get_widget("MarginHeadHeight", mheadheightspin_);
+       xml_->get_widget("MarginFootSkip", mfootskipspin_);
+
+       xml_->get_widget("MarginTopUnits", box);
+       box->pack_start(mtopunitcombo_, true, true, 0);
+       populateUnitCombo(mtopunitcombo_, false);
+       xml_->get_widget("MarginBottomUnits", box);
+       box->pack_start(mbottomunitcombo_, true, true, 0);
+       populateUnitCombo(mbottomunitcombo_, false);
+       xml_->get_widget("MarginInnerUnits", box);
+       box->pack_start(minnerunitcombo_, true, true, 0);
+       populateUnitCombo(minnerunitcombo_, false);
+       xml_->get_widget("MarginOuterUnits", box);
+       box->pack_start(mouterunitcombo_, true, true, 0);
+       populateUnitCombo(mouterunitcombo_, false);
+       xml_->get_widget("MarginHeadSepUnits", box);
+       box->pack_start(mheadsepunitcombo_, true, true, 0);
+       populateUnitCombo(mheadsepunitcombo_, false);
+       xml_->get_widget("MarginHeadHeightUnits", box);
+       box->pack_start(mheadheightunitcombo_, true, true, 0);
+       populateUnitCombo(mheadheightunitcombo_, false);
+       xml_->get_widget("MarginFootSkipUnits", box);
+       box->pack_start(mfootskipunitcombo_, true, true, 0);
+       populateUnitCombo(mfootskipunitcombo_, false);
+
+       Gtk::Table * table;
+       xml_->get_widget("MarginsTable", table);
+       table->show_all();
+       // *** End "Margins" Page ***
+
+       // *** Start "Language" Page ***
+       xml_->get_widget("Language", box);
+       box->pack_start(languagecombo_, true, true, 0);
+       box->show_all();
+
+       vector<LanguagePair> const langs = getLanguageData(false);
+       vector<LanguagePair>::const_iterator lit  = langs.begin();
+       vector<LanguagePair>::const_iterator lend = langs.end();
+       for (; lit != lend; ++lit) {
+               languagecombo_.append_text(lit->first);
+       }
+
+       xml_->get_widget("TextEncoding", box);
+       box->pack_start(encodingcombo_, true, true, 0);
+       box->show_all();
+       
+       int i = 0;
+       while (encodings[i])
+               encodingcombo_.append_text(encodings[i++]);
+
+       xml_->get_widget("EnglishQuote", qenglishradio_);
+       xml_->get_widget("SwedishQuote", qswedishradio_);
+       xml_->get_widget("GermanQuote", qgermanradio_);
+       xml_->get_widget("PolishQuote", qpolishradio_);
+       xml_->get_widget("FrenchQuote", qfrenchradio_);
+       xml_->get_widget("DanishQuote", qdanishradio_);
+       // *** End "Language" Page ***
 }
 
 
@@ -177,10 +297,7 @@ void GDocument::update()
 
        // Font & Size
        comboBoxTextSet(fontcombo_, params.fonts);
-       for (int i = 0; i <= 3; ++i) {
-               if (fontsizemap_[i] == params.fontsize)
-                       fontsizecombo_.set_active(i);
-       }
+       comboBoxTextSet(fontsizecombo_, params.fontsize);
 
        // Line Spacing
        linespacingadj_->set_value(params.spacing().getValue());
@@ -204,6 +321,113 @@ void GDocument::update()
 
        // *** End "Document" Page ***
 
+       // *** Begin "Page" Page ***
+       int const psize = params.papersize2;
+       pagesizecombo_.set_active(psize);
+
+       setWidgetsFromLength(
+               *(pagewidthspin_->get_adjustment()),
+               pagewidthunitscombo_, LyXLength(params.paperwidth));
+       setWidgetsFromLength(
+               *(pageheightspin_->get_adjustment()),
+               pageheightunitscombo_, LyXLength(params.paperheight));
+
+       if (params.orientation == ORIENTATION_PORTRAIT)
+               portraitradio_->set_active();
+       else
+               landscaperadio_->set_active();
+
+       if (params.columns == 2)
+               twocolumnstoggle_->set_active(true);
+       else
+               twocolumnstoggle_->set_active(false);
+
+       doublesidedtoggle_->set_active(params.sides == LyXTextClass::TwoSides);
+
+       comboBoxTextSet(pagestylecombo_, params.pagestyle);
+       // *** End "Page" Page ***
+
+       // *** Begin "Margins" Page ***
+       int item = params.paperpackage;
+       if (params.use_geometry) {
+               item = 1;
+       } else if (item > 0) {
+               item = item + 1;
+       }
+       marginscombo_.set_active(item);
+
+       setWidgetsFromLength(
+               *(mtopspin_->get_adjustment()),
+               mtopunitcombo_,
+               LyXLength(params.topmargin));
+       setWidgetsFromLength(
+               *(mbottomspin_->get_adjustment()),
+               mbottomunitcombo_,
+               LyXLength(params.bottommargin));
+       setWidgetsFromLength(
+               *(minnerspin_->get_adjustment()),
+               minnerunitcombo_,
+               LyXLength(params.leftmargin));
+       setWidgetsFromLength(
+               *(mouterspin_->get_adjustment()),
+               mouterunitcombo_,
+               LyXLength(params.rightmargin));
+       setWidgetsFromLength(
+               *(mheadsepspin_->get_adjustment()),
+               mheadsepunitcombo_,
+               LyXLength(params.headsep));
+       setWidgetsFromLength(
+               *(mheadheightspin_->get_adjustment()),
+               mheadheightunitcombo_,
+               LyXLength(params.headheight));
+       setWidgetsFromLength(
+               *(mfootskipspin_->get_adjustment()),
+               mfootskipunitcombo_,
+               LyXLength(params.footskip));
+
+       // *** End "Margins" Page ***
+
+       // *** Start "Language" Page ***
+       int const langpos = findPos(lang_,
+               params.language->lang());
+       languagecombo_.set_active(langpos);
+
+       // Default to "auto"
+       encodingcombo_.set_active(0);
+       if (params.inputenc == "default") {
+               encodingcombo_.set_active(1);
+       } else {
+               int i = 0;
+               while (encodings[i]) {
+                       if (encodings[i] == params.inputenc)
+                               encodingcombo_.set_active(i);
+                       ++i;
+               }
+       }
+
+       switch (params.quotes_language) {
+       case InsetQuotes::EnglishQ:
+               qenglishradio_->set_active();
+               break;
+       case InsetQuotes::SwedishQ:
+               qswedishradio_->set_active();
+               break;
+       case InsetQuotes::GermanQ:
+               qgermanradio_->set_active();
+               break;
+       case InsetQuotes::PolishQ:
+               qpolishradio_->set_active();
+               break;
+       case InsetQuotes::FrenchQ:
+               qfrenchradio_->set_active();
+               break;
+       case InsetQuotes::DanishQ:
+               qdanishradio_->set_active();
+               break;
+       }
+
+       // *** End "Language" Page ***
+
        // Be a cheesy bastard, for the moment
        bc().valid();
 }
@@ -226,8 +450,7 @@ void GDocument::apply()
 
        // Font & Size
        params.fonts = fontcombo_.get_active_text();
-       params.fontsize =
-               fontsizemap_[fontsizecombo_.get_active_row_number()];
+       params.fontsize = fontsizecombo_.get_active_text();
 
        // Line Spacing
        params.spacing().set(Spacing::Other, linespacingadj_->get_value());
@@ -252,6 +475,98 @@ void GDocument::apply()
        }
 
        // *** End "Document" Page ***
+
+       // *** Begin "Page" Page ***
+       params.papersize2 = VMARGIN_PAPER_TYPE(
+               pagesizecombo_.get_active_row_number());
+
+       params.paperwidth = getLengthFromWidgets(
+               *(pagewidthspin_->get_adjustment()), pagewidthunitscombo_);
+       params.paperheight = getLengthFromWidgets(
+               *(pageheightspin_->get_adjustment()), pageheightunitscombo_);
+
+       if (portraitradio_->get_active())
+               params.orientation = ORIENTATION_PORTRAIT;
+       else
+               params.orientation = ORIENTATION_LANDSCAPE;
+
+       if (twocolumnstoggle_->get_active())
+               params.columns = 2;
+       else
+               params.columns = 1;
+
+       if (doublesidedtoggle_->get_active())
+               params.sides = LyXTextClass::TwoSides;
+       else
+               params.sides = LyXTextClass::OneSide;
+
+       params.pagestyle = pagestylecombo_.get_active_text();
+
+       // *** End "Page" Page ***
+
+       // *** Begin "Margins" Page ***
+       int psize = pagesizecombo_.get_active_row_number();
+       bool geom_papersize = (psize == 1 || psize == 5 || psize == 8 || psize == 9);
+       params.use_geometry =
+               (marginscombo_.get_active_row_number() == 1 || geom_papersize);
+
+       int margin = marginscombo_.get_active_row_number();
+       if (margin > 0) {
+               margin = margin - 1;
+       }
+       params.paperpackage = PAPER_PACKAGES(margin);
+
+       params.setPaperStuff();
+
+       params.topmargin = getLengthFromWidgets(
+               *(mtopspin_->get_adjustment()),
+               mtopunitcombo_);
+       params.bottommargin = getLengthFromWidgets(
+               *(mbottomspin_->get_adjustment()),
+               mbottomunitcombo_);
+       params.leftmargin = getLengthFromWidgets(
+               *(minnerspin_->get_adjustment()),
+               minnerunitcombo_);
+       params.rightmargin = getLengthFromWidgets(
+               *(mouterspin_->get_adjustment()),
+               mouterunitcombo_);
+       params.headsep = getLengthFromWidgets(
+               *(mheadsepspin_->get_adjustment()),
+               mheadsepunitcombo_);
+       params.headheight = getLengthFromWidgets(
+               *(mheadheightspin_->get_adjustment()),
+               mheadheightunitcombo_);
+       params.footskip = getLengthFromWidgets(
+               *(mfootskipspin_->get_adjustment()),
+               mfootskipunitcombo_);
+       // *** End "Margins" Page ***
+
+       // *** Start "Language" Page ***
+       int const encodingsel = encodingcombo_.get_active_row_number();
+       if (encodingsel == 0)
+               params.inputenc = "auto";
+       else if (encodingsel == 1)
+               params.inputenc = "default";
+       else
+               params.inputenc = encodings[encodingsel];
+
+       int const langsel = languagecombo_.get_active_row_number();
+       params.language = languages.getLanguage(lang_[langsel]);
+
+       if (qenglishradio_->get_active())
+               params.quotes_language = InsetQuotes::EnglishQ;
+       else if (qswedishradio_->get_active())
+               params.quotes_language = InsetQuotes::SwedishQ;
+       else if (qgermanradio_->get_active())
+               params.quotes_language = InsetQuotes::GermanQ;
+       else if (qpolishradio_->get_active())
+               params.quotes_language = InsetQuotes::PolishQ;
+       else if (qfrenchradio_->get_active())
+               params.quotes_language = InsetQuotes::FrenchQ;
+       else if (qdanishradio_->get_active())
+               params.quotes_language = InsetQuotes::DanishQ;
+       // *** End "Language" Page ***
+
 }
 
 
@@ -285,5 +600,105 @@ void GDocument::updateParagraphSeparationSensitivity()
 }
 
 
+void GDocument::classChanged()
+{
+       ControlDocument & ctrl = controller();
+       BufferParams & params = ctrl.params();
+
+       lyx::textclass_type const tc = classcombo_.get_active_row_number();
+
+       if (ctrl.loadTextclass(tc)) {
+               params.textclass = tc;
+
+               if (lyxrc.auto_reset_options) {
+                       params.useClassDefaults();
+                       update();
+               } else {
+                       fontsizecombo_.clear();
+                       fontsizecombo_.append_text("default");
+
+                       string const fontsizeitems = ctrl.textClass().opt_fontsize();
+                       for (int n = 0; !token(fontsizeitems, '|', n).empty(); ++n)
+                               fontsizecombo_.append_text(token(fontsizeitems, '|', n));
+
+                       comboBoxTextSet(fontsizecombo_, params.fontsize);
+
+                       pagestylecombo_.clear();
+                       pagestylecombo_.append_text("default");
+
+                       string const pagestyleitems = ctrl.textClass().opt_pagestyle();
+                       std::cerr << "pagestyleitems=" << pagestyleitems << "\n";
+                       for (int n=0; !token(pagestyleitems,'|',n).empty(); ++n)
+                               pagestylecombo_.append_text(token(pagestyleitems,'|',n));
+
+                       comboBoxTextSet(pagestylecombo_, params.pagestyle);
+                       std::cerr << "params.pagestyle=" << params.pagestyle << "\n";
+               }
+       } else {
+               classcombo_.set_active(params.textclass);
+       }
+}
+
+
+void GDocument::pageSizeChanged()
+{
+       bool const customsize = pagesizecombo_.get_active_row_number() == 1;
+       pagewidthspin_->set_sensitive(customsize);
+       pageheightspin_->set_sensitive(customsize);
+       pagewidthunitscombo_.set_sensitive(customsize);
+       pageheightunitscombo_.set_sensitive(customsize);
+
+       if (customsize)
+               portraitradio_->set_active();
+}
+
+
+void GDocument::populateMargins()
+{
+       int olditem = marginscombo_.get_active_row_number();
+
+       marginscombo_.clear();
+       // Magic order
+       marginscombo_.append_text(_("Default"));
+       marginscombo_.append_text(_("Custom"));
+
+       int papersize = pagesizecombo_.get_active_row_number();
+       if (papersize < 0)
+               papersize = 0;
+
+       bool const a4size = (papersize == 6 || papersize == 0
+                       && lyxrc.default_papersize == PAPER_A4PAPER);
+       if (a4size && portraitradio_->get_active()) {
+               marginscombo_.append_text(_("Small margins"));
+               marginscombo_.append_text(_("Very small margins"));
+               marginscombo_.append_text(_("Very wide margins"));
+       } else if (olditem > 1) {
+               olditem = 0;
+       }
+       marginscombo_.set_active(olditem);
+}
+
+
+void GDocument::marginsChanged()
+{
+       bool const custom =
+               marginscombo_.get_active_row_number() == 1;
+
+       mtopspin_->set_sensitive(custom);
+       mbottomspin_->set_sensitive(custom);
+       minnerspin_->set_sensitive(custom);
+       mouterspin_->set_sensitive(custom);
+       mheadsepspin_->set_sensitive(custom);
+       mheadheightspin_->set_sensitive(custom);
+       mfootskipspin_->set_sensitive(custom);
+       mtopunitcombo_.set_sensitive(custom);
+       mbottomunitcombo_.set_sensitive(custom);
+       minnerunitcombo_.set_sensitive(custom);
+       mouterunitcombo_.set_sensitive(custom);
+       mheadsepunitcombo_.set_sensitive(custom);
+       mheadheightunitcombo_.set_sensitive(custom);
+       mfootskipunitcombo_.set_sensitive(custom);
+}
+
 } // namespace frontend
 } // namespace lyx
index b536ac2191ddcd1ee4137c784ea33d3eb23abebd..3e186e4ef43058a44737a547f72cc9f8c8507914 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \auther John Spray
+ * \author John Spray
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -51,14 +51,59 @@ private:
        Gtk::RadioButton * indentradio_;
        Gtk::RadioButton * vspaceradio_;
        Gtk::ComboBoxText vspacesizecombo_;
-       std::map<int, std::string> fontsizemap_;
        std::map<int, VSpace::vspace_kind> vspacesizemap_;
        Gtk::ComboBoxText vspaceunitcombo_;
        Gtk::SpinButton * vspacelengthspin_;
        Gtk::Adjustment * vspacelengthadj_;
        void updateParagraphSeparationSensitivity();
+       void classChanged();
        // *** End "Document" Page ***
 
+       // *** Begin "Page" Page ***
+       Gtk::SpinButton * pagewidthspin_;
+       Gtk::SpinButton * pageheightspin_;
+       Gtk::ComboBoxText pagewidthunitscombo_;
+       Gtk::ComboBoxText pageheightunitscombo_;
+       Gtk::ComboBoxText pagesizecombo_;
+       Gtk::RadioButton * portraitradio_;
+       Gtk::RadioButton * landscaperadio_;
+       Gtk::ComboBoxText pagestylecombo_;
+       Gtk::ToggleButton * doublesidedtoggle_;
+       Gtk::ToggleButton * twocolumnstoggle_;
+       void pageSizeChanged();
+       // *** End "Page" Page ***
+
+       // *** Begin "Margins" Page ***
+       Gtk::ComboBoxText marginscombo_;
+       Gtk::SpinButton * mtopspin_;
+       Gtk::SpinButton * mbottomspin_;
+       Gtk::SpinButton * minnerspin_;
+       Gtk::SpinButton * mouterspin_;
+       Gtk::SpinButton * mheadsepspin_;
+       Gtk::SpinButton * mheadheightspin_;
+       Gtk::SpinButton * mfootskipspin_;
+       Gtk::ComboBoxText mtopunitcombo_;
+       Gtk::ComboBoxText mbottomunitcombo_;
+       Gtk::ComboBoxText minnerunitcombo_;
+       Gtk::ComboBoxText mouterunitcombo_;
+       Gtk::ComboBoxText mheadsepunitcombo_;
+       Gtk::ComboBoxText mheadheightunitcombo_;
+       Gtk::ComboBoxText mfootskipunitcombo_;
+       void populateMargins();
+       void marginsChanged();
+       // *** End "Margins" Page ***
+
+       // *** Start "Language" Page ***
+       Gtk::ComboBoxText languagecombo_;
+       Gtk::ComboBoxText encodingcombo_;
+       Gtk::RadioButton * qenglishradio_;
+       Gtk::RadioButton * qswedishradio_;
+       Gtk::RadioButton * qgermanradio_;
+       Gtk::RadioButton * qpolishradio_;
+       Gtk::RadioButton * qfrenchradio_;
+       Gtk::RadioButton * qdanishradio_;
+       std::vector<std::string> lang_;
+       // *** End "Language" Page ***
 };
 
 } // namespace frontend
index 341fa58335357f63fb9de04775481f91f6dfb2c6..03ad70bf6b69019474d939a7a898e8bee73f284b 100644 (file)
                      <property name="can_focus">True</property>
                      <property name="climb_rate">1</property>
                      <property name="digits">2</property>
-                     <property name="numeric">False</property>
+                     <property name="numeric">True</property>
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
                                      <property name="can_focus">True</property>
                                      <property name="climb_rate">1</property>
                                      <property name="digits">2</property>
-                                     <property name="numeric">False</property>
+                                     <property name="numeric">True</property>
                                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                                      <property name="snap_to_ticks">False</property>
                                      <property name="wrap">False</property>
                      </child>
 
                      <child>
-                       <widget class="GtkLabel" id="label12">
+                       <widget class="GtkLabel" id="WidthLabel">
                          <property name="visible">True</property>
                          <property name="label" translatable="yes">Wid_th:</property>
                          <property name="use_underline">True</property>
                          <property name="yalign">0.5</property>
                          <property name="xpad">0</property>
                          <property name="ypad">0</property>
-                         <property name="mnemonic_widget">spinbutton1</property>
+                         <property name="mnemonic_widget">PageWidth</property>
                        </widget>
                        <packing>
                          <property name="left_attach">0</property>
                      </child>
 
                      <child>
-                       <widget class="GtkLabel" id="label13">
+                       <widget class="GtkLabel" id="HeightLabel">
                          <property name="visible">True</property>
                          <property name="label" translatable="yes">_Height:</property>
                          <property name="use_underline">True</property>
                          <property name="yalign">0.5</property>
                          <property name="xpad">0</property>
                          <property name="ypad">0</property>
-                         <property name="mnemonic_widget">spinbutton2</property>
+                         <property name="mnemonic_widget">PageHeight</property>
                        </widget>
                        <packing>
                          <property name="left_attach">0</property>
                      </child>
 
                      <child>
-                       <widget class="GtkComboBox" id="combobox1">
-                         <property name="visible">True</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">1</property>
-                         <property name="right_attach">3</property>
-                         <property name="top_attach">0</property>
-                         <property name="bottom_attach">1</property>
-                         <property name="y_options">fill</property>
-                       </packing>
-                     </child>
-
-                     <child>
-                       <widget class="GtkSpinButton" id="spinbutton1">
+                       <widget class="GtkSpinButton" id="PageWidth">
                          <property name="visible">True</property>
                          <property name="can_focus">True</property>
                          <property name="climb_rate">1</property>
                      </child>
 
                      <child>
-                       <widget class="GtkSpinButton" id="spinbutton2">
+                       <widget class="GtkSpinButton" id="PageHeight">
                          <property name="visible">True</property>
                          <property name="can_focus">True</property>
                          <property name="climb_rate">1</property>
                      </child>
 
                      <child>
-                       <widget class="GtkComboBox" id="combobox3">
+                       <widget class="GtkVBox" id="PageWidthUnits">
+                         <property name="visible">True</property>
+                         <property name="homogeneous">False</property>
+                         <property name="spacing">0</property>
+
+                         <child>
+                           <placeholder/>
+                         </child>
+                       </widget>
+                       <packing>
+                         <property name="left_attach">2</property>
+                         <property name="right_attach">3</property>
+                         <property name="top_attach">1</property>
+                         <property name="bottom_attach">2</property>
+                         <property name="x_options">fill</property>
+                         <property name="y_options">fill</property>
+                       </packing>
+                     </child>
+
+                     <child>
+                       <widget class="GtkVBox" id="PageHeightUnits">
                          <property name="visible">True</property>
+                         <property name="homogeneous">False</property>
+                         <property name="spacing">0</property>
+
+                         <child>
+                           <placeholder/>
+                         </child>
                        </widget>
                        <packing>
                          <property name="left_attach">2</property>
                      </child>
 
                      <child>
-                       <widget class="GtkComboBox" id="combobox2">
+                       <widget class="GtkVBox" id="PageSize">
                          <property name="visible">True</property>
+                         <property name="homogeneous">False</property>
+                         <property name="spacing">0</property>
+
+                         <child>
+                           <placeholder/>
+                         </child>
                        </widget>
                        <packing>
-                         <property name="left_attach">2</property>
+                         <property name="left_attach">1</property>
                          <property name="right_attach">3</property>
-                         <property name="top_attach">1</property>
-                         <property name="bottom_attach">2</property>
+                         <property name="top_attach">0</property>
+                         <property name="bottom_attach">1</property>
                          <property name="x_options">fill</property>
                          <property name="y_options">fill</property>
                        </packing>
                      <property name="spacing">0</property>
 
                      <child>
-                       <widget class="GtkRadioButton" id="radiobutton1">
+                       <widget class="GtkRadioButton" id="Portrait">
                          <property name="visible">True</property>
                          <property name="can_focus">True</property>
                          <property name="label" translatable="yes">Po_rtrait</property>
                      </child>
 
                      <child>
-                       <widget class="GtkRadioButton" id="radiobutton2">
+                       <widget class="GtkRadioButton" id="Landscape">
                          <property name="visible">True</property>
                          <property name="can_focus">True</property>
                          <property name="label" translatable="yes">_Landscape</property>
                          <property name="active">False</property>
                          <property name="inconsistent">False</property>
                          <property name="draw_indicator">True</property>
-                         <property name="group">radiobutton1</property>
+                         <property name="group">Portrait</property>
                        </widget>
                        <packing>
                          <property name="padding">0</property>
                          </child>
 
                          <child>
-                           <widget class="GtkComboBox" id="PageStyle">
+                           <widget class="GtkVBox" id="PageStyle">
                              <property name="visible">True</property>
-                             <property name="items" translatable="yes">Default
-Empty
-Plain
-Headings
-Fancy</property>
+                             <property name="homogeneous">False</property>
+                             <property name="spacing">0</property>
+
+                             <child>
+                               <placeholder/>
+                             </child>
                            </widget>
                            <packing>
                              <property name="padding">0</property>
@@ -1394,477 +1414,518 @@ Fancy</property>
          </child>
 
          <child>
-           <widget class="GtkVBox" id="vbox4">
+           <widget class="GtkTable" id="MarginsTable">
              <property name="border_width">12</property>
              <property name="visible">True</property>
+             <property name="n_rows">8</property>
+             <property name="n_columns">3</property>
              <property name="homogeneous">False</property>
-             <property name="spacing">12</property>
+             <property name="row_spacing">6</property>
+             <property name="column_spacing">12</property>
 
              <child>
-               <widget class="GtkCheckButton" id="UseDefaultMargins">
+               <widget class="GtkLabel" id="label15">
                  <property name="visible">True</property>
-                 <property name="can_focus">True</property>
-                 <property name="label" translatable="yes">Us_e Default Margins</property>
+                 <property name="label" translatable="yes">_Top:</property>
                  <property name="use_underline">True</property>
-                 <property name="relief">GTK_RELIEF_NORMAL</property>
-                 <property name="focus_on_click">True</property>
-                 <property name="active">False</property>
-                 <property name="inconsistent">False</property>
-                 <property name="draw_indicator">True</property>
+                 <property name="use_markup">False</property>
+                 <property name="justify">GTK_JUSTIFY_LEFT</property>
+                 <property name="wrap">False</property>
+                 <property name="selectable">False</property>
+                 <property name="xalign">0</property>
+                 <property name="yalign">0.5</property>
+                 <property name="xpad">0</property>
+                 <property name="ypad">0</property>
+                 <property name="mnemonic_widget">MarginTop</property>
                </widget>
                <packing>
-                 <property name="padding">0</property>
-                 <property name="expand">False</property>
-                 <property name="fill">False</property>
+                 <property name="left_attach">0</property>
+                 <property name="right_attach">1</property>
+                 <property name="top_attach">1</property>
+                 <property name="bottom_attach">2</property>
+                 <property name="x_options">fill</property>
+                 <property name="y_options"></property>
                </packing>
              </child>
 
              <child>
-               <widget class="GtkAlignment" id="alignment8">
+               <widget class="GtkLabel" id="label16">
                  <property name="visible">True</property>
-                 <property name="xalign">0.5</property>
+                 <property name="label" translatable="yes">_Bottom:</property>
+                 <property name="use_underline">True</property>
+                 <property name="use_markup">False</property>
+                 <property name="justify">GTK_JUSTIFY_LEFT</property>
+                 <property name="wrap">False</property>
+                 <property name="selectable">False</property>
+                 <property name="xalign">0</property>
                  <property name="yalign">0.5</property>
-                 <property name="xscale">1</property>
-                 <property name="yscale">1</property>
-                 <property name="top_padding">0</property>
-                 <property name="bottom_padding">0</property>
-                 <property name="left_padding">12</property>
-                 <property name="right_padding">0</property>
+                 <property name="xpad">0</property>
+                 <property name="ypad">0</property>
+                 <property name="mnemonic_widget">MarginBottom</property>
+               </widget>
+               <packing>
+                 <property name="left_attach">0</property>
+                 <property name="right_attach">1</property>
+                 <property name="top_attach">2</property>
+                 <property name="bottom_attach">3</property>
+                 <property name="x_options">fill</property>
+                 <property name="y_options"></property>
+               </packing>
+             </child>
 
-                 <child>
-                   <widget class="GtkTable" id="MarginsTable">
-                     <property name="visible">True</property>
-                     <property name="n_rows">7</property>
-                     <property name="n_columns">3</property>
-                     <property name="homogeneous">False</property>
-                     <property name="row_spacing">6</property>
-                     <property name="column_spacing">12</property>
+             <child>
+               <widget class="GtkLabel" id="label17">
+                 <property name="visible">True</property>
+                 <property name="label" translatable="yes">_Inner:</property>
+                 <property name="use_underline">True</property>
+                 <property name="use_markup">False</property>
+                 <property name="justify">GTK_JUSTIFY_LEFT</property>
+                 <property name="wrap">False</property>
+                 <property name="selectable">False</property>
+                 <property name="xalign">0</property>
+                 <property name="yalign">0.5</property>
+                 <property name="xpad">0</property>
+                 <property name="ypad">0</property>
+                 <property name="mnemonic_widget">MarginInner</property>
+               </widget>
+               <packing>
+                 <property name="left_attach">0</property>
+                 <property name="right_attach">1</property>
+                 <property name="top_attach">3</property>
+                 <property name="bottom_attach">4</property>
+                 <property name="x_options">fill</property>
+                 <property name="y_options"></property>
+               </packing>
+             </child>
 
-                     <child>
-                       <widget class="GtkLabel" id="label15">
-                         <property name="visible">True</property>
-                         <property name="label" translatable="yes">_Top:</property>
-                         <property name="use_underline">True</property>
-                         <property name="use_markup">False</property>
-                         <property name="justify">GTK_JUSTIFY_LEFT</property>
-                         <property name="wrap">False</property>
-                         <property name="selectable">False</property>
-                         <property name="xalign">0</property>
-                         <property name="yalign">0.5</property>
-                         <property name="xpad">0</property>
-                         <property name="ypad">0</property>
-                         <property name="mnemonic_widget">MarginTop</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">0</property>
-                         <property name="right_attach">1</property>
-                         <property name="top_attach">0</property>
-                         <property name="bottom_attach">1</property>
-                         <property name="x_options">fill</property>
-                         <property name="y_options"></property>
-                       </packing>
-                     </child>
+             <child>
+               <widget class="GtkLabel" id="label18">
+                 <property name="visible">True</property>
+                 <property name="label" translatable="yes">O_uter:</property>
+                 <property name="use_underline">True</property>
+                 <property name="use_markup">False</property>
+                 <property name="justify">GTK_JUSTIFY_LEFT</property>
+                 <property name="wrap">False</property>
+                 <property name="selectable">False</property>
+                 <property name="xalign">0</property>
+                 <property name="yalign">0.5</property>
+                 <property name="xpad">0</property>
+                 <property name="ypad">0</property>
+                 <property name="mnemonic_widget">MarginOuter</property>
+               </widget>
+               <packing>
+                 <property name="left_attach">0</property>
+                 <property name="right_attach">1</property>
+                 <property name="top_attach">4</property>
+                 <property name="bottom_attach">5</property>
+                 <property name="x_options">fill</property>
+                 <property name="y_options"></property>
+               </packing>
+             </child>
 
-                     <child>
-                       <widget class="GtkLabel" id="label16">
-                         <property name="visible">True</property>
-                         <property name="label" translatable="yes">_Bottom:</property>
-                         <property name="use_underline">True</property>
-                         <property name="use_markup">False</property>
-                         <property name="justify">GTK_JUSTIFY_LEFT</property>
-                         <property name="wrap">False</property>
-                         <property name="selectable">False</property>
-                         <property name="xalign">0</property>
-                         <property name="yalign">0.5</property>
-                         <property name="xpad">0</property>
-                         <property name="ypad">0</property>
-                         <property name="mnemonic_widget">spinbutton10</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">0</property>
-                         <property name="right_attach">1</property>
-                         <property name="top_attach">1</property>
-                         <property name="bottom_attach">2</property>
-                         <property name="x_options">fill</property>
-                         <property name="y_options"></property>
-                       </packing>
-                     </child>
+             <child>
+               <widget class="GtkLabel" id="label19">
+                 <property name="visible">True</property>
+                 <property name="label" translatable="yes">Head _sep</property>
+                 <property name="use_underline">True</property>
+                 <property name="use_markup">False</property>
+                 <property name="justify">GTK_JUSTIFY_LEFT</property>
+                 <property name="wrap">False</property>
+                 <property name="selectable">False</property>
+                 <property name="xalign">0</property>
+                 <property name="yalign">0.5</property>
+                 <property name="xpad">0</property>
+                 <property name="ypad">0</property>
+                 <property name="mnemonic_widget">MarginHeadSep</property>
+               </widget>
+               <packing>
+                 <property name="left_attach">0</property>
+                 <property name="right_attach">1</property>
+                 <property name="top_attach">5</property>
+                 <property name="bottom_attach">6</property>
+                 <property name="x_options">fill</property>
+                 <property name="y_options"></property>
+               </packing>
+             </child>
 
-                     <child>
-                       <widget class="GtkLabel" id="label17">
-                         <property name="visible">True</property>
-                         <property name="label" translatable="yes">_Inner:</property>
-                         <property name="use_underline">True</property>
-                         <property name="use_markup">False</property>
-                         <property name="justify">GTK_JUSTIFY_LEFT</property>
-                         <property name="wrap">False</property>
-                         <property name="selectable">False</property>
-                         <property name="xalign">0</property>
-                         <property name="yalign">0.5</property>
-                         <property name="xpad">0</property>
-                         <property name="ypad">0</property>
-                         <property name="mnemonic_widget">spinbutton11</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">0</property>
-                         <property name="right_attach">1</property>
-                         <property name="top_attach">2</property>
-                         <property name="bottom_attach">3</property>
-                         <property name="x_options">fill</property>
-                         <property name="y_options"></property>
-                       </packing>
-                     </child>
+             <child>
+               <widget class="GtkLabel" id="label20">
+                 <property name="visible">True</property>
+                 <property name="label" translatable="yes">Head _height:</property>
+                 <property name="use_underline">True</property>
+                 <property name="use_markup">False</property>
+                 <property name="justify">GTK_JUSTIFY_LEFT</property>
+                 <property name="wrap">False</property>
+                 <property name="selectable">False</property>
+                 <property name="xalign">0</property>
+                 <property name="yalign">0.5</property>
+                 <property name="xpad">0</property>
+                 <property name="ypad">0</property>
+                 <property name="mnemonic_widget">MarginHeadHeight</property>
+               </widget>
+               <packing>
+                 <property name="left_attach">0</property>
+                 <property name="right_attach">1</property>
+                 <property name="top_attach">6</property>
+                 <property name="bottom_attach">7</property>
+                 <property name="x_options">fill</property>
+                 <property name="y_options"></property>
+               </packing>
+             </child>
 
-                     <child>
-                       <widget class="GtkLabel" id="label18">
-                         <property name="visible">True</property>
-                         <property name="label" translatable="yes">O_uter:</property>
-                         <property name="use_underline">True</property>
-                         <property name="use_markup">False</property>
-                         <property name="justify">GTK_JUSTIFY_LEFT</property>
-                         <property name="wrap">False</property>
-                         <property name="selectable">False</property>
-                         <property name="xalign">0</property>
-                         <property name="yalign">0.5</property>
-                         <property name="xpad">0</property>
-                         <property name="ypad">0</property>
-                         <property name="mnemonic_widget">spinbutton12</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">0</property>
-                         <property name="right_attach">1</property>
-                         <property name="top_attach">3</property>
-                         <property name="bottom_attach">4</property>
-                         <property name="x_options">fill</property>
-                         <property name="y_options"></property>
-                       </packing>
-                     </child>
+             <child>
+               <widget class="GtkLabel" id="label21">
+                 <property name="visible">True</property>
+                 <property name="label" translatable="yes">_Foot skip:</property>
+                 <property name="use_underline">True</property>
+                 <property name="use_markup">False</property>
+                 <property name="justify">GTK_JUSTIFY_LEFT</property>
+                 <property name="wrap">False</property>
+                 <property name="selectable">False</property>
+                 <property name="xalign">0</property>
+                 <property name="yalign">0.5</property>
+                 <property name="xpad">0</property>
+                 <property name="ypad">0</property>
+                 <property name="mnemonic_widget">MarginFootSkip</property>
+               </widget>
+               <packing>
+                 <property name="left_attach">0</property>
+                 <property name="right_attach">1</property>
+                 <property name="top_attach">7</property>
+                 <property name="bottom_attach">8</property>
+                 <property name="x_options">fill</property>
+                 <property name="y_options"></property>
+               </packing>
+             </child>
 
-                     <child>
-                       <widget class="GtkLabel" id="label19">
-                         <property name="visible">True</property>
-                         <property name="label" translatable="yes">Head _sep</property>
-                         <property name="use_underline">True</property>
-                         <property name="use_markup">False</property>
-                         <property name="justify">GTK_JUSTIFY_LEFT</property>
-                         <property name="wrap">False</property>
-                         <property name="selectable">False</property>
-                         <property name="xalign">0</property>
-                         <property name="yalign">0.5</property>
-                         <property name="xpad">0</property>
-                         <property name="ypad">0</property>
-                         <property name="mnemonic_widget">spinbutton13</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">0</property>
-                         <property name="right_attach">1</property>
-                         <property name="top_attach">4</property>
-                         <property name="bottom_attach">5</property>
-                         <property name="x_options">fill</property>
-                         <property name="y_options"></property>
-                       </packing>
-                     </child>
+             <child>
+               <widget class="GtkSpinButton" id="MarginTop">
+                 <property name="visible">True</property>
+                 <property name="can_focus">True</property>
+                 <property name="climb_rate">1</property>
+                 <property name="digits">2</property>
+                 <property name="numeric">True</property>
+                 <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+                 <property name="snap_to_ticks">False</property>
+                 <property name="wrap">False</property>
+                 <property name="adjustment">666 0 65536 0.01 10 10</property>
+               </widget>
+               <packing>
+                 <property name="left_attach">1</property>
+                 <property name="right_attach">2</property>
+                 <property name="top_attach">1</property>
+                 <property name="bottom_attach">2</property>
+                 <property name="y_options"></property>
+               </packing>
+             </child>
 
-                     <child>
-                       <widget class="GtkLabel" id="label20">
-                         <property name="visible">True</property>
-                         <property name="label" translatable="yes">Head _height:</property>
-                         <property name="use_underline">True</property>
-                         <property name="use_markup">False</property>
-                         <property name="justify">GTK_JUSTIFY_LEFT</property>
-                         <property name="wrap">False</property>
-                         <property name="selectable">False</property>
-                         <property name="xalign">0</property>
-                         <property name="yalign">0.5</property>
-                         <property name="xpad">0</property>
-                         <property name="ypad">0</property>
-                         <property name="mnemonic_widget">spinbutton14</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">0</property>
-                         <property name="right_attach">1</property>
-                         <property name="top_attach">5</property>
-                         <property name="bottom_attach">6</property>
-                         <property name="x_options">fill</property>
-                         <property name="y_options"></property>
-                       </packing>
-                     </child>
+             <child>
+               <widget class="GtkSpinButton" id="MarginBottom">
+                 <property name="visible">True</property>
+                 <property name="can_focus">True</property>
+                 <property name="climb_rate">1</property>
+                 <property name="digits">2</property>
+                 <property name="numeric">True</property>
+                 <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+                 <property name="snap_to_ticks">False</property>
+                 <property name="wrap">False</property>
+                 <property name="adjustment">666 0 65536 0.01 10 10</property>
+               </widget>
+               <packing>
+                 <property name="left_attach">1</property>
+                 <property name="right_attach">2</property>
+                 <property name="top_attach">2</property>
+                 <property name="bottom_attach">3</property>
+                 <property name="y_options"></property>
+               </packing>
+             </child>
 
-                     <child>
-                       <widget class="GtkLabel" id="label21">
-                         <property name="visible">True</property>
-                         <property name="label" translatable="yes">_Foot skip:</property>
-                         <property name="use_underline">True</property>
-                         <property name="use_markup">False</property>
-                         <property name="justify">GTK_JUSTIFY_LEFT</property>
-                         <property name="wrap">False</property>
-                         <property name="selectable">False</property>
-                         <property name="xalign">0</property>
-                         <property name="yalign">0.5</property>
-                         <property name="xpad">0</property>
-                         <property name="ypad">0</property>
-                         <property name="mnemonic_widget">spinbutton15</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">0</property>
-                         <property name="right_attach">1</property>
-                         <property name="top_attach">6</property>
-                         <property name="bottom_attach">7</property>
-                         <property name="x_options">fill</property>
-                         <property name="y_options"></property>
-                       </packing>
-                     </child>
+             <child>
+               <widget class="GtkSpinButton" id="MarginInner">
+                 <property name="visible">True</property>
+                 <property name="can_focus">True</property>
+                 <property name="climb_rate">1</property>
+                 <property name="digits">2</property>
+                 <property name="numeric">True</property>
+                 <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+                 <property name="snap_to_ticks">False</property>
+                 <property name="wrap">False</property>
+                 <property name="adjustment">666 0 65536 0.01 10 10</property>
+               </widget>
+               <packing>
+                 <property name="left_attach">1</property>
+                 <property name="right_attach">2</property>
+                 <property name="top_attach">3</property>
+                 <property name="bottom_attach">4</property>
+                 <property name="y_options"></property>
+               </packing>
+             </child>
 
-                     <child>
-                       <widget class="GtkSpinButton" id="MarginTop">
-                         <property name="visible">True</property>
-                         <property name="can_focus">True</property>
-                         <property name="climb_rate">1</property>
-                         <property name="digits">2</property>
-                         <property name="numeric">True</property>
-                         <property name="update_policy">GTK_UPDATE_ALWAYS</property>
-                         <property name="snap_to_ticks">False</property>
-                         <property name="wrap">False</property>
-                         <property name="adjustment">666 0 65536 0.01 10 10</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">1</property>
-                         <property name="right_attach">2</property>
-                         <property name="top_attach">0</property>
-                         <property name="bottom_attach">1</property>
-                         <property name="y_options"></property>
-                       </packing>
-                     </child>
+             <child>
+               <widget class="GtkSpinButton" id="MarginOuter">
+                 <property name="visible">True</property>
+                 <property name="can_focus">True</property>
+                 <property name="climb_rate">1</property>
+                 <property name="digits">2</property>
+                 <property name="numeric">True</property>
+                 <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+                 <property name="snap_to_ticks">False</property>
+                 <property name="wrap">False</property>
+                 <property name="adjustment">666 0 65536 0.01 10 10</property>
+               </widget>
+               <packing>
+                 <property name="left_attach">1</property>
+                 <property name="right_attach">2</property>
+                 <property name="top_attach">4</property>
+                 <property name="bottom_attach">5</property>
+                 <property name="y_options"></property>
+               </packing>
+             </child>
 
-                     <child>
-                       <widget class="GtkComboBox" id="MarginTopUnits">
-                         <property name="visible">True</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">2</property>
-                         <property name="right_attach">3</property>
-                         <property name="top_attach">0</property>
-                         <property name="bottom_attach">1</property>
-                         <property name="y_options">fill</property>
-                       </packing>
-                     </child>
+             <child>
+               <widget class="GtkSpinButton" id="MarginHeadSep">
+                 <property name="visible">True</property>
+                 <property name="can_focus">True</property>
+                 <property name="climb_rate">1</property>
+                 <property name="digits">2</property>
+                 <property name="numeric">True</property>
+                 <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+                 <property name="snap_to_ticks">False</property>
+                 <property name="wrap">False</property>
+                 <property name="adjustment">666 0 65536 0.01 10 10</property>
+               </widget>
+               <packing>
+                 <property name="left_attach">1</property>
+                 <property name="right_attach">2</property>
+                 <property name="top_attach">5</property>
+                 <property name="bottom_attach">6</property>
+                 <property name="y_options"></property>
+               </packing>
+             </child>
 
-                     <child>
-                       <widget class="GtkComboBox" id="MarginBottomUnits">
-                         <property name="visible">True</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">2</property>
-                         <property name="right_attach">3</property>
-                         <property name="top_attach">1</property>
-                         <property name="bottom_attach">2</property>
-                         <property name="x_options">fill</property>
-                         <property name="y_options">fill</property>
-                       </packing>
-                     </child>
+             <child>
+               <widget class="GtkSpinButton" id="MarginHeadHeight">
+                 <property name="visible">True</property>
+                 <property name="can_focus">True</property>
+                 <property name="climb_rate">1</property>
+                 <property name="digits">2</property>
+                 <property name="numeric">True</property>
+                 <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+                 <property name="snap_to_ticks">False</property>
+                 <property name="wrap">False</property>
+                 <property name="adjustment">666 0 65536 0.01 10 10</property>
+               </widget>
+               <packing>
+                 <property name="left_attach">1</property>
+                 <property name="right_attach">2</property>
+                 <property name="top_attach">6</property>
+                 <property name="bottom_attach">7</property>
+                 <property name="y_options"></property>
+               </packing>
+             </child>
 
-                     <child>
-                       <widget class="GtkComboBox" id="MarginInnerUnits">
-                         <property name="visible">True</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">2</property>
-                         <property name="right_attach">3</property>
-                         <property name="top_attach">2</property>
-                         <property name="bottom_attach">3</property>
-                         <property name="x_options">fill</property>
-                         <property name="y_options">fill</property>
-                       </packing>
-                     </child>
+             <child>
+               <widget class="GtkSpinButton" id="MarginFootSkip">
+                 <property name="visible">True</property>
+                 <property name="can_focus">True</property>
+                 <property name="climb_rate">1</property>
+                 <property name="digits">2</property>
+                 <property name="numeric">True</property>
+                 <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+                 <property name="snap_to_ticks">False</property>
+                 <property name="wrap">False</property>
+                 <property name="adjustment">666 0 65536 0.01 10 10</property>
+               </widget>
+               <packing>
+                 <property name="left_attach">1</property>
+                 <property name="right_attach">2</property>
+                 <property name="top_attach">7</property>
+                 <property name="bottom_attach">8</property>
+                 <property name="y_options"></property>
+               </packing>
+             </child>
 
-                     <child>
-                       <widget class="GtkComboBox" id="MarginOuterUnits">
-                         <property name="visible">True</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">2</property>
-                         <property name="right_attach">3</property>
-                         <property name="top_attach">3</property>
-                         <property name="bottom_attach">4</property>
-                         <property name="x_options">fill</property>
-                         <property name="y_options">fill</property>
-                       </packing>
-                     </child>
+             <child>
+               <widget class="GtkLabel" id="label50">
+                 <property name="visible">True</property>
+                 <property name="label" translatable="yes">Ma_rgins:</property>
+                 <property name="use_underline">True</property>
+                 <property name="use_markup">False</property>
+                 <property name="justify">GTK_JUSTIFY_LEFT</property>
+                 <property name="wrap">False</property>
+                 <property name="selectable">False</property>
+                 <property name="xalign">0</property>
+                 <property name="yalign">0.5</property>
+                 <property name="xpad">0</property>
+                 <property name="ypad">0</property>
+               </widget>
+               <packing>
+                 <property name="left_attach">0</property>
+                 <property name="right_attach">1</property>
+                 <property name="top_attach">0</property>
+                 <property name="bottom_attach">1</property>
+                 <property name="x_options">fill</property>
+                 <property name="y_options"></property>
+               </packing>
+             </child>
 
-                     <child>
-                       <widget class="GtkComboBox" id="MarginHeadSepUnits">
-                         <property name="visible">True</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">2</property>
-                         <property name="right_attach">3</property>
-                         <property name="top_attach">4</property>
-                         <property name="bottom_attach">5</property>
-                         <property name="x_options">fill</property>
-                         <property name="y_options">fill</property>
-                       </packing>
-                     </child>
+             <child>
+               <widget class="GtkVBox" id="Margins">
+                 <property name="visible">True</property>
+                 <property name="homogeneous">False</property>
+                 <property name="spacing">0</property>
 
-                     <child>
-                       <widget class="GtkComboBox" id="MarginHeadHeightUnits">
-                         <property name="visible">True</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">2</property>
-                         <property name="right_attach">3</property>
-                         <property name="top_attach">5</property>
-                         <property name="bottom_attach">6</property>
-                         <property name="x_options">fill</property>
-                         <property name="y_options">fill</property>
-                       </packing>
-                     </child>
+                 <child>
+                   <placeholder/>
+                 </child>
+               </widget>
+               <packing>
+                 <property name="left_attach">1</property>
+                 <property name="right_attach">3</property>
+                 <property name="top_attach">0</property>
+                 <property name="bottom_attach">1</property>
+                 <property name="x_options">fill</property>
+                 <property name="y_options">fill</property>
+               </packing>
+             </child>
+
+             <child>
+               <widget class="GtkVBox" id="MarginTopUnits">
+                 <property name="visible">True</property>
+                 <property name="homogeneous">False</property>
+                 <property name="spacing">0</property>
+
+                 <child>
+                   <placeholder/>
+                 </child>
+               </widget>
+               <packing>
+                 <property name="left_attach">2</property>
+                 <property name="right_attach">3</property>
+                 <property name="top_attach">1</property>
+                 <property name="bottom_attach">2</property>
+                 <property name="x_options">fill</property>
+                 <property name="y_options">fill</property>
+               </packing>
+             </child>
+
+             <child>
+               <widget class="GtkVBox" id="MarginBottomUnits">
+                 <property name="visible">True</property>
+                 <property name="homogeneous">False</property>
+                 <property name="spacing">0</property>
+
+                 <child>
+                   <placeholder/>
+                 </child>
+               </widget>
+               <packing>
+                 <property name="left_attach">2</property>
+                 <property name="right_attach">3</property>
+                 <property name="top_attach">2</property>
+                 <property name="bottom_attach">3</property>
+                 <property name="x_options">fill</property>
+                 <property name="y_options">fill</property>
+               </packing>
+             </child>
+
+             <child>
+               <widget class="GtkVBox" id="MarginInnerUnits">
+                 <property name="visible">True</property>
+                 <property name="homogeneous">False</property>
+                 <property name="spacing">0</property>
+
+                 <child>
+                   <placeholder/>
+                 </child>
+               </widget>
+               <packing>
+                 <property name="left_attach">2</property>
+                 <property name="right_attach">3</property>
+                 <property name="top_attach">3</property>
+                 <property name="bottom_attach">4</property>
+                 <property name="x_options">fill</property>
+                 <property name="y_options">fill</property>
+               </packing>
+             </child>
+
+             <child>
+               <widget class="GtkVBox" id="MarginOuterUnits">
+                 <property name="visible">True</property>
+                 <property name="homogeneous">False</property>
+                 <property name="spacing">0</property>
 
-                     <child>
-                       <widget class="GtkComboBox" id="MarginFootSkipUnits">
-                         <property name="visible">True</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">2</property>
-                         <property name="right_attach">3</property>
-                         <property name="top_attach">6</property>
-                         <property name="bottom_attach">7</property>
-                         <property name="x_options">fill</property>
-                         <property name="y_options">fill</property>
-                       </packing>
-                     </child>
+                 <child>
+                   <placeholder/>
+                 </child>
+               </widget>
+               <packing>
+                 <property name="left_attach">2</property>
+                 <property name="right_attach">3</property>
+                 <property name="top_attach">4</property>
+                 <property name="bottom_attach">5</property>
+                 <property name="x_options">fill</property>
+                 <property name="y_options">fill</property>
+               </packing>
+             </child>
 
-                     <child>
-                       <widget class="GtkSpinButton" id="spinbutton10">
-                         <property name="visible">True</property>
-                         <property name="can_focus">True</property>
-                         <property name="climb_rate">1</property>
-                         <property name="digits">2</property>
-                         <property name="numeric">True</property>
-                         <property name="update_policy">GTK_UPDATE_ALWAYS</property>
-                         <property name="snap_to_ticks">False</property>
-                         <property name="wrap">False</property>
-                         <property name="adjustment">666 0 65536 0.01 10 10</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">1</property>
-                         <property name="right_attach">2</property>
-                         <property name="top_attach">1</property>
-                         <property name="bottom_attach">2</property>
-                         <property name="y_options"></property>
-                       </packing>
-                     </child>
+             <child>
+               <widget class="GtkVBox" id="MarginHeadSepUnits">
+                 <property name="visible">True</property>
+                 <property name="homogeneous">False</property>
+                 <property name="spacing">0</property>
 
-                     <child>
-                       <widget class="GtkSpinButton" id="spinbutton11">
-                         <property name="visible">True</property>
-                         <property name="can_focus">True</property>
-                         <property name="climb_rate">1</property>
-                         <property name="digits">2</property>
-                         <property name="numeric">True</property>
-                         <property name="update_policy">GTK_UPDATE_ALWAYS</property>
-                         <property name="snap_to_ticks">False</property>
-                         <property name="wrap">False</property>
-                         <property name="adjustment">666 0 65536 0.01 10 10</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">1</property>
-                         <property name="right_attach">2</property>
-                         <property name="top_attach">2</property>
-                         <property name="bottom_attach">3</property>
-                         <property name="y_options"></property>
-                       </packing>
-                     </child>
+                 <child>
+                   <placeholder/>
+                 </child>
+               </widget>
+               <packing>
+                 <property name="left_attach">2</property>
+                 <property name="right_attach">3</property>
+                 <property name="top_attach">5</property>
+                 <property name="bottom_attach">6</property>
+                 <property name="x_options">fill</property>
+                 <property name="y_options">fill</property>
+               </packing>
+             </child>
 
-                     <child>
-                       <widget class="GtkSpinButton" id="spinbutton12">
-                         <property name="visible">True</property>
-                         <property name="can_focus">True</property>
-                         <property name="climb_rate">1</property>
-                         <property name="digits">2</property>
-                         <property name="numeric">True</property>
-                         <property name="update_policy">GTK_UPDATE_ALWAYS</property>
-                         <property name="snap_to_ticks">False</property>
-                         <property name="wrap">False</property>
-                         <property name="adjustment">666 0 65536 0.01 10 10</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">1</property>
-                         <property name="right_attach">2</property>
-                         <property name="top_attach">3</property>
-                         <property name="bottom_attach">4</property>
-                         <property name="y_options"></property>
-                       </packing>
-                     </child>
+             <child>
+               <widget class="GtkVBox" id="MarginHeadHeightUnits">
+                 <property name="visible">True</property>
+                 <property name="homogeneous">False</property>
+                 <property name="spacing">0</property>
 
-                     <child>
-                       <widget class="GtkSpinButton" id="spinbutton13">
-                         <property name="visible">True</property>
-                         <property name="can_focus">True</property>
-                         <property name="climb_rate">1</property>
-                         <property name="digits">2</property>
-                         <property name="numeric">True</property>
-                         <property name="update_policy">GTK_UPDATE_ALWAYS</property>
-                         <property name="snap_to_ticks">False</property>
-                         <property name="wrap">False</property>
-                         <property name="adjustment">666 0 65536 0.01 10 10</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">1</property>
-                         <property name="right_attach">2</property>
-                         <property name="top_attach">4</property>
-                         <property name="bottom_attach">5</property>
-                         <property name="y_options"></property>
-                       </packing>
-                     </child>
+                 <child>
+                   <placeholder/>
+                 </child>
+               </widget>
+               <packing>
+                 <property name="left_attach">2</property>
+                 <property name="right_attach">3</property>
+                 <property name="top_attach">6</property>
+                 <property name="bottom_attach">7</property>
+                 <property name="x_options">fill</property>
+                 <property name="y_options">fill</property>
+               </packing>
+             </child>
 
-                     <child>
-                       <widget class="GtkSpinButton" id="spinbutton14">
-                         <property name="visible">True</property>
-                         <property name="can_focus">True</property>
-                         <property name="climb_rate">1</property>
-                         <property name="digits">2</property>
-                         <property name="numeric">True</property>
-                         <property name="update_policy">GTK_UPDATE_ALWAYS</property>
-                         <property name="snap_to_ticks">False</property>
-                         <property name="wrap">False</property>
-                         <property name="adjustment">666 0 65536 0.01 10 10</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">1</property>
-                         <property name="right_attach">2</property>
-                         <property name="top_attach">5</property>
-                         <property name="bottom_attach">6</property>
-                         <property name="y_options"></property>
-                       </packing>
-                     </child>
+             <child>
+               <widget class="GtkVBox" id="MarginFootSkipUnits">
+                 <property name="visible">True</property>
+                 <property name="homogeneous">False</property>
+                 <property name="spacing">0</property>
 
-                     <child>
-                       <widget class="GtkSpinButton" id="spinbutton15">
-                         <property name="visible">True</property>
-                         <property name="can_focus">True</property>
-                         <property name="climb_rate">1</property>
-                         <property name="digits">2</property>
-                         <property name="numeric">True</property>
-                         <property name="update_policy">GTK_UPDATE_ALWAYS</property>
-                         <property name="snap_to_ticks">False</property>
-                         <property name="wrap">False</property>
-                         <property name="adjustment">666 0 65536 0.01 10 10</property>
-                       </widget>
-                       <packing>
-                         <property name="left_attach">1</property>
-                         <property name="right_attach">2</property>
-                         <property name="top_attach">6</property>
-                         <property name="bottom_attach">7</property>
-                         <property name="y_options"></property>
-                       </packing>
-                     </child>
-                   </widget>
+                 <child>
+                   <placeholder/>
                  </child>
                </widget>
                <packing>
-                 <property name="padding">0</property>
-                 <property name="expand">True</property>
-                 <property name="fill">True</property>
+                 <property name="left_attach">2</property>
+                 <property name="right_attach">3</property>
+                 <property name="top_attach">7</property>
+                 <property name="bottom_attach">8</property>
+                 <property name="x_options">fill</property>
+                 <property name="y_options">fill</property>
                </packing>
              </child>
            </widget>
@@ -1894,20 +1955,21 @@ Fancy</property>
          </child>
 
          <child>
-           <widget class="GtkTable" id="table6">
+           <widget class="GtkTable" id="table9">
+             <property name="border_width">12</property>
              <property name="visible">True</property>
-             <property name="n_rows">8</property>
-             <property name="n_columns">3</property>
+             <property name="n_rows">3</property>
+             <property name="n_columns">2</property>
              <property name="homogeneous">False</property>
-             <property name="row_spacing">6</property>
+             <property name="row_spacing">12</property>
              <property name="column_spacing">12</property>
 
              <child>
-               <widget class="GtkLabel" id="label36">
+               <widget class="GtkLabel" id="label54">
                  <property name="visible">True</property>
-                 <property name="label" translatable="yes">&lt;b&gt;Item&lt;/b&gt;</property>
+                 <property name="label" translatable="yes">Language:</property>
                  <property name="use_underline">False</property>
-                 <property name="use_markup">True</property>
+                 <property name="use_markup">False</property>
                  <property name="justify">GTK_JUSTIFY_LEFT</property>
                  <property name="wrap">False</property>
                  <property name="selectable">False</property>
@@ -1927,35 +1989,30 @@ Fancy</property>
              </child>
 
              <child>
-               <widget class="GtkLabel" id="label37">
+               <widget class="GtkVBox" id="Language">
                  <property name="visible">True</property>
-                 <property name="label" translatable="yes">&lt;b&gt;Numbered&lt;/b&gt;</property>
-                 <property name="use_underline">False</property>
-                 <property name="use_markup">True</property>
-                 <property name="justify">GTK_JUSTIFY_LEFT</property>
-                 <property name="wrap">False</property>
-                 <property name="selectable">False</property>
-                 <property name="xalign">0</property>
-                 <property name="yalign">0.5</property>
-                 <property name="xpad">0</property>
-                 <property name="ypad">0</property>
+                 <property name="homogeneous">False</property>
+                 <property name="spacing">0</property>
+
+                 <child>
+                   <placeholder/>
+                 </child>
                </widget>
                <packing>
                  <property name="left_attach">1</property>
                  <property name="right_attach">2</property>
                  <property name="top_attach">0</property>
                  <property name="bottom_attach">1</property>
-                 <property name="x_options">fill</property>
-                 <property name="y_options"></property>
+                 <property name="y_options">fill</property>
                </packing>
              </child>
 
              <child>
-               <widget class="GtkLabel" id="label38">
+               <widget class="GtkLabel" id="label55">
                  <property name="visible">True</property>
-                 <property name="label" translatable="yes">&lt;b&gt;Show in TOC&lt;/b&gt;</property>
+                 <property name="label" translatable="yes">Text encoding:</property>
                  <property name="use_underline">False</property>
-                 <property name="use_markup">True</property>
+                 <property name="use_markup">False</property>
                  <property name="justify">GTK_JUSTIFY_LEFT</property>
                  <property name="wrap">False</property>
                  <property name="selectable">False</property>
@@ -1965,51 +2022,181 @@ Fancy</property>
                  <property name="ypad">0</property>
                </widget>
                <packing>
-                 <property name="left_attach">2</property>
-                 <property name="right_attach">3</property>
-                 <property name="top_attach">0</property>
-                 <property name="bottom_attach">1</property>
+                 <property name="left_attach">0</property>
+                 <property name="right_attach">1</property>
+                 <property name="top_attach">1</property>
+                 <property name="bottom_attach">2</property>
                  <property name="x_options">fill</property>
                  <property name="y_options"></property>
                </packing>
              </child>
 
              <child>
-               <widget class="GtkLabel" id="label39">
+               <widget class="GtkVBox" id="TextEncoding">
                  <property name="visible">True</property>
-                 <property name="label" translatable="yes">C_hapter</property>
-                 <property name="use_underline">True</property>
-                 <property name="use_markup">False</property>
-                 <property name="justify">GTK_JUSTIFY_LEFT</property>
-                 <property name="wrap">False</property>
-                 <property name="selectable">False</property>
-                 <property name="xalign">0</property>
-                 <property name="yalign">0.5</property>
-                 <property name="xpad">0</property>
-                 <property name="ypad">0</property>
-                 <property name="mnemonic_widget">checkbutton1</property>
+                 <property name="homogeneous">False</property>
+                 <property name="spacing">0</property>
+
+                 <child>
+                   <placeholder/>
+                 </child>
+               </widget>
+               <packing>
+                 <property name="left_attach">1</property>
+                 <property name="right_attach">2</property>
+                 <property name="top_attach">1</property>
+                 <property name="bottom_attach">2</property>
+                 <property name="x_options">fill</property>
+                 <property name="y_options">fill</property>
+               </packing>
+             </child>
+
+             <child>
+               <widget class="GtkVBox" id="vbox20">
+                 <property name="visible">True</property>
+                 <property name="homogeneous">False</property>
+                 <property name="spacing">0</property>
+
+                 <child>
+                   <widget class="GtkRadioButton" id="EnglishQuote">
+                     <property name="visible">True</property>
+                     <property name="can_focus">True</property>
+                     <property name="label" translatable="yes">‶Quotation”</property>
+                     <property name="use_underline">True</property>
+                     <property name="relief">GTK_RELIEF_NORMAL</property>
+                     <property name="focus_on_click">True</property>
+                     <property name="active">False</property>
+                     <property name="inconsistent">False</property>
+                     <property name="draw_indicator">True</property>
+                   </widget>
+                   <packing>
+                     <property name="padding">0</property>
+                     <property name="expand">False</property>
+                     <property name="fill">False</property>
+                   </packing>
+                 </child>
+
+                 <child>
+                   <widget class="GtkRadioButton" id="SwedishQuote">
+                     <property name="visible">True</property>
+                     <property name="can_focus">True</property>
+                     <property name="label" translatable="yes">“Quotation”</property>
+                     <property name="use_underline">True</property>
+                     <property name="relief">GTK_RELIEF_NORMAL</property>
+                     <property name="focus_on_click">True</property>
+                     <property name="active">False</property>
+                     <property name="inconsistent">False</property>
+                     <property name="draw_indicator">True</property>
+                     <property name="group">EnglishQuote</property>
+                   </widget>
+                   <packing>
+                     <property name="padding">0</property>
+                     <property name="expand">False</property>
+                     <property name="fill">False</property>
+                   </packing>
+                 </child>
+
+                 <child>
+                   <widget class="GtkRadioButton" id="GermanQuote">
+                     <property name="visible">True</property>
+                     <property name="can_focus">True</property>
+                     <property name="label" translatable="yes">„Quotation‶</property>
+                     <property name="use_underline">True</property>
+                     <property name="relief">GTK_RELIEF_NORMAL</property>
+                     <property name="focus_on_click">True</property>
+                     <property name="active">False</property>
+                     <property name="inconsistent">False</property>
+                     <property name="draw_indicator">True</property>
+                     <property name="group">EnglishQuote</property>
+                   </widget>
+                   <packing>
+                     <property name="padding">0</property>
+                     <property name="expand">False</property>
+                     <property name="fill">False</property>
+                   </packing>
+                 </child>
+
+                 <child>
+                   <widget class="GtkRadioButton" id="PolishQuote">
+                     <property name="visible">True</property>
+                     <property name="can_focus">True</property>
+                     <property name="label" translatable="yes">„Quotation''</property>
+                     <property name="use_underline">True</property>
+                     <property name="relief">GTK_RELIEF_NORMAL</property>
+                     <property name="focus_on_click">True</property>
+                     <property name="active">False</property>
+                     <property name="inconsistent">False</property>
+                     <property name="draw_indicator">True</property>
+                     <property name="group">EnglishQuote</property>
+                   </widget>
+                   <packing>
+                     <property name="padding">0</property>
+                     <property name="expand">False</property>
+                     <property name="fill">False</property>
+                   </packing>
+                 </child>
+
+                 <child>
+                   <widget class="GtkRadioButton" id="FrenchQuote">
+                     <property name="visible">True</property>
+                     <property name="can_focus">True</property>
+                     <property name="label" translatable="yes">‹‹Quotation››</property>
+                     <property name="use_underline">True</property>
+                     <property name="relief">GTK_RELIEF_NORMAL</property>
+                     <property name="focus_on_click">True</property>
+                     <property name="active">False</property>
+                     <property name="inconsistent">False</property>
+                     <property name="draw_indicator">True</property>
+                     <property name="group">EnglishQuote</property>
+                   </widget>
+                   <packing>
+                     <property name="padding">0</property>
+                     <property name="expand">False</property>
+                     <property name="fill">False</property>
+                   </packing>
+                 </child>
+
+                 <child>
+                   <widget class="GtkRadioButton" id="DanishQuote">
+                     <property name="visible">True</property>
+                     <property name="can_focus">True</property>
+                     <property name="label" translatable="yes">››Quotation‹‹</property>
+                     <property name="use_underline">True</property>
+                     <property name="relief">GTK_RELIEF_NORMAL</property>
+                     <property name="focus_on_click">True</property>
+                     <property name="active">False</property>
+                     <property name="inconsistent">False</property>
+                     <property name="draw_indicator">True</property>
+                     <property name="group">EnglishQuote</property>
+                   </widget>
+                   <packing>
+                     <property name="padding">0</property>
+                     <property name="expand">False</property>
+                     <property name="fill">False</property>
+                   </packing>
+                 </child>
                </widget>
                <packing>
-                 <property name="left_attach">0</property>
-                 <property name="right_attach">1</property>
-                 <property name="top_attach">1</property>
-                 <property name="bottom_attach">2</property>
+                 <property name="left_attach">1</property>
+                 <property name="right_attach">2</property>
+                 <property name="top_attach">2</property>
+                 <property name="bottom_attach">3</property>
                  <property name="x_options">fill</property>
-                 <property name="y_options"></property>
+                 <property name="y_options">fill</property>
                </packing>
              </child>
 
              <child>
-               <widget class="GtkLabel" id="label40">
+               <widget class="GtkLabel" id="label56">
                  <property name="visible">True</property>
-                 <property name="label" translatable="yes">C_hapter</property>
-                 <property name="use_underline">True</property>
+                 <property name="label" translatable="yes">Quote style:</property>
+                 <property name="use_underline">False</property>
                  <property name="use_markup">False</property>
                  <property name="justify">GTK_JUSTIFY_LEFT</property>
                  <property name="wrap">False</property>
                  <property name="selectable">False</property>
                  <property name="xalign">0</property>
-                 <property name="yalign">0.5</property>
+                 <property name="yalign">0</property>
                  <property name="xpad">0</property>
                  <property name="ypad">0</property>
                </widget>
@@ -2019,171 +2206,445 @@ Fancy</property>
                  <property name="top_attach">2</property>
                  <property name="bottom_attach">3</property>
                  <property name="x_options">fill</property>
-                 <property name="y_options"></property>
+                 <property name="y_options">fill</property>
                </packing>
              </child>
+           </widget>
+           <packing>
+             <property name="tab_expand">False</property>
+             <property name="tab_fill">True</property>
+           </packing>
+         </child>
+
+         <child>
+           <widget class="GtkLabel" id="label51">
+             <property name="visible">True</property>
+             <property name="label" translatable="yes">_Language</property>
+             <property name="use_underline">True</property>
+             <property name="use_markup">False</property>
+             <property name="justify">GTK_JUSTIFY_LEFT</property>
+             <property name="wrap">False</property>
+             <property name="selectable">False</property>
+             <property name="xalign">0.5</property>
+             <property name="yalign">0.5</property>
+             <property name="xpad">0</property>
+             <property name="ypad">0</property>
+           </widget>
+           <packing>
+             <property name="type">tab</property>
+           </packing>
+         </child>
+
+         <child>
+           <widget class="GtkVBox" id="vbox17">
+             <property name="border_width">12</property>
+             <property name="visible">True</property>
+             <property name="homogeneous">False</property>
+             <property name="spacing">0</property>
 
              <child>
-               <widget class="GtkLabel" id="label41">
+               <widget class="GtkTable" id="table8">
                  <property name="visible">True</property>
-                 <property name="label" translatable="yes">C_hapter</property>
-                 <property name="use_underline">True</property>
-                 <property name="use_markup">False</property>
-                 <property name="justify">GTK_JUSTIFY_LEFT</property>
-                 <property name="wrap">False</property>
-                 <property name="selectable">False</property>
-                 <property name="xalign">0</property>
-                 <property name="yalign">0.5</property>
-                 <property name="xpad">0</property>
-                 <property name="ypad">0</property>
+                 <property name="n_rows">2</property>
+                 <property name="n_columns">2</property>
+                 <property name="homogeneous">False</property>
+                 <property name="row_spacing">0</property>
+                 <property name="column_spacing">12</property>
+
+                 <child>
+                   <widget class="GtkLabel" id="label52">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">Numbering:</property>
+                     <property name="use_underline">False</property>
+                     <property name="use_markup">False</property>
+                     <property name="justify">GTK_JUSTIFY_LEFT</property>
+                     <property name="wrap">False</property>
+                     <property name="selectable">False</property>
+                     <property name="xalign">0</property>
+                     <property name="yalign">0.5</property>
+                     <property name="xpad">0</property>
+                     <property name="ypad">0</property>
+                   </widget>
+                   <packing>
+                     <property name="left_attach">0</property>
+                     <property name="right_attach">1</property>
+                     <property name="top_attach">0</property>
+                     <property name="bottom_attach">1</property>
+                     <property name="x_options">fill</property>
+                     <property name="y_options"></property>
+                   </packing>
+                 </child>
+
+                 <child>
+                   <widget class="GtkLabel" id="label53">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">Table of Contents:</property>
+                     <property name="use_underline">False</property>
+                     <property name="use_markup">False</property>
+                     <property name="justify">GTK_JUSTIFY_LEFT</property>
+                     <property name="wrap">False</property>
+                     <property name="selectable">False</property>
+                     <property name="xalign">0</property>
+                     <property name="yalign">0.5</property>
+                     <property name="xpad">0</property>
+                     <property name="ypad">0</property>
+                   </widget>
+                   <packing>
+                     <property name="left_attach">0</property>
+                     <property name="right_attach">1</property>
+                     <property name="top_attach">1</property>
+                     <property name="bottom_attach">2</property>
+                     <property name="x_options">fill</property>
+                     <property name="y_options"></property>
+                   </packing>
+                 </child>
+
+                 <child>
+                   <widget class="GtkHScale" id="hscale1">
+                     <property name="visible">True</property>
+                     <property name="can_focus">True</property>
+                     <property name="draw_value">True</property>
+                     <property name="value_pos">GTK_POS_TOP</property>
+                     <property name="digits">0</property>
+                     <property name="update_policy">GTK_UPDATE_CONTINUOUS</property>
+                     <property name="inverted">False</property>
+                     <property name="adjustment">0 0 0 0 0 0</property>
+                   </widget>
+                   <packing>
+                     <property name="left_attach">1</property>
+                     <property name="right_attach">2</property>
+                     <property name="top_attach">0</property>
+                     <property name="bottom_attach">1</property>
+                     <property name="y_options">fill</property>
+                   </packing>
+                 </child>
+
+                 <child>
+                   <widget class="GtkHScale" id="hscale2">
+                     <property name="visible">True</property>
+                     <property name="can_focus">True</property>
+                     <property name="draw_value">True</property>
+                     <property name="value_pos">GTK_POS_TOP</property>
+                     <property name="digits">0</property>
+                     <property name="update_policy">GTK_UPDATE_CONTINUOUS</property>
+                     <property name="inverted">False</property>
+                     <property name="adjustment">0 0 0 0 0 0</property>
+                   </widget>
+                   <packing>
+                     <property name="left_attach">1</property>
+                     <property name="right_attach">2</property>
+                     <property name="top_attach">1</property>
+                     <property name="bottom_attach">2</property>
+                     <property name="x_options">fill</property>
+                     <property name="y_options">fill</property>
+                   </packing>
+                 </child>
                </widget>
                <packing>
-                 <property name="left_attach">0</property>
-                 <property name="right_attach">1</property>
-                 <property name="top_attach">3</property>
-                 <property name="bottom_attach">4</property>
-                 <property name="x_options">fill</property>
-                 <property name="y_options"></property>
+                 <property name="padding">0</property>
+                 <property name="expand">True</property>
+                 <property name="fill">True</property>
                </packing>
              </child>
 
-             <child>
-               <widget class="GtkLabel" id="label42">
-                 <property name="visible">True</property>
-                 <property name="label" translatable="yes">C_hapter</property>
-                 <property name="use_underline">True</property>
-                 <property name="use_markup">False</property>
-                 <property name="justify">GTK_JUSTIFY_LEFT</property>
-                 <property name="wrap">False</property>
-                 <property name="selectable">False</property>
-                 <property name="xalign">0</property>
-                 <property name="yalign">0.5</property>
-                 <property name="xpad">0</property>
-                 <property name="ypad">0</property>
-               </widget>
-               <packing>
-                 <property name="left_attach">0</property>
-                 <property name="right_attach">1</property>
-                 <property name="top_attach">4</property>
-                 <property name="bottom_attach">5</property>
-                 <property name="x_options">fill</property>
-                 <property name="y_options"></property>
-               </packing>
-             </child>
+             <child>
+               <widget class="GtkTable" id="table6">
+                 <property name="visible">True</property>
+                 <property name="n_rows">8</property>
+                 <property name="n_columns">3</property>
+                 <property name="homogeneous">False</property>
+                 <property name="row_spacing">6</property>
+                 <property name="column_spacing">12</property>
+
+                 <child>
+                   <widget class="GtkLabel" id="label36">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">&lt;b&gt;Item&lt;/b&gt;</property>
+                     <property name="use_underline">False</property>
+                     <property name="use_markup">True</property>
+                     <property name="justify">GTK_JUSTIFY_LEFT</property>
+                     <property name="wrap">False</property>
+                     <property name="selectable">False</property>
+                     <property name="xalign">0</property>
+                     <property name="yalign">0.5</property>
+                     <property name="xpad">0</property>
+                     <property name="ypad">0</property>
+                   </widget>
+                   <packing>
+                     <property name="left_attach">0</property>
+                     <property name="right_attach">1</property>
+                     <property name="top_attach">0</property>
+                     <property name="bottom_attach">1</property>
+                     <property name="x_options">fill</property>
+                     <property name="y_options"></property>
+                   </packing>
+                 </child>
+
+                 <child>
+                   <widget class="GtkLabel" id="label37">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">&lt;b&gt;Numbered&lt;/b&gt;</property>
+                     <property name="use_underline">False</property>
+                     <property name="use_markup">True</property>
+                     <property name="justify">GTK_JUSTIFY_LEFT</property>
+                     <property name="wrap">False</property>
+                     <property name="selectable">False</property>
+                     <property name="xalign">0</property>
+                     <property name="yalign">0.5</property>
+                     <property name="xpad">0</property>
+                     <property name="ypad">0</property>
+                   </widget>
+                   <packing>
+                     <property name="left_attach">1</property>
+                     <property name="right_attach">2</property>
+                     <property name="top_attach">0</property>
+                     <property name="bottom_attach">1</property>
+                     <property name="x_options">fill</property>
+                     <property name="y_options"></property>
+                   </packing>
+                 </child>
+
+                 <child>
+                   <widget class="GtkLabel" id="label38">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">&lt;b&gt;Show in TOC&lt;/b&gt;</property>
+                     <property name="use_underline">False</property>
+                     <property name="use_markup">True</property>
+                     <property name="justify">GTK_JUSTIFY_LEFT</property>
+                     <property name="wrap">False</property>
+                     <property name="selectable">False</property>
+                     <property name="xalign">0</property>
+                     <property name="yalign">0.5</property>
+                     <property name="xpad">0</property>
+                     <property name="ypad">0</property>
+                   </widget>
+                   <packing>
+                     <property name="left_attach">2</property>
+                     <property name="right_attach">3</property>
+                     <property name="top_attach">0</property>
+                     <property name="bottom_attach">1</property>
+                     <property name="x_options">fill</property>
+                     <property name="y_options"></property>
+                   </packing>
+                 </child>
+
+                 <child>
+                   <widget class="GtkLabel" id="label39">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">C_hapter</property>
+                     <property name="use_underline">True</property>
+                     <property name="use_markup">False</property>
+                     <property name="justify">GTK_JUSTIFY_LEFT</property>
+                     <property name="wrap">False</property>
+                     <property name="selectable">False</property>
+                     <property name="xalign">0</property>
+                     <property name="yalign">0.5</property>
+                     <property name="xpad">0</property>
+                     <property name="ypad">0</property>
+                     <property name="mnemonic_widget">checkbutton1</property>
+                   </widget>
+                   <packing>
+                     <property name="left_attach">0</property>
+                     <property name="right_attach">1</property>
+                     <property name="top_attach">1</property>
+                     <property name="bottom_attach">2</property>
+                     <property name="x_options">fill</property>
+                     <property name="y_options"></property>
+                   </packing>
+                 </child>
+
+                 <child>
+                   <widget class="GtkLabel" id="label40">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">C_hapter</property>
+                     <property name="use_underline">True</property>
+                     <property name="use_markup">False</property>
+                     <property name="justify">GTK_JUSTIFY_LEFT</property>
+                     <property name="wrap">False</property>
+                     <property name="selectable">False</property>
+                     <property name="xalign">0</property>
+                     <property name="yalign">0.5</property>
+                     <property name="xpad">0</property>
+                     <property name="ypad">0</property>
+                   </widget>
+                   <packing>
+                     <property name="left_attach">0</property>
+                     <property name="right_attach">1</property>
+                     <property name="top_attach">2</property>
+                     <property name="bottom_attach">3</property>
+                     <property name="x_options">fill</property>
+                     <property name="y_options"></property>
+                   </packing>
+                 </child>
+
+                 <child>
+                   <widget class="GtkLabel" id="label41">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">C_hapter</property>
+                     <property name="use_underline">True</property>
+                     <property name="use_markup">False</property>
+                     <property name="justify">GTK_JUSTIFY_LEFT</property>
+                     <property name="wrap">False</property>
+                     <property name="selectable">False</property>
+                     <property name="xalign">0</property>
+                     <property name="yalign">0.5</property>
+                     <property name="xpad">0</property>
+                     <property name="ypad">0</property>
+                   </widget>
+                   <packing>
+                     <property name="left_attach">0</property>
+                     <property name="right_attach">1</property>
+                     <property name="top_attach">3</property>
+                     <property name="bottom_attach">4</property>
+                     <property name="x_options">fill</property>
+                     <property name="y_options"></property>
+                   </packing>
+                 </child>
 
-             <child>
-               <widget class="GtkLabel" id="label43">
-                 <property name="visible">True</property>
-                 <property name="label" translatable="yes">C_hapter</property>
-                 <property name="use_underline">True</property>
-                 <property name="use_markup">False</property>
-                 <property name="justify">GTK_JUSTIFY_LEFT</property>
-                 <property name="wrap">False</property>
-                 <property name="selectable">False</property>
-                 <property name="xalign">0</property>
-                 <property name="yalign">0.5</property>
-                 <property name="xpad">0</property>
-                 <property name="ypad">0</property>
-               </widget>
-               <packing>
-                 <property name="left_attach">0</property>
-                 <property name="right_attach">1</property>
-                 <property name="top_attach">5</property>
-                 <property name="bottom_attach">6</property>
-                 <property name="x_options">fill</property>
-                 <property name="y_options"></property>
-               </packing>
-             </child>
+                 <child>
+                   <widget class="GtkLabel" id="label42">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">C_hapter</property>
+                     <property name="use_underline">True</property>
+                     <property name="use_markup">False</property>
+                     <property name="justify">GTK_JUSTIFY_LEFT</property>
+                     <property name="wrap">False</property>
+                     <property name="selectable">False</property>
+                     <property name="xalign">0</property>
+                     <property name="yalign">0.5</property>
+                     <property name="xpad">0</property>
+                     <property name="ypad">0</property>
+                   </widget>
+                   <packing>
+                     <property name="left_attach">0</property>
+                     <property name="right_attach">1</property>
+                     <property name="top_attach">4</property>
+                     <property name="bottom_attach">5</property>
+                     <property name="x_options">fill</property>
+                     <property name="y_options"></property>
+                   </packing>
+                 </child>
 
-             <child>
-               <widget class="GtkLabel" id="label44">
-                 <property name="visible">True</property>
-                 <property name="label" translatable="yes">C_hapter</property>
-                 <property name="use_underline">True</property>
-                 <property name="use_markup">False</property>
-                 <property name="justify">GTK_JUSTIFY_LEFT</property>
-                 <property name="wrap">False</property>
-                 <property name="selectable">False</property>
-                 <property name="xalign">0</property>
-                 <property name="yalign">0.5</property>
-                 <property name="xpad">0</property>
-                 <property name="ypad">0</property>
-               </widget>
-               <packing>
-                 <property name="left_attach">0</property>
-                 <property name="right_attach">1</property>
-                 <property name="top_attach">6</property>
-                 <property name="bottom_attach">7</property>
-                 <property name="x_options">fill</property>
-                 <property name="y_options"></property>
-               </packing>
-             </child>
+                 <child>
+                   <widget class="GtkLabel" id="label43">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">C_hapter</property>
+                     <property name="use_underline">True</property>
+                     <property name="use_markup">False</property>
+                     <property name="justify">GTK_JUSTIFY_LEFT</property>
+                     <property name="wrap">False</property>
+                     <property name="selectable">False</property>
+                     <property name="xalign">0</property>
+                     <property name="yalign">0.5</property>
+                     <property name="xpad">0</property>
+                     <property name="ypad">0</property>
+                   </widget>
+                   <packing>
+                     <property name="left_attach">0</property>
+                     <property name="right_attach">1</property>
+                     <property name="top_attach">5</property>
+                     <property name="bottom_attach">6</property>
+                     <property name="x_options">fill</property>
+                     <property name="y_options"></property>
+                   </packing>
+                 </child>
 
-             <child>
-               <widget class="GtkLabel" id="label45">
-                 <property name="visible">True</property>
-                 <property name="label" translatable="yes">C_hapter</property>
-                 <property name="use_underline">True</property>
-                 <property name="use_markup">False</property>
-                 <property name="justify">GTK_JUSTIFY_LEFT</property>
-                 <property name="wrap">False</property>
-                 <property name="selectable">False</property>
-                 <property name="xalign">0</property>
-                 <property name="yalign">0.5</property>
-                 <property name="xpad">0</property>
-                 <property name="ypad">0</property>
-               </widget>
-               <packing>
-                 <property name="left_attach">0</property>
-                 <property name="right_attach">1</property>
-                 <property name="top_attach">7</property>
-                 <property name="bottom_attach">8</property>
-                 <property name="x_options">fill</property>
-                 <property name="y_options"></property>
-               </packing>
-             </child>
+                 <child>
+                   <widget class="GtkLabel" id="label44">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">C_hapter</property>
+                     <property name="use_underline">True</property>
+                     <property name="use_markup">False</property>
+                     <property name="justify">GTK_JUSTIFY_LEFT</property>
+                     <property name="wrap">False</property>
+                     <property name="selectable">False</property>
+                     <property name="xalign">0</property>
+                     <property name="yalign">0.5</property>
+                     <property name="xpad">0</property>
+                     <property name="ypad">0</property>
+                   </widget>
+                   <packing>
+                     <property name="left_attach">0</property>
+                     <property name="right_attach">1</property>
+                     <property name="top_attach">6</property>
+                     <property name="bottom_attach">7</property>
+                     <property name="x_options">fill</property>
+                     <property name="y_options"></property>
+                   </packing>
+                 </child>
 
-             <child>
-               <widget class="GtkCheckButton" id="checkbutton1">
-                 <property name="visible">True</property>
-                 <property name="can_focus">True</property>
-                 <property name="label" translatable="yes">Numbered</property>
-                 <property name="use_underline">True</property>
-                 <property name="relief">GTK_RELIEF_NORMAL</property>
-                 <property name="focus_on_click">True</property>
-                 <property name="active">False</property>
-                 <property name="inconsistent">False</property>
-                 <property name="draw_indicator">False</property>
-               </widget>
-               <packing>
-                 <property name="left_attach">1</property>
-                 <property name="right_attach">2</property>
-                 <property name="top_attach">1</property>
-                 <property name="bottom_attach">2</property>
-                 <property name="x_options">fill</property>
-                 <property name="y_options"></property>
-               </packing>
-             </child>
+                 <child>
+                   <widget class="GtkLabel" id="label45">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">C_hapter</property>
+                     <property name="use_underline">True</property>
+                     <property name="use_markup">False</property>
+                     <property name="justify">GTK_JUSTIFY_LEFT</property>
+                     <property name="wrap">False</property>
+                     <property name="selectable">False</property>
+                     <property name="xalign">0</property>
+                     <property name="yalign">0.5</property>
+                     <property name="xpad">0</property>
+                     <property name="ypad">0</property>
+                   </widget>
+                   <packing>
+                     <property name="left_attach">0</property>
+                     <property name="right_attach">1</property>
+                     <property name="top_attach">7</property>
+                     <property name="bottom_attach">8</property>
+                     <property name="x_options">fill</property>
+                     <property name="y_options"></property>
+                   </packing>
+                 </child>
 
-             <child>
-               <widget class="GtkCheckButton" id="checkbutton2">
-                 <property name="visible">True</property>
-                 <property name="can_focus">True</property>
-                 <property name="label" translatable="yes">Show in TOC</property>
-                 <property name="use_underline">True</property>
-                 <property name="relief">GTK_RELIEF_NORMAL</property>
-                 <property name="focus_on_click">True</property>
-                 <property name="active">False</property>
-                 <property name="inconsistent">False</property>
-                 <property name="draw_indicator">False</property>
+                 <child>
+                   <widget class="GtkCheckButton" id="checkbutton1">
+                     <property name="visible">True</property>
+                     <property name="can_focus">True</property>
+                     <property name="label" translatable="yes">Numbered</property>
+                     <property name="use_underline">True</property>
+                     <property name="relief">GTK_RELIEF_NORMAL</property>
+                     <property name="focus_on_click">True</property>
+                     <property name="active">False</property>
+                     <property name="inconsistent">False</property>
+                     <property name="draw_indicator">False</property>
+                   </widget>
+                   <packing>
+                     <property name="left_attach">1</property>
+                     <property name="right_attach">2</property>
+                     <property name="top_attach">1</property>
+                     <property name="bottom_attach">2</property>
+                     <property name="x_options">fill</property>
+                     <property name="y_options"></property>
+                   </packing>
+                 </child>
+
+                 <child>
+                   <widget class="GtkCheckButton" id="checkbutton2">
+                     <property name="visible">True</property>
+                     <property name="can_focus">True</property>
+                     <property name="label" translatable="yes">Show in TOC</property>
+                     <property name="use_underline">True</property>
+                     <property name="relief">GTK_RELIEF_NORMAL</property>
+                     <property name="focus_on_click">True</property>
+                     <property name="active">False</property>
+                     <property name="inconsistent">False</property>
+                     <property name="draw_indicator">False</property>
+                   </widget>
+                   <packing>
+                     <property name="left_attach">2</property>
+                     <property name="right_attach">3</property>
+                     <property name="top_attach">1</property>
+                     <property name="bottom_attach">2</property>
+                     <property name="x_options">fill</property>
+                     <property name="y_options"></property>
+                   </packing>
+                 </child>
                </widget>
                <packing>
-                 <property name="left_attach">2</property>
-                 <property name="right_attach">3</property>
-                 <property name="top_attach">1</property>
-                 <property name="bottom_attach">2</property>
-                 <property name="x_options">fill</property>
-                 <property name="y_options"></property>
+                 <property name="padding">0</property>
+                 <property name="expand">True</property>
+                 <property name="fill">True</property>
                </packing>
              </child>
            </widget>
@@ -2196,8 +2657,8 @@ Fancy</property>
          <child>
            <widget class="GtkLabel" id="label32">
              <property name="visible">True</property>
-             <property name="label" translatable="yes">Language</property>
-             <property name="use_underline">False</property>
+             <property name="label" translatable="yes">_Numbering</property>
+             <property name="use_underline">True</property>
              <property name="use_markup">False</property>
              <property name="justify">GTK_JUSTIFY_LEFT</property>
              <property name="wrap">False</property>