On Mon, Feb 07, 2005 at 12:58:16PM +0100, Jean-Marc Lasgouttes wrote:
> >>>>> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:
> 
> Andre> mbox needs access to a buffer pretty much the same way as
> Andre> LyXText does. So do some preparation.
> 
> Where is this information needed? Can't it be added to OutputParams if
> only latex() needs it?

One second thoghts: latex() already has a buffer arg, so this is not the
real problem. The problem is that LyXText need a BufferView * for
construction. This in turn is caused by LyXText::bv() which is used in
two dozen places or so:

         In function `LyXText::spacing(Paragraph const&) const':
        text.C:398: 

         In function `LyXText::leftMargin(int, int) const':
        text.C:467: 
        text.C:591:

        In function `LyXText::rightMargin(Paragraph const&) const':
        text.C:618: 
        text.C:621: 

         In function `LyXText::setHeightOfRow(int, Row&)':
        text.C:909: 
        text.C:911: 
        text.C:918: 

         In function `LyXText::computeRowMetrics(int, Row const&) const':
        text.C:1311: 

         In function `LyXText::redoParagraph(int)':
        text.C:1668: 

         In function `LyXText::isMainText() const':
        text2.C:102: 

         In function `LyXText::getFont(Paragraph const&, int) const':
        text2.C:156: 

         In function `LyXText::setLayout(int, int, std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)':
        text2.C:302: 

         In function `LyXText::updateCounters()':
        text2.C:853: 
        text2.C:868: 

         In function `LyXText::getColumnNearX(int, Row const&, int&, bool&) 
const':
        text2.C:1104: 

         In function `LyXText::recUndo(int, int) const':
        text2.C:1473: 

         In function `LyXText::recUndo(int) const':
        text2.C:1479: 
        text3.C:349: 

         In function `TransManager::insertVerbatim(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&, LyXText*)':
        trans_mgr.C:269: 

         In function `TransManager::insert(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&, LyXText*)':
        trans_mgr.C:287: 

The new dogma states that LyXText should not know the View, but be given
a BufferView * when needed (ideally in metrics/draw only)

Andre'

Reply via email to