+2004-03-30 Angus Leeming <leeming@lyx.org>
+
+ * lyxfunc.C (dispatch): the specialization Dialogs::showDocument
+ has died. Fall through to the generic Dialogs::show("document").
+
2004-03-30 Angus Leeming <leeming@lyx.org>
* lfuns.h:
+2004-03-30 Angus Leeming <leeming@lyx.org>
+
+ * Dialogs.h (showDocument): removed.
+
+ * guiapi.[Ch] (gui_ShowDocument): removed.
+
2004-03-28 Angus Leeming <leeming@lyx.org>
* Dialogs.h (showPrint): removed.
Put into some sort of alphabetical order */
//@{
///
- void showDocument();
- ///
void showPreamble();
///
void showPreferences();
+2004-03-30 Angus Leeming <leeming@lyx.org>
+
+ * ControlDocument.[Ch]: converted to the dialog-based scheme.
+
2004-03-30 Angus Leeming <leeming@lyx.org>
* ControlDocument.[Ch]: move all of the 'apply' code into the core
#include <config.h>
#include "ControlDocument.h"
-#include "ViewBase.h"
+#include "Kernel.h"
#include "BranchList.h"
#include "buffer.h"
#include "LColor.h"
#include "lyxtextclasslist.h"
-#include "frontends/LyXView.h"
-
#include "support/std_sstream.h"
using std::ostringstream;
using std::string;
-ControlDocument::ControlDocument(LyXView & lv, Dialogs & d)
- : ControlDialogBD(lv, d), bp_(0)
+ControlDocument::ControlDocument(Dialog & parent)
+ : Dialog::Controller(parent)
{}
{}
-void ControlDocument::setParams()
+bool ControlDocument::initialiseParams(std::string const &)
{
- if (!bp_.get())
- bp_.reset(new BufferParams);
+ bp_.reset(new BufferParams);
+ *bp_ = kernel().buffer().params();
+ return true;
+}
- /// Set the buffer parameters
- *bp_ = buffer()->params();
+
+void ControlDocument::clearParams()
+{
+ bp_.reset();
}
-BufferParams & ControlDocument::params()
+BufferParams & ControlDocument::params() const
{
BOOST_ASSERT(bp_.get());
return *bp_;
}
-LyXTextClass ControlDocument::textClass()
+LyXTextClass const & ControlDocument::textClass() const
{
return textclasslist[bp_->textclass];
}
namespace {
-void dispatch_params(LyXView & lv, BufferParams const & bp, kb_action lfun)
+void dispatch_bufferparams(Kernel const & kernel, BufferParams const & bp,
+ kb_action lfun)
{
ostringstream ss;
bp.writeFile(ss);
ss << "\\end_header\n";
- lv.dispatch(FuncRequest(lfun, ss.str()));
+ kernel.dispatch(FuncRequest(lfun, ss.str()));
}
} // namespace anon
-void ControlDocument::apply()
+void ControlDocument::dispatchParams()
{
- if (!bufferIsAvailable())
- return;
-
- view().apply();
-
// This must come first so that a language change is correctly noticed
setLanguage();
// Set the document class.
- lyx::textclass_type const old_class = buffer()->params().textclass;
+ lyx::textclass_type const old_class =
+ kernel().buffer().params().textclass;
lyx::textclass_type const new_class = bp_->textclass;
if (new_class != old_class) {
string const name = textclasslist[new_class].name();
- lv_.dispatch(FuncRequest(LFUN_TEXTCLASS_APPLY, name));
+ kernel().dispatch(FuncRequest(LFUN_TEXTCLASS_APPLY, name));
}
// Apply the BufferParams.
- dispatch_params(lv_, params(), LFUN_BUFFERPARAMS_APPLY);
+ dispatch_bufferparams(kernel(), params(), LFUN_BUFFERPARAMS_APPLY);
// Generate the colours requested by each new branch.
BranchList & branchlist = params().branchlist();
x11hexname = lcolor.getX11Name(LColor::background);
// display the new color
string const str = current_branch + ' ' + x11hexname;
- lv_.dispatch(FuncRequest(LFUN_SET_COLOR, str));
+ kernel().dispatch(FuncRequest(LFUN_SET_COLOR, str));
}
// Open insets of selected branches, close deselected ones
- lv_.dispatch(FuncRequest(LFUN_ALL_INSETS_TOGGLE, "toggle branch"));
+ kernel().dispatch(FuncRequest(LFUN_ALL_INSETS_TOGGLE, "toggle branch"));
}
-void ControlDocument::setLanguage()
+void ControlDocument::setLanguage() const
{
Language const * const newL = bp_->language;
- if (buffer()->params().language == newL)
+ if (kernel().buffer().params().language == newL)
return;
string const lang_name = newL->lang();
- lv_.dispatch(FuncRequest(LFUN_LANGUAGE_BUFFER, lang_name));
+ kernel().dispatch(FuncRequest(LFUN_LANGUAGE_BUFFER, lang_name));
}
bool ControlDocument::loadTextclass(lyx::textclass_type tc) const
{
string const name = textclasslist[tc].name();
- lv_.dispatch(FuncRequest(LFUN_TEXTCLASS_LOAD, name));
+ kernel().dispatch(FuncRequest(LFUN_TEXTCLASS_LOAD, name));
// Report back whether we were able to change the class.
bool const success = textclasslist[tc].loaded();
}
-void ControlDocument::saveAsDefault()
+void ControlDocument::saveAsDefault() const
{
- dispatch_params(lv_, params(), LFUN_SAVE_AS_DEFAULT);
+ dispatch_bufferparams(kernel(), params(), LFUN_SAVE_AS_DEFAULT);
}
#ifndef CONTROLDOCUMENT_H
#define CONTROLDOCUMENT_H
-#include "ControlDialog_impl.h"
-
+#include "Dialog.h"
#include "support/types.h"
-
#include <boost/scoped_ptr.hpp>
class BufferParams;
-class Language;
class LyXTextClass;
/** A controller for Document dialogs.
*/
-class ControlDocument : public ControlDialogBD {
+class ControlDocument : public Dialog::Controller {
public:
///
- ControlDocument(LyXView &, Dialogs &);
+ ControlDocument(Dialog &);
///
~ControlDocument();
///
- void setLanguage();
+ virtual bool initialiseParams(std::string const & data);
+ ///
+ virtual void clearParams();
+ ///
+ virtual void dispatchParams();
+ ///
+ virtual bool isBufferDependent() const { return true; }
+ ///
+ LyXTextClass const & textClass() const;
///
- LyXTextClass textClass();
+ BufferParams & params() const;
///
- BufferParams & params();
+ void setLanguage() const;
///
- void saveAsDefault();
+ void saveAsDefault() const;
///
bool loadTextclass(lyx::textclass_type tc) const;
private:
- /// apply settings
- void apply();
- /// set the params before show or update
- void setParams();
///
boost::scoped_ptr<BufferParams> bp_;
};
+2004-03-30 Angus Leeming <leeming@lyx.org>
+
+ * Dialogs.C (build) added document dialog.
+
2004-03-28 Angus Leeming <leeming@lyx.org>
* Dialogs.C (build): added print dialog.
#include "ControlCharacter.h"
#include "ControlCitation.h"
#include "ControlCommand.h"
+#include "ControlDocument.h"
#include "ControlErrorList.h"
#include "ControlERT.h"
#include "ControlExternal.h"
#include "FormChanges.h"
#include "FormCharacter.h"
#include "FormCitation.h"
+#include "FormDocument.h"
#include "FormErrorList.h"
#include "FormERT.h"
#include "FormExternal.h"
char const * const dialognames[] = {
"aboutlyx", "bibitem", "bibtex", "box", "branch", "changes", "character",
-"citation", "error", "errorlist" , "ert", "external", "file", "findreplace",
-"float", "graphics", "include", "index", "label", "log", "mathpanel",
-"mathaccents", "matharrows", "mathoperators", "mathrelations",
+"citation", "document", "error", "errorlist" , "ert", "external", "file",
+"findreplace", "float", "graphics", "include", "index", "label", "log",
+"mathpanel", "mathaccents", "matharrows", "mathoperators", "mathrelations",
"mathgreek", "mathmisc", "mathdots", "mathbigoperators", "mathamsmisc",
"mathamsarrows", "mathamsrelations", "mathamsnegatedrelations",
"mathamsoperators", "mathdelimiter", "mathmatrix", "mathspace", "mathstyle",
dialog->setController(new ControlCitation(*dialog));
dialog->setView(new FormCitation(*dialog));
dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
+ } else if (name == "document") {
+ dialog->setController(new ControlDocument(*dialog));
+ dialog->setView(new FormDocument(*dialog));
+ dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
} else if (name == "errorlist") {
dialog->setController(new ControlErrorList(*dialog));
dialog->setView(new FormErrorList(*dialog));
d->show(name, data, 0);
}
-void gui_ShowDocument(Dialogs & d)
-{
- d.showDocument();
-}
-
-
void gui_ShowPreamble(Dialogs & d)
{
d.showPreamble();
void gui_show_dialog(Dialogs *, char const * name, char const * data);
-void gui_ShowDocument(Dialogs &);
void gui_ShowPreamble(Dialogs &);
void gui_ShowPreferences(Dialogs &);
void gui_ShowSpellchecker(Dialogs &);
+2004-03-30 Angus Leeming <leeming@lyx.org>
+
+ * Dialogs.C (build): added document dialog.
+ * Dialogs2.C (showDocument): removed.
+
+ * QDocument.[Ch]: converted to the Dialog-based scheme.
+
2004-03-29 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* QBibtex.C:
#include "ControlChanges.h"
#include "ControlCharacter.h"
#include "ControlCitation.h"
+#include "ControlDocument.h"
#include "ControlErrorList.h"
#include "ControlERT.h"
#include "ControlExternal.h"
#include "QChanges.h"
#include "QCharacter.h"
#include "QCitation.h"
+#include "QDocument.h"
#include "QErrorList.h"
#include "QERT.h"
#include "QExternal.h"
char const * const dialognames[] = {
"aboutlyx", "bibitem", "bibtex", "box", "branch", "changes", "character",
-"citation", "error", "errorlist", "ert", "external", "file", "findreplace",
-"float", "graphics", "include", "index", "label", "log", "mathpanel",
-"mathdelimiter", "mathmatrix", "note", "paragraph", "print", "ref", "sendto",
-"tabular", "tabularcreate", "texinfo",
+"citation", "document", "error", "errorlist", "ert", "external", "file",
+"findreplace", "float", "graphics", "include", "index", "label", "log",
+"mathpanel", "mathdelimiter", "mathmatrix", "note", "paragraph", "print",
+"ref", "sendto", "tabular", "tabularcreate", "texinfo",
#ifdef HAVE_LIBAIKSAURUS
"thesaurus",
dialog->setController(new ControlCitation(*dialog));
dialog->setView(new QCitation(*dialog));
dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
+ } else if (name == "document") {
+ dialog->setController(new ControlDocument(*dialog));
+ dialog->setView(new QDocument(*dialog));
+ dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
} else if (name == "errorlist") {
dialog->setController(new ControlErrorList(*dialog));
dialog->setView(new QErrorList(*dialog));
#include "controllers/GUI.h"
#include "ButtonController.h"
-#include "ControlDocument.h"
+#include "Qt2BC.h"
+
#include "ControlSpellchecker.h"
-#include "QDocument.h"
-#include "QDocumentDialog.h"
// Here would be an appropriate point to lecture on the evils
// of the Qt headers, those most fucked up of disgusting ratholes.
// But I won't.
-typedef GUI<ControlDocument, QDocument, NoRepeatedApplyReadOnlyPolicy, Qt2BC>
-DocumentDialog;
-
typedef GUI<ControlPrefs, QPrefs, OkApplyCancelPolicy, Qt2BC>
PrefsDialog;
struct Dialogs::Impl {
Impl(LyXView & lv, Dialogs & d);
- DocumentDialog document;
PrefsDialog prefs;
SpellcheckerDialog spellchecker;
};
Dialogs::Impl::Impl(LyXView & lv, Dialogs & d)
- : document(lv, d),
- prefs(lv, d),
+ : prefs(lv, d),
spellchecker(lv, d)
{}
}
-void Dialogs::showDocument()
-{
- pimpl_->document.controller().show();
-}
-
-
void Dialogs::showPreamble()
{
- pimpl_->document.controller().show();
+ show("document");
// Oh Angus, won't you help a poor child ?
//pimpl_->document.view()->showPreamble();
}
#include <config.h>
-#include "debug.h"
-#include "qt_helpers.h"
-
-#include "ControlDocument.h"
-#include "QDocument.h"
-#include "QDocumentDialog.h"
+#include "controllers/ControlDocument.h"
#include "bufferparams.h"
+#include "debug.h"
#include "language.h"
#include "helper_funcs.h" // getSecond()
#include "frnt_lang.h"
+#include "gettext.h"
#include "lyxrc.h" // defaultUnit
#include "tex-strings.h" // tex_graphics
#include "support/tostr.h"
#include "lyxtextclasslist.h"
#include "floatplacement.h"
+#include "QDocument.h"
+#include "QDocumentDialog.h"
+#include "Qt2BC.h"
+
+#include "qt_helpers.h"
+
#include <qpushbutton.h>
#include <qmultilineedit.h>
#include <qradiobutton.h>
using std::string;
-typedef Qt2CB<ControlDocument, Qt2DB<QDocumentDialog> > base_class;
+typedef QController<ControlDocument, QView<QDocumentDialog> > base_class;
namespace {
}
-QDocument::QDocument()
- : base_class(_("LyX: Document Settings")),
+QDocument::QDocument(Dialog & parent)
+ : base_class(parent, _("LyX: Document Settings")),
lang_(getSecond(frnt::getLanguageData(false)))
{}
#ifndef QDOCUMENT_H
#define QDOCUMENT_H
-
-#include "Qt2Base.h"
-#include "Qt2BC.h"
-
+#include "QDialogView.h"
#include "BranchList.h"
-
#include <boost/scoped_ptr.hpp>
#include <string>
+#include <vector>
class ControlDocument;
class QLineEdit;
class QDocument
- : public Qt2CB<ControlDocument, Qt2DB<QDocumentDialog> >
+ : public QController<ControlDocument, QView<QDocumentDialog> >
{
public:
friend class QDocumentDialog;
- QDocument();
+ QDocument(Dialog &);
void showPreamble();
#include "bufferparams.h"
#include "debug.h"
+#include "gettext.h"
#include "lyxrc.h"
#include "controllers/ControlDocument.h"
+2004-03-30 Angus Leeming <leeming@lyx.org>
+
+ * Dialogs.C (build): added document dialog.
+ * Dialogs2.C (showDocument): removed.
+
+ * FormDocument.[Ch]:
+ * fomrs/form_document.fd: converted to the Dialog-based scheme.
+
2004-03-29 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* FormBibtex.C:
#include "ControlBranch.h"
#include "ControlChanges.h"
#include "ControlCitation.h"
+#include "ControlDocument.h"
#include "ControlErrorList.h"
#include "ControlERT.h"
#include "ControlExternal.h"
#include "FormChanges.h"
#include "FormCharacter.h"
#include "FormCitation.h"
+#include "FormDocument.h"
#include "FormErrorList.h"
#include "FormERT.h"
#include "FormExternal.h"
char const * const dialognames[] = {
"aboutlyx", "bibitem", "bibtex", "box", "branch", "changes", "character",
-"citation", "error", "errorlist" , "ert", "external", "file", "findreplace",
-"float", "graphics", "include", "index", "label", "log", "mathpanel",
-"mathaccents", "matharrows", "mathoperators", "mathrelations",
+"citation", "document", "error", "errorlist" , "ert", "external", "file",
+"findreplace", "float", "graphics", "include", "index", "label", "log",
+"mathpanel", "mathaccents", "matharrows", "mathoperators", "mathrelations",
"mathgreek", "mathmisc", "mathdots", "mathbigoperators", "mathamsmisc",
"mathamsarrows", "mathamsrelations", "mathamsnegatedrelations",
"mathamsoperators", "mathdelimiter", "mathmatrix", "mathspace", "mathstyle",
dialog->setController(new ControlCitation(*dialog));
dialog->setView(new FormCitation(*dialog));
dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
+ } else if (name == "document") {
+ dialog->setController(new ControlDocument(*dialog));
+ dialog->setView(new FormDocument(*dialog));
+ dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
} else if (name == "errorlist") {
dialog->setController(new ControlErrorList(*dialog));
dialog->setView(new FormErrorList(*dialog));
#include "xformsBC.h"
#include "xforms_helpers.h"
-#include "ControlDocument.h"
-#include "FormDocument.h"
-#include "forms/form_document.h"
-
#include "ControlPreamble.h"
#include "FormPreamble.h"
#include "forms/form_preamble.h"
#include "FormSpellchecker.h"
#include "forms/form_spellchecker.h"
-typedef GUI<ControlDocument, FormDocument, NoRepeatedApplyReadOnlyPolicy, xformsBC>
-DocumentDialog;
-
typedef GUI<ControlPreamble, FormPreamble, NoRepeatedApplyReadOnlyPolicy, xformsBC>
PreambleDialog;
struct Dialogs::Impl {
Impl(LyXView & lv, Dialogs & d);
- DocumentDialog document;
PreambleDialog preamble;
PreferencesDialog preferences;
SpellcheckerDialog spellchecker;
Dialogs::Impl::Impl(LyXView & lv, Dialogs & d)
- : document(lv, d),
- preamble(lv, d),
+ : preamble(lv, d),
preferences(lv, d),
spellchecker(lv, d)
{}
}
-void Dialogs::showDocument()
-{
- pimpl_->document.controller().show();
-}
-
-
void Dialogs::showPreamble()
{
pimpl_->preamble.controller().show();
#include <config.h>
#include "FormDocument.h"
-#include "ControlDocument.h"
#include "forms/form_document.h"
+#include "controllers/ControlDocument.h"
+
#include "bmtable.h"
#include "checkedwidgets.h"
#include "ColorHandler.h"
JURABIB
};
+enum GuiColors {
+ GUI_COLOR_CHOICE = FL_FREE_COL15
+};
+
} // namespace anon
-typedef FormCB<ControlDocument, FormDB<FD_document> > base_class;
+typedef FormController<ControlDocument, FormView<FD_document> > base_class;
-FormDocument::FormDocument()
- : base_class(_("Document Settings"), scalableTabfolders),
+FormDocument::FormDocument(Dialog & parent)
+ : base_class(parent, _("Document Settings"), scalableTabfolders),
ActCell(0), Confirmed(0),
current_bullet_panel(0), current_bullet_depth(0), fbullet(0)
{}
(XpmVersion==4 && XpmRevision<7)))
return;
- bool const isLinuxDoc =
- controller().docType() == ControlDocument::LINUXDOC;
+ bool const isLinuxDoc = kernel().docType() == Kernel::LINUXDOC;
setEnabled(fbullet, !isLinuxDoc);
if (isLinuxDoc) return;
void FormDocument::checkReadOnly()
{
- if (bc().readOnly(controller().bufferIsReadonly())) {
+ if (bc().readOnly(kernel().isBufferReadonly())) {
postWarning(_("Document is read-only."
" No changes to layout permitted."));
} else {
#ifndef FORM_DOCUMENT_H
#define FORM_DOCUMENT_H
-#include "FormBase.h"
+#include "FormDialogView.h"
#include "BranchList.h"
#include "RadioButtonGroup.h"
struct FD_document_bullet;
struct FD_document_branch;
-namespace {
-
-enum GuiColors {
- GUI_COLOR_CHOICE = FL_FREE_COL15
-};
-
-
-}
-
-
/** This class provides an XForms implementation of the FormDocument dialog.
* The table-layout-form here changes values for latex-tabulars
*/
-class FormDocument : public FormCB<ControlDocument, FormDB<FD_document> > {
+class FormDocument
+ : public FormController<ControlDocument, FormView<FD_document> > {
public:
- FormDocument();
+ FormDocument(Dialog &);
private:
/** Redraw the form (on receipt of a Signal indicating, for example,
that the xforms colours have been re-mapped). */
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: button_close
-callback: C_FormBaseCancelCB
+callback: C_FormDialogView_CancelCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: button_apply
-callback: C_FormBaseApplyCB
+callback: C_FormDialogView_ApplyCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: button_ok
-callback: C_FormBaseOKCB
+callback: C_FormDialogView_OKCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: button_restore
-callback: C_FormBaseRestoreCB
+callback: C_FormDialogView_RestoreCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: button_save_defaults
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: button_reset_defaults
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
=============== FORM ===============
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: choice_papersize
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: input_custom_width
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: choice_custom_width_units
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: input_custom_height
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: choice_custom_height_units
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: radio_portrait
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: radio_landscape
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: check_use_geometry
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: choice_paperpackage
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: input_top_margin
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: choice_top_margin_units
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: input_bottom_margin
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: choice_bottom_margin_units
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: input_inner_margin
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: choice_inner_margin_units
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: input_outer_margin
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: choice_outer_margin_units
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: input_head_height
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: choice_head_height_units
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: input_head_sep
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: choice_head_sep_units
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: input_foot_skip
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: choice_foot_skip_units
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
=============== FORM ===============
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: choice_fonts
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: choice_fontsize
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: combox_class
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: choice_pagestyle
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: choice_spacing
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: input_extra
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: input_skip
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: choice_skip
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: radio_sides_one
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: radio_sides_two
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: radio_columns_one
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: radio_columns_two
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: radio_indent
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: radio_skip
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
value: 1
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: input_spacing
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: choice_skip_units
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
=============== FORM ===============
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: choice_inputenc
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: choice_quotes_language
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: combox_language
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
=============== FORM ===============
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: input_float_placement
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: counter_secnumdepth
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
bounds: -2 5
precision: 0
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: counter_tocdepth
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
bounds: -1 5
precision: 0
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: choice_postscript_driver
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: radio_use_natbib
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: choice_citation_format
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: choice_ams_math
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: radio_use_jurabib
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: radio_use_defcite
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: check_bibtopic
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
=============== FORM ===============
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: bmtable_panel
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: choice_size
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_X
gravity: FL_NoGravity FL_NoGravity
name: input_latex
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: radio_depth_1
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
value: 1
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: radio_depth_2
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: radio_depth_3
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: radio_depth_4
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_NONE
gravity: FL_NoGravity FL_NoGravity
name: radio_panel_standard
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
value: 1
resize: FL_RESIZE_NONE
gravity: FL_NoGravity FL_NoGravity
name: radio_panel_maths
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_NONE
gravity: FL_NoGravity FL_NoGravity
name: radio_panel_ding1
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_NONE
gravity: FL_NoGravity FL_NoGravity
name: radio_panel_ding2
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_NONE
gravity: FL_NoGravity FL_NoGravity
name: radio_panel_ding3
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_NONE
gravity: FL_NoGravity FL_NoGravity
name: radio_panel_ding4
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: input_all_branches
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: button_add_branch
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: button_remove_branch
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: browser_all_branches
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: browser_selection
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: button_select
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: button_deselect
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
--------------------
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name: button_modify
-callback: C_FormBaseInputCB
+callback: C_FormDialogView_InputCB
argument: 0
==============================
if (!data.empty())
owner->getDialogs().show("character", data);
}
- else if (name == "document")
- owner->getDialogs().showDocument();
else if (name == "preamble")
owner->getDialogs().showPreamble();
else if (name == "preferences")