]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formula.C
split inset -> inset + updatableinset
[lyx.git] / src / mathed / formula.C
index 40dbc4afc0fe019d90d824d72f22774d849bb6d0..f903814baa299bad278763d0f7d3299fe342c93b 100644 (file)
@@ -13,9 +13,6 @@
 *   the GNU General Public Licence version 2 or later.
 */
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include <config.h>
 
@@ -142,7 +139,7 @@ int InsetFormula::latex(Buffer const *, ostream & os, bool fragile, bool) const
 
 int InsetFormula::ascii(Buffer const *, ostream & os, int) const
 {
-       if (display()) {
+       if (0 && display()) {
                TextMetricsInfo mi;
                par()->metricsT(mi);
                TextPainter tpain(par()->width(), par()->height());
@@ -264,7 +261,7 @@ void InsetFormula::validate(LaTeXFeatures & features) const
 bool InsetFormula::insetAllowed(Inset::Code code) const
 {
        return
-               (code == Inset::LABEL_CODE)
+                  code == Inset::LABEL_CODE
                || code == Inset::REF_CODE
                || code == Inset::ERT_CODE;
 }
@@ -333,3 +330,4 @@ string const InsetFormula::PreviewImpl::latexString() const
        parent().par_->write(wi);
        return STRCONV(ls.str());
 }
+