]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeX.C
remove noload/don't typeset
[lyx.git] / src / LaTeX.C
index 664486e801187ce649ce55d8b12fc7cc34244a19..046f3f114856cb3ee2a1e217a997c0bc461b3185 100644 (file)
@@ -22,6 +22,7 @@
 #include "gettext.h"
 #include "lyxfunc.h"
 #include "debug.h"
+#include "funcrequest.h"
 #include "support/filetools.h"
 #include "support/FileInfo.h"
 #include "support/lstrings.h"
@@ -197,8 +198,7 @@ int LaTeX::run(TeXErrors & terr, LyXFunc * lfun)
        if (lfun) {
                ostringstream str;
                str << _("LaTeX run number") << ' ' << count;
-               // check lyxstring string stream and gcc 3.1 before fixing
-               lfun->dispatch(LFUN_MESSAGE, string(str.str().c_str()));
+               lfun->dispatch(FuncRequest(LFUN_MESSAGE, str.str().c_str()));
        }
 
        this->operator()();
@@ -234,7 +234,7 @@ int LaTeX::run(TeXErrors & terr, LyXFunc * lfun)
                // no checks for now
                lyxerr[Debug::LATEX] << "Running MakeIndex." << endl;
                if (lfun) {
-                       lfun->dispatch(LFUN_MESSAGE, string(_("Running MakeIndex.")));
+                       lfun->dispatch(FuncRequest(LFUN_MESSAGE, _("Running MakeIndex.")));
                }
 
                rerun = runMakeIndex(OnlyFilename(ChangeExtension(file, ".idx")));
@@ -249,7 +249,7 @@ int LaTeX::run(TeXErrors & terr, LyXFunc * lfun)
                // no checks for now
                lyxerr[Debug::LATEX] << "Running BibTeX." << endl;
                if (lfun) {
-                       lfun->dispatch(LFUN_MESSAGE, string(_("Running BibTeX.")));
+                       lfun->dispatch(FuncRequest(LFUN_MESSAGE, _("Running BibTeX.")));
                }
 
                updateBibtexDependencies(head, bibtex_info);
@@ -284,7 +284,7 @@ int LaTeX::run(TeXErrors & terr, LyXFunc * lfun)
                        ostringstream str;
                        str << _("LaTeX run number") << ' ' << count;
                        // check lyxstring string stream and gcc 3.1 before fixing
-                       lfun->dispatch(LFUN_MESSAGE, string(str.str().c_str()));
+                       lfun->dispatch(FuncRequest(LFUN_MESSAGE, str.str().c_str()));
                }
 
                this->operator()();
@@ -314,7 +314,7 @@ int LaTeX::run(TeXErrors & terr, LyXFunc * lfun)
                // no checks for now
                lyxerr[Debug::LATEX] << "Running MakeIndex." << endl;
                if (lfun) {
-                       lfun->dispatch(LFUN_MESSAGE, string(_("Running MakeIndex.")));
+                       lfun->dispatch(FuncRequest(LFUN_MESSAGE, _("Running MakeIndex.")));
                }
 
                rerun = runMakeIndex(OnlyFilename(ChangeExtension(file, ".idx")));
@@ -340,8 +340,7 @@ int LaTeX::run(TeXErrors & terr, LyXFunc * lfun)
                if (lfun) {
                        ostringstream str;
                        str << _("LaTeX run number") << ' ' << count;
-                       // check lyxstring string stream and gcc 3.1 before fixing
-                       lfun->dispatch(LFUN_MESSAGE, string(str.str().c_str()));
+                       lfun->dispatch(FuncRequest(LFUN_MESSAGE, str.str().c_str()));
                }
 
                this->operator()();
@@ -432,7 +431,7 @@ void LaTeX::scanAuxFile(string const & file, Aux_Info & aux_info)
        regex reg4("\\\\@input\\{([^}]+)\\}");
 
        while (getline(ifs, token)) {
-               token = strip(token, '\r');
+               token = rtrim(token, "\r");
                smatch sub;
                if (regex_match(token, sub, reg1)) {
                        string data = sub[1];
@@ -681,7 +680,7 @@ void LaTeX::deplog(DepTable & head)
                string foundfile;
                string token;
                getline(ifs, token);
-               token = strip(token, '\r');
+               token = rtrim(token, "\r");
                if (token.empty()) continue;
 
                smatch sub;