]> git.lyx.org Git - lyx.git/blobdiff - src/Counters.cpp
Add toolbar menus for custom insets and character styles.
[lyx.git] / src / Counters.cpp
index 0b17aa1b9b84eac8b6d7f94d16cf5bdbf71af9bc..2daac53224dca0a4f26e6850d3b7d7a228e6c1be 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,