Angus Leeming <[EMAIL PROTECTED]> writes:

| Sorry, I'd got this wrong. The call I want to replace with a signal is 
| LyXView::setLayout, called only by LyXView and in 

The call in LyXView should be changed to call the correct LFUN
instead.

| BufferView::Pimpl::Dispatch():
|       case LFUN_LAYOUT:
|               if (current_layout != layout.second) {
|                       ...
|                       owner_->SetLayout(bv_, layout.second);
|               }
| 
| which in turn calls the toolbar:
| 
| void Toolbar::Pimpl::setLayout(int layout) {
|         if (combox)
|                 combox->select(layout+1);
| }
| 
| It strikes me that we could have
|       case LFUN_LAYOUT:
|               owner_->getDialogs().updateParagraph(ParagraphParams const & params);
| 
| and then the toolbar and the paragraph dialog would have all the info they 
| need to do their own stuff.

And this is not absolutely good...

-- 
        Lgb

Reply via email to