]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gnome/FormIndex.C
ws cleanup
[lyx.git] / src / frontends / gnome / FormIndex.C
index 26a50ed83dd2f0068e6454dd73182a1fadb1f62d..5392c43fbb4109757d2d5c29979058030a56a914 100644 (file)
@@ -1,6 +1,5 @@
-// -*- C++ -*-
 /* This file is part of
- * ====================================================== 
+ * ======================================================
  *
  *           LyX, The Document Processor
  *
@@ -62,10 +61,10 @@ FormIndex::~FormIndex()
 void FormIndex::showInset( InsetCommand * const inset )
 {
   if( dialog_!=0 || inset == 0 ) return;
-  
+
   inset_ = inset;
   ih_ = inset_->hideDialog.connect(slot(this, &FormIndex::hide));
-  
+
   params = inset->params();
   show();
 }
@@ -73,7 +72,7 @@ void FormIndex::showInset( InsetCommand * const inset )
 void FormIndex::createInset( string const & arg )
 {
   if( dialog_!=0 ) return;
-  
+
   params.setFromString( arg );
   show();
 }
@@ -83,17 +82,17 @@ void FormIndex::show()
   if (!dialog_)
     {
       using namespace Gtk::Box_Helpers;
-      
+
       Gtk::Label * label = manage( new Gtk::Label(_("Keyword")) );
       Gtk::Box * mbox = manage( new Gtk::HBox() );
       Gtk::ButtonBox * bbox = manage( new Gtk::HButtonBox() );
       Gtk::Separator * sep = manage( new Gtk::VSeparator() );
 
       keyword_ = manage( new Gnome::Entry() );
-      
+
       b_ok = Gtk::wrap( GTK_BUTTON( gnome_stock_button(GNOME_STOCK_BUTTON_OK) ) );
       b_cancel = Gtk::wrap( GTK_BUTTON( gnome_stock_button(GNOME_STOCK_BUTTON_CANCEL) ) );
-      
+
       // set up spacing
       mbox->set_spacing(2);
       bbox->set_spacing(4);
@@ -102,7 +101,7 @@ void FormIndex::show()
       keyword_->set_max_saved(10);
       keyword_->load_history();
       keyword_->set_use_arrows_always(true);
-      
+
       // packing
       bbox->children().push_back(Element(*b_ok, false, false));
       bbox->children().push_back(Element(*b_cancel, false, false));
@@ -143,19 +142,19 @@ void FormIndex::updateSlot(bool switched)
       hide();
       return;
     }
-  
+
   if (dialog_ != 0 &&
       lv_->view()->available())
     {
       keyword_->get_entry()->set_text(params.getContents().c_str());
-      
+
       bool sens = (!(lv_->buffer()->isReadonly()));
-      
+
       keyword_->set_sensitive(sens);
       b_ok->set_sensitive(sens);
     }
 }
-      
+
 void FormIndex::hide()
 {
   if (dialog_!=0) mainAppWin->remove_action();
@@ -200,4 +199,3 @@ void FormIndex::apply()
   // hide the dialog
   hide();
 }
-