]> git.lyx.org Git - features.git/blobdiff - src/LayoutModuleList.cpp
Fix font tracking at fontswitch_insets
[features.git] / src / LayoutModuleList.cpp
index b7da879253c4bdacf88ce05db85f1c99845f2fb6..de1324ccb5b494eda0844b82a36090691a294beb 100644 (file)
@@ -1,10 +1,10 @@
 // -*- C++ -*-
 /**
- * \file ModuleList.cpp
+ * \file LayoutModuleList.cpp
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Richard Heck
+ * \author Richard Kimberly Heck
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -53,6 +53,18 @@ bool LayoutModuleList::adaptToBaseClass(LayoutFile const * const lay,
 }
 
 
+string LayoutModuleList::asString() const
+{
+       string mods;
+       for (auto const & mod : lml_)
+               mods += mod + ',';
+       // remove trailing comma
+       if (!mods.empty())
+               mods.pop_back();
+       return mods;
+}
+
+
 bool LayoutModuleList::moduleCanBeAdded(string const & modName,
                LayoutFile const * const lay) const
 {