]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlERT.C
Rename .C => .cpp for files in src/frontends/controllers, step 1
[lyx.git] / src / frontends / controllers / ControlERT.C
index f5ff71a7626cbc33e483572e6de1d64afbbb911b..52f1ea1dd044ba08207ab7c8810f9d8ca02390c5 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * \file ControlERT.C
+ * \file ControlERT.cpp
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
 #include "funcrequest.h"
 
 
+using std::string;
+
+namespace lyx {
+namespace frontend {
+
 ControlERT::ControlERT(Dialog & parent)
        : Dialog::Controller(parent), status_(InsetERT::Collapsed)
 {}
@@ -36,5 +41,8 @@ void ControlERT::clearParams()
 void ControlERT::dispatchParams()
 {
        string const lfun = InsetERTMailer::params2string(status_);
-       kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun));
+       kernel().dispatch(FuncRequest(getLfun(), lfun));
 }
+
+} // namespace frontend
+} // namespace lyx