]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.C
Minor code shuffle.
[lyx.git] / src / LaTeXFeatures.C
index b4030a9fe82b54521c2be80aa091c625819e0bb3..b291666dc27b6ab45c6de470f0390e0678d2b0b6 100644 (file)
@@ -1,11 +1,10 @@
-// -*- C++ -*-
 /* This file is part of
  * ====================================================== 
  * 
  *           LyX, The Document Processor
  *        
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 the LyX Team.
+ *           Copyright 1995-2001 the LyX Team.
  *
  * ====================================================== */
 
@@ -40,7 +39,7 @@ LaTeXFeatures::LaTeXFeatures(BufferParams const & p, LyXTextClass::size_type n)
        makeidx = false;
        verbatim = false;
        longtable = false;
-       algorithm = false;
+       //algorithm = false;
        rotating = false;
        amssymb = false;
        latexsym = false;
@@ -72,7 +71,7 @@ LaTeXFeatures::LaTeXFeatures(BufferParams const & p, LyXTextClass::size_type n)
        boldsymbol = false;
     
        // special features
-       LyXParagraphIndent = false;
+       ParagraphIndent = false;
        NeedLyXFootnoteCode = false;
        NeedLyXMinipageIndent = false;
 }
@@ -95,8 +94,8 @@ void LaTeXFeatures::require(string const & name)
                verbatim = true;
        } else if (name == "longtable") {
                longtable = true;
-       } else if (name == "algorithm") {
-               algorithm = true;
+       //} else if (name == "algorithm") {
+       //algorithm = true;
        } else if (name == "rotating") {
                rotating = true;
        } else if (name == "amssymb") {
@@ -182,9 +181,9 @@ string const LaTeXFeatures::getPackages() const
        if (verbatim)
                packages << "\\usepackage{verbatim}\n";
 
-       if (algorithm) {
-               packages << "\\usepackage{algorithm}\n";
-       }
+       //if (algorithm) {
+       //      packages << "\\usepackage{algorithm}\n";
+       //}
 
        // lyxchess.sty
        if (chess) {
@@ -322,7 +321,7 @@ string const LaTeXFeatures::getMacros() const
        // other
         if (NeedLyXMinipageIndent) 
                macros << minipageindent_def;
-        if (LyXParagraphIndent) 
+        if (ParagraphIndent) 
                macros << paragraphindent_def;
         if (NeedLyXFootnoteCode) 
                macros << floatingfootnote_def;
@@ -391,7 +390,7 @@ BufferParams const & LaTeXFeatures::bufferParams() const
 }
 
 
-void LaTeXFeatures::getFloatDefinitions(ostream & os) const
+void LaTeXFeatures::getFloatDefinitions(std::ostream & os) const
 {
        // Here we will output the code to create the needed float styles.
        // We will try to do this as minimal as possible.