]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlayout.C
I reactivate the code to resize the InsetText on a resize event of the main
[lyx.git] / src / lyxlayout.C
index 55e2cf0622ce334115c3fd4c9e269dc00d7a7684..0fd63445cc3e80c19d84a4b21ec0b8e799253bb2 100644 (file)
@@ -180,20 +180,19 @@ bool LyXLayout::Read (LyXLex & lexrc, LyXTextClass const & tclass)
 
                case LT_COPYSTYLE:     // initialize with a known style
                        if (lexrc.next()) {
-                               string const style = lowercase(lexrc.getString());
+                               string const style = lexrc.getString();
                        
                                if (tclass.hasLayout(style)) {
-                                       string const tmpname = lowercase(name_);
+                                       string const tmpname = name_;
                                        this->operator=(tclass[style]);
-                                       name_ = lowercase(tmpname);
+                                       name_ = tmpname;
                                } else {
                                        lyxerr << "Cannot copy unknown style `" << style << "'" << endl;
                                        LyXTextClass::const_iterator it = tclass.begin();
                                        LyXTextClass::const_iterator end = tclass.end();
                                        lyxerr << "All layouts so far:" << endl;
                                        for (; it != end; ++it) {
-                                               //lyxerr << it->name() << endl;
-                                               fprintf(stderr, "%s\n", it->name().c_str());
+                                               lyxerr << it->name() << endl;
                                        }
                                        
                                        //lexrc.printError("Cannot copy known "
@@ -204,7 +203,7 @@ bool LyXLayout::Read (LyXLex & lexrc, LyXTextClass const & tclass)
 
                case LT_OBSOLETEDBY:     // replace with a known style
                        if (lexrc.next()) {
-                               string const style = lowercase(lexrc.getString());
+                               string const style = lexrc.getString();
                                
                                if (tclass.hasLayout(style)) {
                                        string const tmpname = name_;
@@ -737,21 +736,17 @@ void LyXLayout::readSpacing(LyXLex & lexrc)
 
 string const & LyXLayout::name() const
 {
-       static string name_t;
-       name_t = lowercase(name_);
-       return name_t;
+       return name_;
 }
 
 
 void LyXLayout::setName(string const & n)
 {
-       name_ = lowercase(n);
+       name_ = n;
 }
 
 
 string const & LyXLayout::obsoleted_by() const
 {
-       static string obsoleted_by_t;
-       obsoleted_by_t = lowercase(obsoleted_by_);
-       return obsoleted_by_t;
+       return obsoleted_by_;
 }