Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quellcode-Bibliothek

© Kompilation durch diese Firma

[Weder Korrektheit noch Funktionsfähigkeit der Software werden zugesichert.]

Datei: ImportLaTeX.C   Sprache: Lisp

/* This file is part of
 * ======================================================
 * 
 *           LyX, The Document Processor   
 *      Copyright (C) 1995 Matthias Ettrich
 *           Copyright (C) 1995-1998 The LyX Team.
 *
 *           This file is Copyright (C) 1998
 *           Asger Alstrup
 *
 *======================================================
 */


#include <config.h>

#ifdef __GNUG__
#pragma implementation
#endif

#include "ImportLaTeX.h"
#include "lyxrc.h"
#include "syscall.h"
#include "filetools.h"
#include "bufferlist.h"

extern LyXRC * lyxrc;
extern BufferList bufferlist;

//  $Id: ImportLaTeX.C,v 1.1 1998/07/27 10:14:07 alstrup Exp $

#if !defined(lint) && !defined(WITH_WARNINGS)
static char vcid[] = "$Id: ImportLaTeX.C,v 1.1 1998/07/27 10:14:07 alstrup Exp $";
#endif /* lint */


/*
 * CLASS ImportLaTeX
 */


ImportLaTeX::ImportLaTeX(LString const & file)
  : file(file)
{
}


Buffer * ImportLaTeX::run()
{
 // run reLyX
 LString tmp = lyxrc->relyx_command + " -f " + file;
        Systemcalls one;
 Buffer * buf = 0;
 int result= one.Startscript(Systemcalls::System, tmp);
 if (result==0) {
  LString filename = ChangeExtension(file, ".lyx"false);
  // File was generated without problems. Load it.
  buf = bufferlist.loadLyXFile(filename);
 }
 return buf;
}

[ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet)  ]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik