mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
This can be a private method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32000 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f0a5d099b9
commit
70f035b189
@ -3554,9 +3554,9 @@ static bool needEnumCounterReset(ParIterator const & it)
|
||||
|
||||
|
||||
// set the label of a paragraph. This includes the counters.
|
||||
static void setLabel(Buffer const & buf, ParIterator & it)
|
||||
void Buffer::setLabel(ParIterator & it) const
|
||||
{
|
||||
BufferParams const & bp = buf.masterBuffer()->params();
|
||||
BufferParams const & bp = this->masterBuffer()->params();
|
||||
DocumentClass const & textclass = bp.documentClass();
|
||||
Paragraph & par = it.paragraph();
|
||||
Layout const & layout = par.layout();
|
||||
@ -3652,9 +3652,9 @@ static void setLabel(Buffer const & buf, ParIterator & it)
|
||||
string const & type = counters.current_float();
|
||||
docstring full_label;
|
||||
if (type.empty())
|
||||
full_label = buf.B_("Senseless!!! ");
|
||||
full_label = this->B_("Senseless!!! ");
|
||||
else {
|
||||
docstring name = buf.B_(textclass.floats().getType(type).name());
|
||||
docstring name = this->B_(textclass.floats().getType(type).name());
|
||||
if (counters.hasCounter(from_utf8(type))) {
|
||||
string const & lang = par.getParLanguage(bp)->code();
|
||||
counters.step(from_utf8(type));
|
||||
@ -3701,7 +3701,7 @@ void Buffer::updateLabels(ParIterator & parit) const
|
||||
maxdepth = parit->getMaxDepthAfter();
|
||||
|
||||
// set the counter for this paragraph
|
||||
setLabel(*this, parit);
|
||||
setLabel(parit);
|
||||
|
||||
// Now the insets
|
||||
InsetList::const_iterator iit = parit->insetList().begin();
|
||||
|
@ -548,7 +548,8 @@ private:
|
||||
*/
|
||||
void updateMacros(DocIterator & it,
|
||||
DocIterator & scope) const;
|
||||
|
||||
///
|
||||
void setLabel(ParIterator & it) const;
|
||||
///
|
||||
void collectRelatives(BufferSet & bufs) const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user