]> git.lyx.org Git - lyx.git/blobdiff - src/LyXView.C
Added html export for LinuxDoc and DocBook. LinuxDoc import now available in file...
[lyx.git] / src / LyXView.C
index b1d60e9371886b3b24156dcef40a06191b216b03..86316604667a70e7a74d9ada5f8c7166bf83f22c 100644 (file)
@@ -5,7 +5,7 @@
  *           LyX, The Document Processor
  *        
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-1999 The LyX Team.
+ *           Copyright 1995-2000 The LyX Team.
  *
  * ====================================================== */
 
@@ -38,7 +38,7 @@ extern FD_form_document * fd_form_document;
 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;
@@ -117,8 +117,8 @@ extern "C" void C_LyXView_AutosaveTimerCB(FL_OBJECT * ob, long data)
 /// 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);
 }
 
 
@@ -185,7 +185,7 @@ void LyXView::create_form_form_main(int width, int height)
        // 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);
@@ -257,15 +257,15 @@ void LyXView::init()
        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);
 }
 
 
@@ -306,7 +306,7 @@ void LyXView::updateLayoutChoice()
        // 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);