]> git.lyx.org Git - features.git/blobdiff - src/BufferParams.cpp
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[features.git] / src / BufferParams.cpp
index 01fbfb0a457cf01dc65966e45ce492cd7aa365a9..33e8a08963a61a82a252aff18d9415fe031143b3 100644 (file)
@@ -277,7 +277,6 @@ public:
 
        AuthorList authorlist;
        BranchList branchlist;
-       vector<string> extraEmbeddedFiles;
        Bullet temp_bullets[4];
        Bullet user_defined_bullets[4];
        Spacing spacing;
@@ -351,7 +350,6 @@ BufferParams::BufferParams()
        listings_params = string();
        pagestyle = "default";
        compressed = false;
-       embedded = lyxrc.use_bundled_format;
        for (int iter = 0; iter < 4; ++iter) {
                user_defined_bullet(iter) = ITEMIZE_DEFAULTS[iter];
                temp_bullet(iter) = ITEMIZE_DEFAULTS[iter];
@@ -378,18 +376,6 @@ AuthorList const & BufferParams::authors() const
 }
 
 
-vector<string> & BufferParams::extraEmbeddedFiles()
-{
-       return pimpl_->extraEmbeddedFiles;
-}
-
-
-vector<string> const & BufferParams::extraEmbeddedFiles() const
-{
-       return pimpl_->extraEmbeddedFiles;
-}
-
-
 BranchList & BufferParams::branchlist()
 {
        return pimpl_->branchlist;
@@ -467,7 +453,7 @@ void BufferParams::setDefSkip(VSpace const & vs)
 
 
 string BufferParams::readToken(Lexer & lex, string const & token,
-       FileName const & filepath, FileName const & temppath)
+       FileName const & filepath)
 {
        if (token == "\\textclass") {
                lex.next();
@@ -476,8 +462,6 @@ string BufferParams::readToken(Lexer & lex, string const & token,
                // NOTE: in this case, the textclass (.cls file) is assumed to be available.
                string tcp;
                LayoutFileList & bcl = LayoutFileList::get();
-               if (!temppath.empty())
-                       tcp = bcl.addLayoutFile(classname, temppath.absFilename(), LayoutFileList::Embedded);
                if (tcp.empty() && !filepath.empty())
                        tcp = bcl.addLayoutFile(classname, filepath.absFilename(), LayoutFileList::Local);
                if (!tcp.empty())
@@ -673,16 +657,6 @@ string BufferParams::readToken(Lexer & lex, string const & token,
                                toktmp << endl;
                        return toktmp;
                }
-       } else if (token == "\\extra_embedded_files") {
-               extraEmbeddedFiles().clear();
-               string par;
-               lex >> par;
-               string tmp;
-               par = split(par, tmp, ',');
-               while (!tmp.empty()) {
-                       extraEmbeddedFiles().push_back(tmp);
-                       par = split(par, tmp, ',');
-               }
        } else {
                lyxerr << "BufferParams::readToken(): Unknown token: " << 
                        token << endl;