]> git.lyx.org Git - features.git/commitdiff
- Compiles and links again
authorKalle Dalheimer <kalle@kdab.net>
Thu, 29 Mar 2001 15:02:19 +0000 (15:02 +0000)
committerKalle Dalheimer <kalle@kdab.net>
Thu, 29 Mar 2001 15:02:19 +0000 (15:02 +0000)
- Renamed document dialog to new naming scheme, but do not compile and link
  it yet, pending conversion of document form to MVC by Angus

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1855 a592a061-630c-0410-9148-cb99ea01b6c8

12 files changed:
src/frontends/qt2/Dialogs.C
src/frontends/qt2/FormDocument.C
src/frontends/qt2/FormDocument.h
src/frontends/qt2/FormDocumentDialog.C [deleted file]
src/frontends/qt2/FormDocumentDialog.h [deleted file]
src/frontends/qt2/FormDocumentDialog.ui [new file with mode: 0644]
src/frontends/qt2/FormDocumentDialogBase.ui [deleted file]
src/frontends/qt2/FormDocumentDialogImpl.C [new file with mode: 0644]
src/frontends/qt2/FormDocumentDialogImpl.h [new file with mode: 0644]
src/frontends/qt2/Makefile.am
src/frontends/qt2/Qt2Base.h
src/frontends/qt2/dialogs-qt2.txt

index 89b1d410f20938c284ddfa7e541c5bdee2d687dc..20d5e1e180d54468f6f872681103e2450cab8e54 100644 (file)
@@ -43,6 +43,7 @@
 #include "BufferView.h"
 
 #include "controllers/ControlCopyright.h"
+#include "GUI.h"
 
 #include "qt2BC.h"
 
@@ -75,7 +76,8 @@ Dialogs::Dialogs(LyXView * lv)
     // REMOVED THIS UNTIL CHANGED TO NEW SCHEME -- Kalle, 2001-03-23
     // add(new FormError(lv, this));
 
-    add(new FormGraphics(lv, this));
+    // REMOVED THIS UNTIL CHANGED TO NEW SCHEME -- Kalle, 2001-03-28
+    //    add(new FormGraphics(lv, this));
     // add(new FormIndex(lv, this));
     add(new FormParagraph(lv, this));
     add(new FormPreferences(lv, this));
@@ -86,7 +88,7 @@ Dialogs::Dialogs(LyXView * lv)
     add(new FormTabularCreate(lv, this));
     // add(new FormToc(lv, this));
     // add(new FormUrl(lv, this));
-    
+
     // reduce the number of connections needed in
     // dialogs by a simple connection here.
     hideAll.connect(hideBufferDependent.slot());
index 3b2a53fcc33800321459ee81e979b6a7c59439b2..94e43256006cc2ca30de2a8d1faddc06f432ce76 100644 (file)
@@ -1,11 +1,11 @@
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
- *      
+ *
  *           Copyright 2000 The LyX Team.
  *
- *           @author Jürgen Vigna, Kalle Dalheimer
+ *           @author Kalle Dalheimer
  *
  *======================================================*/
 
 #pragma implementation
 #endif
 
-#include "FormDocumentDialog.h"
+#include "FormDocument.h"
+#include "FormDocumentDialogImpl.h"
 #undef emit
 
 #include "lyx_gui_misc.h"
-#include "gettext.h"
-//#include FORMS_H_LOCATION
-#include XPM_H_LOCATION
 
-#include "FormDocument.h"
-//#include "xform_macros.h"
 #include "Dialogs.h"
 #include "layout.h"
-#include "combox.h"
 #include "tex-strings.h"
 #include "bufferparams.h"
 #include "insets/insetquotes.h"
 #include "vspace.h"
-#include "bmtable.h"
 #include "support/filetools.h"
 #include "language.h"
 #include "LyXView.h"
 #include "Liason.h"
 #include "CutAndPaste.h"
 #include "bufferview_funcs.h"
-#include "ButtonController.h"
-
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::slot;
-#endif
-
-#ifdef CXX_WORKING_NAMESPACES
-using Liason::setMinibuffer;
-#endif
-
-#define USE_CLASS_COMBO 1
 
 #include <qcombobox.h>
 #include <qlineedit.h>
 #include <qradiobutton.h>
-#include <qtoolbutton.h>
-#include <qcheckbox.h>
 #include <qspinbox.h>
-#include <qbuttongroup.h>
-#include <qlabel.h>
-
-// Bullet images
-#include "../../../lib/images/standard.xpm"
-#include "../../../lib/images/psnfss1.xpm"
-#include "../../../lib/images/psnfss2.xpm"
-#include "../../../lib/images/psnfss3.xpm"
-#include "../../../lib/images/psnfss4.xpm"
-#include "../../../lib/images/amssymb.xpm"
-
-
-FormDocument::FormDocument(LyXView * lv, Dialogs * d)
-  : FormBaseBD( lv, d, _( "Document Layout" ), 
-                               new NoRepeatedApplyReadOnlyPolicy ),
-  dialog_(0), lv_(lv), d_(d), u_(0), h_(0),
-  status(POPUP_UNMODIFIED) ,
-  currentBulletPanel(0),
-  currentBulletDepth(0)
-{
-    // let the popup be shown
-    // This is a permanent connection so we won't bother
-    // storing a copy because we won't be disconnecting.
-    d->showLayoutDocument.connect(slot(this, &FormDocument::show));
-
-    // load the images
-    standardpix = new QPixmap( standard );
-    amssymbpix = new QPixmap( amssymb );
-    psnfss1pix = new QPixmap( psnfss1 );
-    psnfss2pix = new QPixmap( psnfss2 );
-    psnfss3pix = new QPixmap( psnfss3 );
-    psnfss4pix = new QPixmap( psnfss4 );
-}
 
+using Liason::setMinibuffer;
+using SigC::slot;
+
+typedef Qt2CB<ControlDocument, Qt2DB<FormDocumentDialogImpl> > base_class;
 
-FormDocument::~FormDocument()
+FormDocument::FormDocument( ControlDocument& c )
+    : base_class( c, _("Document Layout"))
 {
-  delete standardpix;
-  delete amssymbpix;
-  delete psnfss1pix;
-  delete psnfss2pix;
-  delete psnfss3pix;
-  delete psnfss4pix;
 }
 
 
