]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormDocument.C
Disable various buttons when buffer is read only
[lyx.git] / src / frontends / xforms / FormDocument.C
index 7e865f23a2c87492a2c3d6fbff7ecb1dbd8c94b8..b88a029bcd595b2a92c06c4c030935156abb0dc0 100644 (file)
@@ -31,6 +31,7 @@
 #include "vspace.h"
 #include "bmtable.h"
 #include "support/filetools.h"
+#include "support/lstrings.h"
 #include "language.h"
 #include "LyXView.h"
 #include "BufferView.h"
@@ -200,6 +201,9 @@ void FormDocument::build()
                      " «text» | »text« "));
 
     bc().addReadOnly (language_->choice_inputenc);
+    bc().addReadOnly (language_->choice_quotes_language);
+    bc().addReadOnly (language_->radio_single);
+    bc().addReadOnly (language_->radio_double);
 
     // the document options form
     options_.reset(build_doc_options());
@@ -236,6 +240,8 @@ void FormDocument::build()
     bc().addReadOnly (bullets_->bmtable_bullet_panel);
     bc().addReadOnly (bullets_->choice_bullet_size);
     bc().addReadOnly (bullets_->input_bullet_latex);
+    bc().addReadOnly (bullets_->radio_bullet_depth);
+    bc().addReadOnly (bullets_->radio_bullet_panel);
 
     fl_addto_tabfolder(dialog_->tabbed_folder,_("Document"),
                       class_->form);