]> git.lyx.org Git - lyx.git/blobdiff - src/Counters.cpp
tex2lyx: support for Plex fonts
[lyx.git] / src / Counters.cpp
index 0b17aa1b9b84eac8b6d7f94d16cf5bdbf71af9bc..3bb4d07758bbaf61828297c33388da950516b40f 100644 (file)
@@ -278,6 +278,18 @@ void Counters::resetSlaves(docstring const & ctr)
 }
 
 
+void Counters::stepMaster(docstring const & ctr, UpdateType utype)
+{
+       CounterList::iterator it = counterList_.find(ctr);
+       if (it == counterList_.end()) {
+               lyxerr << "step: Counter does not exist: "
+                      << to_utf8(ctr) << endl;
+               return;
+       }
+       step(it->second.master(), utype);
+}
+
+
 void Counters::step(docstring const & ctr, UpdateType utype)
 {
        CounterList::iterator it = counterList_.find(ctr);
@@ -470,7 +482,7 @@ docstring const fnsymbolCounter(int const n)
        };
 }
 
-} // namespace anon
+} // namespace
 
 
 docstring Counters::labelItem(docstring const & ctr,
@@ -685,4 +697,12 @@ void Counters::endEnvironment()
 }
 
 
+void swap(Counters & c1, Counters & c2)
+{
+       Counters tmp = move(c1);
+       c1 = move(c2);
+       c2 = move(tmp);
+}
+
+
 } // namespace lyx