-// -*- C++ -*-
/* This file is part of
* ======================================================
*
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)
}
-static
+namespace {
+
void parseBibTeX(string const & dat,
string const & findkey,
string & keyvalue)
}
}
+} // namespace anon
+
void FormCitation::cleanupWidgets()
{
vector<string> r;
string tmp, keys( params.getContents() );
keys = frontStrip( split(keys, tmp, ',') );
- while( !tmp.empty() )
+ while ( !tmp.empty() )
{
r.clear();
r.push_back(tmp);