]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gnome/FormCitation.C
Clean-up of the button controller.
[lyx.git] / src / frontends / gnome / FormCitation.C
index d602ba1ac4992f9fecd660d744198b7edca6b2ea..62f2d2682780b52b2ad5c4b47d0be3f65a0344b4 100644 (file)
@@ -1,4 +1,3 @@
-// -*- C++ -*-
 /* This file is part of
  * ====================================================== 
  *
@@ -49,20 +48,25 @@ using std::max;
 using std::min;
 using std::find;
 
+namespace {
+
 // configuration keys
-static string const  LOCAL_CONFIGURE_PREFIX("FormCitation");
+string const  LOCAL_CONFIGURE_PREFIX("FormCitation");
+
+string const  CONF_PANE_INFO("paneinfo");
+string const  CONF_PANE_INFO_DEFAULT("=300");
+
+string const  CONF_COLUMN("column");
+string const  CONF_COLUMN_DEFAULT("=50");
 
-static string const  CONF_PANE_INFO("paneinfo");
-static string const  CONF_PANE_INFO_DEFAULT("=300");
+string const  CONF_REGEXP("regexp");
+string const  CONF_REGEXP_DEFAULT("=0");
 
-static string const  CONF_COLUMN("column");
-static string const  CONF_COLUMN_DEFAULT("=50");
+string const CONF_SEARCH("FormCitation_search");
+string const CONF_TEXTAFTER("FormCitation_textafter");
 
-static string const  CONF_REGEXP("regexp");
-static string const  CONF_REGEXP_DEFAULT("=0");
+} // namespace anon
 
-static string const CONF_SEARCH("FormCitation_search");
-static string const CONF_TEXTAFTER("FormCitation_textafter");
 
 FormCitation::FormCitation(LyXView * lv, Dialogs * d)
   : lv_(lv), d_(d), inset_(0), u_(0), h_(0), ih_(0)
@@ -110,7 +114,8 @@ void FormCitation::createInset( string const & arg )
 }
 
 
-static
+namespace {
+
 void parseBibTeX(string const & dat,
                 string const & findkey,
                 string & keyvalue)
@@ -203,6 +208,8 @@ void parseBibTeX(string const & dat,
     }
 }
 
+} // namespace anon
+
 
 void FormCitation::cleanupWidgets()
 {