@@ -109,34 +56,165 @@ void FormDocument::build()
 {
     int n;
 
-    dialog_ = new FormDocumentDialog( this, 0, _( "Document Layout" ) );
-
+    // the tabbed folder
+    // PENDING(kalle) Parent???
+    dialog_.reset( new FormDocumentDialogImpl());
+
+    // Manage the restore, ok, apply, restore and cancel/close buttons
+    bc().setOK(dialog_->okPB);
+    bc().setApply(dialog_->applyPB);
+    bc().setCancel(dialog_->cancelPB);
+    bc().setUndoAll(dialog_->restorePB);
+    bc().refresh();
+
+    // the document paper page
+    FormDocumentDialogImpl* dialog = dialog_.get();
+    dialog->papersize2CO->insertItem( _( "Default" ) );
+    dialog->papersize2CO->insertItem( _( "Custom" ) );
+    dialog->papersize2CO->insertItem( _( "USletter" ) );
+    dialog->papersize2CO->insertItem( _( "USlegal" ) );
+    dialog->papersize2CO->insertItem( _( "USexecutive" ) );
+    dialog->papersize2CO->insertItem( _( "A3" ) );
+    dialog->papersize2CO->insertItem( _( "A4" ) );
+    dialog->papersize2CO->insertItem( _( "A5" ) );
+    dialog->papersize2CO->insertItem( _( "B3" ) );
+    dialog->papersize2CO->insertItem( _( "B4" ) );
+    dialog->papersize2CO->insertItem( _( "B5" ) );
+
+    dialog->paperPackageCO->insertItem( _( "None" ) );
+    dialog->paperPackageCO->insertItem( _( "A4 small Margins (only portrait)" ) );
+    dialog->paperPackageCO->insertItem( _( "A4 very small Margins (only portrait)" ) );
+    dialog->paperPackageCO->insertItem( _( "A4 very wide margins (only portrait)" ) );
+
+    bc().addReadOnly (dialog->paperPackageCO);
+    bc().addReadOnly (dialog->orientationBG);
+    bc().addReadOnly (dialog->portraitRB);
+    bc().addReadOnly (dialog->landscapeRB);
+    bc().addReadOnly (dialog->papersize2CO);
+    bc().addReadOnly (dialog->useGeometryCB);
+    bc().addReadOnly (dialog->customWidthED);
+    bc().addReadOnly (dialog->customHeightED);
+    bc().addReadOnly (dialog->topMarginED);
+    bc().addReadOnly (dialog->bottomMarginED);
+    bc().addReadOnly (dialog->leftMarginED);
+    bc().addReadOnly (dialog->rightMarginED);
+    bc().addReadOnly (dialog->headHeightED);
+    bc().addReadOnly (dialog->headSepED);
+    bc().addReadOnly (dialog->footSkipED);
+
+    // the document page
     for (LyXTextClassList::const_iterator cit = textclasslist.begin();
         cit != textclasslist.end(); ++cit)
-    {
-       dialog_->classesCO->insertItem((*cit).description().c_str());
-    }
+       {
+           docClassCO->insertItem( (*cit).description().c_str() );
+       }
+
+    dialog->docSpacingCO->insertItem( _( "Single" ) );
+    dialog->docSpacingCO->insertItem( _( "OneHalf" ) );
+    dialog->docSpacingCO->insertItem( _( "Double" ) );
+    dialog->docSpacingCO->insertItem( _( "Other" ) );
 
+    dialog->docFontSizeCO->insertItem( _( "default" ) );
+    dialog->docFontSizeCO->insertItem( _( "10" ) );
+    dialog->docFontSizeCO->insertItem( _( "11" ) );
+    dialog->docFontSizeCO->insertItem( _( "12" ) );
     for (n=0; tex_fonts[n][0]; ++n) {
-      dialog_->fontsCO->insertItem( tex_fonts[n] );
+       dialog->docFontsCO->insertItem( tex_fonts[n] );
     }
 
-    for(Languages::const_iterator cit = languages.begin();
-       cit != languages.end(); ++cit) {
-       dialog_->languageCO->insertItem((*cit).second.lang().c_str());
+    dialog->docPagestyleCO->insertItem( _( "default" ) );
+    dialog->docPagestyleCO->insertItem( _( "empty" ) );
+    dialog->docPagestyleCO->insertItem( _( "plain" ) );
+    dialog->docPagestyleCO->insertItem( _( "headings" ) );
+    dialog->docPagestyleCO->insertItem( _( "fancy" ) );
+
+    dialog->docSkipCO->insertItem( _( "Smallskip" ) );
+    dialog->docSkipCO->insertItem( _( "Medskip" ) );
+    dialog->docSkipCO->insertItem( _( "Bigskip" ) );
+    dialog->docSkipCO->insertItem( _( "Length" ) );
+
+    bc().addReadOnly (dialog->docIndentRB);
+    bc().addReadOnly (dialog->docSkipRB);
+
+    bc().addReadOnly (dialog->docPagestyleCO);
+    bc().addReadOnly (dialog->docFontsCO);
+    bc().addReadOnly (dialog->docFontsizeCO);
+    bc().addReadOnly (dialog->docSidesOneRB);
+    bc().addReadOnly (dialog->docSidesTwoRB);
+    bc().addReadOnly (dialog->docColumnsOneRB);
+    bc().addReadOnly (dialog->docColumnsTwoRB);
+    bc().addReadOnly (dialog->docExtraED);
+    bc().addReadOnly (dialog->docSkipED);
+    bc().addReadOnly (dialog->docSkipCO);
+    bc().addReadOnly (dialog->docSpacingCO);
+    bc().addReadOnly (dialog->docSpacingED);
+
+    // the document language page
+    dialog->inputEncCO->insertItem( _( "default" ) );
+    dialog->inputEncCO->insertItem( _( "auto" ) );
+    dialog->inputEncCO->insertItem( _( "latin1" ) );
+    dialog->inputEncCO->insertItem( _( "latin2" ) );
+    dialog->inputEncCO->insertItem( _( "latin5" ) );
+    dialog->inputEncCO->insertItem( _( "koi8-r" ) );
+    dialog->inputEncCO->insertItem( _( "koi8-u" ) );
+    dialog->inputEncCO->insertItem( _( "cp866" ) );
+    dialog->inputEncCO->insertItem( _( "cp1251" ) );
+    dialog->inputEncCO->insertItem( _( "iso88595" ) );
+
+    for (Languages::const_iterator cit = languages.begin();
+        cit != languages.end(); ++cit) {
+       dialog->languageCO->insertItem( (*cit).second.lang() );
     }
 
+    dialog->quotesLanguageCO->insertItem( _( "``text''" ) );
+    dialog->quotesLanguageCO->insertItem( _( "''text''" ) );
+    dialog->quotesLanguageCO->insertItem( _( ",,text``" ) );
+    dialog->quotesLanguageCO->insertItem( _( ",,text''" ) );
+    dialog->quotesLanguageCO->insertItem( _( "«text»" ) );
+    dialog->quotesLanguageCO->insertItem( _( "»text«" ) );
+
+    bc().addReadOnly (dialog->inputEncCO);
+
+    // the document options page
+    dialog->secNumDepthSB->setRange( -2, 5 );
+    dialog->tocDepthSB->setRange( -1, 5 );
+    dialog->secNumDepthSB->setSteps( 1, 1 );
+    dialog->tocDepthSB->setRange( 1, 1 );
     for (n=0; tex_graphics[n][0]; ++n) {
-      dialog_->psDriverCO->insertItem( tex_graphics[n] );
+       dialog->postscriptDriverCO->insertItem( tex_graphics[n] );
     }
 
-    dialog_->bulletDepth1PB->setOn( true );
+    bc().addReadOnly (dialog->secNumDepthSB);
+    bc().addReadOnly (dialog->tocDepthSB);
+    bc().addReadOnly (dialog->useAmsMathCB);
+    bc().addReadOnly (dialog->floatPlacementED);
+    bc().addReadOnly (dialog->postscriptDriverCO);
+
+    // the document bullets page
+    dialog->bulletSizeCO->insertItem( _( "default" ) );
+    dialog->bulletSizeCO->insertItem( _( "tiny" ) );
+    dialog->bulletSizeCO->insertItem( _( "script" ) );
+    dialog->bulletSizeCO->insertItem( _( "footnote" ) );
+    dialog->bulletSizeCO->insertItem( _( "small" ) );
+    dialog->bulletSizeCO->insertItem( _( "normal" ) );
+    dialog->bulletSizeCO->insertItem( _( "large" ) );
+    dialog->bulletSizeCO->insertItem( _( "Large" ) );
+    dialog->bulletSizeCO->insertItem( _( "LARGE" ) );
+    dialog->bulletSizeCO->insertItem( _( "huge" ) );
+    dialog->bulletSizeCO->insertItem( _( "Huge" ) );
+
+    dialog->bulletSizeCO->setCurrentItem( 0 );
+    dialog->bulletLatexED->setMaxLength( 80 );
+
+    bc().addReadOnly (dialog->bulletPanelBG);
+    bc().addReadOnly (dialog->bulletSizeCO);
+    bc().addReadOnly (dialog->bulletLatexED);
 }
 
 
 void FormDocument::apply()
 {
-    if (!lv_->view()->available() || !dialog_)
+    if (!lv_->view()->available() || !dialog_.get())
        return;
 
     bool redo = class_apply();
@@ -146,148 +224,243 @@ void FormDocument::apply()
     bullets_apply();
 
     if (redo) {
-           lv_->view()->redoCurrentBuffer();
+       lv_->view()->redoCurrentBuffer();
     }
     lv_->buffer()->markDirty();
     setMinibuffer(lv_, _("Document layout set"));
 }
 
 
+void FormDocument::cancel()
+{
+    // this avoids confusion when reopening
+    BufferParams & param = lv_->buffer()->params;
+    param.temp_bullets[0] = param.user_defined_bullets[0];
+    param.temp_bullets[1] = param.user_defined_bullets[1];
+    param.temp_bullets[2] = param.user_defined_bullets[2];
+    param.temp_bullets[3] = param.user_defined_bullets[3];
+    hide();
+}
+
+
+void FormDocument::update()
+{
+    if (!dialog_.get())
+        return;
+
+    checkReadOnly();
+
+    BufferParams const & params = lv_->buffer()->params;
+
+    class_update(params);
+    paper_update(params);
+    language_update(params);
+    options_update(params);
+    bullets_update(params);
+}
+
+
+#ifdef K
+bool FormDocument::input( FL_OBJECT * ob, long data )
+{
+    State cb = static_cast<State>( data );
+
+    switch (cb) {
+    case CHECKCHOICECLASS:
+       CheckChoiceClass(ob, 0);
+       break;
+    case CHOICEBULLETSIZE:
+       ChoiceBulletSize(ob, 0);
+       break;
+    case INPUTBULLETLATEX:
+       InputBulletLaTeX(ob, 0);
+       break;
+    case BULLETDEPTH1:
+    case BULLETDEPTH2:
+    case BULLETDEPTH3:
+    case BULLETDEPTH4:
+       BulletDepth(ob, cb);
+       break;
+    case BULLETPANEL1:
+    case BULLETPANEL2:
+    case BULLETPANEL3:
+    case BULLETPANEL4:
+    case BULLETPANEL5:
+    case BULLETPANEL6:
+       BulletPanel(ob, cb);
+       break;
+    case BULLETBMTABLE:
+       BulletBMTable(ob, 0);
+       break;
+    default:
+       break;
+    }
+
+    switch (data) {
+    case INPUT:
+    case CHECKCHOICECLASS:
+    case CHOICEBULLETSIZE:
+    case INPUTBULLETLATEX:
+    case BULLETBMTABLE:
+       return CheckDocumentInput(ob, 0);
+    default:
+       break;
+    }
+
+    return true;
+}
+#endif
+
+
+#ifdef K
+void FormDocument::ComboInputCB(int, void * v, Combox * combox)
+{
+    FormDocument * pre = static_cast<FormDocument*>(v);
+    if (combox == pre->combo_doc_class.get())
+       pre->CheckChoiceClass(0, 0);
+    pre->bc().valid(pre->CheckDocumentInput(0,0));
+}
+#endif
+
 bool FormDocument::class_apply()
 {
-       bool redo = false;
-       BufferParams &params = lv_->buffer()->params;
-
-       // If default skip is a "Length" but there's no text in the
-       // input field, reset the kind to "Medskip", which is the default.
-       if( ( dialog_->defaultSkipCO->currentItem() == 4 ) &&
-           ( dialog_->defaultSkipED->text().isEmpty() ) )
-         dialog_->defaultSkipCO->setCurrentItem( 1 );
-       params.fonts = dialog_->fontsCO->currentText();
-       params.fontsize = dialog_->fontSizeCO->currentText();
-       params.pagestyle = dialog_->pagestyleCO->currentText();
-
-       unsigned int new_class = dialog_->classesCO->currentItem();
-       if (params.textclass != new_class) {
-               // try to load new_class
-               if (textclasslist.Load(new_class)) {
-                       // successfully loaded
-                       redo = true;
-                       setMinibuffer(lv_, _("Converting document to new document class..."));
-                       CutAndPaste cap;
-                       int ret = cap.SwitchLayoutsBetweenClasses(
-                           params.textclass, new_class,
-                           lv_->buffer()->paragraph);
-                       if (ret) {
-                               string s;
-                               if (ret==1) {
-                                       s = _("One paragraph couldn't be converted");
-                               } else {
-                                       s += tostr(ret);
-                                       s += _(" paragraphs couldn't be converted");
-                               }
-                               WriteAlert(_("Conversion Errors!"),s,
-                                          _("into chosen document class"));
-                       }
-                       
-                       params.textclass = new_class;
+    bool redo = false;
+    BufferParams &params = lv_->buffer()->params;
+
+    // If default skip is a "Length" but there's no text in the
+    // input field, reset the kind to "Medskip", which is the default.
+    if( ( dialog_->docSkipCO->currentItem() == 3 ) &&
+       dialog_->docSkipED->text().isEmpty() )
+       dialog_->docSkipCO->setCurrentItem( 1 );
+
+    params.fonts = dialog_->docFontsCO->currentText();
+    params.fontsize = dialog_->docFontSizeCO->currentText();
+    params.pagestyle = dialog->docPagestyleCO->currentText();
+    
+    unsigned int const new_class = dialog_->docClassCO->currentItem();
+    
+    if (params.textclass != new_class) {
+       // try to load new_class
+       if (textclasslist.Load(new_class)) {
+           // successfully loaded
+           redo = true;
+           setMinibuffer(lv_, _("Converting document to new document class..."));
+           CutAndPaste cap;
+           int ret = cap.SwitchLayoutsBetweenClasses(
+                                                     params.textclass, new_class,
+                                                     lv_->buffer()->paragraph);                
+           if (ret) {  
+               string s;
+               if (ret==1) {
+                   s = _("One paragraph couldn't be converted");
                } else {
-                       // problem changing class -- warn user and retain old style
-                       WriteAlert(_("Conversion Errors!"),
-                                  _("Errors loading new document class."),
-                                  _("Reverting to original document class."));
-                       dialog_->classesCO->setCurrentItem( params.textclass );
+                   s += tostr(ret);
+                   s += _(" paragraphs couldn't be converted");
                }
+               WriteAlert(_("Conversion Errors!"),s,
+                          _("into chosen document class"));
+           }
+
+           params.textclass = new_class;
+       } else {
+           // problem changing class -- warn user and retain old style
+           WriteAlert(_("Conversion Errors!"),
+                      _("Errors loading new document class."),
+                      _("Reverting to original document class."));
+           dialog_->docClassCO->setCurrentItem( params.textclass );
        }
-       char tmpsep = params.paragraph_separation;
-       if( dialog_->indentRB->isChecked() )
-               params.paragraph_separation = BufferParams::PARSEP_INDENT;
-       else
-               params.paragraph_separation = BufferParams::PARSEP_SKIP;
-       if (tmpsep != params.paragraph_separation)
-               redo = true;
-       
-       VSpace tmpdefskip = params.getDefSkip();
-       switch( dialog_->defaultSkipCO->currentItem() ) {
-       case 0:
-               params.setDefSkip(VSpace(VSpace::SMALLSKIP));
-               break;
-       case 1:
-               params.setDefSkip(VSpace(VSpace::MEDSKIP));
-               break;
-       case 2:
-           params.setDefSkip(VSpace(VSpace::BIGSKIP));
-           break;
-       case 3:
-               params.setDefSkip
-                       (VSpace(LyXGlueLength(dialog_->defaultSkipED->text().latin1())));
-               break;
-               // DocumentDefskipCB assures that this never happens
-       default:
-               params.setDefSkip(VSpace(VSpace::MEDSKIP));
-               break;
-       }
-       if (!(tmpdefskip == params.getDefSkip()))
-               redo = true;
-       
-       if( dialog_->twoColumnsRB->isChecked() )
-               params.columns = 2;
-       else
-               params.columns = 1;
-       if( dialog_->twoSidesRB->isChecked() )
-               params.sides = LyXTextClass::TwoSides;
-       else
-               params.sides = LyXTextClass::OneSide;
-       
-       Spacing tmpSpacing = params.spacing;
-       switch( dialog_->spacingCO->currentItem() ) {
-       case 0:
-               lyxerr[Debug::INFO] << "Spacing: SINGLE\n";
-               params.spacing.set(Spacing::Single);
-               break;
-       case 1:
-               lyxerr[Debug::INFO] << "Spacing: ONEHALF\n";
-               params.spacing.set(Spacing::Onehalf);
-               break;
-       case 2:
-               lyxerr[Debug::INFO] << "Spacing: DOUBLE\n";
-               params.spacing.set(Spacing::Double);
-               break;
-       case 3:
-               lyxerr[Debug::INFO] << "Spacing: OTHER\n";
-               params.spacing.set(Spacing::Other, 
-                                  dialog_->defaultSkipED->text().latin1() );
-               break;
-       }
-       if (tmpSpacing != params.spacing)
-               redo = true;
-       
-       params.options = dialog_->extraOptionsED->text();
-       
-       return redo;
+    }
+    BufferParams::PARSEP tmpsep = params.paragraph_separation;
+    if( dialog_->_docIndentRB->isChecked() )
+       params.paragraph_separation = BufferParams::PARSEP_INDENT;
+    else
+       params.paragraph_separation = BufferParams::PARSEP_SKIP;
+    if (tmpsep != params.paragraph_separation)
+       redo = true;
+
+    VSpace tmpdefskip = params.getDefSkip();
+    switch( dialog_->docSkipCO->currentItem() ) {
+    case 0:
+       params.setDefSkip(VSpace(VSpace::SMALLSKIP));
+       break;
+    case 1:
+       params.setDefSkip(VSpace(VSpace::MEDSKIP));
+       break;
+    case 2:
+       params.setDefSkip(VSpace(VSpace::BIGSKIP));
+       break;
+    case 3:
+       params.setDefSkip
+           (VSpace(LyXGlueLength(dialog_->docSkipED->text())));
+       break;
+       // DocumentDefskipCB assures that this never happens
+    default:
+       params.setDefSkip(VSpace(VSpace::MEDSKIP));
+       break;
+    }
+    if (!(tmpdefskip == params.getDefSkip()))
+       redo = true;
+
+    if( dialog_->docColumnsTwo->isChecked() )
+       params.columns = 2;
+    else
+       params.columns = 1;
+    if( dialog_->docSidesTwo->isChecked() )
+       params.sides = LyXTextClass::TwoSides;
+    else
+       params.sides = LyXTextClass::OneSide;
+
+    Spacing tmpSpacing = params.spacing;
+    switch( dialog_->docSpacingCO->currentItem() ) {
+    case 0:
+       lyxerr[Debug::INFO] << "Spacing: SINGLE\n";
+       params.spacing.set(Spacing::Single);
+       break;
+    case 1:
+       lyxerr[Debug::INFO] << "Spacing: ONEHALF\n";
+       params.spacing.set(Spacing::Onehalf);
+       break;
+    case 2:
+       lyxerr[Debug::INFO] << "Spacing: DOUBLE\n";
+       params.spacing.set(Spacing::Double);
+       break;
+    case 3:
+       lyxerr[Debug::INFO] << "Spacing: OTHER\n";
+       params.spacing.set(Spacing::Other,
+                          dialog_->docSpacingED->text() );
+       break;
+    }
+    if (tmpSpacing != params.spacing)
+       redo = true;
+
+    params.options = docExtraED->text();
+
+    return redo;
 }
 
 
 void FormDocument::paper_apply()
 {
     BufferParams & params = lv_->buffer()->params;
-    
-    params.papersize2 = dialog_->papersizeCO->currentItem();
-    params.paperpackage = dialog_->specialCO->currentItem();
-    params.use_geometry = dialog_->CheckBox1->isChecked();
-    if( dialog_->landscapeRB->isChecked() )
+
+    params.papersize2 =
+       static_cast<char>(dialog_->papersize2CO->currentItem());
+    params.paperpackage =
+       static_cast<char>(dialog_->paperPackageCO->currentItem() );
+    params.use_geometry = dialog_->useGeometryCB->isChecked();
+    if (dialog_->landscapeRB->isChecked() )
        params.orientation = BufferParams::ORIENTATION_LANDSCAPE;
     else
        params.orientation = BufferParams::ORIENTATION_PORTRAIT;
     params.paperwidth = dialog_->customWidthED->text();
     params.paperheight = dialog_->customHeightED->text();
-    params.leftmargin = dialog_->marginLeftED->text();
-    params.topmargin = dialog_->marginTopED->text();
-    params.rightmargin = dialog_->marginRightED->text();
-    params.bottommargin = dialog_->marginBottomED->text();
-    params.headheight = dialog_->headheightED->text();
-    params.headsep = dialog_->headsepED->text();
-    params.footskip = dialog_->footskipED->text();
+    params.leftmargin = dialog_->leftMarginED->text();
+    params.topmargin = dialog_->topMarginED->text();
+    params.rightmargin = dialog_->rightMarginED->text();
+    params.bottommargin = dialog_->bottomMarginED->text();
+    params.headheight = dialog_->headHeightED->text();
+    params.headsep = dialog_->headSepED->text();
+    params.footskip = dialog_->footSkipED->text();
     lv_->buffer()->setPaperStuff();
 }
 
@@ -298,7 +471,7 @@ bool FormDocument::language_apply()
     InsetQuotes::quote_language lga = InsetQuotes::EnglishQ;
     bool redo = false;
 
-    switch( dialog_->quoteStyleTypeCO->currentItem() ) {
+    switch (dialog_->quotesLanguageCO->currentItem() ) {
     case 0:
        lga = InsetQuotes::EnglishQ;
        break;
@@ -319,16 +492,16 @@ bool FormDocument::language_apply()
        break;
     }
     params.quotes_language = lga;
-    if( dialog_->quoteStyleSingleRB->isChecked() )
+    if (dialog_->singleRB->isChecked() )
        params.quotes_times = InsetQuotes::SingleQ;
     else
        params.quotes_times = InsetQuotes::DoubleQ;
 
     Language const * old_language = params.language;
     Language const * new_language =
-         languages.getLanguage( dialog_->languageCO->currentText().latin1() );
-       if( !new_language )
-         new_language = default_language;
+       languages.getLanguage(dialog_->languageCO->currentItem() );
+    if (!new_language)
+       new_language = default_language;
 
     if (old_language != new_language
        && old_language->RightToLeft() == new_language->RightToLeft()
@@ -338,7 +511,7 @@ bool FormDocument::language_apply()
        redo = true;
     }
     params.language = new_language;
-    params.inputenc = dialog_->encodingCO->currentText();
+    params.inputenc = dialog_->inputEncCO->currentText();
 
     return redo;
 }
@@ -350,18 +523,18 @@ bool FormDocument::options_apply()
     bool redo = false;
 
     params.graphicsDriver =
-      dialog_->psDriverCO->currentText();
-    params.use_amsmath = dialog_->amsMathCB->isChecked();
+       dialog_->postscriptDriverCO->currentText();
+    params.use_amsmath = dialog_->useAmsMathCB->isChecked();
 
-    int tmpchar = dialog_->sectionNumberDepthSB->value();
+    int tmpchar = int(dialog_->secNumDepth->value() );
     if (params.secnumdepth != tmpchar)
        redo = true;
     params.secnumdepth = tmpchar;
-   
-    params.tocdepth = dialog_->tocDepthSB->value();
+
+    params.tocdepth = int(dialog_->tocDepth->value() );
 
     params.float_placement =
-      dialog_->floatPlacementED->text();
+       dialog_->floatPlacementED->text();
 
     return redo;
 }
@@ -371,7 +544,7 @@ void FormDocument::bullets_apply()
 {
     /* update the bullet settings */
     BufferParams & param = lv_->buffer()->params;
-    
+
     // a little bit of loop unrolling
     param.user_defined_bullets[0] = param.temp_bullets[0];
     param.user_defined_bullets[1] = param.temp_bullets[1];
@@ -380,322 +553,210 @@ void FormDocument::bullets_apply()
 }
 
 
-void FormDocument::cancel()
-{
-    // this avoids confusion when reopening
-    BufferParams & param = lv_->buffer()->params;
-    param.temp_bullets[0] = param.user_defined_bullets[0];
-    param.temp_bullets[1] = param.user_defined_bullets[1];
-    param.temp_bullets[2] = param.user_defined_bullets[2];
-    param.temp_bullets[3] = param.user_defined_bullets[3];
-}
-
-
-void FormDocument::update()
+void FormDocument::class_update(BufferParams const & params)
 {
-    if (!dialog_)
+    if (!class_.get())
         return;
 
-    checkReadOnly();
-
-    BufferParams const & params = lv_->buffer()->params;
-
-    class_update(params);
-    paper_update(params);
-    language_update(params);
-    options_update(params);
-    bullets_update(params);
-}
-
-
-void FormDocument::class_update(BufferParams const & params)
-{
     LyXTextClass const & tclass = textclasslist.TextClass(params.textclass);
 
-    for( int i = 0; i < dialog_->classesCO->count(); i++ )
-      if( dialog_->classesCO->text( i ) == textclasslist.DescOfClass( params.textclass ).c_str() )
-       dialog_->classesCO->setCurrentItem( i );
-
-    for( int i = 0; i < dialog_->fontsCO->count(); i++ )
-      if( dialog_->fontsCO->text( i ) == params.fonts.c_str() )
-       dialog_->fontsCO->setCurrentItem( i );
-
-    dialog_->fontSizeCO->clear();
-    dialog_->fontSizeCO->insertItem( _("default") );
-    dialog_->fontSizeCO->insertStringList( QStringList::split( "|", tclass.opt_fontsize().c_str() ) );
-    for( int i = 0; i < dialog_->fontSizeCO->count(); i++ )
-      if( dialog_->fontSizeCO->text( i ) ==
-         tokenPos(tclass.opt_fontsize(), '|', params.fontsize)+2)
-       dialog_->fontSizeCO->setCurrentItem( i );
-
-    dialog_->pagestyleCO->clear();
-    dialog_->pagestyleCO->insertItem( _("default") );
-    dialog_->pagestyleCO->insertStringList( QStringList::split( "|", tclass.opt_pagestyle().c_str() ) );
-    for( int i = 0; i < dialog_->pagestyleCO->count(); i++ )
-      if( dialog_->pagestyleCO->text( i ) ==
-         tokenPos(tclass.opt_pagestyle(), '|', params.pagestyle)+2)
-       dialog_->pagestyleCO->setCurrentItem( i );
-
-    if (params.paragraph_separation == BufferParams::PARSEP_INDENT) {
-      dialog_->indentRB->setChecked( true );
-      dialog_->skipRB->setChecked( false );
-    } else {
-      dialog_->skipRB->setChecked( true );
-      dialog_->indentRB->setChecked( false );
-    }
+    combo_doc_class->select_text(
+                                textclasslist.DescOfClass(params.textclass));
+    Qt2Helper::setCurrentComboItem( dialog_->docFonts, params.fonts.c_str() );
+    dialog_->docFontSizeCO->clear();
+    dialog_->docFontSizeCO->insertItem( _( "default" ) );
+    dialog_->docFontSizeCO->insertItem( tclass.opt_fontsize().c_str());
+    dialog_->docFontSizeCO->setCurrentItem( tokenPos(tclass.opt_fontsize(), '|', params.fontsize)+1);
+    dialog_->docPagestyleCO->clear();
+    dialog_->docPagestyleCO->insertItem( _( "default" ) );
+    dialog_->docPagestyleCO->insertItem( tclass.opt_pagestyle().c_str());
+    dialog_->docPagestyleCO->setCurrentItem( tokenPos(tclass.opt_pagestyle(), '|', params.pagestyle)+1);
+    dialog_->docIndentRB->setChecked( false );
+    dialog_->docSkipRB->setChecked( false );
+    if (params.paragraph_separation == BufferParams::PARSEP_INDENT)
+       dialog_->docIndentRB->setChecked( true );
+    else
+       dialog_->docSkipRB->setChecked( true );
     switch (params.getDefSkip().kind()) {
-    case VSpace::SMALLSKIP: 
-      dialog_->defaultSkipCO->setCurrentItem( 0 );
+    case VSpace::SMALLSKIP:
+       dialog_->docSkipCO->setCurrentItem( 0 );
        break;
-    case VSpace::MEDSKIP: 
-      dialog_->defaultSkipCO->setCurrentItem( 1 );
+    case VSpace::MEDSKIP:
+       dialog_->docSkipCO->setCurrentItem( 1 );
        break;
-    case VSpace::BIGSKIP: 
-      dialog_->defaultSkipCO->setCurrentItem( 2 );
+    case VSpace::BIGSKIP:
+       dialog_->docSkipCO->setCurrentItem( 2 );
        break;
-    case VSpace::LENGTH: 
-      dialog_->defaultSkipCO->setCurrentItem( 3 );
-      dialog_->defaultSkipED->setText( params.getDefSkip().asLyXCommand().c_str() );
+    case VSpace::LENGTH:
+       dialog_->docSkipCO->setCurrentItem( 3 );
+       dialog_->docSkipED->setText( params.getDefSkip().asLyXCommand().c_str());
        break;
     default:
-      dialog_->defaultSkipCO->setCurrentItem( 1 );
+       dialog_->docSkipCO->setCurrentItem( 1 );
        break;
     }
-
-    if( params.sides == 2 ) {
-      dialog_->twoSidesRB->setChecked( true );
-      dialog_->oneSideRB->setChecked( false );
-    } else {
-      dialog_->twoSidesRB->setChecked( false );
-      dialog_->oneSideRB->setChecked( true );
-    }
-
-    if( params.columns == 2 ) {
-      dialog_->twoColumnsRB->setChecked( true );
-      dialog_->oneColumnRB->setChecked( false );
-    } else {
-      dialog_->twoColumnsRB->setChecked( false );
-      dialog_->oneColumnRB->setChecked( true );
-    }
-
-    dialog_->spacingED->setText( "" );
+    dialog_->docSidesOneRB->setChecked( false );
+    dialog_->docSidesTwoRB->setChecked( false );
+    if (params.sides == LyXTextClass::TwoSides)
+       dialog_->docSidesTwo->setChecked( true );
+    else
+       dialog_->docSidesOne->setChecked( true );
+    dialog_->docColumnsOneRB->setChecked( false );
+    dialog_->docColumnsTwoRB->setChecked( false );
+    if (params.columns == 2)
+       dialog_->docColumnsTwoRB->setChecked( true );
+    else
+       dialog_->docColumnsOneRB->setChecked( true );
+    dialog_->docSpacingED->setText( "" );
     switch (params.spacing.getSpace()) {
     case Spacing::Default: // nothing bad should happen with this
     case Spacing::Single:
-      // \singlespacing
-      dialog_->spacingCO->setCurrentItem( 0 );
-      break;
+       // \singlespacing
+       dialog_->docSpacingCO->setCurrentItem( 0 );
+       break;
     case Spacing::Onehalf:
-      // \onehalfspacing
-      dialog_->spacingCO->setCurrentItem( 1 );
-      break;
+       // \onehalfspacing
+       dialog_->docSpacingCO->setCurrentItem( 1 );
+       break;
     case Spacing::Double:
-      // \doublespacing
-      dialog_->spacingCO->setCurrentItem( 2 );
-      break;
-    case Spacing::Other:
-      {
-       dialog_->spacingCO->setCurrentItem( 3 );
-       QString sval;
-       sval.sprintf("%g",params.spacing.getValue()); 
-       dialog_->spacingED->setText( sval );
+       // \doublespacing
+       dialog_->docSpacingCO->setCurrentItem( 2 );
        break;
-      }
+    case Spacing::Other:
+       {
+           dialog_->docSpacingCO->setCurrentItem( 3 );
+           QString sval;
+           sval.sprintf("%g",params.spacing.getValue());
+           dialog_->docSpacingED->setText( sval );
+           break;
+       }
     }
     if (!params.options.empty())
-      dialog_->extraOptionsED->setText( params.options.c_str());
+       dialog_->docExtraED->setText(, params.options.c_str());
     else
-      dialog_->extraOptionsED->setText( "" );
+       dialog_->docExtraED->setText( "" );
 }
 
 
 void FormDocument::language_update(BufferParams const & params)
 {
-    for( int i = 0; i < dialog_->languageCO->count(); i++ )
-      if( dialog_->languageCO->text( i ) == params.language->lang().c_str() )
-       dialog_->languageCO->setCurrentItem( i );
-    
-
-    for( int i = 0; i < dialog_->encodingCO->count(); i++ )
-      if( dialog_->encodingCO->text( i ) == params.inputenc.c_str() )
-       dialog_->encodingCO->setCurrentItem( i );
-
-    dialog_->quoteStyleTypeCO->setCurrentItem( params.quotes_language );
+    if (!language_.get())
+        return;
 
-    if( params.quotes_times == InsetQuotes::SingleQ ) {
-      dialog_->quoteStyleSingleRB->setChecked( true );
-      dialog_->quoteStyleDoubleRB->setChecked( false );
-    } else {
-      dialog_->quoteStyleSingleRB->setChecked( false );
-      dialog_->quoteStyleDoubleRB->setChecked( true );
-    }
+    Qt2Helper::setCurrentItemText( dialog_->languageCO, params.language->lang() );
+    Qt2Helper::setCurrentItemText( dialog_->inputEncCO, params.inputenc.c_str() );
+    dialog_->quotesLanguageCO->setCurrentItem( params.quotes_language );
+    dialog_->singleRB->setChecked( false );
+    dialog_->doubleRB->setChecked( false );
+    if (params.quotes_times == InsetQuotes::SingleQ)
+       dialog_->singleRB->setChecked( true );
+    else
+       dialog_->doubleRB->setChecked( true );
 }
 
 
 void FormDocument::options_update(BufferParams const & params)
 {
-    for( int i = 0; i < dialog_->psDriverCO->count(); i++ )
-      if( dialog_->psDriverCO->text( i ) == params.graphicsDriver.c_str() )
-       dialog_->psDriverCO->setCurrentItem( i );
-
-    dialog_->amsMathCB->setChecked( params.use_amsmath );
-    dialog_->sectionNumberDepthSB->setValue( params.secnumdepth );
-    dialog_->tocDepthSB->setValue( params.tocdepth );
+    if (!options_.get())
+        return;
 
+    Qt2Helper::setCurrentItemText( dialog_->postscriptDriverCO,
+                                  params.graphicsDriver.c_str());
+    dialog_->useAmsMathCB->setChecked( params.use_amsmath );
+    dialog_->secNumDepthSB->setValue( params.secnumdepth );
+    dialog_->setTocDepthSB->setValue( params.tocdepth );
     if (!params.float_placement.empty())
-      dialog_->floatPlacementED->setText( params.float_placement.c_str());
+       dialog_->floatPlacementED->setText( params.float_placement.c_str());
     else
-      dialog_->floatPlacementED->setText( "" );
+       dialog_->floatPlacementED->setText( "" );
 }
 
 
 void FormDocument::paper_update(BufferParams const & params)
 {
-    dialog_->papersizeCO->setCurrentItem( params.papersize2 );
-    dialog_->specialCO->setCurrentItem( params.paperpackage );
-    dialog_->CheckBox1->setChecked( params.use_geometry );
-    
-    if (params.orientation == BufferParams::ORIENTATION_LANDSCAPE) {
-      dialog_->landscapeRB->setChecked( true );
-      dialog_->portraitRB->setChecked( false );
-    } else {
-      dialog_->landscapeRB->setChecked( false );
-      dialog_->portraitRB->setChecked( true );
-    }
+    if (!paper_.get())
+        return;
 
+    dialog_->papersize2CO->setCurrentItem( params.papersize2 );
+    dialog_->paperPackageCO->setCurrentItem( params.paperpackage );
+    dialog_->useGeometryCB->setChecked( params.use_geometry );
+    dialog_->portraitRB->setChecked( false );
+    dialog_->landscapeRB->setChecked( false );
+    if (params.orientation == BufferParams::ORIENTATION_LANDSCAPE)
+       dialog_->landscapeRB->setChecked( true );
+    else
+       dialog_->portraitRB->setChecked( true );
     dialog_->customWidthED->setText( params.paperwidth.c_str());
     dialog_->customHeightED->setText( params.paperheight.c_str());
-    dialog_->marginLeftED->setText( params.leftmargin.c_str());
-    dialog_->marginTopED->setText( params.topmargin.c_str());
-    dialog_->marginRightED->setText( params.rightmargin.c_str());
-    dialog_->marginBottomED->setText( params.bottommargin.c_str());
-    dialog_->headheightED->setText( params.headheight.c_str());
-    dialog_->headsepED->setText( params.headsep.c_str());
-    dialog_->footskipED->setText( params.footskip.c_str());
-    dialog_->papersizeCO->setFocus();
+    dialog_->leftMarginED->setText( params.leftmargin.c_str());
+    dialog_->topMarginED->setText( params.topmargin.c_str());
+    dialog_->rightMarginED->setText( params.rightmargin.c_str());
+    dialog_->bottomMarginED->setText( params.bottommargin.c_str());
+    dialog_->headHeightED->setText( params.headheight.c_str());
+    dialog_->headSepED->setText( params.headsep.c_str());
+    dialog_->footSkipED->setText( params.footskip.c_str());
+    dialog_->papersize2CO->setFocus();
 }
 
 
 void FormDocument::bullets_update(BufferParams const & params)
 {
-    if (lv_->buffer()->isLinuxDoc()) {
-      dialog_->bulletTypeBG->setEnabled( false );
-      dialog_->bulletDepth1PB->setEnabled( false );
-      dialog_->bulletDepth2PB->setEnabled( false );
-      dialog_->bulletDepth3PB->setEnabled( false );
-      dialog_->bulletDepth4PB->setEnabled( false );
-      dialog_->bulletSizeCO->setEnabled( false );
-      dialog_->latexED->setEnabled( false );
-      return;
-    } else {
-      dialog_->bulletTypeBG->setEnabled( true );
-      dialog_->bulletDepth1PB->setEnabled( true );
-      dialog_->bulletDepth2PB->setEnabled( true );
-      dialog_->bulletDepth3PB->setEnabled( true );
-      dialog_->bulletDepth4PB->setEnabled( true );
-      dialog_->bulletSizeCO->setEnabled( true );
-      dialog_->latexED->setEnabled( true );
-    }
-    if (lv_->buffer()->isReadonly()) {
-      dialog_->bulletTypeBG->setEnabled( false );
-      dialog_->bulletSizeCO->setEnabled( false );
-      dialog_->latexED->setEnabled( false );
-    } else {
-      dialog_->bulletTypeBG->setEnabled( true );
-      dialog_->bulletSizeCO->setEnabled( true );
-      dialog_->latexED->setEnabled( true );
-    }
-
-    dialog_->bulletDepth1PB->setOn( true );
-    dialog_->latexED->setText( params.user_defined_bullets[0].getText().c_str());
-    dialog_->bulletSizeCO->setCurrentItem( params.user_defined_bullets[0].getSize() + 1);
-    dialog_->bulletStandardPB->setOn( false );
-    dialog_->bulletMathsPB->setOn( false );
-    dialog_->bulletDing1PB->setOn( false );
-    dialog_->bulletDing2PB->setOn( false );
-    dialog_->bulletDing3PB->setOn( false );
-    dialog_->bulletDing4PB->setOn( false );
-    switch( params.user_defined_bullets[0].getFont() ) {
-    case 0:
-      dialog_->bulletStandardPB->setOn( true );
-      break;
-    case 1:
-      dialog_->bulletMathsPB->setOn( true );
-      break;
-    case 2:
-      dialog_->bulletDing1PB->setOn( true );
-      break;
-    case 3:
-      dialog_->bulletDing2PB->setOn( true );
-      break;
-    case 4:
-      dialog_->bulletDing3PB->setOn( true );
-      break;
-    case 5:
-      dialog_->bulletDing4PB->setOn( true );
-      break;
-    default:
-      // should not happen
-      dialog_->bulletStandardPB->setOn( true );
-    }
-}
+    bool const isLinuxDoc = lv_->buffer()->isLinuxDoc();
+    setEnabled(fbullet, !isLinuxDoc);
 
+    if (isLinuxDoc) return;
 
-void FormDocument::free()
-{
-    if (dialog_) {
-        hide();
-        delete dialog_;
-        dialog_ = 0;
-    }
+    dialog_->bulletDepth1RB->setChecked( true );
+    dialog_->bulletLatexED->setText( params.user_defined_bullets[0].getText().c_str());
+    dialog_->bulletSizeCO->setCurrentItem( params.user_defined_bullets[0].getSize() + 1);
 }
 
 
 void FormDocument::checkReadOnly()
 {
-    if (bc_.readOnly(lv_->buffer()->isReadonly())) {
-      dialog_->classesCO->setEnabled( false );
-      dialog_->languageCO->setEnabled( false );
-      dialog_->warningLA->setText( _("Document is read-only."
-                                    " No changes to layout permitted."));
-      dialog_->warningLA->show();
+    if (bc().readOnly(lv_->buffer()->isReadonly())) {
+       dialog_->docClassCO->setEnabled( false );
+       dialog_->languageCO->setEnabled( false );
+       dialog_->warningLA->setText( _("Document is read-only."
+                                      " No changes to layout permitted."));
+       dialog_->warningLA->show();
     } else {
-      dialog_->classesCO->setEnabled( true );
-      dialog_->languageCO->setEnabled( true );
-      dialog_->warningLA->hide();
-    }  
+       dialog_->docClassCO->setEnabled( true );
+       dialog_->languageCO->setEnabled( true );
+       dialog_->warningLA->hide();
+    }
 }
 
 
 void FormDocument::checkMarginValues()
 {
-  const int allEmpty = 
-    dialog_->marginTopED->text().isEmpty() &&
-    dialog_->marginBottomED->text().isEmpty() &&
-    dialog_->marginLeftED->text().isEmpty() &&
-    dialog_->marginRightED->text().isEmpty() &&
-    dialog_->headheightED->text().isEmpty() &&
-    dialog_->headsepED->text().isEmpty() &&
-    dialog_->footskipED->text().isEmpty() &&
-    dialog_->customWidthED->text().isEmpty() &&
-    dialog_->customHeightED->text().isEmpty();
-    if (!allEmpty)
-      dialog_->CheckBox1->setChecked( true );
+    bool const not_empty =
+       !dialog_->topMarginED->text().isEmpty() ||
+       !dialog_->bottomMarginED->text().isEmpty() ||
+       !dialog_->leftMarginED->text().isEmpty() ||
+       !dialog_->rightMarginED->text().isEmpty() ||
+       !dialog_->headHeightED->text().isEmpty() ||
+       !dialog_->headSepED->text().isEmpty() ||
+       !dialog_->footSkipED->text().isEmpty() ||
+       !dialog_->customWidthED->text().isEmpty() ||
+       !dialog_->customHeightED->text().isEmpty();
+    if (not_empty)
+       dialog_->useGeometryCB->setChecked( true );
 }
 
-bool FormDocument::checkDocumentInput(QWidget* w)
+#ifdef K
+bool FormDocument::CheckDocumentInput(FL_OBJECT * ob, long)
 {
     string str;
-    char val;
+    int val;
     bool ok = true;
-    QString input;
-    
-    checkMarginValues();
-    if (w == dialog_->papersizeCO) {
-       val = dialog_->papersizeCO->currentItem();
+    char const * input;
 
+    checkMarginValues();
+    if (ob == paper_->choice_papersize2) {
+       val = fl_get_choice(paper_->choice_papersize2)-1;
        if (val == BufferParams::VM_PAPER_DEFAULT) {
-         dialog_->CheckBox1->setChecked( false );
+           fl_set_button(paper_->push_use_geometry, 0);
            checkMarginValues();
        } else {
            if ((val != BufferParams::VM_PAPER_USLETTER) &&
@@ -704,94 +765,97 @@ bool FormDocument::checkDocumentInput(QWidget* w)
                (val != BufferParams::VM_PAPER_A4) &&
                (val != BufferParams::VM_PAPER_A5) &&
                (val != BufferParams::VM_PAPER_B5)) {
-             dialog_->CheckBox1->setChecked( true );
+               fl_set_button(paper_->push_use_geometry, 1);
            }
-           dialog_->specialCO->setCurrentItem( BufferParams::PACKAGE_NONE );
+           fl_set_choice(paper_->choice_paperpackage,
+                         BufferParams::PACKAGE_NONE + 1);
        }
-    } else if (w == dialog_->specialCO ) {
-      val = dialog_->specialCO->currentItem();
-      if (val != BufferParams::PACKAGE_NONE) {
-       dialog_->papersizeCO->setCurrentItem( BufferParams::VM_PAPER_DEFAULT );
-       dialog_->CheckBox1->setChecked( false );
-      }
-    } else if (w == dialog_->spacingED) {
-       input = dialog_->spacingED->text();
-       if (input.isEmpty()) {
-         dialog_->spacingCO->setCurrentItem( 0 );
+    } else if (ob == paper_->choice_paperpackage) {
+       val = fl_get_choice(paper_->choice_paperpackage)-1;
+       if (val != BufferParams::PACKAGE_NONE) {
+           fl_set_choice(paper_->choice_papersize2,
+                         BufferParams::VM_PAPER_DEFAULT + 1);
+           fl_set_button(paper_->push_use_geometry, 0);
+       }
+    } else if (ob == class_->input_doc_spacing) {
+       input = fl_get_input(class_->input_doc_spacing);
+       if (!*input) {
+           fl_set_choice (class_->choice_doc_spacing, 1);
        } else {
-         dialog_->spacingCO->setCurrentItem( 3 );
+           fl_set_choice(class_->choice_doc_spacing, 4);
        }
     }
     // this has to be all out of if/elseif because it has to deactivate
     // the document buttons and so the whole stuff has to be tested again.
-    str = dialog_->customWidthED->text();
+    str = fl_get_input(paper_->input_custom_width);
     ok = ok && (str.empty() || isValidLength(str));
-    str = dialog_->customHeightED->text();
+    str = fl_get_input(paper_->input_custom_height);
     ok = ok && (str.empty() || isValidLength(str));
-    str = dialog_->marginLeftED->text();
+    str = fl_get_input(paper_->input_left_margin);
     ok = ok && (str.empty() || isValidLength(str));
-    str = dialog_->marginRightED->text();
+    str = fl_get_input(paper_->input_right_margin);
     ok = ok && (str.empty() || isValidLength(str));
-    str = dialog_->marginTopED->text();
+    str = fl_get_input(paper_->input_top_margin);
     ok = ok && (str.empty() || isValidLength(str));
-    str = dialog_->marginBottomED->text();
+    str = fl_get_input(paper_->input_bottom_margin);
     ok = ok && (str.empty() || isValidLength(str));
-    str = dialog_->headheightED->text();
+    str = fl_get_input(paper_->input_head_height);
     ok = ok && (str.empty() || isValidLength(str));
-    str = dialog_->headsepED->text();
+    str = fl_get_input(paper_->input_head_sep);
     ok = ok && (str.empty() || isValidLength(str));
-    str = dialog_->footskipED->text();
+    str = fl_get_input(paper_->input_foot_skip);
     ok = ok && (str.empty() || isValidLength(str));
     // "Synchronize" the choice and the input field, so that it
     // is impossible to commit senseless data.
-    input = dialog_->defaultSkipED->text();
-    if (w == dialog_->defaultSkipED) {
-       if (input.isEmpty()) {
-         dialog_->defaultSkipCO->setCurrentItem( 1 );
-       } else if (isValidGlueLength (input.latin1())) {
-         dialog_->defaultSkipCO->setCurrentItem( 3 );
+    input = fl_get_input (class_->input_doc_skip);
+    if (ob == class_->input_doc_skip) {
+       if (!*input) {
+           fl_set_choice (class_->choice_doc_skip, 2);
+       } else if (isValidGlueLength (input)) {
+           fl_set_choice (class_->choice_doc_skip, 4);
        } else {
-         dialog_->defaultSkipCO->setCurrentItem( 3 );
+           fl_set_choice(class_->choice_doc_skip, 4);
            ok = false;
        }
     } else {
-       if (!input.isEmpty() && !isValidGlueLength(input.latin1()))
+       if (*input && !isValidGlueLength(input))
            ok = false;
     }
-    if(( dialog_->defaultSkipCO->currentItem() == 3 ) && input.isEmpty() )
+    if ((fl_get_choice(class_->choice_doc_skip) == 4) && !*input)
        ok = false;
-    else if( dialog_->defaultSkipCO->currentItem() != 3 )
-      dialog_->defaultSkipED->setText( "" );
+    else if (fl_get_choice(class_->choice_doc_skip) != 4)
+       fl_set_input (class_->input_doc_skip, "");
 
-    input = dialog_->spacingED->text();
-    if( ( dialog_->spacingCO->currentItem() == 3 ) && input.isEmpty() )
+    input = fl_get_input(class_->input_doc_spacing);
+    if ((fl_get_choice(class_->choice_doc_spacing) == 4) && !*input)
        ok = false;
-    else if( dialog_->spacingCO->currentItem() != 3 )
-      dialog_->spacingED->setText( "" );
+    else  if (fl_get_choice(class_->choice_doc_spacing) != 4)
+       fl_set_input (class_->input_doc_spacing, "");
     return ok;
 }
 
 
-void FormDocument::choiceBulletSize()
+void FormDocument::ChoiceBulletSize(FL_OBJECT * ob, long /*data*/ )
 {
     BufferParams & param = lv_->buffer()->params;
 
-    // convert from 0-5 range to -1-4 
-    param.temp_bullets[currentBulletDepth].setSize(dialog_->bulletSizeCO->currentItem() - 1);
-    dialog_->latexED->setText( param.temp_bullets[currentBulletDepth].getText().c_str());
+    // convert from 1-6 range to -1-4
+    param.temp_bullets[current_bullet_depth].setSize(fl_get_choice(ob) - 2);
+    fl_set_input(bullets_->input_bullet_latex,
+                param.temp_bullets[current_bullet_depth].getText().c_str());
 }
 
 
-void FormDocument::inputBulletLaTeX()
+void FormDocument::InputBulletLaTeX(FL_OBJECT *, long)
 {
     BufferParams & param = lv_->buffer()->params;
 
-    param.temp_bullets[currentBulletDepth].
-       setText(dialog_->latexED->text().latin1() );
+    param.temp_bullets[current_bullet_depth].
+       setText(fl_get_input(bullets_->input_bullet_latex));
 }
 
 
-void FormDocument::bulletDepth(int depth)
+void FormDocument::BulletDepth(FL_OBJECT * ob, State cb)
 {
     /* Should I do the following:                                 */
     /*  1. change to the panel that the current bullet belongs in */
@@ -803,120 +867,126 @@ void FormDocument::bulletDepth(int depth)
     /* maybe try to support the others later                      */
     BufferParams & param = lv_->buffer()->params;
 
-    // reset on right mouse button not supported in KLyX
-    // right mouse button resets to default
-    param.temp_bullets[depth] = ITEMIZE_DEFAULTS[depth];
-    dialog_->latexED->setText( param.temp_bullets[depth].getText().c_str());
-    dialog_->bulletSizeCO->setCurrentItem( param.temp_bullets[depth].getSize() + 1 );
-
-    currentBulletDepth = depth;
+    int data = 0;
+    if (cb == BULLETDEPTH1 )
+       data = 0;
+    else if (cb == BULLETDEPTH2 )
+       data = 1;
+    else if (cb == BULLETDEPTH3 )
+       data = 2;
+    else if (cb == BULLETDEPTH4 )
+       data = 3;
+
+    switch (fl_get_button_numb(ob)) {
+    case 3:
+       // right mouse button resets to default
+       param.temp_bullets[data] = ITEMIZE_DEFAULTS[data];
+    default:
+       current_bullet_depth = data;
+       fl_set_input(bullets_->input_bullet_latex,
+                    param.temp_bullets[data].getText().c_str());
+       fl_set_choice(bullets_->choice_bullet_size,
+                     param.temp_bullets[data].getSize() + 2);
+    }
 }
 
 
-// PENDING(kalle) Call this.
-void FormDocument::setBulletPics()
+void FormDocument::BulletPanel(FL_OBJECT * /*ob*/, State cb)
 {
-  QPixmap* currentpix = 0;
-  if( dialog_->bulletStandardPB->isOn() ) {
-    currentpix = standardpix;
-    currentBulletPanel = 0;
-  } else if( dialog_->bulletMathsPB->isOn() ) {
-    currentpix = amssymbpix;
-    currentBulletPanel = 1;
-  } else if( dialog_->bulletDing1PB->isOn() ) {
-    currentpix = psnfss1pix;
-    currentBulletPanel = 2;
-  } else if( dialog_->bulletDing2PB->isOn() ) {
-    currentpix = psnfss2pix;
-    currentBulletPanel = 3;
-  } else if( dialog_->bulletDing3PB->isOn() ) {
-    currentpix = psnfss3pix;
-    currentBulletPanel = 4;
-  } else if( dialog_->bulletDing4PB->isOn() ) {
-    currentpix = psnfss4pix;
-    currentBulletPanel = 5;
-  }
-
-  for( int x = 0; x < 6; x++ )
-    for( int y = 0; y < 6; y++ ) {
-      bulletpics[x*6+y].resize( 44, 29 );
-      bitBlt( &bulletpics[x*6+y], 0, 0, currentpix, x*44, y*29, 44, 29 );
+    /* Here we have to change the background pixmap to that selected */
+    /* by the user. (eg. standard.xpm, psnfss1.xpm etc...)           */
+
+    int data = 0;
+    if (cb == BULLETPANEL1 )
+       data = 0;
+    else if (cb == BULLETPANEL2 )
+       data = 1;
+    else if (cb == BULLETPANEL3 )
+       data = 2;
+    else if (cb == BULLETPANEL4 )
+       data = 3;
+    else if (cb == BULLETPANEL5 )
+       data = 4;
+    else if (cb == BULLETPANEL6 )
+       data = 5;
+
+    if (data != current_bullet_panel) {
+       fl_freeze_form(bullets_->form);
+       current_bullet_panel = data;
+
+       /* free the current pixmap */
+       fl_free_bmtable_pixmap(bullets_->bmtable_bullet_panel);
+       string new_panel;
+       switch (cb) {
+           /* display the new one */
+       case BULLETPANEL1 :
+           new_panel = "standard";
+           break;
+       case BULLETPANEL2 :
+           new_panel = "amssymb";
+           break;
+       case BULLETPANEL3 :
+           new_panel = "psnfss1";
+           break;
+       case BULLETPANEL4 :
+           new_panel = "psnfss2";
+           break;
+       case BULLETPANEL5 :
+           new_panel = "psnfss3";
+           break;
+       case BULLETPANEL6 :
+           new_panel = "psnfss4";
+           break;
+       default :
+           /* something very wrong happened */
+           // play it safe for now but should be an exception
+           current_bullet_panel = 0;  // standard panel
+           new_panel = "standard";
+           break;
+       }
+       new_panel += ".xpm";
+       fl_set_bmtable_pixmap_file(bullets_->bmtable_bullet_panel, 6, 6,
+                                  LibFileSearch("images", new_panel).c_str());
+       fl_redraw_object(bullets_->bmtable_bullet_panel);
+       fl_unfreeze_form(bullets_->form);
     }
-
-  // This is disgusting, but the only way since the designer does not
-  // support widget arrays.
-  dialog_->bullet00PB->setPixmap( bulletpics[0] );
-  dialog_->bullet01PB->setPixmap( bulletpics[1] );
-  dialog_->bullet02PB->setPixmap( bulletpics[2] );
-  dialog_->bullet03PB->setPixmap( bulletpics[3] );
-  dialog_->bullet04PB->setPixmap( bulletpics[4] );
-  dialog_->bullet05PB->setPixmap( bulletpics[5] );
-  dialog_->bullet10PB->setPixmap( bulletpics[6] );
-  dialog_->bullet11PB->setPixmap( bulletpics[7] );
-  dialog_->bullet12PB->setPixmap( bulletpics[8] );
-  dialog_->bullet13PB->setPixmap( bulletpics[9] );
-  dialog_->bullet14PB->setPixmap( bulletpics[10] );
-  dialog_->bullet15PB->setPixmap( bulletpics[11] );
-  dialog_->bullet20PB->setPixmap( bulletpics[12] );
-  dialog_->bullet21PB->setPixmap( bulletpics[13] );
-  dialog_->bullet22PB->setPixmap( bulletpics[14] );
-  dialog_->bullet23PB->setPixmap( bulletpics[15] );
-  dialog_->bullet24PB->setPixmap( bulletpics[16] );
-  dialog_->bullet25PB->setPixmap( bulletpics[17] );
-  dialog_->bullet30PB->setPixmap( bulletpics[18] );
-  dialog_->bullet31PB->setPixmap( bulletpics[19] );
-  dialog_->bullet32PB->setPixmap( bulletpics[20] );
-  dialog_->bullet33PB->setPixmap( bulletpics[21] );
-  dialog_->bullet34PB->setPixmap( bulletpics[22] );
-  dialog_->bullet35PB->setPixmap( bulletpics[23] );
-  dialog_->bullet40PB->setPixmap( bulletpics[24] );
-  dialog_->bullet41PB->setPixmap( bulletpics[25] );
-  dialog_->bullet42PB->setPixmap( bulletpics[26] );
-  dialog_->bullet43PB->setPixmap( bulletpics[27] );
-  dialog_->bullet44PB->setPixmap( bulletpics[28] );
-  dialog_->bullet45PB->setPixmap( bulletpics[29] );
-  dialog_->bullet50PB->setPixmap( bulletpics[30] );
-  dialog_->bullet51PB->setPixmap( bulletpics[31] );
-  dialog_->bullet52PB->setPixmap( bulletpics[32] );
-  dialog_->bullet53PB->setPixmap( bulletpics[33] );
-  dialog_->bullet54PB->setPixmap( bulletpics[34] );
-  dialog_->bullet55PB->setPixmap( bulletpics[35] );
 }
 
 
-void FormDocument::bulletBMTable(int button)
+void FormDocument::BulletBMTable(FL_OBJECT * ob, long /*data*/ )
 {
     /* handle the user input by setting the current bullet depth's pixmap */
     /* to that extracted from the current chosen position of the BMTable  */
     /* Don't forget to free the button's old pixmap first.                */
 
     BufferParams & param = lv_->buffer()->params;
+    int bmtable_button = fl_get_bmtable(ob);
 
     /* try to keep the button held down till another is pushed */
     /*  fl_set_bmtable(ob, 1, bmtable_button); */
-    param.temp_bullets[currentBulletDepth].setFont(currentBulletPanel);
-    param.temp_bullets[currentBulletDepth].setCharacter(button);
-    dialog_->latexED->setText( param.temp_bullets[currentBulletDepth].getText().c_str());
+    param.temp_bullets[current_bullet_depth].setFont(current_bullet_panel);
+    param.temp_bullets[current_bullet_depth].setCharacter(bmtable_button);
+    fl_set_input(bullets_->input_bullet_latex,
+                param.temp_bullets[current_bullet_depth].getText().c_str());
 }
 
 
-void FormDocument::checkChoiceClass(QComboBox* cb)
+void FormDocument::CheckChoiceClass(FL_OBJECT * ob, long)
 {
-    if (!cb)
-       cb = dialog_->classesCO;
+    if (!ob)
+       ob = class_->choice_doc_class;
 
     ProhibitInput(lv_->view());
-    int tc;
-    string tct;
-
-    tc = cb->currentItem();
-    tct = cb->currentText();
 
+    unsigned int tc = combo_doc_class->get() - 1;
     if (textclasslist.Load(tc)) {
-       if (AskQuestion(_("Should I set some parameters to"), tct,
-                       _("the defaults of this document class?"))) {
-           BufferParams & params = lv_->buffer()->params;
+       // we use a copy of the bufferparams because we do not
+       // want to modify them yet.
+       BufferParams params = lv_->buffer()->params;
 
+       if (params.textclass != tc
+           && AskQuestion(_("Should I set some parameters to"),
+                          _("the defaults of this document class?"))) {
            params.textclass = tc;
            params.useClassDefaults();
            UpdateLayoutDocument(params);
@@ -926,17 +996,15 @@ void FormDocument::checkChoiceClass(QComboBox* cb)
        WriteAlert(_("Conversion Errors!"),
                   _("Unable to switch to new document class."),
                   _("Reverting to original document class."));
-
-       dialog_->classesCO->setCurrentItem(
-                                          lv_->buffer()->params.textclass );
+       combo_doc_class->select(int(lv_->buffer()->params.textclass) + 1);
     }
     AllowInput(lv_->view());
 }
-
+#endif
 
 void FormDocument::UpdateLayoutDocument(BufferParams const & params)
 {
-    if (!dialog_)
+    if (!dialog_.get())
         return;
 
     checkReadOnly();
index 6317f595afbc3c54ec21221f9c9f855bc8fc58d2..1515f9490f20de512ac5295312b48d0c82f5800d 100644 (file)
 // -*- C++ -*-
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
- *      
+ *
  *           Copyright (C) 2000 The LyX Team.
  *
- *           @author Jürgen Vigna, Kalle Dalheimer
+ *           @author Kalle Dalheimer
  *
  *======================================================*/
 
 #ifndef FORM_DOCUMENT_H
 #define FORM_DOCUMENT_H
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-#include "FormBase.h"
 #include <vector>
+#include <boost/smart_ptr.hpp>
+
+#include "Qt2Base.h"
+#include "qt2BC.h"
+#undef emit
 
 #ifdef __GNUG_
 #pragma interface
 #endif
 
+class ControlDocument;
+class FormDocumentDialogImpl;
+class BufferParams;
 class LyXView;
 class Dialogs;
-class Combox;
-class BufferParams;
-
-class QWidget;
-class FormDocumentDialog;
-
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Connection;
-#endif
-
-class QComboBox;
-
-#include <qpixmap.h>
 
 /** This class provides an Qt2 implementation of the FormDocument Popup.
     The table-layout-form here changes values for latex-tabulars
+    @author Kalle Dalheimer
  */
-class FormDocument : public DialogBase {
+class FormDocument
+  : public Qt2CB<ControlDocument, Qt2DB<FormDocumentDialogImpl> >
+{
 public:
-    /// #FormDocument x(Communicator ..., Popups ...);#
-    FormDocument(LyXView *, Dialogs *);
-    ///
-    ~FormDocument();
-    ///
-    enum EnumPopupStatus {
+       /// #FormDocument x(Communicator ..., Popups ...);#
+       FormDocument(LyXView *, Dialogs *);
+private:
        ///
-        POPUP_UNMODIFIED,
+       enum State {
+               ///
+               INPUT,
+               ///
+               CHECKCHOICECLASS,
+               ///
+               CHOICEBULLETSIZE,
+               ///
+               INPUTBULLETLATEX,
+               ///
+               BULLETDEPTH1,
+               ///
+               BULLETDEPTH2,
+               ///
+               BULLETDEPTH3,
+               ///
+               BULLETDEPTH4,
+               ///
+               BULLETPANEL1,
+               ///
+               BULLETPANEL2,
+               ///
+               BULLETPANEL3,
+               ///
+               BULLETPANEL4,
+               ///
+               BULLETPANEL5,
+               ///
+               BULLETPANEL6,
+               ///
+               BULLETBMTABLE
+       };
+       /// Pointer to the actual instantiation of the ButtonController.
+       virtual qt2BC & bc();
+       /// Build the dialog
+       virtual void build();
+//     /// Filter the inputs
+//     virtual bool input( FL_OBJECT *, long );
+       /// Update the popup.
+       virtual void update();
+       /// Apply from popup
+       virtual void apply();
+       /// Cancel from popup
+       virtual void cancel();
+
+//     ///
+//     virtual QDialog* form() const;
+
        ///
-        POPUP_MODIFIED,
+       bool CheckDocumentInput(QWidget* ob, long);
        ///
-        POPUP_READONLY
-    };
-
-private:
-  /// Show the dialog.
-   void show();
-   /// Hide the dialog.
-   void hide();
-
-    void checkMarginValues();
-    ///
-    void checkReadOnly();
-    ///
-    void UpdateLayoutDocument(BufferParams const & params);
+       void ChoiceBulletSize(QWidget* ob, long);
+       ///
+       void InputBulletLaTeX(QWidget* ob, long);
+       ///
+       void BulletDepth(QWidget* ob, State);
+       ///
+       void BulletPanel(QWidget* ob, State);
+       ///
+       void BulletBMTable(QWidget* ob, long);
+       ///
+       void checkMarginValues();
+       ///
+       void checkReadOnly();
+       ///
+       void CheckChoiceClass(QWidget* ob, long);
+       ///
+       void UpdateLayoutDocument(BufferParams const & params);
 
-public:
-    ///
-     void checkChoiceClass(QComboBox* cb);
-//     ///
-     bool checkDocumentInput(QWidget* w);
-//     ///
-  void bulletDepth( int );
-    /// 
- void choiceBulletSize();
-//     ///
-  void inputBulletLaTeX();
-//     ///
-  void setBulletPics();
-//     ///
-  void bulletBMTable( int );
+       ///
+       void paper_update(BufferParams const &);
+       ///
+       void class_update(BufferParams const &);
+       ///
+       void language_update(BufferParams const &);
+       ///
+       void options_update(BufferParams const &);
+       ///
+       void bullets_update(BufferParams const &);
 
-    /// Update the popup.
-    void update();
-    ///
-    void paper_update(BufferParams const &);
-    ///
-    void class_update(BufferParams const &);
-    ///
-    void language_update(BufferParams const &);
-    ///
-    void options_update(BufferParams const &);
-    ///
-    void bullets_update(BufferParams const &);
-    /// Apply from popup
-    void apply();
-    ///
-    void paper_apply();
-    ///
-    bool class_apply();
-    ///
-    bool language_apply();
-    ///
-    bool options_apply();
-    ///
-    void bullets_apply();
-    /// Cancel from popup
-    void cancel();
-    /// Build the popup
-    void build();
-    /// Explicitly free the popup.
-    void free();
+       ///
+       void paper_apply();
+       ///
+       bool class_apply();
+       ///
+       bool language_apply();
+       ///
+       bool options_apply();
+       ///
+       void bullets_apply();
 
-//     /// Typedefinitions from the fdesign produced Header file
-//     FD_form_tabbed_document * build_tabbed_document();
-//     ///
-//     FD_form_doc_paper * build_doc_paper();
-//     ///
-//     FD_form_doc_class * build_doc_class();
-//     ///
-//     FD_form_doc_language * build_doc_language();
-//     ///
-//     FD_form_doc_options * build_doc_options();
-//     ///
-//     FD_form_doc_bullet * build_doc_bullet();
+       /// Fdesign generated methods
+       QDialog* build_tabbed_document();
+       ///
+       QDialog* build_doc_paper();
+       ///
+       QDialog* build_doc_class();
+       ///
+       QDialog* build_doc_language();
+       ///
+       QDialog* build_doc_options();
+       ///
+       QDialog* build_doc_bullet();
 
-//     /// Real GUI implementation.
-  FormDocumentDialog* dialog_;
+       /// Real GUI implementation.
+       boost::scoped_ptr<FormDocumentDialogImpl> dialog_;
+       ///
+       int ActCell;
+       ///
+       int Confirmed;
+       ///
+       int current_bullet_panel;
+       ///
+       int current_bullet_depth;
+//     ///
+//     FL_OBJECT * fbullet;
+//     ///
+//     boost::scoped_ptr<Combox> combo_language;
+//     ///
+//     boost::scoped_ptr<Combox> combo_doc_class;
+       /// The ButtonController
+       ButtonController<NoRepeatedApplyReadOnlyPolicy, qt2BC> bc_;
+};
 
-    /// Which LyXView do we belong to?
-    LyXView * lv_;
-    ///
-    Dialogs * d_;
-    /// Update connection.
-    Connection u_;
-    /// Hide connection.
-    Connection h_;
-    /// has form contents changed? Used to control OK/Apply
-    EnumPopupStatus status;
-    ///
-    int ActCell;
-    ///
-    int Confirmed;
-    ///
-    int currentBulletPanel;
-    ///
-    int currentBulletDepth;
-    ///
 
-  QPixmap* standardpix;
-  QPixmap* amssymbpix;
-  QPixmap* psnfss1pix;
-  QPixmap* psnfss2pix;
-  QPixmap* psnfss3pix;
-  QPixmap* psnfss4pix;
-  QPixmap bulletpics[36];
-};
+inline
+qt2BC & FormDocument::bc()
+{
+       return bc_;
+}
 
 #endif
diff --git a/src/frontends/qt2/FormDocumentDialog.C b/src/frontends/qt2/FormDocumentDialog.C
deleted file mode 100644 (file)
index d6d7754..0000000
+++ /dev/null
@@ -1,502 +0,0 @@
-#include "FormDocumentDialog.h"
-#include "Dialogs.h"
-#include "FormDocument.h"
-
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qtoolbutton.h>
-#include <qbuttongroup.h>
-#include <qcombobox.h>
-#include <qspinbox.h>
-
-/* 
- *  Constructs a FormDocumentDialog which is a child of 'parent', with the 
- *  name 'name' and widget flags set to 'f' 
- *
- *  The dialog will by default be modeless, unless you set 'modal' to
- *  TRUE to construct a modal dialog.
- */
-FormDocumentDialog::FormDocumentDialog( FormDocument* _form, QWidget* parent,  const char* name, bool modal, WFlags fl )
-  : FormDocumentDialogBase( parent, name, modal, fl ),
-    form( _form )
-{
-  // Copy the pointers to the bullet buttons into an array so that
-  // they can all be manipulated together.
-  bulletbuttons[0] = bullet00PB;
-  bulletbuttons[1] = bullet01PB;
-  bulletbuttons[2] = bullet02PB;
-  bulletbuttons[3] = bullet03PB;
-  bulletbuttons[4] = bullet04PB;
-  bulletbuttons[5] = bullet05PB;
-  bulletbuttons[6] = bullet10PB;
-  bulletbuttons[7] = bullet11PB;
-  bulletbuttons[8] = bullet12PB;
-  bulletbuttons[9] = bullet13PB;
-  bulletbuttons[10] = bullet14PB;
-  bulletbuttons[11] = bullet15PB;
-  bulletbuttons[12] = bullet20PB;
-  bulletbuttons[13] = bullet21PB;
-  bulletbuttons[14] = bullet22PB;
-  bulletbuttons[15] = bullet23PB;
-  bulletbuttons[16] = bullet24PB;
-  bulletbuttons[17] = bullet25PB;
-  bulletbuttons[18] = bullet30PB;
-  bulletbuttons[19] = bullet31PB;
-  bulletbuttons[20] = bullet32PB;
-  bulletbuttons[21] = bullet33PB;
-  bulletbuttons[22] = bullet34PB;
-  bulletbuttons[23] = bullet35PB;
-  bulletbuttons[24] = bullet40PB;
-  bulletbuttons[25] = bullet41PB;
-  bulletbuttons[26] = bullet42PB;
-  bulletbuttons[27] = bullet43PB;
-  bulletbuttons[28] = bullet44PB;
-  bulletbuttons[29] = bullet45PB;
-  bulletbuttons[30] = bullet50PB;
-  bulletbuttons[31] = bullet51PB;
-  bulletbuttons[32] = bullet52PB;
-  bulletbuttons[33] = bullet53PB;
-  bulletbuttons[34] = bullet54PB;
-  bulletbuttons[35] = bullet55PB;
-}
-
-/*  
- *  Destroys the object and frees any allocated resources
- */
-FormDocumentDialog::~FormDocumentDialog()
-{
-  // no need to delete child widgets, Qt does it all for us
-}
-
-/* 
- * public slot
- */
-void FormDocumentDialog::slotApply()
-{
-  form->apply();
-  // PENDING(kalle) Check whether we need this
-  //  form->bc_->apply();
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotAMSMath(bool)
-{
-  form->checkDocumentInput( amsMathCB );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotBulletDepth1()
-{
-  form->bulletDepth( 0 );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotBulletDepth2()
-{
-  form->bulletDepth( 1 );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotBulletDepth3()
-{
-  form->bulletDepth( 2 );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotBulletDepth4()
-{
-  form->bulletDepth( 3 );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotBulletDing1()
-{
-  qDebug( "FormDocumentDialog::slotBulletDing1()" );
-  form->checkDocumentInput( bulletDing1PB );
-  form->setBulletPics();
-  bulletStandardPB->setOn( false );
-  bulletMathsPB->setOn( false );
-  bulletDing2PB->setOn( false );
-  bulletDing3PB->setOn( false );
-  bulletDing4PB->setOn( false );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotBulletDing2()
-{
-  form->checkDocumentInput( bulletDing2PB );
-  form->setBulletPics();
-  bulletStandardPB->setOn( false );
-  bulletMathsPB->setOn( false );
-  bulletDing1PB->setOn( false );
-  bulletDing3PB->setOn( false );
-  bulletDing4PB->setOn( false );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotBulletDing3()
-{
-  form->checkDocumentInput( bulletDing3PB );
-  form->setBulletPics();
-  bulletStandardPB->setOn( false );
-  bulletMathsPB->setOn( false );
-  bulletDing2PB->setOn( false );
-  bulletDing1PB->setOn( false );
-  bulletDing4PB->setOn( false );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotBulletDing4()
-{
-  form->checkDocumentInput( bulletDing4PB );
-  form->setBulletPics();
-  bulletStandardPB->setOn( false );
-  bulletMathsPB->setOn( false );
-  bulletDing2PB->setOn( false );
-  bulletDing3PB->setOn( false );
-  bulletDing1PB->setOn( false );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotBulletMaths()
-{
-  form->checkDocumentInput( bulletMathsPB );
-  form->setBulletPics();
-  bulletStandardPB->setOn( false );
-  bulletDing1PB->setOn( false );
-  bulletDing2PB->setOn( false );
-  bulletDing3PB->setOn( false );
-  bulletDing4PB->setOn( false );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotBulletSize(int)
-{
-  form->choiceBulletSize();
-  form->checkDocumentInput( bulletSizeCO );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotBulletStandard()
-{
-  form->checkDocumentInput( bulletStandardPB );
-  form->setBulletPics();
-  bulletDing1PB->setOn( false );
-  bulletMathsPB->setOn( false );
-  bulletDing2PB->setOn( false );
-  bulletDing3PB->setOn( false );
-  bulletDing4PB->setOn( false );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotBulletSymbol(int n)
-{
-  qDebug( "FormDocumentDialog::slotBulletSymbol( %d )", n );
-  for( int i = 0; i < 36; i++ )
-    bulletbuttons[i]->setOn( false );
-  bulletbuttons[n]->setOn( true );
-  form->bulletBMTable( n );
-  form->checkDocumentInput( bulletTypeBG );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotClass(int)
-{
-  form->checkChoiceClass( 0 );
-  form->checkDocumentInput( classesCO );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotClose()
-{
-  form->cancel();
-  form->hide();
-  // PENDING(kalle) do something with this
-  //  form->bc_->cancel();
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotColumns(int)
-{
-  form->checkDocumentInput( columnsBG );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotDefaultSkip(const QString&)
-{
-  form->checkDocumentInput( defaultSkipED );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotDefaultSkip(int)
-{
-  form->checkChoiceClass( defaultSkipCO );
-  form->checkDocumentInput( defaultSkipCO );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotEncoding(int)
-{
-  form->checkChoiceClass( encodingCO );
-  form->checkDocumentInput( encodingCO );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotExtraOptions(const QString&)
-{
-  form->checkDocumentInput( extraOptionsED );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotFloatPlacement(const QString&)
-{
-  form->checkDocumentInput( floatPlacementED );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotFont(int)
-{
-  form->checkChoiceClass( fontsCO );
-  form->checkDocumentInput( fontsCO );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotFontSize(int)
-{
-  form->checkChoiceClass( fontSizeCO );
-  form->checkDocumentInput( fontSizeCO );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotFootskip(const QString&)
-{
-  form->checkDocumentInput( footskipED );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotHeadheight(const QString&)
-{
-  form->checkDocumentInput( headheightED );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotHeadsep(const QString&)
-{
-  form->checkDocumentInput( headsepED );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotHeight(const QString&)
-{
-  form->checkDocumentInput( customHeightED );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotLanguage(int)
-{
-  form->checkChoiceClass( languageCO );
-  form->checkDocumentInput( languageCO );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotBulletLaTeX(const QString&)
-{
-  form->inputBulletLaTeX();
-  form->checkDocumentInput( latexED );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotMarginBottom(const QString&)
-{
-  form->checkDocumentInput( marginBottomED );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotMarginLeft(const QString&)
-{
-  form->checkDocumentInput( marginLeftED );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotMarginRight(const QString&)
-{
-  form->checkDocumentInput( marginRightED );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotMarginTop(const QString&)
-{
-  form->checkDocumentInput( marginTopED );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotOK()
-{
-  form->apply();
-  form->hide();
-  // PENDING(kalle) Do something about this.
-  //  form->bc_->ok();
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotOrientation(int)
-{
-  form->checkDocumentInput( orientationBG );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotPSDriver(int)
-{
-  form->checkChoiceClass( psDriverCO );
-  form->checkDocumentInput( psDriverCO );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotPageStyle(int)
-{
-  form->checkChoiceClass( pagestyleCO );
-  form->checkDocumentInput( pagestyleCO );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotPapersize(int)
-{
-  form->checkChoiceClass( pagestyleCO );
-  form->checkDocumentInput( papersizeCO );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotQuoteStyle(int)
-{
-  form->checkChoiceClass( quoteStyleTypeCO );
-  form->checkDocumentInput( quoteStyleTypeCO );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotQuoteType(int)
-{
-  // Intentionally left blank
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotRestore()
-{
-  form->update();
-  // PENDING(kalle) Do something about this.
-  //  form->bc_->updateAll();
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotSectionNumberDepth(int)
-{
-  form->checkDocumentInput( sectionNumberDepthSB );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotSeparation(int)
-{
-  form->checkDocumentInput( separationBG );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotSides(int)
-{
-  form->checkDocumentInput( sidesBG );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotSpacing(const QString&)
-{
-  form->checkDocumentInput( spacingED );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotSpacing(int)
-{
-  form->checkDocumentInput( spacingCO );
-  form->checkDocumentInput( spacingCO );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotSpecialPaperPackage(int)
-{
-  form->checkChoiceClass( specialCO );
-  form->checkDocumentInput( specialCO );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotTOCDepth(int)
-{
-  form->checkDocumentInput( tocDepthSB );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotUseGeometryPackage(bool)
-{
-  form->checkDocumentInput( CheckBox1 );
-}
-/* 
- * public slot
- */
-void FormDocumentDialog::slotWidth(const QString&)
-{
-  form->checkDocumentInput( customWidthED );
-}
-
-
-void FormDocumentDialog::closeEvent( QCloseEvent* e )
-{
-  form->hide();
-  //PENDING(kalle) Do something about this.
-  //  form->bc_->hide();
-  e->accept();
-}
diff --git a/src/frontends/qt2/FormDocumentDialog.h b/src/frontends/qt2/FormDocumentDialog.h
deleted file mode 100644 (file)
index ff9d243..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-#ifndef FORMDOCUMENTDIALOG_H
-#define FORMDOCUMENTDIALOG_H
-#include "FormDocumentDialogBase.h"
-
-class FormDocument;
-
-class FormDocumentDialog : public FormDocumentDialogBase
-{ 
-    Q_OBJECT
-
-public:
-    FormDocumentDialog( FormDocument* form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
-    ~FormDocumentDialog();
-
-public slots:
-      void slotApply();
-    void slotBulletLaTeX(const QString&);
-    void slotAMSMath(bool);
-    void slotBulletDepth1();
-    void slotBulletDepth2();
-    void slotBulletDepth3();
-    void slotBulletDepth4();
-    void slotBulletDing1();
-    void slotBulletDing2();
-    void slotBulletDing3();
-    void slotBulletDing4();
-    void slotBulletMaths();
-    void slotBulletSize(int);
-    void slotBulletStandard();
-    void slotBulletSymbol(int);
-    void slotClass(int);
-    void slotClose();
-    void slotColumns(int);
-    void slotDefaultSkip(const QString&);
-    void slotDefaultSkip(int);
-    void slotEncoding(int);
-    void slotExtraOptions(const QString&);
-    void slotFloatPlacement(const QString&);
-    void slotFont(int);
-    void slotFontSize(int);
-    void slotFootskip(const QString&);
-    void slotHeadheight(const QString&);
-    void slotHeadsep(const QString&);
-    void slotHeight(const QString&);
-    void slotLanguage(int);
-    void slotMarginBottom(const QString&);
-    void slotMarginLeft(const QString&);
-    void slotMarginRight(const QString&);
-    void slotMarginTop(const QString&);
-    void slotOK();
-    void slotOrientation(int);
-    void slotPSDriver(int);
-    void slotPageStyle(int);
-    void slotPapersize(int);
-    void slotQuoteStyle(int);
-    void slotQuoteType(int);
-    void slotRestore();
-    void slotSectionNumberDepth(int);
-    void slotSeparation(int);
-    void slotSides(int);
-    void slotSpacing(const QString&);
-    void slotSpacing(int);
-    void slotSpecialPaperPackage(int);
-    void slotTOCDepth(int);
-    void slotUseGeometryPackage(bool);
-    void slotWidth(const QString&);
-
-protected:
-    void closeEvent( QCloseEvent* );
-
-private:
-    FormDocument* form;
-    QToolButton* bulletbuttons[36];
-};
-
-#endif // FORMDOCUMENTDIALOG_H
diff --git a/src/frontends/qt2/FormDocumentDialog.ui b/src/frontends/qt2/FormDocumentDialog.ui
new file mode 100644 (file)
index 0000000..d611ef8
--- /dev/null
@@ -0,0 +1,4878 @@
+<!DOCTYPE UI><UI>
+<class>FormDocumentDialog</class>
+<widget>
+    <class>QDialog</class>
+    <property stdset="1">
+        <name>name</name>
+        <cstring>FormDocumentDialog</cstring>
+    </property>
+    <property stdset="1">
+        <name>geometry</name>
+        <rect>
+            <x>0</x>
+            <y>0</y>
+            <width>538</width>
+            <height>437</height>
+        </rect>
+    </property>
+    <property stdset="1">
+        <name>caption</name>
+        <string>Document Layout</string>
+    </property>
+    <vbox>
+        <property stdset="1">
+            <name>margin</name>
+            <number>11</number>
+        </property>
+        <property stdset="1">
+            <name>spacing</name>
+            <number>6</number>
+        </property>
+        <widget>
+            <class>QTabWidget</class>
+            <property stdset="1">
+                <name>name</name>
+                <cstring>TabWidget2</cstring>
+            </property>
+            <property>
+                <name>layoutMargin</name>
+            </property>
+            <widget>
+                <class>QWidget</class>
+                <property stdset="1">
+                    <name>name</name>
+                    <cstring>Widget2</cstring>
+                </property>
+                <attribute>
+                    <name>title</name>
+                    <string>Document</string>
+                </attribute>
+                <hbox>
+                    <property stdset="1">
+                        <name>margin</name>
+                        <number>11</number>
+                    </property>
+                    <property stdset="1">
+                        <name>spacing</name>
+                        <number>6</number>
+                    </property>
+                    <widget>
+                        <class>QLayoutWidget</class>
+                        <property stdset="1">
+                            <name>name</name>
+                            <cstring>Layout33</cstring>
+                        </property>
+                        <vbox>
+                            <property stdset="1">
+                                <name>margin</name>
+                                <number>0</number>
+                            </property>
+                            <property stdset="1">
+                                <name>spacing</name>
+                                <number>6</number>
+                            </property>
+                            <widget>
+                                <class>QLayoutWidget</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>Layout32</cstring>
+                                </property>
+                                <grid>
+                                    <property stdset="1">
+                                        <name>margin</name>
+                                        <number>0</number>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>spacing</name>
+                                        <number>6</number>
+                                    </property>
+                                    <widget row="4"  column="1" >
+                                        <class>QLineEdit</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>docExtraED</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget row="2"  column="0" >
+                                        <class>QLabel</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>fontsLA</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>&amp;Fonts:</string>
+                                        </property>
+                                        <property>
+                                            <name>buddy</name>
+                                            <cstring>fontsCO</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget row="1"  column="0" >
+                                        <class>QLabel</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>pagestyleLA</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>&amp;Pagestyle:</string>
+                                        </property>
+                                        <property>
+                                            <name>buddy</name>
+                                            <cstring>pagestyleCO</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget row="5"  column="0" >
+                                        <class>QLabel</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>defaultSkipLA</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>Defa&amp;ult Skip:</string>
+                                        </property>
+                                        <property>
+                                            <name>buddy</name>
+                                            <cstring>defaultSkipCO</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget row="3"  column="0" >
+                                        <class>QLabel</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>fontSizeLA</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>F&amp;ont Size:</string>
+                                        </property>
+                                        <property>
+                                            <name>buddy</name>
+                                            <cstring>fontSizeCO</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget row="1"  column="1" >
+                                        <class>QComboBox</class>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>default</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>empty</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>plain</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>headings</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>fancy</string>
+                                            </property>
+                                        </item>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>docPagestyleCO</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget row="6"  column="0" >
+                                        <class>QLabel</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>spacingLA</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>Spacin&amp;g:</string>
+                                        </property>
+                                        <property>
+                                            <name>buddy</name>
+                                            <cstring>spacingCO</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget row="4"  column="0" >
+                                        <class>QLabel</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>extraOptionsLA</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>E&amp;xtra Options:</string>
+                                        </property>
+                                        <property>
+                                            <name>buddy</name>
+                                            <cstring>extraOptionsED</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget row="0"  column="0" >
+                                        <class>QLabel</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>classesLA</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>&amp;Class:</string>
+                                        </property>
+                                        <property>
+                                            <name>buddy</name>
+                                            <cstring>classesCO</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget row="5"  column="1" >
+                                        <class>QLayoutWidget</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>Layout13</cstring>
+                                        </property>
+                                        <hbox>
+                                            <property stdset="1">
+                                                <name>margin</name>
+                                                <number>0</number>
+                                            </property>
+                                            <property stdset="1">
+                                                <name>spacing</name>
+                                                <number>6</number>
+                                            </property>
+                                            <widget>
+                                                <class>QComboBox</class>
+                                                <item>
+                                                    <property>
+                                                        <name>text</name>
+                                                        <string>smallskip</string>
+                                                    </property>
+                                                </item>
+                                                <item>
+                                                    <property>
+                                                        <name>text</name>
+                                                        <string>medskip</string>
+                                                    </property>
+                                                </item>
+                                                <item>
+                                                    <property>
+                                                        <name>text</name>
+                                                        <string>bigskip</string>
+                                                    </property>
+                                                </item>
+                                                <item>
+                                                    <property>
+                                                        <name>text</name>
+                                                        <string>length</string>
+                                                    </property>
+                                                </item>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>docSkipCO</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget>
+                                                <class>QLineEdit</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>docSkipED</cstring>
+                                                </property>
+                                            </widget>
+                                        </hbox>
+                                    </widget>
+                                    <widget row="6"  column="1" >
+                                        <class>QLayoutWidget</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>Layout31</cstring>
+                                        </property>
+                                        <hbox>
+                                            <property stdset="1">
+                                                <name>margin</name>
+                                                <number>0</number>
+                                            </property>
+                                            <property stdset="1">
+                                                <name>spacing</name>
+                                                <number>6</number>
+                                            </property>
+                                            <widget>
+                                                <class>QComboBox</class>
+                                                <item>
+                                                    <property>
+                                                        <name>text</name>
+                                                        <string>Single</string>
+                                                    </property>
+                                                </item>
+                                                <item>
+                                                    <property>
+                                                        <name>text</name>
+                                                        <string>OneHalf</string>
+                                                    </property>
+                                                </item>
+                                                <item>
+                                                    <property>
+                                                        <name>text</name>
+                                                        <string>Double</string>
+                                                    </property>
+                                                </item>
+                                                <item>
+                                                    <property>
+                                                        <name>text</name>
+                                                        <string>Other</string>
+                                                    </property>
+                                                </item>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>docSpacingCO</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget>
+                                                <class>QLineEdit</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>docSpacingED</cstring>
+                                                </property>
+                                            </widget>
+                                        </hbox>
+                                    </widget>
+                                    <widget row="2"  column="1" >
+                                        <class>QComboBox</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>docFontsCO</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget row="0"  column="1" >
+                                        <class>QComboBox</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>docClassCO</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget row="3"  column="1" >
+                                        <class>QComboBox</class>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>default</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>10</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>11</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>12</string>
+                                            </property>
+                                        </item>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>docFontSizeCO</cstring>
+                                        </property>
+                                    </widget>
+                                </grid>
+                            </widget>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer2_2</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Vertical</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                        </vbox>
+                    </widget>
+                    <widget>
+                        <class>QLayoutWidget</class>
+                        <property stdset="1">
+                            <name>name</name>
+                            <cstring>Layout52</cstring>
+                        </property>
+                        <vbox>
+                            <property stdset="1">
+                                <name>margin</name>
+                                <number>0</number>
+                            </property>
+                            <property stdset="1">
+                                <name>spacing</name>
+                                <number>6</number>
+                            </property>
+                            <widget>
+                                <class>QButtonGroup</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>sidesBG</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>title</name>
+                                    <string>Sides</string>
+                                </property>
+                                <vbox>
+                                    <property stdset="1">
+                                        <name>margin</name>
+                                        <number>11</number>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>spacing</name>
+                                        <number>6</number>
+                                    </property>
+                                    <widget>
+                                        <class>QRadioButton</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>docSidesOneRB</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>O&amp;ne</string>
+                                        </property>
+                                    </widget>
+                                    <widget>
+                                        <class>QRadioButton</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>docSidesTwoRB</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>&amp;Two</string>
+                                        </property>
+                                    </widget>
+                                </vbox>
+                            </widget>
+                            <widget>
+                                <class>QButtonGroup</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>columnsBG</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>title</name>
+                                    <string>Columns</string>
+                                </property>
+                                <vbox>
+                                    <property stdset="1">
+                                        <name>margin</name>
+                                        <number>11</number>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>spacing</name>
+                                        <number>6</number>
+                                    </property>
+                                    <widget>
+                                        <class>QRadioButton</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>docColumnsOneRB</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>On&amp;e</string>
+                                        </property>
+                                    </widget>
+                                    <widget>
+                                        <class>QRadioButton</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>docColumnsTwoRB</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>T&amp;wo</string>
+                                        </property>
+                                    </widget>
+                                </vbox>
+                            </widget>
+                            <widget>
+                                <class>QButtonGroup</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>separationBG</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>title</name>
+                                    <string>Separation</string>
+                                </property>
+                                <vbox>
+                                    <property stdset="1">
+                                        <name>margin</name>
+                                        <number>11</number>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>spacing</name>
+                                        <number>6</number>
+                                    </property>
+                                    <widget>
+                                        <class>QRadioButton</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>docIndentRB</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>&amp;Indent</string>
+                                        </property>
+                                    </widget>
+                                    <widget>
+                                        <class>QRadioButton</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>docSkipRB</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>S&amp;kip</string>
+                                        </property>
+                                    </widget>
+                                </vbox>
+                            </widget>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer33</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Vertical</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                        </vbox>
+                    </widget>
+                </hbox>
+            </widget>
+            <widget>
+                <class>QWidget</class>
+                <property stdset="1">
+                    <name>name</name>
+                    <cstring>Widget3</cstring>
+                </property>
+                <attribute>
+                    <name>title</name>
+                    <string>Paper</string>
+                </attribute>
+                <vbox>
+                    <property stdset="1">
+                        <name>margin</name>
+                        <number>11</number>
+                    </property>
+                    <property stdset="1">
+                        <name>spacing</name>
+                        <number>6</number>
+                    </property>
+                    <spacer>
+                        <property>
+                            <name>name</name>
+                            <cstring>Spacer34</cstring>
+                        </property>
+                        <property stdset="1">
+                            <name>orientation</name>
+                            <enum>Vertical</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>sizeType</name>
+                            <enum>Expanding</enum>
+                        </property>
+                        <property>
+                            <name>sizeHint</name>
+                            <size>
+                                <width>20</width>
+                                <height>20</height>
+                            </size>
+                        </property>
+                    </spacer>
+                    <widget>
+                        <class>QLayoutWidget</class>
+                        <property stdset="1">
+                            <name>name</name>
+                            <cstring>Layout19</cstring>
+                        </property>
+                        <hbox>
+                            <property stdset="1">
+                                <name>margin</name>
+                                <number>0</number>
+                            </property>
+                            <property stdset="1">
+                                <name>spacing</name>
+                                <number>6</number>
+                            </property>
+                            <widget>
+                                <class>QLabel</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>papersizeLA</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>text</name>
+                                    <string>&amp;Papersize:</string>
+                                </property>
+                                <property>
+                                    <name>buddy</name>
+                                    <cstring>papersizeCO</cstring>
+                                </property>
+                            </widget>
+                            <widget>
+                                <class>QComboBox</class>
+                                <item>
+                                    <property>
+                                        <name>text</name>
+                                        <string>Default</string>
+                                    </property>
+                                </item>
+                                <item>
+                                    <property>
+                                        <name>text</name>
+                                        <string>Custom</string>
+                                    </property>
+                                </item>
+                                <item>
+                                    <property>
+                                        <name>text</name>
+                                        <string>USletter</string>
+                                    </property>
+                                </item>
+                                <item>
+                                    <property>
+                                        <name>text</name>
+                                        <string>USlegal</string>
+                                    </property>
+                                </item>
+                                <item>
+                                    <property>
+                                        <name>text</name>
+                                        <string>USexecutive</string>
+                                    </property>
+                                </item>
+                                <item>
+                                    <property>
+                                        <name>text</name>
+                                        <string>A3</string>
+                                    </property>
+                                </item>
+                                <item>
+                                    <property>
+                                        <name>text</name>
+                                        <string>A5</string>
+                                    </property>
+                                </item>
+                                <item>
+                                    <property>
+                                        <name>text</name>
+                                        <string>B3</string>
+                                    </property>
+                                </item>
+                                <item>
+                                    <property>
+                                        <name>text</name>
+                                        <string>B4</string>
+                                    </property>
+                                </item>
+                                <item>
+                                    <property>
+                                        <name>text</name>
+                                        <string>B5</string>
+                                    </property>
+                                </item>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>papersize2CO</cstring>
+                                </property>
+                            </widget>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer5</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Horizontal</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                            <widget>
+                                <class>QLabel</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>specialLA</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>text</name>
+                                    <string>&amp;Special:</string>
+                                </property>
+                                <property>
+                                    <name>buddy</name>
+                                    <cstring>specialCO</cstring>
+                                </property>
+                            </widget>
+                            <widget>
+                                <class>QComboBox</class>
+                                <item>
+                                    <property>
+                                        <name>text</name>
+                                        <string>None</string>
+                                    </property>
+                                </item>
+                                <item>
+                                    <property>
+                                        <name>text</name>
+                                        <string>A4 small Margins (only portrait)</string>
+                                    </property>
+                                </item>
+                                <item>
+                                    <property>
+                                        <name>text</name>
+                                        <string>A4 very small Margins (only portrait)</string>
+                                    </property>
+                                </item>
+                                <item>
+                                    <property>
+                                        <name>text</name>
+                                        <string>A4 very wide margins (only portrait)</string>
+                                    </property>
+                                </item>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>paperPackageCO</cstring>
+                                </property>
+                            </widget>
+                        </hbox>
+                    </widget>
+                    <spacer>
+                        <property>
+                            <name>name</name>
+                            <cstring>Spacer35</cstring>
+                        </property>
+                        <property stdset="1">
+                            <name>orientation</name>
+                            <enum>Vertical</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>sizeType</name>
+                            <enum>Expanding</enum>
+                        </property>
+                        <property>
+                            <name>sizeHint</name>
+                            <size>
+                                <width>20</width>
+                                <height>20</height>
+                            </size>
+                        </property>
+                    </spacer>
+                    <widget>
+                        <class>QLayoutWidget</class>
+                        <property stdset="1">
+                            <name>name</name>
+                            <cstring>Layout23</cstring>
+                        </property>
+                        <hbox>
+                            <property stdset="1">
+                                <name>margin</name>
+                                <number>0</number>
+                            </property>
+                            <property stdset="1">
+                                <name>spacing</name>
+                                <number>6</number>
+                            </property>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer6</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Horizontal</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                            <widget>
+                                <class>QCheckBox</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>useGeometryCB</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>text</name>
+                                    <string>&amp;Use Geometry Package</string>
+                                </property>
+                            </widget>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer7</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Horizontal</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                        </hbox>
+                    </widget>
+                    <spacer>
+                        <property>
+                            <name>name</name>
+                            <cstring>Spacer36</cstring>
+                        </property>
+                        <property stdset="1">
+                            <name>orientation</name>
+                            <enum>Vertical</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>sizeType</name>
+                            <enum>Expanding</enum>
+                        </property>
+                        <property>
+                            <name>sizeHint</name>
+                            <size>
+                                <width>20</width>
+                                <height>20</height>
+                            </size>
+                        </property>
+                    </spacer>
+                    <widget>
+                        <class>QLayoutWidget</class>
+                        <property stdset="1">
+                            <name>name</name>
+                            <cstring>Layout22</cstring>
+                        </property>
+                        <hbox>
+                            <property stdset="1">
+                                <name>margin</name>
+                                <number>0</number>
+                            </property>
+                            <property stdset="1">
+                                <name>spacing</name>
+                                <number>6</number>
+                            </property>
+                            <widget>
+                                <class>QLayoutWidget</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>Layout20</cstring>
+                                </property>
+                                <vbox>
+                                    <property stdset="1">
+                                        <name>margin</name>
+                                        <number>0</number>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>spacing</name>
+                                        <number>6</number>
+                                    </property>
+                                    <widget>
+                                        <class>QButtonGroup</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>orientationBG</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>title</name>
+                                            <string>Orientation</string>
+                                        </property>
+                                        <vbox>
+                                            <property stdset="1">
+                                                <name>margin</name>
+                                                <number>11</number>
+                                            </property>
+                                            <property stdset="1">
+                                                <name>spacing</name>
+                                                <number>6</number>
+                                            </property>
+                                            <widget>
+                                                <class>QRadioButton</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>portraitRB</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>P&amp;ortrait</string>
+                                                </property>
+                                            </widget>
+                                            <widget>
+                                                <class>QRadioButton</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>landscapeRB</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>&amp;Landscape</string>
+                                                </property>
+                                            </widget>
+                                        </vbox>
+                                    </widget>
+                                    <widget>
+                                        <class>QGroupBox</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>marginsGB</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>title</name>
+                                            <string>Margins</string>
+                                        </property>
+                                        <grid>
+                                            <property stdset="1">
+                                                <name>margin</name>
+                                                <number>11</number>
+                                            </property>
+                                            <property stdset="1">
+                                                <name>spacing</name>
+                                                <number>6</number>
+                                            </property>
+                                            <widget row="3"  column="0" >
+                                                <class>QLabel</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>marginRightLA</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>&amp;Right:</string>
+                                                </property>
+                                                <property>
+                                                    <name>buddy</name>
+                                                    <cstring>marginRightED</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget row="2"  column="1" >
+                                                <class>QLineEdit</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>leftMarginED</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget row="1"  column="1" >
+                                                <class>QLineEdit</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>bottomMarginED</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget row="3"  column="1" >
+                                                <class>QLineEdit</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>rightMarginED</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget row="1"  column="0" >
+                                                <class>QLabel</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>marginBottomLA</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>&amp;Bottom:</string>
+                                                </property>
+                                                <property>
+                                                    <name>buddy</name>
+                                                    <cstring>marginBottomED</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget row="0"  column="1" >
+                                                <class>QLineEdit</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>topMarginED</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget row="2"  column="0" >
+                                                <class>QLabel</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>marginLeftL</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>L&amp;eft:</string>
+                                                </property>
+                                                <property>
+                                                    <name>buddy</name>
+                                                    <cstring>marginLeftED</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget row="0"  column="0" >
+                                                <class>QLabel</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>marginTopLA</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>&amp;Top:</string>
+                                                </property>
+                                                <property>
+                                                    <name>buddy</name>
+                                                    <cstring>marginTopED</cstring>
+                                                </property>
+                                            </widget>
+                                        </grid>
+                                    </widget>
+                                </vbox>
+                            </widget>
+                            <widget>
+                                <class>QLayoutWidget</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>Layout21</cstring>
+                                </property>
+                                <vbox>
+                                    <property stdset="1">
+                                        <name>margin</name>
+                                        <number>0</number>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>spacing</name>
+                                        <number>6</number>
+                                    </property>
+                                    <widget>
+                                        <class>QGroupBox</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>customPapersizeGB</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>title</name>
+                                            <string>Custom Papersize</string>
+                                        </property>
+                                        <grid>
+                                            <property stdset="1">
+                                                <name>margin</name>
+                                                <number>11</number>
+                                            </property>
+                                            <property stdset="1">
+                                                <name>spacing</name>
+                                                <number>6</number>
+                                            </property>
+                                            <widget row="0"  column="0" >
+                                                <class>QLabel</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>customWidthLA</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>&amp;Width:</string>
+                                                </property>
+                                                <property>
+                                                    <name>buddy</name>
+                                                    <cstring>customWidthED</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget row="0"  column="1" >
+                                                <class>QLineEdit</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>customWidthED</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget row="1"  column="1" >
+                                                <class>QLineEdit</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>customHeightED</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget row="1"  column="0" >
+                                                <class>QLabel</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>customHeightLA</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>&amp;Height:</string>
+                                                </property>
+                                                <property>
+                                                    <name>buddy</name>
+                                                    <cstring>customHeightED</cstring>
+                                                </property>
+                                            </widget>
+                                        </grid>
+                                    </widget>
+                                    <widget>
+                                        <class>QGroupBox</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>headsepBG</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>title</name>
+                                            <string>Foot/Head Margins</string>
+                                        </property>
+                                        <grid>
+                                            <property stdset="1">
+                                                <name>margin</name>
+                                                <number>11</number>
+                                            </property>
+                                            <property stdset="1">
+                                                <name>spacing</name>
+                                                <number>6</number>
+                                            </property>
+                                            <widget row="0"  column="1" >
+                                                <class>QLineEdit</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>headHeightED</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget row="1"  column="1" >
+                                                <class>QLineEdit</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>headSepED</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget row="2"  column="1" >
+                                                <class>QLineEdit</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>footSkipED</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget row="2"  column="0" >
+                                                <class>QLabel</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>footskipLA</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>&amp;Footskip:</string>
+                                                </property>
+                                                <property>
+                                                    <name>buddy</name>
+                                                    <cstring>footskipED</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget row="1"  column="0" >
+                                                <class>QLabel</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>headsepLA</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>Hea&amp;dsep:</string>
+                                                </property>
+                                                <property>
+                                                    <name>buddy</name>
+                                                    <cstring>headsepED</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget row="0"  column="0" >
+                                                <class>QLabel</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>headheightLA</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>Headhe&amp;ight:</string>
+                                                </property>
+                                                <property>
+                                                    <name>buddy</name>
+                                                    <cstring>headheightED</cstring>
+                                                </property>
+                                            </widget>
+                                        </grid>
+                                    </widget>
+                                </vbox>
+                            </widget>
+                        </hbox>
+                    </widget>
+                    <spacer>
+                        <property>
+                            <name>name</name>
+                            <cstring>Spacer37</cstring>
+                        </property>
+                        <property stdset="1">
+                            <name>orientation</name>
+                            <enum>Vertical</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>sizeType</name>
+                            <enum>Expanding</enum>
+                        </property>
+                        <property>
+                            <name>sizeHint</name>
+                            <size>
+                                <width>20</width>
+                                <height>20</height>
+                            </size>
+                        </property>
+                    </spacer>
+                </vbox>
+            </widget>
+            <widget>
+                <class>QWidget</class>
+                <property stdset="1">
+                    <name>name</name>
+                    <cstring>Widget4</cstring>
+                </property>
+                <attribute>
+                    <name>title</name>
+                    <string>Language</string>
+                </attribute>
+                <hbox>
+                    <property stdset="1">
+                        <name>margin</name>
+                        <number>11</number>
+                    </property>
+                    <property stdset="1">
+                        <name>spacing</name>
+                        <number>6</number>
+                    </property>
+                    <spacer>
+                        <property>
+                            <name>name</name>
+                            <cstring>Spacer10</cstring>
+                        </property>
+                        <property stdset="1">
+                            <name>orientation</name>
+                            <enum>Horizontal</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>sizeType</name>
+                            <enum>Expanding</enum>
+                        </property>
+                        <property>
+                            <name>sizeHint</name>
+                            <size>
+                                <width>20</width>
+                                <height>20</height>
+                            </size>
+                        </property>
+                    </spacer>
+                    <widget>
+                        <class>QLayoutWidget</class>
+                        <property stdset="1">
+                            <name>name</name>
+                            <cstring>Layout53</cstring>
+                        </property>
+                        <vbox>
+                            <property stdset="1">
+                                <name>margin</name>
+                                <number>0</number>
+                            </property>
+                            <property stdset="1">
+                                <name>spacing</name>
+                                <number>6</number>
+                            </property>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer12</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Vertical</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                            <widget>
+                                <class>QLayoutWidget</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>Layout26</cstring>
+                                </property>
+                                <hbox>
+                                    <property stdset="1">
+                                        <name>margin</name>
+                                        <number>0</number>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>spacing</name>
+                                        <number>6</number>
+                                    </property>
+                                    <widget>
+                                        <class>QLabel</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>languageLA</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>&amp;Language:</string>
+                                        </property>
+                                        <property>
+                                            <name>buddy</name>
+                                            <cstring>languageCO</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget>
+                                        <class>QComboBox</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>languageCO</cstring>
+                                        </property>
+                                    </widget>
+                                </hbox>
+                            </widget>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer38</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Vertical</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                            <widget>
+                                <class>QLayoutWidget</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>Layout27</cstring>
+                                </property>
+                                <hbox>
+                                    <property stdset="1">
+                                        <name>margin</name>
+                                        <number>0</number>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>spacing</name>
+                                        <number>6</number>
+                                    </property>
+                                    <widget>
+                                        <class>QLabel</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>encodingLA</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>Enco&amp;ding:</string>
+                                        </property>
+                                        <property>
+                                            <name>buddy</name>
+                                            <cstring>encodingCO</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget>
+                                        <class>QComboBox</class>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>default</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>auto</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>latin1</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>latin2</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>latin5</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>koi8-r</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>koi8-u</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>cp866</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>cp1251</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>iso88595</string>
+                                            </property>
+                                        </item>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>inputEncCO</cstring>
+                                        </property>
+                                    </widget>
+                                </hbox>
+                            </widget>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer9</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Vertical</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                            <widget>
+                                <class>QButtonGroup</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>quoteStyleBG</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>title</name>
+                                    <string>Quote Style</string>
+                                </property>
+                                <vbox>
+                                    <property stdset="1">
+                                        <name>margin</name>
+                                        <number>11</number>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>spacing</name>
+                                        <number>6</number>
+                                    </property>
+                                    <widget>
+                                        <class>QLayoutWidget</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>Layout28</cstring>
+                                        </property>
+                                        <hbox>
+                                            <property stdset="1">
+                                                <name>margin</name>
+                                                <number>0</number>
+                                            </property>
+                                            <property stdset="1">
+                                                <name>spacing</name>
+                                                <number>6</number>
+                                            </property>
+                                            <widget>
+                                                <class>QLabel</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>quoteStyleTypeLA</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>&amp;Type:</string>
+                                                </property>
+                                                <property>
+                                                    <name>buddy</name>
+                                                    <cstring>quoteStyleTypeCO</cstring>
+                                                </property>
+                                            </widget>
+                                            <widget>
+                                                <class>QComboBox</class>
+                                                <item>
+                                                    <property>
+                                                        <name>text</name>
+                                                        <string>``text''</string>
+                                                    </property>
+                                                </item>
+                                                <item>
+                                                    <property>
+                                                        <name>text</name>
+                                                        <string>''text''</string>
+                                                    </property>
+                                                </item>
+                                                <item>
+                                                    <property>
+                                                        <name>text</name>
+                                                        <string>,,text``</string>
+                                                    </property>
+                                                </item>
+                                                <item>
+                                                    <property>
+                                                        <name>text</name>
+                                                        <string>,,text''</string>
+                                                    </property>
+                                                </item>
+                                                <item>
+                                                    <property>
+                                                        <name>text</name>
+                                                        <string>«text»</string>
+                                                    </property>
+                                                </item>
+                                                <item>
+                                                    <property>
+                                                        <name>text</name>
+                                                        <string>»text«</string>
+                                                    </property>
+                                                </item>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>quotesLanguageCO</cstring>
+                                                </property>
+                                            </widget>
+                                        </hbox>
+                                    </widget>
+                                    <widget>
+                                        <class>QLayoutWidget</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>Layout29</cstring>
+                                        </property>
+                                        <hbox>
+                                            <property stdset="1">
+                                                <name>margin</name>
+                                                <number>0</number>
+                                            </property>
+                                            <property stdset="1">
+                                                <name>spacing</name>
+                                                <number>6</number>
+                                            </property>
+                                            <widget>
+                                                <class>QRadioButton</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>singleRB</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>&amp;Single</string>
+                                                </property>
+                                            </widget>
+                                            <widget>
+                                                <class>QRadioButton</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>doubleRB</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>&amp;Double</string>
+                                                </property>
+                                            </widget>
+                                        </hbox>
+                                    </widget>
+                                </vbox>
+                            </widget>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer13</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Vertical</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                        </vbox>
+                    </widget>
+                    <spacer>
+                        <property>
+                            <name>name</name>
+                            <cstring>Spacer11</cstring>
+                        </property>
+                        <property stdset="1">
+                            <name>orientation</name>
+                            <enum>Horizontal</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>sizeType</name>
+                            <enum>Expanding</enum>
+                        </property>
+                        <property>
+                            <name>sizeHint</name>
+                            <size>
+                                <width>20</width>
+                                <height>20</height>
+                            </size>
+                        </property>
+                    </spacer>
+                </hbox>
+            </widget>
+            <widget>
+                <class>QWidget</class>
+                <property stdset="1">
+                    <name>name</name>
+                    <cstring>Widget5</cstring>
+                </property>
+                <attribute>
+                    <name>title</name>
+                    <string>Extra</string>
+                </attribute>
+                <hbox>
+                    <property stdset="1">
+                        <name>margin</name>
+                        <number>11</number>
+                    </property>
+                    <property stdset="1">
+                        <name>spacing</name>
+                        <number>6</number>
+                    </property>
+                    <spacer>
+                        <property>
+                            <name>name</name>
+                            <cstring>Spacer24</cstring>
+                        </property>
+                        <property stdset="1">
+                            <name>orientation</name>
+                            <enum>Horizontal</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>sizeType</name>
+                            <enum>Expanding</enum>
+                        </property>
+                        <property>
+                            <name>sizeHint</name>
+                            <size>
+                                <width>20</width>
+                                <height>20</height>
+                            </size>
+                        </property>
+                    </spacer>
+                    <widget>
+                        <class>QLayoutWidget</class>
+                        <property stdset="1">
+                            <name>name</name>
+                            <cstring>Layout39</cstring>
+                        </property>
+                        <vbox>
+                            <property stdset="1">
+                                <name>margin</name>
+                                <number>0</number>
+                            </property>
+                            <property stdset="1">
+                                <name>spacing</name>
+                                <number>6</number>
+                            </property>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer18</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Vertical</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                            <widget>
+                                <class>QLayoutWidget</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>Layout33</cstring>
+                                </property>
+                                <hbox>
+                                    <property stdset="1">
+                                        <name>margin</name>
+                                        <number>0</number>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>spacing</name>
+                                        <number>6</number>
+                                    </property>
+                                    <widget>
+                                        <class>QLabel</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>TextLabel28</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>F&amp;loat Placement:</string>
+                                        </property>
+                                        <property>
+                                            <name>buddy</name>
+                                            <cstring>floatPlacementED</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget>
+                                        <class>QLineEdit</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>floatPlacementED</cstring>
+                                        </property>
+                                    </widget>
+                                </hbox>
+                            </widget>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer14</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Vertical</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                            <widget>
+                                <class>QLayoutWidget</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>Layout34</cstring>
+                                </property>
+                                <hbox>
+                                    <property stdset="1">
+                                        <name>margin</name>
+                                        <number>0</number>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>spacing</name>
+                                        <number>6</number>
+                                    </property>
+                                    <widget>
+                                        <class>QLabel</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>sectionNumberDepthLA</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>S&amp;ection number depth:</string>
+                                        </property>
+                                        <property>
+                                            <name>buddy</name>
+                                            <cstring>sectionNumberDepthSB</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget>
+                                        <class>QSpinBox</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>secNumDepthSB</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>maxValue</name>
+                                            <number>5</number>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>minValue</name>
+                                            <number>-2</number>
+                                        </property>
+                                    </widget>
+                                </hbox>
+                            </widget>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer15</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Vertical</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                            <widget>
+                                <class>QLayoutWidget</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>Layout35</cstring>
+                                </property>
+                                <hbox>
+                                    <property stdset="1">
+                                        <name>margin</name>
+                                        <number>0</number>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>spacing</name>
+                                        <number>6</number>
+                                    </property>
+                                    <widget>
+                                        <class>QLabel</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>tocDepthLA</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>&amp;Table of contents depth:</string>
+                                        </property>
+                                        <property>
+                                            <name>buddy</name>
+                                            <cstring>tocDepthSB</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget>
+                                        <class>QSpinBox</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>tocDepthSB</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>maxValue</name>
+                                            <number>5</number>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>minValue</name>
+                                            <number>-1</number>
+                                        </property>
+                                    </widget>
+                                </hbox>
+                            </widget>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer16</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Vertical</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                            <widget>
+                                <class>QLayoutWidget</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>Layout36</cstring>
+                                </property>
+                                <hbox>
+                                    <property stdset="1">
+                                        <name>margin</name>
+                                        <number>0</number>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>spacing</name>
+                                        <number>6</number>
+                                    </property>
+                                    <widget>
+                                        <class>QLabel</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>psDriverLA</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>P&amp;S Driver:</string>
+                                        </property>
+                                        <property>
+                                            <name>buddy</name>
+                                            <cstring>psDriverCO</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget>
+                                        <class>QComboBox</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>postscriptDriverCO</cstring>
+                                        </property>
+                                    </widget>
+                                </hbox>
+                            </widget>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer17</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Vertical</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                            <widget>
+                                <class>QLayoutWidget</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>Layout38</cstring>
+                                </property>
+                                <hbox>
+                                    <property stdset="1">
+                                        <name>margin</name>
+                                        <number>0</number>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>spacing</name>
+                                        <number>6</number>
+                                    </property>
+                                    <spacer>
+                                        <property>
+                                            <name>name</name>
+                                            <cstring>Spacer23</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>orientation</name>
+                                            <enum>Horizontal</enum>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>sizeType</name>
+                                            <enum>Expanding</enum>
+                                        </property>
+                                        <property>
+                                            <name>sizeHint</name>
+                                            <size>
+                                                <width>20</width>
+                                                <height>20</height>
+                                            </size>
+                                        </property>
+                                    </spacer>
+                                    <widget>
+                                        <class>QCheckBox</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>useAmsMathCB</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>Use A&amp;MS Math</string>
+                                        </property>
+                                    </widget>
+                                    <spacer>
+                                        <property>
+                                            <name>name</name>
+                                            <cstring>Spacer22</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>orientation</name>
+                                            <enum>Horizontal</enum>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>sizeType</name>
+                                            <enum>Expanding</enum>
+                                        </property>
+                                        <property>
+                                            <name>sizeHint</name>
+                                            <size>
+                                                <width>20</width>
+                                                <height>20</height>
+                                            </size>
+                                        </property>
+                                    </spacer>
+                                </hbox>
+                            </widget>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer19</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Vertical</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                        </vbox>
+                    </widget>
+                    <spacer>
+                        <property>
+                            <name>name</name>
+                            <cstring>Spacer25</cstring>
+                        </property>
+                        <property stdset="1">
+                            <name>orientation</name>
+                            <enum>Horizontal</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>sizeType</name>
+                            <enum>Expanding</enum>
+                        </property>
+                        <property>
+                            <name>sizeHint</name>
+                            <size>
+                                <width>20</width>
+                                <height>20</height>
+                            </size>
+                        </property>
+                    </spacer>
+                </hbox>
+            </widget>
+            <widget>
+                <class>QWidget</class>
+                <property stdset="1">
+                    <name>name</name>
+                    <cstring>Widget6</cstring>
+                </property>
+                <attribute>
+                    <name>title</name>
+                    <string>Bullets</string>
+                </attribute>
+                <vbox>
+                    <property stdset="1">
+                        <name>margin</name>
+                        <number>6</number>
+                    </property>
+                    <property stdset="1">
+                        <name>spacing</name>
+                        <number>-1</number>
+                    </property>
+                    <widget>
+                        <class>QLayoutWidget</class>
+                        <property stdset="1">
+                            <name>name</name>
+                            <cstring>Layout51</cstring>
+                        </property>
+                        <hbox>
+                            <property stdset="1">
+                                <name>margin</name>
+                                <number>0</number>
+                            </property>
+                            <property stdset="1">
+                                <name>spacing</name>
+                                <number>6</number>
+                            </property>
+                            <widget>
+                                <class>QLayoutWidget</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>Layout48</cstring>
+                                </property>
+                                <vbox>
+                                    <property stdset="1">
+                                        <name>margin</name>
+                                        <number>0</number>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>spacing</name>
+                                        <number>6</number>
+                                    </property>
+                                    <spacer>
+                                        <property>
+                                            <name>name</name>
+                                            <cstring>Spacer31</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>orientation</name>
+                                            <enum>Vertical</enum>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>sizeType</name>
+                                            <enum>Expanding</enum>
+                                        </property>
+                                        <property>
+                                            <name>sizeHint</name>
+                                            <size>
+                                                <width>20</width>
+                                                <height>20</height>
+                                            </size>
+                                        </property>
+                                    </spacer>
+                                    <widget>
+                                        <class>QLabel</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>bulletSizeLA</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>Si&amp;ze</string>
+                                        </property>
+                                        <property>
+                                            <name>buddy</name>
+                                            <cstring>bulletSizeCO</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget>
+                                        <class>QComboBox</class>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>default</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>tiny</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>script</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>footnote</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>small</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>normal</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>large</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>Large</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>LARGE</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>huge</string>
+                                            </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>Huge</string>
+                                            </property>
+                                        </item>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>bulletSizeCO</cstring>
+                                        </property>
+                                    </widget>
+                                </vbox>
+                            </widget>
+                            <widget>
+                                <class>QLayoutWidget</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>Layout50</cstring>
+                                </property>
+                                <vbox>
+                                    <property stdset="1">
+                                        <name>margin</name>
+                                        <number>0</number>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>spacing</name>
+                                        <number>6</number>
+                                    </property>
+                                    <spacer>
+                                        <property>
+                                            <name>name</name>
+                                            <cstring>Spacer32</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>orientation</name>
+                                            <enum>Vertical</enum>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>sizeType</name>
+                                            <enum>Expanding</enum>
+                                        </property>
+                                        <property>
+                                            <name>sizeHint</name>
+                                            <size>
+                                                <width>20</width>
+                                                <height>20</height>
+                                            </size>
+                                        </property>
+                                    </spacer>
+                                    <widget>
+                                        <class>QButtonGroup</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>bulletDepthBG</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>title</name>
+                                            <string>Bullet Depth</string>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>exclusive</name>
+                                            <bool>true</bool>
+                                        </property>
+                                        <hbox>
+                                            <property stdset="1">
+                                                <name>margin</name>
+                                                <number>11</number>
+                                            </property>
+                                            <property stdset="1">
+                                                <name>spacing</name>
+                                                <number>6</number>
+                                            </property>
+                                            <widget>
+                                                <class>QToolButton</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>bulletDepth1PB</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>&amp;1</string>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>toggleButton</name>
+                                                    <bool>true</bool>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>toggleButton</name>
+                                                    <bool>true</bool>
+                                                </property>
+                                            </widget>
+                                            <widget>
+                                                <class>QToolButton</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>bulletDepth2PB</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>&amp;2</string>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>toggleButton</name>
+                                                    <bool>true</bool>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>toggleButton</name>
+                                                    <bool>true</bool>
+                                                </property>
+                                            </widget>
+                                            <widget>
+                                                <class>QToolButton</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>bulletDepth3PB</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>&amp;3</string>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>toggleButton</name>
+                                                    <bool>true</bool>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>toggleButton</name>
+                                                    <bool>true</bool>
+                                                </property>
+                                            </widget>
+                                            <widget>
+                                                <class>QToolButton</class>
+                                                <property stdset="1">
+                                                    <name>name</name>
+                                                    <cstring>bulletDepth4PB</cstring>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>text</name>
+                                                    <string>&amp;4</string>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>toggleButton</name>
+                                                    <bool>true</bool>
+                                                </property>
+                                                <property stdset="1">
+                                                    <name>toggleButton</name>
+                                                    <bool>true</bool>
+                                                </property>
+                                            </widget>
+                                        </hbox>
+                                    </widget>
+                                </vbox>
+                            </widget>
+                        </hbox>
+                    </widget>
+                    <spacer>
+                        <property>
+                            <name>name</name>
+                            <cstring>Spacer1</cstring>
+                        </property>
+                        <property stdset="1">
+                            <name>orientation</name>
+                            <enum>Vertical</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>sizeType</name>
+                            <enum>Expanding</enum>
+                        </property>
+                        <property>
+                            <name>sizeHint</name>
+                            <size>
+                                <width>20</width>
+                                <height>20</height>
+                            </size>
+                        </property>
+                    </spacer>
+                    <widget>
+                        <class>QLayoutWidget</class>
+                        <property stdset="1">
+                            <name>name</name>
+                            <cstring>Layout47</cstring>
+                        </property>
+                        <hbox>
+                            <property stdset="1">
+                                <name>margin</name>
+                                <number>0</number>
+                            </property>
+                            <property stdset="1">
+                                <name>spacing</name>
+                                <number>6</number>
+                            </property>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer27</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Horizontal</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                            <widget>
+                                <class>QButtonGroup</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>bulletTypeBG</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>frameShape</name>
+                                    <enum>NoFrame</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>title</name>
+                                    <string></string>
+                                </property>
+                                <property stdset="1">
+                                    <name>radioButtonExclusive</name>
+                                    <bool>false</bool>
+                                </property>
+                                <property>
+                                    <name>layoutSpacing</name>
+                                </property>
+                                <spacer>
+                                    <property>
+                                        <name>name</name>
+                                        <cstring>Spacer26</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>orientation</name>
+                                        <enum>Horizontal</enum>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizeType</name>
+                                        <enum>Fixed</enum>
+                                    </property>
+                                    <property>
+                                        <name>sizeHint</name>
+                                        <size>
+                                            <width>20</width>
+                                            <height>20</height>
+                                        </size>
+                                    </property>
+                                </spacer>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet10PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>98</x>
+                                            <y>33</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet11PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>121</x>
+                                            <y>33</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet12PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>144</x>
+                                            <y>33</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet13PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>167</x>
+                                            <y>33</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet14PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>190</x>
+                                            <y>33</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet15PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>213</x>
+                                            <y>33</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet21PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>121</x>
+                                            <y>55</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet20PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>98</x>
+                                            <y>55</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet22PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>144</x>
+                                            <y>55</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet23PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>167</x>
+                                            <y>55</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet24PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>190</x>
+                                            <y>55</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet25PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>213</x>
+                                            <y>55</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet30PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>98</x>
+                                            <y>77</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet31PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>121</x>
+                                            <y>77</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet32PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>144</x>
+                                            <y>77</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet34PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>190</x>
+                                            <y>77</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet35PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>213</x>
+                                            <y>77</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet42PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>144</x>
+                                            <y>99</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet43PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>167</x>
+                                            <y>99</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet44PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>190</x>
+                                            <y>99</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet45PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>213</x>
+                                            <y>99</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet50PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>98</x>
+                                            <y>121</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet51PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>121</x>
+                                            <y>121</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet52PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>144</x>
+                                            <y>121</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet53PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>167</x>
+                                            <y>121</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet54PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>190</x>
+                                            <y>121</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet55PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>213</x>
+                                            <y>121</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet40PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>98</x>
+                                            <y>99</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet41PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>121</x>
+                                            <y>99</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bulletPanelStandardPB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>11</x>
+                                            <y>11</y>
+                                            <width>66</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string>&amp;Standard</string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bulletPanelMathsPB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>11</x>
+                                            <y>33</y>
+                                            <width>66</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string>&amp;Maths</string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bulletPanelDing1PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>11</x>
+                                            <y>55</y>
+                                            <width>66</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string>&amp;Ding 1</string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bulletPanelDing2PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>11</x>
+                                            <y>77</y>
+                                            <width>66</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string>D&amp;ing 2</string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bulletPanelDing3PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>11</x>
+                                            <y>99</y>
+                                            <width>66</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string>Di&amp;ng 3</string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bulletPanelDing4PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>11</x>
+                                            <y>121</y>
+                                            <width>66</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string>Din&amp;g 4</string>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet33PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>167</x>
+                                            <y>77</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet00PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>98</x>
+                                            <y>11</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet01PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>121</x>
+                                            <y>11</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet02PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>144</x>
+                                            <y>11</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet03PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>167</x>
+                                            <y>11</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet04PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>190</x>
+                                            <y>11</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                                <widget>
+                                    <class>QToolButton</class>
+                                    <property stdset="1">
+                                        <name>name</name>
+                                        <cstring>bullet05PB</cstring>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>geometry</name>
+                                        <rect>
+                                            <x>213</x>
+                                            <y>11</y>
+                                            <width>23</width>
+                                            <height>22</height>
+                                        </rect>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>sizePolicy</name>
+                                        <sizepolicy>
+                                            <hsizetype>0</hsizetype>
+                                            <vsizetype>0</vsizetype>
+                                        </sizepolicy>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>text</name>
+                                        <string></string>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>toggleButton</name>
+                                        <bool>true</bool>
+                                    </property>
+                                </widget>
+                            </widget>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer28</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Horizontal</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                        </hbox>
+                    </widget>
+                    <spacer>
+                        <property>
+                            <name>name</name>
+                            <cstring>Spacer2</cstring>
+                        </property>
+                        <property stdset="1">
+                            <name>orientation</name>
+                            <enum>Vertical</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>sizeType</name>
+                            <enum>Expanding</enum>
+                        </property>
+                        <property>
+                            <name>sizeHint</name>
+                            <size>
+                                <width>20</width>
+                                <height>20</height>
+                            </size>
+                        </property>
+                    </spacer>
+                    <widget>
+                        <class>QLayoutWidget</class>
+                        <property stdset="1">
+                            <name>name</name>
+                            <cstring>Layout45</cstring>
+                        </property>
+                        <hbox>
+                            <property stdset="1">
+                                <name>margin</name>
+                                <number>0</number>
+                            </property>
+                            <property stdset="1">
+                                <name>spacing</name>
+                                <number>6</number>
+                            </property>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer29</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Horizontal</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                            <widget>
+                                <class>QLayoutWidget</class>
+                                <property stdset="1">
+                                    <name>name</name>
+                                    <cstring>Layout42</cstring>
+                                </property>
+                                <hbox>
+                                    <property stdset="1">
+                                        <name>margin</name>
+                                        <number>0</number>
+                                    </property>
+                                    <property stdset="1">
+                                        <name>spacing</name>
+                                        <number>6</number>
+                                    </property>
+                                    <widget>
+                                        <class>QLabel</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>latexLA</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>text</name>
+                                            <string>&amp;LaTeX</string>
+                                        </property>
+                                        <property>
+                                            <name>buddy</name>
+                                            <cstring>latexED</cstring>
+                                        </property>
+                                    </widget>
+                                    <widget>
+                                        <class>QLineEdit</class>
+                                        <property stdset="1">
+                                            <name>name</name>
+                                            <cstring>bulletLatexED</cstring>
+                                        </property>
+                                        <property stdset="1">
+                                            <name>maxLength</name>
+                                            <number>80</number>
+                                        </property>
+                                    </widget>
+                                </hbox>
+                            </widget>
+                            <spacer>
+                                <property>
+                                    <name>name</name>
+                                    <cstring>Spacer30</cstring>
+                                </property>
+                                <property stdset="1">
+                                    <name>orientation</name>
+                                    <enum>Horizontal</enum>
+                                </property>
+                                <property stdset="1">
+                                    <name>sizeType</name>
+                                    <enum>Expanding</enum>
+                                </property>
+                                <property>
+                                    <name>sizeHint</name>
+                                    <size>
+                                        <width>20</width>
+                                        <height>20</height>
+                                    </size>
+                                </property>
+                            </spacer>
+                        </hbox>
+                    </widget>
+                </vbox>
+            </widget>
+        </widget>
+        <widget>
+            <class>QLabel</class>
+            <property stdset="1">
+                <name>name</name>
+                <cstring>warningLA</cstring>
+            </property>
+            <property stdset="1">
+                <name>palette</name>
+                <palette>
+                    <active>
+                        <color>
+                            <red>0</red>
+                            <green>0</green>
+                            <blue>0</blue>
+                        </color>
+                        <color>
+                            <red>220</red>
+                            <green>220</green>
+                            <blue>220</blue>
+                        </color>
+                        <color>
+                            <red>255</red>
+                            <green>255</green>
+                            <blue>255</blue>
+                        </color>
+                        <color>
+                            <red>237</red>
+                            <green>237</green>
+                            <blue>237</blue>
+                        </color>
+                        <color>
+                            <red>110</red>
+                            <green>110</green>
+                            <blue>110</blue>
+                        </color>
+                        <color>
+                            <red>146</red>
+                            <green>146</green>
+                            <blue>146</blue>
+                        </color>
+                        <color>
+                            <red>255</red>
+                            <green>0</green>
+                            <blue>0</blue>
+                        </color>
+                        <color>
+                            <red>255</red>
+                            <green>255</green>
+                            <blue>255</blue>
+                        </color>
+                        <color>
+                            <red>0</red>
+                            <green>0</green>
+                            <blue>0</blue>
+                        </color>
+                        <color>
+                            <red>255</red>
+                            <green>255</green>
+                            <blue>255</blue>
+                        </color>
+                        <color>
+                            <red>220</red>
+                            <green>220</green>
+                            <blue>220</blue>
+                        </color>
+                        <color>
+                            <red>0</red>
+                            <green>0</green>
+                            <blue>0</blue>
+                        </color>
+                        <color>
+                            <red>0</red>
+                            <green>128</green>
+                            <blue>128</blue>
+                        </color>
+                        <color>
+                            <red>255</red>
+                            <green>255</green>
+                            <blue>255</blue>
+                        </color>
+                    </active>
+                    <disabled>
+                        <color>
+                            <red>128</red>
+                            <green>128</green>
+                            <blue>128</blue>
+                        </color>
+                        <color>
+                            <red>220</red>
+                            <green>220</green>
+                            <blue>220</blue>
+                        </color>
+                        <color>
+                            <red>255</red>
+                            <green>255</green>
+                            <blue>255</blue>
+                        </color>
+                        <color>
+                            <red>253</red>
+                            <green>253</green>
+                            <blue>253</blue>
+                        </color>
+                        <color>
+                            <red>110</red>
+                            <green>110</green>
+                            <blue>110</blue>
+                        </color>
+                        <color>
+                            <red>146</red>
+                            <green>146</green>
+                            <blue>146</blue>
+                        </color>
+                        <color>
+                            <red>255</red>
+                            <green>0</green>
+                            <blue>0</blue>
+                        </color>
+                        <color>
+                            <red>255</red>
+                            <green>255</green>
+                            <blue>255</blue>
+                        </color>
+                        <color>
+                            <red>128</red>
+                            <green>128</green>
+                            <blue>128</blue>
+                        </color>
+                        <color>
+                            <red>255</red>
+                            <green>255</green>
+                            <blue>255</blue>
+                        </color>
+                        <color>
+                            <red>220</red>
+                            <green>220</green>
+                            <blue>220</blue>
+                        </color>
+                        <color>
+                            <red>0</red>
+                            <green>0</green>
+                            <blue>0</blue>
+                        </color>
+                        <color>
+                            <red>0</red>
+                            <green>128</green>
+                            <blue>128</blue>
+                        </color>
+                        <color>
+                            <red>255</red>
+                            <green>255</green>
+                            <blue>255</blue>
+                        </color>
+                    </disabled>
+                    <inactive>
+                        <color>
+                            <red>0</red>
+                            <green>0</green>
+                            <blue>0</blue>
+                        </color>
+                        <color>
+                            <red>220</red>
+                            <green>220</green>
+                            <blue>220</blue>
+                        </color>
+                        <color>
+                            <red>255</red>
+                            <green>255</green>
+                            <blue>255</blue>
+                        </color>
+                        <color>
+                            <red>253</red>
+                            <green>253</green>
+                            <blue>253</blue>
+                        </color>
+                        <color>
+                            <red>110</red>
+                            <green>110</green>
+                            <blue>110</blue>
+                        </color>
+                        <color>
+                            <red>146</red>
+                            <green>146</green>
+                            <blue>146</blue>
+                        </color>
+                        <color>
+                            <red>255</red>
+                            <green>0</green>
+                            <blue>0</blue>
+                        </color>
+                        <color>
+                            <red>255</red>
+                            <green>255</green>
+                            <blue>255</blue>
+                        </color>
+                        <color>
+                            <red>0</red>
+                            <green>0</green>
+                            <blue>0</blue>
+                        </color>
+                        <color>
+                            <red>255</red>
+                            <green>255</green>
+                            <blue>255</blue>
+                        </color>
+                        <color>
+                            <red>220</red>
+                            <green>220</green>
+                            <blue>220</blue>
+                        </color>
+                        <color>
+                            <red>0</red>
+                            <green>0</green>
+                            <blue>0</blue>
+                        </color>
+                        <color>
+                            <red>0</red>
+                            <green>128</green>
+                            <blue>128</blue>
+                        </color>
+                        <color>
+                            <red>255</red>
+                            <green>255</green>
+                            <blue>255</blue>
+                        </color>
+                    </inactive>
+                </palette>
+            </property>
+            <property stdset="1">
+                <name>font</name>
+                <font>
+                    <bold>1</bold>
+                </font>
+            </property>
+            <property stdset="1">
+                <name>text</name>
+                <string></string>
+            </property>
+            <property stdset="1">
+                <name>alignment</name>
+                <set>AlignCenter</set>
+            </property>
+            <property>
+                <name>hAlign</name>
+            </property>
+        </widget>
+        <widget>
+            <class>QLayoutWidget</class>
+            <property stdset="1">
+                <name>name</name>
+                <cstring>Layout54</cstring>
+            </property>
+            <hbox>
+                <property stdset="1">
+                    <name>margin</name>
+                    <number>0</number>
+                </property>
+                <property stdset="1">
+                    <name>spacing</name>
+                    <number>6</number>
+                </property>
+                <spacer>
+                    <property>
+                        <name>name</name>
+                        <cstring>Spacer39</cstring>
+                    </property>
+                    <property stdset="1">
+                        <name>orientation</name>
+                        <enum>Horizontal</enum>
+                    </property>
+                    <property stdset="1">
+                        <name>sizeType</name>
+                        <enum>Expanding</enum>
+                    </property>
+                    <property>
+                        <name>sizeHint</name>
+                        <size>
+                            <width>20</width>
+                            <height>20</height>
+                        </size>
+                    </property>
+                </spacer>
+                <widget>
+                    <class>QPushButton</class>
+                    <property stdset="1">
+                        <name>name</name>
+                        <cstring>restorePB</cstring>
+                    </property>
+                    <property stdset="1">
+                        <name>text</name>
+                        <string>&amp;Restore</string>
+                    </property>
+                </widget>
+                <widget>
+                    <class>QPushButton</class>
+                    <property stdset="1">
+                        <name>name</name>
+                        <cstring>okPB</cstring>
+                    </property>
+                    <property stdset="1">
+                        <name>text</name>
+                        <string>OK</string>
+                    </property>
+                    <property stdset="1">
+                        <name>default</name>
+                        <bool>true</bool>
+                    </property>
+                </widget>
+                <widget>
+                    <class>QPushButton</class>
+                    <property stdset="1">
+                        <name>name</name>
+                        <cstring>applyPB</cstring>
+                    </property>
+                    <property stdset="1">
+                        <name>text</name>
+                        <string>&amp;Apply</string>
+                    </property>
+                </widget>
+                <widget>
+                    <class>QPushButton</class>
+                    <property stdset="1">
+                        <name>name</name>
+                        <cstring>cancelPB</cstring>
+                    </property>
+                    <property stdset="1">
+                        <name>text</name>
+                        <string>Cancel</string>
+                    </property>
+                </widget>
+            </hbox>
+        </widget>
+    </vbox>
+</widget>
+<connections>
+    <connection>
+        <sender>okPB</sender>
+        <signal>clicked()</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotOK()</slot>
+    </connection>
+    <connection>
+        <sender>restorePB</sender>
+        <signal>clicked()</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotRestore()</slot>
+    </connection>
+    <connection>
+        <sender>paperPackageCO</sender>
+        <signal>activated(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotSpecialPaperPackage(int)</slot>
+    </connection>
+    <connection>
+        <sender>orientationBG</sender>
+        <signal>clicked(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotOrientation(int)</slot>
+    </connection>
+    <connection>
+        <sender>papersize2CO</sender>
+        <signal>activated(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotPapersize(int)</slot>
+    </connection>
+    <connection>
+        <sender>useGeometryCB</sender>
+        <signal>toggled(bool)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotUseGeometryPackage(bool)</slot>
+    </connection>
+    <connection>
+        <sender>customWidthED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotWidth(const QString&amp;)</slot>
+    </connection>
+    <connection>
+        <sender>customHeightED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotHeight(const QString&amp;)</slot>
+    </connection>
+    <connection>
+        <sender>topMarginED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotMarginTop(const QString&amp;)</slot>
+    </connection>
+    <connection>
+        <sender>bottomMarginED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotMarginBottom(const QString&amp;)</slot>
+    </connection>
+    <connection>
+        <sender>leftMarginED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotMarginLeft(const QString&amp;)</slot>
+    </connection>
+    <connection>
+        <sender>rightMarginED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotMarginRight(const QString&amp;)</slot>
+    </connection>
+    <connection>
+        <sender>headHeightED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotHeadheight(const QString&amp;)</slot>
+    </connection>
+    <connection>
+        <sender>headSepED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotHeadsep(const QString&amp;)</slot>
+    </connection>
+    <connection>
+        <sender>footSkipED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotFootskip(const QString&amp;)</slot>
+    </connection>
+    <connection>
+        <sender>docClassCO</sender>
+        <signal>activated(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotClass(int)</slot>
+    </connection>
+    <connection>
+        <sender>docPagestyleCO</sender>
+        <signal>activated(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotPageStyle(int)</slot>
+    </connection>
+    <connection>
+        <sender>docFontsCO</sender>
+        <signal>activated(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotFont(int)</slot>
+    </connection>
+    <connection>
+        <sender>docFontSizeCO</sender>
+        <signal>activated(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotFontSize(int)</slot>
+    </connection>
+    <connection>
+        <sender>docExtraED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotExtraOptions(const QString&amp;)</slot>
+    </connection>
+    <connection>
+        <sender>docSkipCO</sender>
+        <signal>activated(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotDefaultSkip(int)</slot>
+    </connection>
+    <connection>
+        <sender>docSkipED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotDefaultSkip(const QString&amp;)</slot>
+    </connection>
+    <connection>
+        <sender>docSpacingCO</sender>
+        <signal>activated(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotSpacing(int)</slot>
+    </connection>
+    <connection>
+        <sender>docSpacingED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotSpacing(const QString&amp;)</slot>
+    </connection>
+    <connection>
+        <sender>sidesBG</sender>
+        <signal>clicked(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotSides(int)</slot>
+    </connection>
+    <connection>
+        <sender>columnsBG</sender>
+        <signal>clicked(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotColumns(int)</slot>
+    </connection>
+    <connection>
+        <sender>separationBG</sender>
+        <signal>clicked(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotSeparation(int)</slot>
+    </connection>
+    <connection>
+        <sender>languageCO</sender>
+        <signal>activated(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotLanguage(int)</slot>
+    </connection>
+    <connection>
+        <sender>inputEncCO</sender>
+        <signal>activated(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotEncoding(int)</slot>
+    </connection>
+    <connection>
+        <sender>quotesLanguageCO</sender>
+        <signal>activated(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotQuoteStyle(int)</slot>
+    </connection>
+    <connection>
+        <sender>quoteStyleBG</sender>
+        <signal>clicked(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotQuoteStyle(int)</slot>
+    </connection>
+    <connection>
+        <sender>floatPlacementED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotFloatPlacement(const QString&amp;)</slot>
+    </connection>
+    <connection>
+        <sender>secNumDepthSB</sender>
+        <signal>valueChanged(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotSectionNumberDepth(int)</slot>
+    </connection>
+    <connection>
+        <sender>tocDepthSB</sender>
+        <signal>valueChanged(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotTOCDepth(int)</slot>
+    </connection>
+    <connection>
+        <sender>postscriptDriverCO</sender>
+        <signal>activated(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotPSDriver(int)</slot>
+    </connection>
+    <connection>
+        <sender>useAmsMathCB</sender>
+        <signal>toggled(bool)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotAMSMath(bool)</slot>
+    </connection>
+    <connection>
+        <sender>applyPB</sender>
+        <signal>clicked()</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotApply()</slot>
+    </connection>
+    <connection>
+        <sender>cancelPB</sender>
+        <signal>clicked()</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotClose()</slot>
+    </connection>
+    <connection>
+        <sender>bulletLatexED</sender>
+        <signal>textChanged(const QString&amp;)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotBulletLaTeX(const QString&amp;)</slot>
+    </connection>
+    <connection>
+        <sender>bulletPanelStandardPB</sender>
+        <signal>clicked()</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotBulletStandard()</slot>
+    </connection>
+    <connection>
+        <sender>bulletPanelMathsPB</sender>
+        <signal>clicked()</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotBulletMaths()</slot>
+    </connection>
+    <connection>
+        <sender>bulletPanelDing1PB</sender>
+        <signal>clicked()</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotBulletDing1()</slot>
+    </connection>
+    <connection>
+        <sender>bulletPanelDing2PB</sender>
+        <signal>clicked()</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotBulletDing2()</slot>
+    </connection>
+    <connection>
+        <sender>bulletPanelDing3PB</sender>
+        <signal>clicked()</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotBulletDing3()</slot>
+    </connection>
+    <connection>
+        <sender>bulletPanelDing4PB</sender>
+        <signal>clicked()</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotBulletDing4()</slot>
+    </connection>
+    <connection>
+        <sender>bulletTypeBG</sender>
+        <signal>clicked(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotBulletSymbol(int)</slot>
+    </connection>
+    <connection>
+        <sender>bulletSizeCO</sender>
+        <signal>activated(int)</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotBulletSize(int)</slot>
+    </connection>
+    <connection>
+        <sender>bulletDepth1PB</sender>
+        <signal>clicked()</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotBulletDepth1()</slot>
+    </connection>
+    <connection>
+        <sender>bulletDepth2PB</sender>
+        <signal>clicked()</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotBulletDepth2()</slot>
+    </connection>
+    <connection>
+        <sender>bulletDepth3PB</sender>
+        <signal>clicked()</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotBulletDing3()</slot>
+    </connection>
+    <connection>
+        <sender>bulletDepth4PB</sender>
+        <signal>clicked()</signal>
+        <receiver>FormDocumentDialog</receiver>
+        <slot>slotBulletDepth4()</slot>
+    </connection>
+    <slot access="public">slotAMSMath(bool)</slot>
+    <slot access="public">slotApply()</slot>
+    <slot access="public">slotBulletDepth1()</slot>
+    <slot access="public">slotBulletDepth2()</slot>
+    <slot access="public">slotBulletDepth3()</slot>
+    <slot access="public">slotBulletDepth4()</slot>
+    <slot access="public">slotBulletDing1()</slot>
+    <slot access="public">slotBulletDing2()</slot>
+    <slot access="public">slotBulletDing3()</slot>
+    <slot access="public">slotBulletDing4()</slot>
+    <slot access="public">slotBulletLaTeX(const QString&amp;)</slot>
+    <slot access="public">slotBulletMaths()</slot>
+    <slot access="public">slotBulletSize(int)</slot>
+    <slot access="public">slotBulletStandard()</slot>
+    <slot access="public">slotBulletSymbol(int)</slot>
+    <slot access="public">slotClass(int)</slot>
+    <slot access="public">slotClose()</slot>
+    <slot access="public">slotColumns(int)</slot>
+    <slot access="public">slotDefaultSkip(const QString&amp;)</slot>
+    <slot access="public">slotDefaultSkip(int)</slot>
+    <slot access="public">slotEncoding(int)</slot>
+    <slot access="public">slotExtraOptions(const QString&amp;)</slot>
+    <slot access="public">slotFloatPlacement(const QString&amp;)</slot>
+    <slot access="public">slotFont(int)</slot>
+    <slot access="public">slotFontSize(int)</slot>
+    <slot access="public">slotFootskip(const QString&amp;)</slot>
+    <slot access="public">slotHeadheight(const QString&amp;)</slot>
+    <slot access="public">slotHeadsep(const QString&amp;)</slot>
+    <slot access="public">slotHeight(const QString&amp;)</slot>
+    <slot access="public">slotLanguage(int)</slot>
+    <slot access="public">slotMarginBottom(const QString&amp;)</slot>
+    <slot access="public">slotMarginLeft(const QString&amp;)</slot>
+    <slot access="public">slotMarginRight(const QString&amp;)</slot>
+    <slot access="public">slotMarginTop(const QString&amp;)</slot>
+    <slot access="public">slotOK()</slot>
+    <slot access="public">slotOrientation(int)</slot>
+    <slot access="public">slotPSDriver(int)</slot>
+    <slot access="public">slotPageStyle(int)</slot>
+    <slot access="public">slotPapersize(int)</slot>
+    <slot access="public">slotQuoteStyle(int)</slot>
+    <slot access="public">slotQuoteType(int)</slot>
+    <slot access="public">slotRestore()</slot>
+    <slot access="public">slotSectionNumberDepth(int)</slot>
+    <slot access="public">slotSeparation(int)</slot>
+    <slot access="public">slotSides(int)</slot>
+    <slot access="public">slotSpacing(const QString&amp;)</slot>
+    <slot access="public">slotSpacing(int)</slot>
+    <slot access="public">slotSpecialPaperPackage(int)</slot>
+    <slot access="public">slotTOCDepth(int)</slot>
+    <slot access="public">slotUseGeometryPackage(bool)</slot>
+    <slot access="public">slotWidth(const QString&amp;)</slot>
+</connections>
+<tabstops>
+    <tabstop>docClassCO</tabstop>
+    <tabstop>docPagestyleCO</tabstop>
+    <tabstop>docFontsCO</tabstop>
+    <tabstop>docFontSizeCO</tabstop>
+    <tabstop>docExtraED</tabstop>
+    <tabstop>docSkipCO</tabstop>
+    <tabstop>docSkipED</tabstop>
+    <tabstop>docSpacingCO</tabstop>
+    <tabstop>docSpacingED</tabstop>
+    <tabstop>docSidesOneRB</tabstop>
+    <tabstop>docSidesTwoRB</tabstop>
+    <tabstop>docColumnsOneRB</tabstop>
+    <tabstop>docColumnsTwoRB</tabstop>
+    <tabstop>docIndentRB</tabstop>
+    <tabstop>docSkipRB</tabstop>
+    <tabstop>papersize2CO</tabstop>
+    <tabstop>paperPackageCO</tabstop>
+    <tabstop>useGeometryCB</tabstop>
+    <tabstop>portraitRB</tabstop>
+    <tabstop>landscapeRB</tabstop>
+    <tabstop>topMarginED</tabstop>
+    <tabstop>bottomMarginED</tabstop>
+    <tabstop>leftMarginED</tabstop>
+    <tabstop>rightMarginED</tabstop>
+    <tabstop>customWidthED</tabstop>
+    <tabstop>customHeightED</tabstop>
+    <tabstop>headHeightED</tabstop>
+    <tabstop>headSepED</tabstop>
+    <tabstop>footSkipED</tabstop>
+    <tabstop>languageCO</tabstop>
+    <tabstop>inputEncCO</tabstop>
+    <tabstop>quotesLanguageCO</tabstop>
+    <tabstop>singleRB</tabstop>
+    <tabstop>doubleRB</tabstop>
+    <tabstop>floatPlacementED</tabstop>
+    <tabstop>secNumDepthSB</tabstop>
+    <tabstop>tocDepthSB</tabstop>
+    <tabstop>postscriptDriverCO</tabstop>
+    <tabstop>useAmsMathCB</tabstop>
+    <tabstop>bulletSizeCO</tabstop>
+    <tabstop>bulletLatexED</tabstop>
+    <tabstop>restorePB</tabstop>
+    <tabstop>okPB</tabstop>
+    <tabstop>applyPB</tabstop>
+    <tabstop>cancelPB</tabstop>
+    <tabstop>TabWidget2</tabstop>
+</tabstops>
+</UI>
diff --git a/src/frontends/qt2/FormDocumentDialogBase.ui b/src/frontends/qt2/FormDocumentDialogBase.ui
deleted file mode 100644 (file)
index a617fc5..0000000
+++ /dev/null
@@ -1,4952 +0,0 @@
-<!DOCTYPE UI><UI>
-<class>FormDocumentDialogBase</class>
-<widget>
-    <class>QDialog</class>
-    <property stdset="1">
-        <name>name</name>
-        <cstring>FormDocumentDialogBase</cstring>
-    </property>
-    <property stdset="1">
-        <name>geometry</name>
-        <rect>
-            <x>0</x>
-            <y>0</y>
-            <width>538</width>
-            <height>437</height>
-        </rect>
-    </property>
-    <property stdset="1">
-        <name>caption</name>
-        <string>Document Layout</string>
-    </property>
-    <vbox>
-        <property stdset="1">
-            <name>margin</name>
-            <number>11</number>
-        </property>
-        <property stdset="1">
-            <name>spacing</name>
-            <number>6</number>
-        </property>
-        <widget>
-            <class>QTabWidget</class>
-            <property stdset="1">
-                <name>name</name>
-                <cstring>TabWidget2</cstring>
-            </property>
-            <property>
-                <name>layoutMargin</name>
-            </property>
-            <widget>
-                <class>QWidget</class>
-                <property stdset="1">
-                    <name>name</name>
-                    <cstring>Widget2</cstring>
-                </property>
-                <attribute>
-                    <name>title</name>
-                    <string>Document</string>
-                </attribute>
-                <hbox>
-                    <property stdset="1">
-                        <name>margin</name>
-                        <number>11</number>
-                    </property>
-                    <property stdset="1">
-                        <name>spacing</name>
-                        <number>6</number>
-                    </property>
-                    <widget>
-                        <class>QLayoutWidget</class>
-                        <property stdset="1">
-                            <name>name</name>
-                            <cstring>Layout33</cstring>
-                        </property>
-                        <vbox>
-                            <property stdset="1">
-                                <name>margin</name>
-                                <number>0</number>
-                            </property>
-                            <property stdset="1">
-                                <name>spacing</name>
-                                <number>6</number>
-                            </property>
-                            <widget>
-                                <class>QLayoutWidget</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>Layout32</cstring>
-                                </property>
-                                <grid>
-                                    <property stdset="1">
-                                        <name>margin</name>
-                                        <number>0</number>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>spacing</name>
-                                        <number>6</number>
-                                    </property>
-                                    <widget row="4"  column="1" >
-                                        <class>QLineEdit</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>extraOptionsED</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget row="2"  column="0" >
-                                        <class>QLabel</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>fontsLA</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>&amp;Fonts:</string>
-                                        </property>
-                                        <property>
-                                            <name>buddy</name>
-                                            <cstring>fontsCO</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget row="1"  column="0" >
-                                        <class>QLabel</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>pagestyleLA</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>&amp;Pagestyle:</string>
-                                        </property>
-                                        <property>
-                                            <name>buddy</name>
-                                            <cstring>pagestyleCO</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget row="5"  column="0" >
-                                        <class>QLabel</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>defaultSkipLA</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>Defa&amp;ult Skip:</string>
-                                        </property>
-                                        <property>
-                                            <name>buddy</name>
-                                            <cstring>defaultSkipCO</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget row="3"  column="0" >
-                                        <class>QLabel</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>fontSizeLA</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>F&amp;ont Size:</string>
-                                        </property>
-                                        <property>
-                                            <name>buddy</name>
-                                            <cstring>fontSizeCO</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget row="1"  column="1" >
-                                        <class>QComboBox</class>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>default</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>empty</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>plain</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>headings</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>fancy</string>
-                                            </property>
-                                        </item>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>pagestyleCO</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget row="6"  column="0" >
-                                        <class>QLabel</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>spacingLA</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>Spacin&amp;g:</string>
-                                        </property>
-                                        <property>
-                                            <name>buddy</name>
-                                            <cstring>spacingCO</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget row="4"  column="0" >
-                                        <class>QLabel</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>extraOptionsLA</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>E&amp;xtra Options:</string>
-                                        </property>
-                                        <property>
-                                            <name>buddy</name>
-                                            <cstring>extraOptionsED</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget row="0"  column="0" >
-                                        <class>QLabel</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>classesLA</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>&amp;Class:</string>
-                                        </property>
-                                        <property>
-                                            <name>buddy</name>
-                                            <cstring>classesCO</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget row="5"  column="1" >
-                                        <class>QLayoutWidget</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>Layout13</cstring>
-                                        </property>
-                                        <hbox>
-                                            <property stdset="1">
-                                                <name>margin</name>
-                                                <number>0</number>
-                                            </property>
-                                            <property stdset="1">
-                                                <name>spacing</name>
-                                                <number>6</number>
-                                            </property>
-                                            <widget>
-                                                <class>QComboBox</class>
-                                                <item>
-                                                    <property>
-                                                        <name>text</name>
-                                                        <string>smallskip</string>
-                                                    </property>
-                                                </item>
-                                                <item>
-                                                    <property>
-                                                        <name>text</name>
-                                                        <string>medskip</string>
-                                                    </property>
-                                                </item>
-                                                <item>
-                                                    <property>
-                                                        <name>text</name>
-                                                        <string>bigskip</string>
-                                                    </property>
-                                                </item>
-                                                <item>
-                                                    <property>
-                                                        <name>text</name>
-                                                        <string>length</string>
-                                                    </property>
-                                                </item>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>defaultSkipCO</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget>
-                                                <class>QLineEdit</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>defaultSkipED</cstring>
-                                                </property>
-                                            </widget>
-                                        </hbox>
-                                    </widget>
-                                    <widget row="6"  column="1" >
-                                        <class>QLayoutWidget</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>Layout31</cstring>
-                                        </property>
-                                        <hbox>
-                                            <property stdset="1">
-                                                <name>margin</name>
-                                                <number>0</number>
-                                            </property>
-                                            <property stdset="1">
-                                                <name>spacing</name>
-                                                <number>6</number>
-                                            </property>
-                                            <widget>
-                                                <class>QComboBox</class>
-                                                <item>
-                                                    <property>
-                                                        <name>text</name>
-                                                        <string>Single</string>
-                                                    </property>
-                                                </item>
-                                                <item>
-                                                    <property>
-                                                        <name>text</name>
-                                                        <string>OneHalf</string>
-                                                    </property>
-                                                </item>
-                                                <item>
-                                                    <property>
-                                                        <name>text</name>
-                                                        <string>Double</string>
-                                                    </property>
-                                                </item>
-                                                <item>
-                                                    <property>
-                                                        <name>text</name>
-                                                        <string>Other</string>
-                                                    </property>
-                                                </item>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>spacingCO</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget>
-                                                <class>QLineEdit</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>spacingED</cstring>
-                                                </property>
-                                            </widget>
-                                        </hbox>
-                                    </widget>
-                                    <widget row="2"  column="1" >
-                                        <class>QComboBox</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>fontsCO</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget row="0"  column="1" >
-                                        <class>QComboBox</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>classesCO</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget row="3"  column="1" >
-                                        <class>QComboBox</class>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>default</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>10</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>11</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>12</string>
-                                            </property>
-                                        </item>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>fontSizeCO</cstring>
-                                        </property>
-                                    </widget>
-                                </grid>
-                            </widget>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer2_2</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Vertical</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                        </vbox>
-                    </widget>
-                    <widget>
-                        <class>QLayoutWidget</class>
-                        <property stdset="1">
-                            <name>name</name>
-                            <cstring>Layout52</cstring>
-                        </property>
-                        <vbox>
-                            <property stdset="1">
-                                <name>margin</name>
-                                <number>0</number>
-                            </property>
-                            <property stdset="1">
-                                <name>spacing</name>
-                                <number>6</number>
-                            </property>
-                            <widget>
-                                <class>QButtonGroup</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>sidesBG</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>title</name>
-                                    <string>Sides</string>
-                                </property>
-                                <vbox>
-                                    <property stdset="1">
-                                        <name>margin</name>
-                                        <number>11</number>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>spacing</name>
-                                        <number>6</number>
-                                    </property>
-                                    <widget>
-                                        <class>QRadioButton</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>oneSideRB</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>O&amp;ne</string>
-                                        </property>
-                                    </widget>
-                                    <widget>
-                                        <class>QRadioButton</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>twoSidesRB</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>&amp;Two</string>
-                                        </property>
-                                    </widget>
-                                </vbox>
-                            </widget>
-                            <widget>
-                                <class>QButtonGroup</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>columnsBG</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>title</name>
-                                    <string>Columns</string>
-                                </property>
-                                <vbox>
-                                    <property stdset="1">
-                                        <name>margin</name>
-                                        <number>11</number>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>spacing</name>
-                                        <number>6</number>
-                                    </property>
-                                    <widget>
-                                        <class>QRadioButton</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>oneColumnRB</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>On&amp;e</string>
-                                        </property>
-                                    </widget>
-                                    <widget>
-                                        <class>QRadioButton</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>twoColumnsRB</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>T&amp;wo</string>
-                                        </property>
-                                    </widget>
-                                </vbox>
-                            </widget>
-                            <widget>
-                                <class>QButtonGroup</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>separationBG</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>title</name>
-                                    <string>Separation</string>
-                                </property>
-                                <vbox>
-                                    <property stdset="1">
-                                        <name>margin</name>
-                                        <number>11</number>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>spacing</name>
-                                        <number>6</number>
-                                    </property>
-                                    <widget>
-                                        <class>QRadioButton</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>indentRB</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>&amp;Indent</string>
-                                        </property>
-                                    </widget>
-                                    <widget>
-                                        <class>QRadioButton</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>skipRB</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>S&amp;kip</string>
-                                        </property>
-                                    </widget>
-                                </vbox>
-                            </widget>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer33</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Vertical</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                        </vbox>
-                    </widget>
-                </hbox>
-            </widget>
-            <widget>
-                <class>QWidget</class>
-                <property stdset="1">
-                    <name>name</name>
-                    <cstring>Widget3</cstring>
-                </property>
-                <attribute>
-                    <name>title</name>
-                    <string>Paper</string>
-                </attribute>
-                <vbox>
-                    <property stdset="1">
-                        <name>margin</name>
-                        <number>11</number>
-                    </property>
-                    <property stdset="1">
-                        <name>spacing</name>
-                        <number>6</number>
-                    </property>
-                    <spacer>
-                        <property>
-                            <name>name</name>
-                            <cstring>Spacer34</cstring>
-                        </property>
-                        <property stdset="1">
-                            <name>orientation</name>
-                            <enum>Vertical</enum>
-                        </property>
-                        <property stdset="1">
-                            <name>sizeType</name>
-                            <enum>Expanding</enum>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                    </spacer>
-                    <widget>
-                        <class>QLayoutWidget</class>
-                        <property stdset="1">
-                            <name>name</name>
-                            <cstring>Layout19</cstring>
-                        </property>
-                        <hbox>
-                            <property stdset="1">
-                                <name>margin</name>
-                                <number>0</number>
-                            </property>
-                            <property stdset="1">
-                                <name>spacing</name>
-                                <number>6</number>
-                            </property>
-                            <widget>
-                                <class>QLabel</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>papersizeLA</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>text</name>
-                                    <string>&amp;Papersize:</string>
-                                </property>
-                                <property>
-                                    <name>buddy</name>
-                                    <cstring>papersizeCO</cstring>
-                                </property>
-                            </widget>
-                            <widget>
-                                <class>QComboBox</class>
-                                <item>
-                                    <property>
-                                        <name>text</name>
-                                        <string>Default</string>
-                                    </property>
-                                </item>
-                                <item>
-                                    <property>
-                                        <name>text</name>
-                                        <string>Custom</string>
-                                    </property>
-                                </item>
-                                <item>
-                                    <property>
-                                        <name>text</name>
-                                        <string>USletter</string>
-                                    </property>
-                                </item>
-                                <item>
-                                    <property>
-                                        <name>text</name>
-                                        <string>USlegal</string>
-                                    </property>
-                                </item>
-                                <item>
-                                    <property>
-                                        <name>text</name>
-                                        <string>USexecutive</string>
-                                    </property>
-                                </item>
-                                <item>
-                                    <property>
-                                        <name>text</name>
-                                        <string>A3</string>
-                                    </property>
-                                </item>
-                                <item>
-                                    <property>
-                                        <name>text</name>
-                                        <string>A5</string>
-                                    </property>
-                                </item>
-                                <item>
-                                    <property>
-                                        <name>text</name>
-                                        <string>B3</string>
-                                    </property>
-                                </item>
-                                <item>
-                                    <property>
-                                        <name>text</name>
-                                        <string>B4</string>
-                                    </property>
-                                </item>
-                                <item>
-                                    <property>
-                                        <name>text</name>
-                                        <string>B5</string>
-                                    </property>
-                                </item>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>papersizeCO</cstring>
-                                </property>
-                            </widget>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer5</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Horizontal</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                            <widget>
-                                <class>QLabel</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>specialLA</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>text</name>
-                                    <string>&amp;Special:</string>
-                                </property>
-                                <property>
-                                    <name>buddy</name>
-                                    <cstring>specialCO</cstring>
-                                </property>
-                            </widget>
-                            <widget>
-                                <class>QComboBox</class>
-                                <item>
-                                    <property>
-                                        <name>text</name>
-                                        <string>None</string>
-                                    </property>
-                                </item>
-                                <item>
-                                    <property>
-                                        <name>text</name>
-                                        <string>A4 small Margins (only portrait)</string>
-                                    </property>
-                                </item>
-                                <item>
-                                    <property>
-                                        <name>text</name>
-                                        <string>A4 very small Margins (only portrait)</string>
-                                    </property>
-                                </item>
-                                <item>
-                                    <property>
-                                        <name>text</name>
-                                        <string>A4 very wide margins (only portrait)</string>
-                                    </property>
-                                </item>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>specialCO</cstring>
-                                </property>
-                            </widget>
-                        </hbox>
-                    </widget>
-                    <spacer>
-                        <property>
-                            <name>name</name>
-                            <cstring>Spacer35</cstring>
-                        </property>
-                        <property stdset="1">
-                            <name>orientation</name>
-                            <enum>Vertical</enum>
-                        </property>
-                        <property stdset="1">
-                            <name>sizeType</name>
-                            <enum>Expanding</enum>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                    </spacer>
-                    <widget>
-                        <class>QLayoutWidget</class>
-                        <property stdset="1">
-                            <name>name</name>
-                            <cstring>Layout23</cstring>
-                        </property>
-                        <hbox>
-                            <property stdset="1">
-                                <name>margin</name>
-                                <number>0</number>
-                            </property>
-                            <property stdset="1">
-                                <name>spacing</name>
-                                <number>6</number>
-                            </property>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer6</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Horizontal</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                            <widget>
-                                <class>QCheckBox</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>CheckBox1</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>text</name>
-                                    <string>&amp;Use Geometry Package</string>
-                                </property>
-                            </widget>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer7</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Horizontal</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                        </hbox>
-                    </widget>
-                    <spacer>
-                        <property>
-                            <name>name</name>
-                            <cstring>Spacer36</cstring>
-                        </property>
-                        <property stdset="1">
-                            <name>orientation</name>
-                            <enum>Vertical</enum>
-                        </property>
-                        <property stdset="1">
-                            <name>sizeType</name>
-                            <enum>Expanding</enum>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                    </spacer>
-                    <widget>
-                        <class>QLayoutWidget</class>
-                        <property stdset="1">
-                            <name>name</name>
-                            <cstring>Layout22</cstring>
-                        </property>
-                        <hbox>
-                            <property stdset="1">
-                                <name>margin</name>
-                                <number>0</number>
-                            </property>
-                            <property stdset="1">
-                                <name>spacing</name>
-                                <number>6</number>
-                            </property>
-                            <widget>
-                                <class>QLayoutWidget</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>Layout20</cstring>
-                                </property>
-                                <vbox>
-                                    <property stdset="1">
-                                        <name>margin</name>
-                                        <number>0</number>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>spacing</name>
-                                        <number>6</number>
-                                    </property>
-                                    <widget>
-                                        <class>QButtonGroup</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>orientationBG</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>title</name>
-                                            <string>Orientation</string>
-                                        </property>
-                                        <vbox>
-                                            <property stdset="1">
-                                                <name>margin</name>
-                                                <number>11</number>
-                                            </property>
-                                            <property stdset="1">
-                                                <name>spacing</name>
-                                                <number>6</number>
-                                            </property>
-                                            <widget>
-                                                <class>QRadioButton</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>portraitRB</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>P&amp;ortrait</string>
-                                                </property>
-                                            </widget>
-                                            <widget>
-                                                <class>QRadioButton</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>landscapeRB</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>&amp;Landscape</string>
-                                                </property>
-                                            </widget>
-                                        </vbox>
-                                    </widget>
-                                    <widget>
-                                        <class>QGroupBox</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>marginsGB</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>title</name>
-                                            <string>Margins</string>
-                                        </property>
-                                        <grid>
-                                            <property stdset="1">
-                                                <name>margin</name>
-                                                <number>11</number>
-                                            </property>
-                                            <property stdset="1">
-                                                <name>spacing</name>
-                                                <number>6</number>
-                                            </property>
-                                            <widget row="3"  column="0" >
-                                                <class>QLabel</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>marginRightLA</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>&amp;Right:</string>
-                                                </property>
-                                                <property>
-                                                    <name>buddy</name>
-                                                    <cstring>marginRightED</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget row="2"  column="1" >
-                                                <class>QLineEdit</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>marginLeftED</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget row="1"  column="1" >
-                                                <class>QLineEdit</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>marginBottomED</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget row="3"  column="1" >
-                                                <class>QLineEdit</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>marginRightED</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget row="1"  column="0" >
-                                                <class>QLabel</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>marginBottomLA</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>&amp;Bottom:</string>
-                                                </property>
-                                                <property>
-                                                    <name>buddy</name>
-                                                    <cstring>marginBottomED</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget row="0"  column="1" >
-                                                <class>QLineEdit</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>marginTopED</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget row="2"  column="0" >
-                                                <class>QLabel</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>marginLeftL</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>L&amp;eft:</string>
-                                                </property>
-                                                <property>
-                                                    <name>buddy</name>
-                                                    <cstring>marginLeftED</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget row="0"  column="0" >
-                                                <class>QLabel</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>marginTopLA</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>&amp;Top:</string>
-                                                </property>
-                                                <property>
-                                                    <name>buddy</name>
-                                                    <cstring>marginTopED</cstring>
-                                                </property>
-                                            </widget>
-                                        </grid>
-                                    </widget>
-                                </vbox>
-                            </widget>
-                            <widget>
-                                <class>QLayoutWidget</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>Layout21</cstring>
-                                </property>
-                                <vbox>
-                                    <property stdset="1">
-                                        <name>margin</name>
-                                        <number>0</number>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>spacing</name>
-                                        <number>6</number>
-                                    </property>
-                                    <widget>
-                                        <class>QGroupBox</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>customPapersizeGB</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>title</name>
-                                            <string>Custom Papersize</string>
-                                        </property>
-                                        <grid>
-                                            <property stdset="1">
-                                                <name>margin</name>
-                                                <number>11</number>
-                                            </property>
-                                            <property stdset="1">
-                                                <name>spacing</name>
-                                                <number>6</number>
-                                            </property>
-                                            <widget row="0"  column="0" >
-                                                <class>QLabel</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>customWidthLA</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>&amp;Width:</string>
-                                                </property>
-                                                <property>
-                                                    <name>buddy</name>
-                                                    <cstring>customWidthED</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget row="0"  column="1" >
-                                                <class>QLineEdit</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>customWidthED</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget row="1"  column="1" >
-                                                <class>QLineEdit</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>customHeightED</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget row="1"  column="0" >
-                                                <class>QLabel</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>customHeightLA</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>&amp;Height:</string>
-                                                </property>
-                                                <property>
-                                                    <name>buddy</name>
-                                                    <cstring>customHeightED</cstring>
-                                                </property>
-                                            </widget>
-                                        </grid>
-                                    </widget>
-                                    <widget>
-                                        <class>QGroupBox</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>headsepBG</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>title</name>
-                                            <string>Foot/Head Margins</string>
-                                        </property>
-                                        <grid>
-                                            <property stdset="1">
-                                                <name>margin</name>
-                                                <number>11</number>
-                                            </property>
-                                            <property stdset="1">
-                                                <name>spacing</name>
-                                                <number>6</number>
-                                            </property>
-                                            <widget row="0"  column="1" >
-                                                <class>QLineEdit</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>headheightED</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget row="1"  column="1" >
-                                                <class>QLineEdit</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>headsepED</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget row="2"  column="1" >
-                                                <class>QLineEdit</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>footskipED</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget row="2"  column="0" >
-                                                <class>QLabel</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>footskipLA</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>&amp;Footskip:</string>
-                                                </property>
-                                                <property>
-                                                    <name>buddy</name>
-                                                    <cstring>footskipED</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget row="1"  column="0" >
-                                                <class>QLabel</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>headsepLA</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>Hea&amp;dsep:</string>
-                                                </property>
-                                                <property>
-                                                    <name>buddy</name>
-                                                    <cstring>headsepED</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget row="0"  column="0" >
-                                                <class>QLabel</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>headheightLA</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>Headhe&amp;ight:</string>
-                                                </property>
-                                                <property>
-                                                    <name>buddy</name>
-                                                    <cstring>headheightED</cstring>
-                                                </property>
-                                            </widget>
-                                        </grid>
-                                    </widget>
-                                </vbox>
-                            </widget>
-                        </hbox>
-                    </widget>
-                    <spacer>
-                        <property>
-                            <name>name</name>
-                            <cstring>Spacer37</cstring>
-                        </property>
-                        <property stdset="1">
-                            <name>orientation</name>
-                            <enum>Vertical</enum>
-                        </property>
-                        <property stdset="1">
-                            <name>sizeType</name>
-                            <enum>Expanding</enum>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                    </spacer>
-                </vbox>
-            </widget>
-            <widget>
-                <class>QWidget</class>
-                <property stdset="1">
-                    <name>name</name>
-                    <cstring>Widget4</cstring>
-                </property>
-                <attribute>
-                    <name>title</name>
-                    <string>Language</string>
-                </attribute>
-                <hbox>
-                    <property stdset="1">
-                        <name>margin</name>
-                        <number>11</number>
-                    </property>
-                    <property stdset="1">
-                        <name>spacing</name>
-                        <number>6</number>
-                    </property>
-                    <spacer>
-                        <property>
-                            <name>name</name>
-                            <cstring>Spacer10</cstring>
-                        </property>
-                        <property stdset="1">
-                            <name>orientation</name>
-                            <enum>Horizontal</enum>
-                        </property>
-                        <property stdset="1">
-                            <name>sizeType</name>
-                            <enum>Expanding</enum>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                    </spacer>
-                    <widget>
-                        <class>QLayoutWidget</class>
-                        <property stdset="1">
-                            <name>name</name>
-                            <cstring>Layout53</cstring>
-                        </property>
-                        <vbox>
-                            <property stdset="1">
-                                <name>margin</name>
-                                <number>0</number>
-                            </property>
-                            <property stdset="1">
-                                <name>spacing</name>
-                                <number>6</number>
-                            </property>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer12</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Vertical</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                            <widget>
-                                <class>QLayoutWidget</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>Layout26</cstring>
-                                </property>
-                                <hbox>
-                                    <property stdset="1">
-                                        <name>margin</name>
-                                        <number>0</number>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>spacing</name>
-                                        <number>6</number>
-                                    </property>
-                                    <widget>
-                                        <class>QLabel</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>languageLA</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>&amp;Language:</string>
-                                        </property>
-                                        <property>
-                                            <name>buddy</name>
-                                            <cstring>languageCO</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget>
-                                        <class>QComboBox</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>languageCO</cstring>
-                                        </property>
-                                    </widget>
-                                </hbox>
-                            </widget>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer38</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Vertical</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                            <widget>
-                                <class>QLayoutWidget</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>Layout27</cstring>
-                                </property>
-                                <hbox>
-                                    <property stdset="1">
-                                        <name>margin</name>
-                                        <number>0</number>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>spacing</name>
-                                        <number>6</number>
-                                    </property>
-                                    <widget>
-                                        <class>QLabel</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>encodingLA</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>Enco&amp;ding:</string>
-                                        </property>
-                                        <property>
-                                            <name>buddy</name>
-                                            <cstring>encodingCO</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget>
-                                        <class>QComboBox</class>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>default</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>auto</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>latin1</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>latin2</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>latin5</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>koi8-r</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>koi8-u</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>cp866</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>cp1251</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>iso88595</string>
-                                            </property>
-                                        </item>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>encodingCO</cstring>
-                                        </property>
-                                    </widget>
-                                </hbox>
-                            </widget>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer9</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Vertical</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                            <widget>
-                                <class>QButtonGroup</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>quoteStyleBG</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>title</name>
-                                    <string>Quote Style</string>
-                                </property>
-                                <vbox>
-                                    <property stdset="1">
-                                        <name>margin</name>
-                                        <number>11</number>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>spacing</name>
-                                        <number>6</number>
-                                    </property>
-                                    <widget>
-                                        <class>QLayoutWidget</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>Layout28</cstring>
-                                        </property>
-                                        <hbox>
-                                            <property stdset="1">
-                                                <name>margin</name>
-                                                <number>0</number>
-                                            </property>
-                                            <property stdset="1">
-                                                <name>spacing</name>
-                                                <number>6</number>
-                                            </property>
-                                            <widget>
-                                                <class>QLabel</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>quoteStyleTypeLA</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>&amp;Type:</string>
-                                                </property>
-                                                <property>
-                                                    <name>buddy</name>
-                                                    <cstring>quoteStyleTypeCO</cstring>
-                                                </property>
-                                            </widget>
-                                            <widget>
-                                                <class>QComboBox</class>
-                                                <item>
-                                                    <property>
-                                                        <name>text</name>
-                                                        <string>``text''</string>
-                                                    </property>
-                                                </item>
-                                                <item>
-                                                    <property>
-                                                        <name>text</name>
-                                                        <string>''text''</string>
-                                                    </property>
-                                                </item>
-                                                <item>
-                                                    <property>
-                                                        <name>text</name>
-                                                        <string>,,text``</string>
-                                                    </property>
-                                                </item>
-                                                <item>
-                                                    <property>
-                                                        <name>text</name>
-                                                        <string>,,text''</string>
-                                                    </property>
-                                                </item>
-                                                <item>
-                                                    <property>
-                                                        <name>text</name>
-                                                        <string>«text»</string>
-                                                    </property>
-                                                </item>
-                                                <item>
-                                                    <property>
-                                                        <name>text</name>
-                                                        <string>»text«</string>
-                                                    </property>
-                                                </item>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>quoteStyleTypeCO</cstring>
-                                                </property>
-                                            </widget>
-                                        </hbox>
-                                    </widget>
-                                    <widget>
-                                        <class>QLayoutWidget</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>Layout29</cstring>
-                                        </property>
-                                        <hbox>
-                                            <property stdset="1">
-                                                <name>margin</name>
-                                                <number>0</number>
-                                            </property>
-                                            <property stdset="1">
-                                                <name>spacing</name>
-                                                <number>6</number>
-                                            </property>
-                                            <widget>
-                                                <class>QRadioButton</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>quoteStyleSingleRB</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>&amp;Single</string>
-                                                </property>
-                                            </widget>
-                                            <widget>
-                                                <class>QRadioButton</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>quoteStyleDoubleRB</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>&amp;Double</string>
-                                                </property>
-                                            </widget>
-                                        </hbox>
-                                    </widget>
-                                </vbox>
-                            </widget>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer13</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Vertical</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                        </vbox>
-                    </widget>
-                    <spacer>
-                        <property>
-                            <name>name</name>
-                            <cstring>Spacer11</cstring>
-                        </property>
-                        <property stdset="1">
-                            <name>orientation</name>
-                            <enum>Horizontal</enum>
-                        </property>
-                        <property stdset="1">
-                            <name>sizeType</name>
-                            <enum>Expanding</enum>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                    </spacer>
-                </hbox>
-            </widget>
-            <widget>
-                <class>QWidget</class>
-                <property stdset="1">
-                    <name>name</name>
-                    <cstring>Widget5</cstring>
-                </property>
-                <attribute>
-                    <name>title</name>
-                    <string>Extra</string>
-                </attribute>
-                <hbox>
-                    <property stdset="1">
-                        <name>margin</name>
-                        <number>11</number>
-                    </property>
-                    <property stdset="1">
-                        <name>spacing</name>
-                        <number>6</number>
-                    </property>
-                    <spacer>
-                        <property>
-                            <name>name</name>
-                            <cstring>Spacer24</cstring>
-                        </property>
-                        <property stdset="1">
-                            <name>orientation</name>
-                            <enum>Horizontal</enum>
-                        </property>
-                        <property stdset="1">
-                            <name>sizeType</name>
-                            <enum>Expanding</enum>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                    </spacer>
-                    <widget>
-                        <class>QLayoutWidget</class>
-                        <property stdset="1">
-                            <name>name</name>
-                            <cstring>Layout39</cstring>
-                        </property>
-                        <vbox>
-                            <property stdset="1">
-                                <name>margin</name>
-                                <number>0</number>
-                            </property>
-                            <property stdset="1">
-                                <name>spacing</name>
-                                <number>6</number>
-                            </property>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer18</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Vertical</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                            <widget>
-                                <class>QLayoutWidget</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>Layout33</cstring>
-                                </property>
-                                <hbox>
-                                    <property stdset="1">
-                                        <name>margin</name>
-                                        <number>0</number>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>spacing</name>
-                                        <number>6</number>
-                                    </property>
-                                    <widget>
-                                        <class>QLabel</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>TextLabel28</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>F&amp;loat Placement:</string>
-                                        </property>
-                                        <property>
-                                            <name>buddy</name>
-                                            <cstring>floatPlacementED</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget>
-                                        <class>QLineEdit</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>floatPlacementED</cstring>
-                                        </property>
-                                    </widget>
-                                </hbox>
-                            </widget>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer14</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Vertical</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                            <widget>
-                                <class>QLayoutWidget</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>Layout34</cstring>
-                                </property>
-                                <hbox>
-                                    <property stdset="1">
-                                        <name>margin</name>
-                                        <number>0</number>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>spacing</name>
-                                        <number>6</number>
-                                    </property>
-                                    <widget>
-                                        <class>QLabel</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>sectionNumberDepthLA</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>S&amp;ection number depth:</string>
-                                        </property>
-                                        <property>
-                                            <name>buddy</name>
-                                            <cstring>sectionNumberDepthSB</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget>
-                                        <class>QSpinBox</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>sectionNumberDepthSB</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>minValue</name>
-                                            <number>-2</number>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>maxValue</name>
-                                            <number>5</number>
-                                        </property>
-                                    </widget>
-                                </hbox>
-                            </widget>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer15</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Vertical</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                            <widget>
-                                <class>QLayoutWidget</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>Layout35</cstring>
-                                </property>
-                                <hbox>
-                                    <property stdset="1">
-                                        <name>margin</name>
-                                        <number>0</number>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>spacing</name>
-                                        <number>6</number>
-                                    </property>
-                                    <widget>
-                                        <class>QLabel</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>tocDepthLA</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>&amp;Table of contents depth:</string>
-                                        </property>
-                                        <property>
-                                            <name>buddy</name>
-                                            <cstring>tocDepthSB</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget>
-                                        <class>QSpinBox</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>tocDepthSB</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>minValue</name>
-                                            <number>-1</number>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>maxValue</name>
-                                            <number>5</number>
-                                        </property>
-                                    </widget>
-                                </hbox>
-                            </widget>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer16</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Vertical</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                            <widget>
-                                <class>QLayoutWidget</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>Layout36</cstring>
-                                </property>
-                                <hbox>
-                                    <property stdset="1">
-                                        <name>margin</name>
-                                        <number>0</number>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>spacing</name>
-                                        <number>6</number>
-                                    </property>
-                                    <widget>
-                                        <class>QLabel</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>psDriverLA</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>P&amp;S Driver:</string>
-                                        </property>
-                                        <property>
-                                            <name>buddy</name>
-                                            <cstring>psDriverCO</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget>
-                                        <class>QComboBox</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>psDriverCO</cstring>
-                                        </property>
-                                    </widget>
-                                </hbox>
-                            </widget>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer17</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Vertical</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                            <widget>
-                                <class>QLayoutWidget</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>Layout38</cstring>
-                                </property>
-                                <hbox>
-                                    <property stdset="1">
-                                        <name>margin</name>
-                                        <number>0</number>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>spacing</name>
-                                        <number>6</number>
-                                    </property>
-                                    <spacer>
-                                        <property>
-                                            <name>name</name>
-                                            <cstring>Spacer23</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>orientation</name>
-                                            <enum>Horizontal</enum>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>sizeType</name>
-                                            <enum>Expanding</enum>
-                                        </property>
-                                        <property>
-                                            <name>sizeHint</name>
-                                            <size>
-                                                <width>20</width>
-                                                <height>20</height>
-                                            </size>
-                                        </property>
-                                        <property>
-                                            <name>sizeHint</name>
-                                            <size>
-                                                <width>20</width>
-                                                <height>20</height>
-                                            </size>
-                                        </property>
-                                    </spacer>
-                                    <widget>
-                                        <class>QCheckBox</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>amsMathCB</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>Use A&amp;MS Math</string>
-                                        </property>
-                                    </widget>
-                                    <spacer>
-                                        <property>
-                                            <name>name</name>
-                                            <cstring>Spacer22</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>orientation</name>
-                                            <enum>Horizontal</enum>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>sizeType</name>
-                                            <enum>Expanding</enum>
-                                        </property>
-                                        <property>
-                                            <name>sizeHint</name>
-                                            <size>
-                                                <width>20</width>
-                                                <height>20</height>
-                                            </size>
-                                        </property>
-                                        <property>
-                                            <name>sizeHint</name>
-                                            <size>
-                                                <width>20</width>
-                                                <height>20</height>
-                                            </size>
-                                        </property>
-                                    </spacer>
-                                </hbox>
-                            </widget>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer19</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Vertical</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                        </vbox>
-                    </widget>
-                    <spacer>
-                        <property>
-                            <name>name</name>
-                            <cstring>Spacer25</cstring>
-                        </property>
-                        <property stdset="1">
-                            <name>orientation</name>
-                            <enum>Horizontal</enum>
-                        </property>
-                        <property stdset="1">
-                            <name>sizeType</name>
-                            <enum>Expanding</enum>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                    </spacer>
-                </hbox>
-            </widget>
-            <widget>
-                <class>QWidget</class>
-                <property stdset="1">
-                    <name>name</name>
-                    <cstring>Widget6</cstring>
-                </property>
-                <attribute>
-                    <name>title</name>
-                    <string>Bullets</string>
-                </attribute>
-                <vbox>
-                    <property stdset="1">
-                        <name>margin</name>
-                        <number>6</number>
-                    </property>
-                    <property stdset="1">
-                        <name>spacing</name>
-                        <number>-1</number>
-                    </property>
-                    <widget>
-                        <class>QLayoutWidget</class>
-                        <property stdset="1">
-                            <name>name</name>
-                            <cstring>Layout51</cstring>
-                        </property>
-                        <hbox>
-                            <property stdset="1">
-                                <name>margin</name>
-                                <number>0</number>
-                            </property>
-                            <property stdset="1">
-                                <name>spacing</name>
-                                <number>6</number>
-                            </property>
-                            <widget>
-                                <class>QLayoutWidget</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>Layout48</cstring>
-                                </property>
-                                <vbox>
-                                    <property stdset="1">
-                                        <name>margin</name>
-                                        <number>0</number>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>spacing</name>
-                                        <number>6</number>
-                                    </property>
-                                    <spacer>
-                                        <property>
-                                            <name>name</name>
-                                            <cstring>Spacer31</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>orientation</name>
-                                            <enum>Vertical</enum>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>sizeType</name>
-                                            <enum>Expanding</enum>
-                                        </property>
-                                        <property>
-                                            <name>sizeHint</name>
-                                            <size>
-                                                <width>20</width>
-                                                <height>20</height>
-                                            </size>
-                                        </property>
-                                        <property>
-                                            <name>sizeHint</name>
-                                            <size>
-                                                <width>20</width>
-                                                <height>20</height>
-                                            </size>
-                                        </property>
-                                    </spacer>
-                                    <widget>
-                                        <class>QLabel</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>bulletSizeLA</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>Si&amp;ze</string>
-                                        </property>
-                                        <property>
-                                            <name>buddy</name>
-                                            <cstring>bulletSizeCO</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget>
-                                        <class>QComboBox</class>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>default</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>tiny</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>script</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>footnote</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>small</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>normal</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>large</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>Large</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>LARGE</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>huge</string>
-                                            </property>
-                                        </item>
-                                        <item>
-                                            <property>
-                                                <name>text</name>
-                                                <string>Huge</string>
-                                            </property>
-                                        </item>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>bulletSizeCO</cstring>
-                                        </property>
-                                    </widget>
-                                </vbox>
-                            </widget>
-                            <widget>
-                                <class>QLayoutWidget</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>Layout50</cstring>
-                                </property>
-                                <vbox>
-                                    <property stdset="1">
-                                        <name>margin</name>
-                                        <number>0</number>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>spacing</name>
-                                        <number>6</number>
-                                    </property>
-                                    <spacer>
-                                        <property>
-                                            <name>name</name>
-                                            <cstring>Spacer32</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>orientation</name>
-                                            <enum>Vertical</enum>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>sizeType</name>
-                                            <enum>Expanding</enum>
-                                        </property>
-                                        <property>
-                                            <name>sizeHint</name>
-                                            <size>
-                                                <width>20</width>
-                                                <height>20</height>
-                                            </size>
-                                        </property>
-                                        <property>
-                                            <name>sizeHint</name>
-                                            <size>
-                                                <width>20</width>
-                                                <height>20</height>
-                                            </size>
-                                        </property>
-                                    </spacer>
-                                    <widget>
-                                        <class>QButtonGroup</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>bulletDepthBG</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>title</name>
-                                            <string>Bullet Depth</string>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>exclusive</name>
-                                            <bool>true</bool>
-                                        </property>
-                                        <hbox>
-                                            <property stdset="1">
-                                                <name>margin</name>
-                                                <number>11</number>
-                                            </property>
-                                            <property stdset="1">
-                                                <name>spacing</name>
-                                                <number>6</number>
-                                            </property>
-                                            <widget>
-                                                <class>QToolButton</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>bulletDepth1PB</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>&amp;1</string>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>toggleButton</name>
-                                                    <bool>true</bool>
-                                                </property>
-                                            </widget>
-                                            <widget>
-                                                <class>QToolButton</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>bulletDepth2PB</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>&amp;2</string>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>toggleButton</name>
-                                                    <bool>true</bool>
-                                                </property>
-                                            </widget>
-                                            <widget>
-                                                <class>QToolButton</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>bulletDepth3PB</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>&amp;3</string>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>toggleButton</name>
-                                                    <bool>true</bool>
-                                                </property>
-                                            </widget>
-                                            <widget>
-                                                <class>QToolButton</class>
-                                                <property stdset="1">
-                                                    <name>name</name>
-                                                    <cstring>bulletDepth4PB</cstring>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>text</name>
-                                                    <string>&amp;4</string>
-                                                </property>
-                                                <property stdset="1">
-                                                    <name>toggleButton</name>
-                                                    <bool>true</bool>
-                                                </property>
-                                            </widget>
-                                        </hbox>
-                                    </widget>
-                                </vbox>
-                            </widget>
-                        </hbox>
-                    </widget>
-                    <spacer>
-                        <property>
-                            <name>name</name>
-                            <cstring>Spacer1</cstring>
-                        </property>
-                        <property stdset="1">
-                            <name>orientation</name>
-                            <enum>Vertical</enum>
-                        </property>
-                        <property stdset="1">
-                            <name>sizeType</name>
-                            <enum>Expanding</enum>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                    </spacer>
-                    <widget>
-                        <class>QLayoutWidget</class>
-                        <property stdset="1">
-                            <name>name</name>
-                            <cstring>Layout47</cstring>
-                        </property>
-                        <hbox>
-                            <property stdset="1">
-                                <name>margin</name>
-                                <number>0</number>
-                            </property>
-                            <property stdset="1">
-                                <name>spacing</name>
-                                <number>6</number>
-                            </property>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer27</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Horizontal</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                            <widget>
-                                <class>QButtonGroup</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>bulletTypeBG</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>title</name>
-                                    <string></string>
-                                </property>
-                                <property stdset="1">
-                                    <name>frameShape</name>
-                                    <enum>NoFrame</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>radioButtonExclusive</name>
-                                    <bool>false</bool>
-                                </property>
-                                <property>
-                                    <name>layoutSpacing</name>
-                                </property>
-                                <spacer>
-                                    <property>
-                                        <name>name</name>
-                                        <cstring>Spacer26</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>77</x>
-                                            <y>12</y>
-                                            <width>20</width>
-                                            <height>20</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>orientation</name>
-                                        <enum>Horizontal</enum>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizeType</name>
-                                        <enum>Fixed</enum>
-                                    </property>
-                                    <property>
-                                        <name>sizeHint</name>
-                                        <size>
-                                            <width>20</width>
-                                            <height>20</height>
-                                        </size>
-                                    </property>
-                                    <property>
-                                        <name>sizeHint</name>
-                                        <size>
-                                            <width>20</width>
-                                            <height>20</height>
-                                        </size>
-                                    </property>
-                                </spacer>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet01PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>121</x>
-                                            <y>11</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet02PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>144</x>
-                                            <y>11</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet03PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>167</x>
-                                            <y>11</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet04PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>190</x>
-                                            <y>11</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet10PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>98</x>
-                                            <y>33</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet11PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>121</x>
-                                            <y>33</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet12PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>144</x>
-                                            <y>33</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet13PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>167</x>
-                                            <y>33</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet14PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>190</x>
-                                            <y>33</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet15PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>213</x>
-                                            <y>33</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet21PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>121</x>
-                                            <y>55</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet20PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>98</x>
-                                            <y>55</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet22PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>144</x>
-                                            <y>55</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet23PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>167</x>
-                                            <y>55</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet24PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>190</x>
-                                            <y>55</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet25PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>213</x>
-                                            <y>55</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet30PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>98</x>
-                                            <y>77</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet31PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>121</x>
-                                            <y>77</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet32PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>144</x>
-                                            <y>77</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet33PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>167</x>
-                                            <y>77</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet34PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>190</x>
-                                            <y>77</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet35PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>213</x>
-                                            <y>77</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet42PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>144</x>
-                                            <y>99</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet43PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>167</x>
-                                            <y>99</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet44PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>190</x>
-                                            <y>99</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet45PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>213</x>
-                                            <y>99</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet50PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>98</x>
-                                            <y>121</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet51PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>121</x>
-                                            <y>121</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet52PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>144</x>
-                                            <y>121</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet53PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>167</x>
-                                            <y>121</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet54PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>190</x>
-                                            <y>121</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet55PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>213</x>
-                                            <y>121</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet05PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>213</x>
-                                            <y>11</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet00PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>98</x>
-                                            <y>11</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bulletDing3PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>11</x>
-                                            <y>99</y>
-                                            <width>66</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string>Di&amp;ng 3</string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bulletDing4PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>11</x>
-                                            <y>121</y>
-                                            <width>66</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string>Din&amp;g 4</string>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet40PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>98</x>
-                                            <y>99</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bullet41PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>121</x>
-                                            <y>99</y>
-                                            <width>23</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string></string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>sizePolicy</name>
-                                        <sizepolicy>
-                                            <hsizetype>0</hsizetype>
-                                            <vsizetype>0</vsizetype>
-                                        </sizepolicy>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bulletStandardPB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>11</x>
-                                            <y>11</y>
-                                            <width>66</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string>&amp;Standard</string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bulletMathsPB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>11</x>
-                                            <y>33</y>
-                                            <width>66</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string>&amp;Maths</string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bulletDing1PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>11</x>
-                                            <y>55</y>
-                                            <width>66</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string>&amp;Ding 1</string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                                <widget>
-                                    <class>QToolButton</class>
-                                    <property stdset="1">
-                                        <name>name</name>
-                                        <cstring>bulletDing2PB</cstring>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>geometry</name>
-                                        <rect>
-                                            <x>11</x>
-                                            <y>77</y>
-                                            <width>66</width>
-                                            <height>22</height>
-                                        </rect>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>text</name>
-                                        <string>D&amp;ing 2</string>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>toggleButton</name>
-                                        <bool>true</bool>
-                                    </property>
-                                </widget>
-                            </widget>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer28</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Horizontal</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                        </hbox>
-                    </widget>
-                    <spacer>
-                        <property>
-                            <name>name</name>
-                            <cstring>Spacer2</cstring>
-                        </property>
-                        <property stdset="1">
-                            <name>orientation</name>
-                            <enum>Vertical</enum>
-                        </property>
-                        <property stdset="1">
-                            <name>sizeType</name>
-                            <enum>Expanding</enum>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                        <property>
-                            <name>sizeHint</name>
-                            <size>
-                                <width>20</width>
-                                <height>20</height>
-                            </size>
-                        </property>
-                    </spacer>
-                    <widget>
-                        <class>QLayoutWidget</class>
-                        <property stdset="1">
-                            <name>name</name>
-                            <cstring>Layout45</cstring>
-                        </property>
-                        <hbox>
-                            <property stdset="1">
-                                <name>margin</name>
-                                <number>0</number>
-                            </property>
-                            <property stdset="1">
-                                <name>spacing</name>
-                                <number>6</number>
-                            </property>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer29</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Horizontal</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                            <widget>
-                                <class>QLayoutWidget</class>
-                                <property stdset="1">
-                                    <name>name</name>
-                                    <cstring>Layout42</cstring>
-                                </property>
-                                <hbox>
-                                    <property stdset="1">
-                                        <name>margin</name>
-                                        <number>0</number>
-                                    </property>
-                                    <property stdset="1">
-                                        <name>spacing</name>
-                                        <number>6</number>
-                                    </property>
-                                    <widget>
-                                        <class>QLabel</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>latexLA</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>text</name>
-                                            <string>&amp;LaTeX</string>
-                                        </property>
-                                        <property>
-                                            <name>buddy</name>
-                                            <cstring>latexED</cstring>
-                                        </property>
-                                    </widget>
-                                    <widget>
-                                        <class>QLineEdit</class>
-                                        <property stdset="1">
-                                            <name>name</name>
-                                            <cstring>latexED</cstring>
-                                        </property>
-                                        <property stdset="1">
-                                            <name>maxLength</name>
-                                            <number>80</number>
-                                        </property>
-                                    </widget>
-                                </hbox>
-                            </widget>
-                            <spacer>
-                                <property>
-                                    <name>name</name>
-                                    <cstring>Spacer30</cstring>
-                                </property>
-                                <property stdset="1">
-                                    <name>orientation</name>
-                                    <enum>Horizontal</enum>
-                                </property>
-                                <property stdset="1">
-                                    <name>sizeType</name>
-                                    <enum>Expanding</enum>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                                <property>
-                                    <name>sizeHint</name>
-                                    <size>
-                                        <width>20</width>
-                                        <height>20</height>
-                                    </size>
-                                </property>
-                            </spacer>
-                        </hbox>
-                    </widget>
-                </vbox>
-            </widget>
-        </widget>
-        <widget>
-            <class>QLabel</class>
-            <property stdset="1">
-                <name>name</name>
-                <cstring>warningLA</cstring>
-            </property>
-            <property stdset="1">
-                <name>text</name>
-                <string></string>
-            </property>
-            <property stdset="1">
-                <name>font</name>
-                <font>
-                    <bold>1</bold>
-                </font>
-            </property>
-            <property stdset="1">
-                <name>palette</name>
-                <palette>
-                    <active>
-                        <color>
-                            <red>0</red>
-                            <green>0</green>
-                            <blue>0</blue>
-                        </color>
-                        <color>
-                            <red>220</red>
-                            <green>220</green>
-                            <blue>220</blue>
-                        </color>
-                        <color>
-                            <red>255</red>
-                            <green>255</green>
-                            <blue>255</blue>
-                        </color>
-                        <color>
-                            <red>237</red>
-                            <green>237</green>
-                            <blue>237</blue>
-                        </color>
-                        <color>
-                            <red>110</red>
-                            <green>110</green>
-                            <blue>110</blue>
-                        </color>
-                        <color>
-                            <red>146</red>
-                            <green>146</green>
-                            <blue>146</blue>
-                        </color>
-                        <color>
-                            <red>255</red>
-                            <green>0</green>
-                            <blue>0</blue>
-                        </color>
-                        <color>
-                            <red>255</red>
-                            <green>255</green>
-                            <blue>255</blue>
-                        </color>
-                        <color>
-                            <red>0</red>
-                            <green>0</green>
-                            <blue>0</blue>
-                        </color>
-                        <color>
-                            <red>255</red>
-                            <green>255</green>
-                            <blue>255</blue>
-                        </color>
-                        <color>
-                            <red>220</red>
-                            <green>220</green>
-                            <blue>220</blue>
-                        </color>
-                        <color>
-                            <red>0</red>
-                            <green>0</green>
-                            <blue>0</blue>
-                        </color>
-                        <color>
-                            <red>0</red>
-                            <green>128</green>
-                            <blue>128</blue>
-                        </color>
-                        <color>
-                            <red>255</red>
-                            <green>255</green>
-                            <blue>255</blue>
-                        </color>
-                    </active>
-                    <disabled>
-                        <color>
-                            <red>128</red>
-                            <green>128</green>
-                            <blue>128</blue>
-                        </color>
-                        <color>
-                            <red>220</red>
-                            <green>220</green>
-                            <blue>220</blue>
-                        </color>
-                        <color>
-                            <red>255</red>
-                            <green>255</green>
-                            <blue>255</blue>
-                        </color>
-                        <color>
-                            <red>253</red>
-                            <green>253</green>
-                            <blue>253</blue>
-                        </color>
-                        <color>
-                            <red>110</red>
-                            <green>110</green>
-                            <blue>110</blue>
-                        </color>
-                        <color>
-                            <red>146</red>
-                            <green>146</green>
-                            <blue>146</blue>
-                        </color>
-                        <color>
-                            <red>255</red>
-                            <green>0</green>
-                            <blue>0</blue>
-                        </color>
-                        <color>
-                            <red>255</red>
-                            <green>255</green>
-                            <blue>255</blue>
-                        </color>
-                        <color>
-                            <red>128</red>
-                            <green>128</green>
-                            <blue>128</blue>
-                        </color>
-                        <color>
-                            <red>255</red>
-                            <green>255</green>
-                            <blue>255</blue>
-                        </color>
-                        <color>
-                            <red>220</red>
-                            <green>220</green>
-                            <blue>220</blue>
-                        </color>
-                        <color>
-                            <red>0</red>
-                            <green>0</green>
-                            <blue>0</blue>
-                        </color>
-                        <color>
-                            <red>0</red>
-                            <green>128</green>
-                            <blue>128</blue>
-                        </color>
-                        <color>
-                            <red>255</red>
-                            <green>255</green>
-                            <blue>255</blue>
-                        </color>
-                    </disabled>
-                    <inactive>
-                        <color>
-                            <red>0</red>
-                            <green>0</green>
-                            <blue>0</blue>
-                        </color>
-                        <color>
-                            <red>220</red>
-                            <green>220</green>
-                            <blue>220</blue>
-                        </color>
-                        <color>
-                            <red>255</red>
-                            <green>255</green>
-                            <blue>255</blue>
-                        </color>
-                        <color>
-                            <red>253</red>
-                            <green>253</green>
-                            <blue>253</blue>
-                        </color>
-                        <color>
-                            <red>110</red>
-                            <green>110</green>
-                            <blue>110</blue>
-                        </color>
-                        <color>
-                            <red>146</red>
-                            <green>146</green>
-                            <blue>146</blue>
-                        </color>
-                        <color>
-                            <red>255</red>
-                            <green>0</green>
-                            <blue>0</blue>
-                        </color>
-                        <color>
-                            <red>255</red>
-                            <green>255</green>
-                            <blue>255</blue>
-                        </color>
-                        <color>
-                            <red>0</red>
-                            <green>0</green>
-                            <blue>0</blue>
-                        </color>
-                        <color>
-                            <red>255</red>
-                            <green>255</green>
-                            <blue>255</blue>
-                        </color>
-                        <color>
-                            <red>220</red>
-                            <green>220</green>
-                            <blue>220</blue>
-                        </color>
-                        <color>
-                            <red>0</red>
-                            <green>0</green>
-                            <blue>0</blue>
-                        </color>
-                        <color>
-                            <red>0</red>
-                            <green>128</green>
-                            <blue>128</blue>
-                        </color>
-                        <color>
-                            <red>255</red>
-                            <green>255</green>
-                            <blue>255</blue>
-                        </color>
-                    </inactive>
-                </palette>
-            </property>
-            <property stdset="1">
-                <name>alignment</name>
-                <set>AlignCenter</set>
-            </property>
-            <property>
-                <name>hAlign</name>
-            </property>
-        </widget>
-        <widget>
-            <class>QLayoutWidget</class>
-            <property stdset="1">
-                <name>name</name>
-                <cstring>Layout54</cstring>
-            </property>
-            <hbox>
-                <property stdset="1">
-                    <name>margin</name>
-                    <number>0</number>
-                </property>
-                <property stdset="1">
-                    <name>spacing</name>
-                    <number>6</number>
-                </property>
-                <spacer>
-                    <property>
-                        <name>name</name>
-                        <cstring>Spacer39</cstring>
-                    </property>
-                    <property stdset="1">
-                        <name>orientation</name>
-                        <enum>Horizontal</enum>
-                    </property>
-                    <property stdset="1">
-                        <name>sizeType</name>
-                        <enum>Expanding</enum>
-                    </property>
-                    <property>
-                        <name>sizeHint</name>
-                        <size>
-                            <width>20</width>
-                            <height>20</height>
-                        </size>
-                    </property>
-                    <property>
-                        <name>sizeHint</name>
-                        <size>
-                            <width>20</width>
-                            <height>20</height>
-                        </size>
-                    </property>
-                </spacer>
-                <widget>
-                    <class>QPushButton</class>
-                    <property stdset="1">
-                        <name>name</name>
-                        <cstring>restorePB</cstring>
-                    </property>
-                    <property stdset="1">
-                        <name>text</name>
-                        <string>&amp;Restore</string>
-                    </property>
-                </widget>
-                <widget>
-                    <class>QPushButton</class>
-                    <property stdset="1">
-                        <name>name</name>
-                        <cstring>okPB</cstring>
-                    </property>
-                    <property stdset="1">
-                        <name>text</name>
-                        <string>OK</string>
-                    </property>
-                    <property stdset="1">
-                        <name>default</name>
-                        <bool>true</bool>
-                    </property>
-                </widget>
-                <widget>
-                    <class>QPushButton</class>
-                    <property stdset="1">
-                        <name>name</name>
-                        <cstring>applyPB</cstring>
-                    </property>
-                    <property stdset="1">
-                        <name>text</name>
-                        <string>&amp;Apply</string>
-                    </property>
-                </widget>
-                <widget>
-                    <class>QPushButton</class>
-                    <property stdset="1">
-                        <name>name</name>
-                        <cstring>cancelPB</cstring>
-                    </property>
-                    <property stdset="1">
-                        <name>text</name>
-                        <string>Close</string>
-                    </property>
-                </widget>
-            </hbox>
-        </widget>
-    </vbox>
-</widget>
-<connections>
-    <connection>
-        <sender>okPB</sender>
-        <signal>clicked()</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotOK()</slot>
-    </connection>
-    <connection>
-        <sender>restorePB</sender>
-        <signal>clicked()</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotRestore()</slot>
-    </connection>
-    <connection>
-        <sender>specialCO</sender>
-        <signal>activated(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotSpecialPaperPackage(int)</slot>
-    </connection>
-    <connection>
-        <sender>orientationBG</sender>
-        <signal>clicked(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotOrientation(int)</slot>
-    </connection>
-    <connection>
-        <sender>papersizeCO</sender>
-        <signal>activated(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotPapersize(int)</slot>
-    </connection>
-    <connection>
-        <sender>CheckBox1</sender>
-        <signal>toggled(bool)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotUseGeometryPackage(bool)</slot>
-    </connection>
-    <connection>
-        <sender>customWidthED</sender>
-        <signal>textChanged(const QString&amp;)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotWidth(const QString&amp;)</slot>
-    </connection>
-    <connection>
-        <sender>customHeightED</sender>
-        <signal>textChanged(const QString&amp;)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotHeight(const QString&amp;)</slot>
-    </connection>
-    <connection>
-        <sender>marginTopED</sender>
-        <signal>textChanged(const QString&amp;)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotMarginTop(const QString&amp;)</slot>
-    </connection>
-    <connection>
-        <sender>marginBottomED</sender>
-        <signal>textChanged(const QString&amp;)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotMarginBottom(const QString&amp;)</slot>
-    </connection>
-    <connection>
-        <sender>marginLeftED</sender>
-        <signal>textChanged(const QString&amp;)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotMarginLeft(const QString&amp;)</slot>
-    </connection>
-    <connection>
-        <sender>marginRightED</sender>
-        <signal>textChanged(const QString&amp;)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotMarginRight(const QString&amp;)</slot>
-    </connection>
-    <connection>
-        <sender>headheightED</sender>
-        <signal>textChanged(const QString&amp;)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotHeadheight(const QString&amp;)</slot>
-    </connection>
-    <connection>
-        <sender>headsepED</sender>
-        <signal>textChanged(const QString&amp;)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotHeadsep(const QString&amp;)</slot>
-    </connection>
-    <connection>
-        <sender>footskipED</sender>
-        <signal>textChanged(const QString&amp;)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotFootskip(const QString&amp;)</slot>
-    </connection>
-    <connection>
-        <sender>classesCO</sender>
-        <signal>activated(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotClass(int)</slot>
-    </connection>
-    <connection>
-        <sender>pagestyleCO</sender>
-        <signal>activated(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotPageStyle(int)</slot>
-    </connection>
-    <connection>
-        <sender>fontsCO</sender>
-        <signal>activated(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotFont(int)</slot>
-    </connection>
-    <connection>
-        <sender>fontSizeCO</sender>
-        <signal>activated(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotFontSize(int)</slot>
-    </connection>
-    <connection>
-        <sender>extraOptionsED</sender>
-        <signal>textChanged(const QString&amp;)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotExtraOptions(const QString&amp;)</slot>
-    </connection>
-    <connection>
-        <sender>defaultSkipCO</sender>
-        <signal>activated(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotDefaultSkip(int)</slot>
-    </connection>
-    <connection>
-        <sender>defaultSkipED</sender>
-        <signal>textChanged(const QString&amp;)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotDefaultSkip(const QString&amp;)</slot>
-    </connection>
-    <connection>
-        <sender>spacingCO</sender>
-        <signal>activated(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotSpacing(int)</slot>
-    </connection>
-    <connection>
-        <sender>spacingED</sender>
-        <signal>textChanged(const QString&amp;)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotSpacing(const QString&amp;)</slot>
-    </connection>
-    <connection>
-        <sender>sidesBG</sender>
-        <signal>clicked(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotSides(int)</slot>
-    </connection>
-    <connection>
-        <sender>columnsBG</sender>
-        <signal>clicked(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotColumns(int)</slot>
-    </connection>
-    <connection>
-        <sender>separationBG</sender>
-        <signal>clicked(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotSeparation(int)</slot>
-    </connection>
-    <connection>
-        <sender>languageCO</sender>
-        <signal>activated(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotLanguage(int)</slot>
-    </connection>
-    <connection>
-        <sender>encodingCO</sender>
-        <signal>activated(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotEncoding(int)</slot>
-    </connection>
-    <connection>
-        <sender>quoteStyleTypeCO</sender>
-        <signal>activated(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotQuoteStyle(int)</slot>
-    </connection>
-    <connection>
-        <sender>quoteStyleBG</sender>
-        <signal>clicked(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotQuoteStyle(int)</slot>
-    </connection>
-    <connection>
-        <sender>floatPlacementED</sender>
-        <signal>textChanged(const QString&amp;)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotFloatPlacement(const QString&amp;)</slot>
-    </connection>
-    <connection>
-        <sender>sectionNumberDepthSB</sender>
-        <signal>valueChanged(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotSectionNumberDepth(int)</slot>
-    </connection>
-    <connection>
-        <sender>tocDepthSB</sender>
-        <signal>valueChanged(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotTOCDepth(int)</slot>
-    </connection>
-    <connection>
-        <sender>psDriverCO</sender>
-        <signal>activated(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotPSDriver(int)</slot>
-    </connection>
-    <connection>
-        <sender>amsMathCB</sender>
-        <signal>toggled(bool)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotAMSMath(bool)</slot>
-    </connection>
-    <connection>
-        <sender>applyPB</sender>
-        <signal>clicked()</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotApply()</slot>
-    </connection>
-    <connection>
-        <sender>cancelPB</sender>
-        <signal>clicked()</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotClose()</slot>
-    </connection>
-    <connection>
-        <sender>latexED</sender>
-        <signal>textChanged(const QString&amp;)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotBulletLaTeX(const QString&amp;)</slot>
-    </connection>
-    <connection>
-        <sender>bulletStandardPB</sender>
-        <signal>clicked()</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotBulletStandard()</slot>
-    </connection>
-    <connection>
-        <sender>bulletMathsPB</sender>
-        <signal>clicked()</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotBulletMaths()</slot>
-    </connection>
-    <connection>
-        <sender>bulletDing1PB</sender>
-        <signal>clicked()</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotBulletDing1()</slot>
-    </connection>
-    <connection>
-        <sender>bulletDing2PB</sender>
-        <signal>clicked()</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotBulletDing2()</slot>
-    </connection>
-    <connection>
-        <sender>bulletDing3PB</sender>
-        <signal>clicked()</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotBulletDing3()</slot>
-    </connection>
-    <connection>
-        <sender>bulletDing4PB</sender>
-        <signal>clicked()</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotBulletDing4()</slot>
-    </connection>
-    <connection>
-        <sender>bulletTypeBG</sender>
-        <signal>clicked(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotBulletSymbol(int)</slot>
-    </connection>
-    <connection>
-        <sender>bulletSizeCO</sender>
-        <signal>activated(int)</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotBulletSize(int)</slot>
-    </connection>
-    <connection>
-        <sender>bulletDepth1PB</sender>
-        <signal>clicked()</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotBulletDepth1()</slot>
-    </connection>
-    <connection>
-        <sender>bulletDepth2PB</sender>
-        <signal>clicked()</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotBulletDepth2()</slot>
-    </connection>
-    <connection>
-        <sender>bulletDepth3PB</sender>
-        <signal>clicked()</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotBulletDing3()</slot>
-    </connection>
-    <connection>
-        <sender>bulletDepth4PB</sender>
-        <signal>clicked()</signal>
-        <receiver>FormDocumentDialogBase</receiver>
-        <slot>slotBulletDepth4()</slot>
-    </connection>
-    <slot access="public">slotAMSMath(bool)</slot>
-    <slot access="public">slotApply()</slot>
-    <slot access="public">slotBulletDepth1()</slot>
-    <slot access="public">slotBulletDepth2()</slot>
-    <slot access="public">slotBulletDepth3()</slot>
-    <slot access="public">slotBulletDepth4()</slot>
-    <slot access="public">slotBulletDing1()</slot>
-    <slot access="public">slotBulletDing2()</slot>
-    <slot access="public">slotBulletDing3()</slot>
-    <slot access="public">slotBulletDing4()</slot>
-    <slot access="public">slotBulletLaTeX(const QString&amp;)</slot>
-    <slot access="public">slotBulletMaths()</slot>
-    <slot access="public">slotBulletSize(int)</slot>
-    <slot access="public">slotBulletStandard()</slot>
-    <slot access="public">slotBulletSymbol(int)</slot>
-    <slot access="public">slotClass(int)</slot>
-    <slot access="public">slotClose()</slot>
-    <slot access="public">slotColumns(int)</slot>
-    <slot access="public">slotDefaultSkip(const QString&amp;)</slot>
-    <slot access="public">slotDefaultSkip(int)</slot>
-    <slot access="public">slotEncoding(int)</slot>
-    <slot access="public">slotExtraOptions(const QString&amp;)</slot>
-    <slot access="public">slotFloatPlacement(const QString&amp;)</slot>
-    <slot access="public">slotFont(int)</slot>
-    <slot access="public">slotFontSize(int)</slot>
-    <slot access="public">slotFootskip(const QString&amp;)</slot>
-    <slot access="public">slotHeadheight(const QString&amp;)</slot>
-    <slot access="public">slotHeadsep(const QString&amp;)</slot>
-    <slot access="public">slotHeight(const QString&amp;)</slot>
-    <slot access="public">slotLanguage(int)</slot>
-    <slot access="public">slotMarginBottom(const QString&amp;)</slot>
-    <slot access="public">slotMarginLeft(const QString&amp;)</slot>
-    <slot access="public">slotMarginRight(const QString&amp;)</slot>
-    <slot access="public">slotMarginTop(const QString&amp;)</slot>
-    <slot access="public">slotOK()</slot>
-    <slot access="public">slotOrientation(int)</slot>
-    <slot access="public">slotPSDriver(int)</slot>
-    <slot access="public">slotPageStyle(int)</slot>
-    <slot access="public">slotPapersize(int)</slot>
-    <slot access="public">slotQuoteStyle(int)</slot>
-    <slot access="public">slotQuoteType(int)</slot>
-    <slot access="public">slotRestore()</slot>
-    <slot access="public">slotSectionNumberDepth(int)</slot>
-    <slot access="public">slotSeparation(int)</slot>
-    <slot access="public">slotSides(int)</slot>
-    <slot access="public">slotSpacing(const QString&amp;)</slot>
-    <slot access="public">slotSpacing(int)</slot>
-    <slot access="public">slotSpecialPaperPackage(int)</slot>
-    <slot access="public">slotTOCDepth(int)</slot>
-    <slot access="public">slotUseGeometryPackage(bool)</slot>
-    <slot access="public">slotWidth(const QString&amp;)</slot>
-</connections>
-<tabstops>
-    <tabstop>classesCO</tabstop>
-    <tabstop>pagestyleCO</tabstop>
-    <tabstop>fontsCO</tabstop>
-    <tabstop>fontSizeCO</tabstop>
-    <tabstop>extraOptionsED</tabstop>
-    <tabstop>defaultSkipCO</tabstop>
-    <tabstop>defaultSkipED</tabstop>
-    <tabstop>spacingCO</tabstop>
-    <tabstop>spacingED</tabstop>
-    <tabstop>oneSideRB</tabstop>
-    <tabstop>twoSidesRB</tabstop>
-    <tabstop>oneColumnRB</tabstop>
-    <tabstop>twoColumnsRB</tabstop>
-    <tabstop>indentRB</tabstop>
-    <tabstop>skipRB</tabstop>
-    <tabstop>papersizeCO</tabstop>
-    <tabstop>specialCO</tabstop>
-    <tabstop>CheckBox1</tabstop>
-    <tabstop>portraitRB</tabstop>
-    <tabstop>landscapeRB</tabstop>
-    <tabstop>marginTopED</tabstop>
-    <tabstop>marginBottomED</tabstop>
-    <tabstop>marginLeftED</tabstop>
-    <tabstop>marginRightED</tabstop>
-    <tabstop>customWidthED</tabstop>
-    <tabstop>customHeightED</tabstop>
-    <tabstop>headheightED</tabstop>
-    <tabstop>headsepED</tabstop>
-    <tabstop>footskipED</tabstop>
-    <tabstop>languageCO</tabstop>
-    <tabstop>encodingCO</tabstop>
-    <tabstop>quoteStyleTypeCO</tabstop>
-    <tabstop>quoteStyleSingleRB</tabstop>
-    <tabstop>quoteStyleDoubleRB</tabstop>
-    <tabstop>floatPlacementED</tabstop>
-    <tabstop>sectionNumberDepthSB</tabstop>
-    <tabstop>tocDepthSB</tabstop>
-    <tabstop>psDriverCO</tabstop>
-    <tabstop>amsMathCB</tabstop>
-    <tabstop>bulletSizeCO</tabstop>
-    <tabstop>latexED</tabstop>
-    <tabstop>restorePB</tabstop>
-    <tabstop>okPB</tabstop>
-    <tabstop>applyPB</tabstop>
-    <tabstop>cancelPB</tabstop>
-    <tabstop>TabWidget2</tabstop>
-</tabstops>
-</UI>
diff --git a/src/frontends/qt2/FormDocumentDialogImpl.C b/src/frontends/qt2/FormDocumentDialogImpl.C
new file mode 100644 (file)
index 0000000..d6d7754
--- /dev/null
@@ -0,0 +1,502 @@
+#include "FormDocumentDialog.h"
+#include "Dialogs.h"
+#include "FormDocument.h"
+
+#include <qlineedit.h>
+#include <qcheckbox.h>
+#include <qtoolbutton.h>
+#include <qbuttongroup.h>
+#include <qcombobox.h>
+#include <qspinbox.h>
+
+/* 
+ *  Constructs a FormDocumentDialog which is a child of 'parent', with the 
+ *  name 'name' and widget flags set to 'f' 
+ *
+ *  The dialog will by default be modeless, unless you set 'modal' to
+ *  TRUE to construct a modal dialog.
+ */
+FormDocumentDialog::FormDocumentDialog( FormDocument* _form, QWidget* parent,  const char* name, bool modal, WFlags fl )
+  : FormDocumentDialogBase( parent, name, modal, fl ),
+    form( _form )
+{
+  // Copy the pointers to the bullet buttons into an array so that
+  // they can all be manipulated together.
+  bulletbuttons[0] = bullet00PB;
+  bulletbuttons[1] = bullet01PB;
+  bulletbuttons[2] = bullet02PB;
+  bulletbuttons[3] = bullet03PB;
+  bulletbuttons[4] = bullet04PB;
+  bulletbuttons[5] = bullet05PB;
+  bulletbuttons[6] = bullet10PB;
+  bulletbuttons[7] = bullet11PB;
+  bulletbuttons[8] = bullet12PB;
+  bulletbuttons[9] = bullet13PB;
+  bulletbuttons[10] = bullet14PB;
+  bulletbuttons[11] = bullet15PB;
+  bulletbuttons[12] = bullet20PB;
+  bulletbuttons[13] = bullet21PB;
+  bulletbuttons[14] = bullet22PB;
+  bulletbuttons[15] = bullet23PB;
+  bulletbuttons[16] = bullet24PB;
+  bulletbuttons[17] = bullet25PB;
+  bulletbuttons[18] = bullet30PB;
+  bulletbuttons[19] = bullet31PB;
+  bulletbuttons[20] = bullet32PB;
+  bulletbuttons[21] = bullet33PB;
+  bulletbuttons[22] = bullet34PB;
+  bulletbuttons[23] = bullet35PB;
+  bulletbuttons[24] = bullet40PB;
+  bulletbuttons[25] = bullet41PB;
+  bulletbuttons[26] = bullet42PB;
+  bulletbuttons[27] = bullet43PB;
+  bulletbuttons[28] = bullet44PB;
+  bulletbuttons[29] = bullet45PB;
+  bulletbuttons[30] = bullet50PB;
+  bulletbuttons[31] = bullet51PB;
+  bulletbuttons[32] = bullet52PB;
+  bulletbuttons[33] = bullet53PB;
+  bulletbuttons[34] = bullet54PB;
+  bulletbuttons[35] = bullet55PB;
+}
+
+/*  
+ *  Destroys the object and frees any allocated resources
+ */
+FormDocumentDialog::~FormDocumentDialog()
+{
+  // no need to delete child widgets, Qt does it all for us
+}
+
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotApply()
+{
+  form->apply();
+  // PENDING(kalle) Check whether we need this
+  //  form->bc_->apply();
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotAMSMath(bool)
+{
+  form->checkDocumentInput( amsMathCB );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotBulletDepth1()
+{
+  form->bulletDepth( 0 );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotBulletDepth2()
+{
+  form->bulletDepth( 1 );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotBulletDepth3()
+{
+  form->bulletDepth( 2 );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotBulletDepth4()
+{
+  form->bulletDepth( 3 );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotBulletDing1()
+{
+  qDebug( "FormDocumentDialog::slotBulletDing1()" );
+  form->checkDocumentInput( bulletDing1PB );
+  form->setBulletPics();
+  bulletStandardPB->setOn( false );
+  bulletMathsPB->setOn( false );
+  bulletDing2PB->setOn( false );
+  bulletDing3PB->setOn( false );
+  bulletDing4PB->setOn( false );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotBulletDing2()
+{
+  form->checkDocumentInput( bulletDing2PB );
+  form->setBulletPics();
+  bulletStandardPB->setOn( false );
+  bulletMathsPB->setOn( false );
+  bulletDing1PB->setOn( false );
+  bulletDing3PB->setOn( false );
+  bulletDing4PB->setOn( false );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotBulletDing3()
+{
+  form->checkDocumentInput( bulletDing3PB );
+  form->setBulletPics();
+  bulletStandardPB->setOn( false );
+  bulletMathsPB->setOn( false );
+  bulletDing2PB->setOn( false );
+  bulletDing1PB->setOn( false );
+  bulletDing4PB->setOn( false );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotBulletDing4()
+{
+  form->checkDocumentInput( bulletDing4PB );
+  form->setBulletPics();
+  bulletStandardPB->setOn( false );
+  bulletMathsPB->setOn( false );
+  bulletDing2PB->setOn( false );
+  bulletDing3PB->setOn( false );
+  bulletDing1PB->setOn( false );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotBulletMaths()
+{
+  form->checkDocumentInput( bulletMathsPB );
+  form->setBulletPics();
+  bulletStandardPB->setOn( false );
+  bulletDing1PB->setOn( false );
+  bulletDing2PB->setOn( false );
+  bulletDing3PB->setOn( false );
+  bulletDing4PB->setOn( false );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotBulletSize(int)
+{
+  form->choiceBulletSize();
+  form->checkDocumentInput( bulletSizeCO );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotBulletStandard()
+{
+  form->checkDocumentInput( bulletStandardPB );
+  form->setBulletPics();
+  bulletDing1PB->setOn( false );
+  bulletMathsPB->setOn( false );
+  bulletDing2PB->setOn( false );
+  bulletDing3PB->setOn( false );
+  bulletDing4PB->setOn( false );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotBulletSymbol(int n)
+{
+  qDebug( "FormDocumentDialog::slotBulletSymbol( %d )", n );
+  for( int i = 0; i < 36; i++ )
+    bulletbuttons[i]->setOn( false );
+  bulletbuttons[n]->setOn( true );
+  form->bulletBMTable( n );
+  form->checkDocumentInput( bulletTypeBG );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotClass(int)
+{
+  form->checkChoiceClass( 0 );
+  form->checkDocumentInput( classesCO );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotClose()
+{
+  form->cancel();
+  form->hide();
+  // PENDING(kalle) do something with this
+  //  form->bc_->cancel();
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotColumns(int)
+{
+  form->checkDocumentInput( columnsBG );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotDefaultSkip(const QString&)
+{
+  form->checkDocumentInput( defaultSkipED );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotDefaultSkip(int)
+{
+  form->checkChoiceClass( defaultSkipCO );
+  form->checkDocumentInput( defaultSkipCO );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotEncoding(int)
+{
+  form->checkChoiceClass( encodingCO );
+  form->checkDocumentInput( encodingCO );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotExtraOptions(const QString&)
+{
+  form->checkDocumentInput( extraOptionsED );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotFloatPlacement(const QString&)
+{
+  form->checkDocumentInput( floatPlacementED );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotFont(int)
+{
+  form->checkChoiceClass( fontsCO );
+  form->checkDocumentInput( fontsCO );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotFontSize(int)
+{
+  form->checkChoiceClass( fontSizeCO );
+  form->checkDocumentInput( fontSizeCO );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotFootskip(const QString&)
+{
+  form->checkDocumentInput( footskipED );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotHeadheight(const QString&)
+{
+  form->checkDocumentInput( headheightED );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotHeadsep(const QString&)
+{
+  form->checkDocumentInput( headsepED );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotHeight(const QString&)
+{
+  form->checkDocumentInput( customHeightED );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotLanguage(int)
+{
+  form->checkChoiceClass( languageCO );
+  form->checkDocumentInput( languageCO );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotBulletLaTeX(const QString&)
+{
+  form->inputBulletLaTeX();
+  form->checkDocumentInput( latexED );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotMarginBottom(const QString&)
+{
+  form->checkDocumentInput( marginBottomED );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotMarginLeft(const QString&)
+{
+  form->checkDocumentInput( marginLeftED );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotMarginRight(const QString&)
+{
+  form->checkDocumentInput( marginRightED );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotMarginTop(const QString&)
+{
+  form->checkDocumentInput( marginTopED );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotOK()
+{
+  form->apply();
+  form->hide();
+  // PENDING(kalle) Do something about this.
+  //  form->bc_->ok();
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotOrientation(int)
+{
+  form->checkDocumentInput( orientationBG );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotPSDriver(int)
+{
+  form->checkChoiceClass( psDriverCO );
+  form->checkDocumentInput( psDriverCO );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotPageStyle(int)
+{
+  form->checkChoiceClass( pagestyleCO );
+  form->checkDocumentInput( pagestyleCO );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotPapersize(int)
+{
+  form->checkChoiceClass( pagestyleCO );
+  form->checkDocumentInput( papersizeCO );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotQuoteStyle(int)
+{
+  form->checkChoiceClass( quoteStyleTypeCO );
+  form->checkDocumentInput( quoteStyleTypeCO );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotQuoteType(int)
+{
+  // Intentionally left blank
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotRestore()
+{
+  form->update();
+  // PENDING(kalle) Do something about this.
+  //  form->bc_->updateAll();
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotSectionNumberDepth(int)
+{
+  form->checkDocumentInput( sectionNumberDepthSB );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotSeparation(int)
+{
+  form->checkDocumentInput( separationBG );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotSides(int)
+{
+  form->checkDocumentInput( sidesBG );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotSpacing(const QString&)
+{
+  form->checkDocumentInput( spacingED );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotSpacing(int)
+{
+  form->checkDocumentInput( spacingCO );
+  form->checkDocumentInput( spacingCO );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotSpecialPaperPackage(int)
+{
+  form->checkChoiceClass( specialCO );
+  form->checkDocumentInput( specialCO );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotTOCDepth(int)
+{
+  form->checkDocumentInput( tocDepthSB );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotUseGeometryPackage(bool)
+{
+  form->checkDocumentInput( CheckBox1 );
+}
+/* 
+ * public slot
+ */
+void FormDocumentDialog::slotWidth(const QString&)
+{
+  form->checkDocumentInput( customWidthED );
+}
+
+
+void FormDocumentDialog::closeEvent( QCloseEvent* e )
+{
+  form->hide();
+  //PENDING(kalle) Do something about this.
+  //  form->bc_->hide();
+  e->accept();
+}
diff --git a/src/frontends/qt2/FormDocumentDialogImpl.h b/src/frontends/qt2/FormDocumentDialogImpl.h
new file mode 100644 (file)
index 0000000..b593e64
--- /dev/null
@@ -0,0 +1,76 @@
+#ifndef FORMDOCUMENTDIALOGIMPL_H
+#define FORMDOCUMENTDIALOGIMPL_H
+#include "FormDocumentDialog.h"
+
+class FormDocument;
+
+class FormDocumentDialogImpl : public FormDocumentDialog
+{ 
+    Q_OBJECT
+
+public:
+    FormDocumentDialogImpl( FormDocument* form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+    ~FormDocumentDialogImpl();
+
+public slots:
+      void slotApply();
+    void slotBulletLaTeX(const QString&);
+    void slotAMSMath(bool);
+    void slotBulletDepth1();
+    void slotBulletDepth2();
+    void slotBulletDepth3();
+    void slotBulletDepth4();
+    void slotBulletDing1();
+    void slotBulletDing2();
+    void slotBulletDing3();
+    void slotBulletDing4();
+    void slotBulletMaths();
+    void slotBulletSize(int);
+    void slotBulletStandard();
+    void slotBulletSymbol(int);
+    void slotClass(int);
+    void slotClose();
+    void slotColumns(int);
+    void slotDefaultSkip(const QString&);
+    void slotDefaultSkip(int);
+    void slotEncoding(int);
+    void slotExtraOptions(const QString&);
+    void slotFloatPlacement(const QString&);
+    void slotFont(int);
+    void slotFontSize(int);
+    void slotFootskip(const QString&);
+    void slotHeadheight(const QString&);
+    void slotHeadsep(const QString&);
+    void slotHeight(const QString&);
+    void slotLanguage(int);
+    void slotMarginBottom(const QString&);
+    void slotMarginLeft(const QString&);
+    void slotMarginRight(const QString&);
+    void slotMarginTop(const QString&);
+    void slotOK();
+    void slotOrientation(int);
+    void slotPSDriver(int);
+    void slotPageStyle(int);
+    void slotPapersize(int);
+    void slotQuoteStyle(int);
+    void slotQuoteType(int);
+    void slotRestore();
+    void slotSectionNumberDepth(int);
+    void slotSeparation(int);
+    void slotSides(int);
+    void slotSpacing(const QString&);
+    void slotSpacing(int);
+    void slotSpecialPaperPackage(int);
+    void slotTOCDepth(int);
+    void slotUseGeometryPackage(bool);
+    void slotWidth(const QString&);
+
+protected:
+    void closeEvent( QCloseEvent* );
+
+private:
+    FormDocument* form;
+    QToolButton* bulletbuttons[36];
+};
+
+#endif // FORMDOCUMENTDIALOG_H
index 3fa353c314ff870f812561a4cfc42aa7610c5c03..83bbf40fb86dd271fbf0a6f7bd4421e13e8e4fa1 100644 (file)
@@ -39,7 +39,7 @@ libqt2_la_OBJADD = \
        ../xforms/FormBibitem.lo \
        ../xforms/FormBibtex.lo \
        ../xforms/FormBrowser.lo \
-       ../xforms/FormDocument.lo \
+       ../xforms/FormDocument.lo       \
        ../xforms/FormError.lo \
        ../xforms/FormExternal.lo \
        ../xforms/FormGraphics.lo \
index e711bb6765820096d867863b28710ccabfafffcb..e3087690b9dd884568e9a98186ecddb7446ba99e 100644 (file)
 #ifndef QT2BASE_H
 #define QT2BASE_H
 
-#include <boost/smart_ptr.hpp>
-
 class QDialog;
 
 #include <qfont.h>
 #include <qobject.h>
 
+#include <boost/smart_ptr.hpp>
+
 #ifdef __GNUG__
 #pragma interface
 #endif
@@ -53,19 +53,19 @@ protected:
 protected slots:
     // dialog closed from WM
     void slotWMHide();
-    
+
     // Apply button clicked
     void slotApply();
-    
+
     // OK button clicked
     void slotOK();
-    
+
     // Cancel button clicked
     void slotCancel();
-    
+
     // Restore button clicked
     void slotRestore();
-    
+
 private:
        /// Pointer to the actual instantiation of xform's form
        virtual QDialog* form() const = 0;
index 9c8f9421e80925dc7c1a396f8cc23a54d745efd6..ccc4149794264aab92d336bd789bb0e4641fdadb 100644 (file)
@@ -2,9 +2,9 @@ Dialog          Maintainer      MVC conversion
 ----------------------------------------------
 Character      Edwin
 Citation       Kalle
-Copyright      Kalle           In progress
+Copyright      Kalle           Done
 Credits
-Document       Kalle
+Document       Kalle           In progress
 Error
 File           Edwin
 Graphics