On Thu, Jan 11, 2001 at 02:38:03PM +0100, Lars Gullik Bj&resh;nnes wrote:
> Dekel Tsur <[EMAIL PROTECTED]> writes:
> 
> | When doing "lyx --export text", the result is incorrect as the section
> | counters do not appear in the output (as we didn't call to UpdateCounters).
> | To fix the problem, the methods UpdateCounters and SetCounter should be
> | moved from LyXText to Buffer (actually, LyXText::UpdateCounters should
> | remain and do a call to Buffer::UpdateCounters, and also do the paragraph
> | rebreaking). Should I create a patch for this ? (or are there better
> | suggestions ?)
> 
> The better suggestion is to create a no gui Bufferview.
> 
> This is not really part of the Buffer.

Since labelstring and counter_ belong to LyXParagraph, then SetCounter
should be a method of LyXParagraph, and Buffer::UpdateCounters is just a
methods that calls LyXParagraph::SetCounter for all paragraphs.

Reply via email to