* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-1999 The LyX Team.
+ * Copyright 1995-2000 The LyX Team.
*
* ====================================================== */
extern void AutoSave();
extern char updatetimer;
extern void QuitLyX();
-int current_layout = 0;
+LyXTextClass::size_type current_layout = 0;
// This is very temporary
BufferView * current_view;
/// Reset autosave timer
void LyXView::resetAutosaveTimer()
{
- if (lyxrc->autosave)
- fl_set_timer(_form_main->timer_autosave, lyxrc->autosave);
+ if (lyxrc.autosave)
+ fl_set_timer(_form_main->timer_autosave, lyxrc.autosave);
}
// TOOLBAR
//
- toolbar = new Toolbar(lyxrc->toolbar, this, air, 30 + air + bw);
+ toolbar = new Toolbar(this, air, 30 + air + bw);
// Setup the toolbar
toolbar->set(true);
UpdateDocumentClassChoice();
// Start autosave timer
- if (lyxrc->autosave)
- fl_set_timer(_form_main->timer_autosave, lyxrc->autosave);
+ if (lyxrc.autosave)
+ fl_set_timer(_form_main->timer_autosave, lyxrc.autosave);
// Install the raw callback for keyboard events
fl_register_raw_callback(_form,
KeyPressMask,
C_LyXView_KeyPressMask_raw_callback);
- intl->InitKeyMapper(lyxrc->use_kbmap);
+ intl->InitKeyMapper(lyxrc.use_kbmap);
}
// we need to do this.
toolbar->combox->Redraw();
- char layout = bufferview->text->cursor.par->GetLayout();
+ LyXTextClass::size_type layout = bufferview->text->cursor.par->GetLayout();
if (layout != current_layout){
toolbar->combox->select(layout + 1);