]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlTexinfo.C
guii2
[lyx.git] / src / frontends / controllers / ControlTexinfo.C
index 0166eee2a297980fa173e0440707237e79a2c451..040192ce35becb13c33de9872a43035b0bc661fc 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of
- * ====================================================== 
+ * ======================================================
  *
  *           LyX, The Document Processor
  *
 #include "ButtonControllerBase.h"
 #include "ControlTexinfo.h"
 #include "Dialogs.h"
-#include "LyXView.h"
+#include "frontends/LyXView.h"
 #include "BufferView.h"
 #include "gettext.h"
 #include "support/filetools.h" // FileSearch
-#include "support/syscall.h"
+#include "support/systemcall.h"
 #include "support/path.h"
 #include "helper_funcs.h"
 #include "support/lstrings.h"
@@ -46,8 +46,8 @@ void ControlTexinfo::rescanStyles() const
 {
        // Run rescan in user lyx directory
        Path p(user_lyxdir);
-       Systemcalls one;
-       one.startscript(Systemcalls::Wait,
+       Systemcall one;
+       one.startscript(Systemcall::Wait,
                        LibFileSearch("scripts", "TeXFiles.sh"));
        p.pop();
 }
@@ -59,11 +59,11 @@ void ControlTexinfo::runTexhash() const
        Path p(user_lyxdir);
 
        //path to texhash through system
-       Systemcalls one;
-       one.startscript(Systemcalls::Wait, "texhash");
-       
+       Systemcall one;
+       one.startscript(Systemcall::Wait, "texhash");
+
        p.pop();
-//     Alert::alert(_("texhash run!"), 
+//     Alert::alert(_("texhash run!"),
 //                _("rebuilding of the TeX-tree could only be successfull"),
 //                _("if you have had user-write-permissions to the tex-dir."));
 }
@@ -74,10 +74,10 @@ namespace {
 string const sortEntries(string & str_in)
 {
        std::vector<string> dbase = getVectorFromString(str_in,"\n");
-       std::sort(dbase.begin(), dbase.end());          // sort entries
-       std::vector<string>::iterator p = 
-           std::unique(dbase.begin(), dbase.end());    // compact
-       dbase.erase(p, dbase.end());                    // shrink
+       std::sort(dbase.begin(), dbase.end());          // sort entries
+       std::vector<string>::iterator p =
+           std::unique(dbase.begin(), dbase.end());    // compact
+       dbase.erase(p, dbase.end());                    // shrink
        return getStringFromVector(dbase,"\n");
 }
 
@@ -93,7 +93,7 @@ ControlTexinfo::getContents(texFileSuffix type, bool withFullPath) const
 
        string filename;
        switch (type) {
-       case bst: 
+       case bst:
                filename = bstFilename;
                break;
        case cls:
@@ -127,4 +127,3 @@ void ControlTexinfo::viewFile(string const filename) const
 {
        lv_.getDialogs()->showFile(filename);
 }
-