]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfont.C
mathed31.diff
[lyx.git] / src / lyxfont.C
index 0c783cb148bad8df1807953eb39bfb8ba778e03a..068f76252f0c386778c19902598c0f0f2c898bd6 100644 (file)
@@ -192,7 +192,7 @@ LyXFont & LyXFont::decSize()
 /// Increases font size by one
 LyXFont & LyXFont::incSize() 
 {
-       switch(size()) {
+       switch (size()) {
        case SIZE_HUGER:        break;
        case SIZE_HUGE:         setSize(SIZE_HUGER);    break;
        case SIZE_LARGEST:      setSize(SIZE_HUGE);     break;
@@ -245,7 +245,7 @@ LyXFont::FONT_MISC_STATE LyXFont::setMisc(FONT_MISC_STATE newfont,
 void LyXFont::update(LyXFont const & newfont,
                     Language const * document_language, bool toggleall)
 {
-       if(newfont.family() == family() && toggleall)
+       if (newfont.family() == family() && toggleall)
                setFamily(INHERIT_FAMILY); // toggle 'back'
        else if (newfont.family() != IGNORE_FAMILY)
                setFamily(newfont.family());
@@ -268,7 +268,7 @@ void LyXFont::update(LyXFont const & newfont,
                break;
        }
 
-       if(newfont.shape() == shape() && toggleall)
+       if (newfont.shape() == shape() && toggleall)
                setShape(INHERIT_SHAPE); // toggle 'back'
        else if (newfont.shape() != IGNORE_SHAPE)
                setShape(newfont.shape());
@@ -408,7 +408,7 @@ string const LyXFont::stateText(BufferParams * params) const
        if (bits == inherit)
                ost << _("Default") << ", ";
        if (!params || (language() != params->language))
-               ost << _("Language: ") << _(language()->display().c_str()) << ", ";
+               ost << _("Language: ") << _(language()->display()) << ", ";
        if (number() != OFF)
                ost << _("  Number ") << _(GUIMiscNames[number()]);
 
@@ -504,18 +504,6 @@ LyXFont & LyXFont::setLyXColor(string const & col)
 }
 
 
-/// Sets size after GUI name
-LyXFont & LyXFont::setGUISize(string const & siz)
-{
-       // CHECK this might be wrong.
-       /// ??????
-       // this is how it was how it was done in the lyx repository...
-       // but this does not make sense.
-       setColor(lcolor.getFromGUIName(siz));
-       return *this;
-}
-
-
 // Returns size in latex format
 string const LyXFont::latexSize() const
 {