mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Make the new argument to step() mandatory, and add a comment to
sgml::OpenTag(). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33112 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f2e3342983
commit
f1b8f4d059
@ -117,8 +117,8 @@ public:
|
|||||||
/// counter(s) for which it is the master.
|
/// counter(s) for which it is the master.
|
||||||
/// Sub-slaves are not zeroed! That happens at slave's first
|
/// Sub-slaves are not zeroed! That happens at slave's first
|
||||||
/// step 0->1. Seems to be sufficient.
|
/// step 0->1. Seems to be sufficient.
|
||||||
/// \param for_output: whether to track the counters
|
/// \param utype determines whether we track the counters.
|
||||||
void step(docstring const & ctr, UpdateType = InternalUpdate);
|
void step(docstring const & ctr, UpdateType utype);
|
||||||
/// Reset all counters.
|
/// Reset all counters.
|
||||||
void reset();
|
void reset();
|
||||||
/// Reset counters matched by match string.
|
/// Reset counters matched by match string.
|
||||||
|
@ -220,10 +220,12 @@ void sgml::openTag(Buffer const & buf, odocstream & os,
|
|||||||
if (param.find('#') != string::npos) {
|
if (param.find('#') != string::npos) {
|
||||||
// FIXME UNICODE
|
// FIXME UNICODE
|
||||||
if (!style.counter.empty())
|
if (!style.counter.empty())
|
||||||
// NOTE This could use OutputUpdate and track the counters.
|
// This uses InternalUpdate at the moment becuase sgml output
|
||||||
counters.step(style.counter);
|
// does not do anything with tracked counters, and it would need
|
||||||
|
// to track layouts if it did want to use them.
|
||||||
|
counters.step(style.counter, InternalUpdate);
|
||||||
else
|
else
|
||||||
counters.step(from_ascii(name));
|
counters.step(from_ascii(name), InternalUpdate);
|
||||||
int i = counters.value(from_ascii(name));
|
int i = counters.value(from_ascii(name));
|
||||||
attribute = subst(param, "#", convert<string>(i));
|
attribute = subst(param, "#", convert<string>(i));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user