]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormInclude.C
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / FormInclude.C
index 42c3008d8a7171885a1164123092e1006a9e8090..cc5c82d0299195d24190c97a60935ad96ea34932 100644 (file)
@@ -1,11 +1,13 @@
 /**
  * \file FormInclude.C
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author Alejandro Aguilar Sierra
- * \author John Levon, moz@compsoc.man.ac.uk
- * \author Angus Leeming <leeming@lyx.org>
+ * \author John Levon
+ * \author Angus Leeming 
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
@@ -15,6 +17,8 @@
 #pragma implementation
 #endif
 
+#include "debug.h"
 #include "xformsBC.h"
 #include "ControlInclude.h"
 #include "FormInclude.h"
@@ -44,7 +48,6 @@ void FormInclude::build()
 
        bc().addReadOnly(dialog_->button_browse);
        bc().addReadOnly(dialog_->radio_verbatim);
-       bc().addReadOnly(dialog_->check_typeset);
        bc().addReadOnly(dialog_->radio_useinput);
        bc().addReadOnly(dialog_->radio_useinclude);
 }
@@ -52,30 +55,11 @@ void FormInclude::build()
 
 void FormInclude::update()
 {
-       #if 0
-       // I believe this is not needed.
-       // Anyway, it is plain wrong (JSpitzm 3/7/02)
-       if (controller().params().noload) {
-               fl_set_input(dialog_->input_filename, "");
-               fl_set_button(dialog_->check_typeset, 0);
-               fl_set_button(dialog_->radio_useinput, 0);
-               fl_set_button(dialog_->radio_useinclude, 1);
-               fl_set_button(dialog_->radio_verbatim, 0);
-               fl_set_button(dialog_->check_visiblespace, 0);
-               fl_deactivate_object(dialog_->check_visiblespace);
-               fl_set_object_lcol(dialog_->check_visiblespace, FL_INACTIVE);
-               return;
-       }
-       #endif
-
        fl_set_input(dialog_->input_filename,
                     controller().params().cparams.getContents().c_str());
 
        string const cmdname = controller().params().cparams.getCmdName();
 
-       fl_set_button(dialog_->check_typeset,
-                     int(controller().params().noload));
-
        if (cmdname == "input")
                fl_set_button(dialog_->check_preview,
                              int(controller().params().cparams.preview()));
@@ -104,7 +88,6 @@ void FormInclude::update()
 
 void FormInclude::apply()
 {
-       controller().params().noload = fl_get_button(dialog_->check_typeset);
        controller().params().cparams
                .preview(fl_get_button(dialog_->check_preview));
 
@@ -149,7 +132,6 @@ ButtonPolicy::SMInput FormInclude::input(FL_OBJECT * ob, long)
        } else if (ob == dialog_->button_load) {
                string const in_name = fl_get_input(dialog_->input_filename);
                if (!rtrim(in_name).empty() && controller().fileExists(in_name)) {
-//                     ApplyButton();
                        controller().OKButton();
                        controller().load(rtrim(in_name));
                        action = ButtonPolicy::SMI_NOOP;