[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/lib/kotext
From:       David Faure <faure () kde ! org>
Date:       2002-12-09 12:47:38
[Download RAW message or body]

CVS commit by faure: 

Fixed compiler warning, removed some code duplication


  M +4 -12     koAutoFormat.cc   1.118


--- koffice/lib/kotext/koAutoFormat.cc  #1.117:1.118
@@ -676,4 +676,7 @@ QDomElement KoAutoFormat::saveEntry( QDi
                 data.setAttribute("UNDERLINE", "single-bold");
                 break;
+            case KoTextFormat::U_WAVE:
+                data.setAttribute("UNDERLINE", "wave");
+                break;
             case KoTextFormat::U_NONE:
                 data.setAttribute("UNDERLINE", "none");
@@ -701,16 +704,5 @@ QDomElement KoAutoFormat::saveEntry( QDi
         if ( tmp->m_optionsMask & KoSearchContext::Attribute )
         {
-            switch( tmp->m_attribute )
-            {
-            case KoTextFormat::ATT_NONE:
-                data.setAttribute("FONTATTRIBUTE", "none");
-                break;
-            case KoTextFormat::ATT_UPPER:
-                data.setAttribute("FONTATTRIBUTE", "upper");
-                break;
-            case KoTextFormat::ATT_LOWER:
-                data.setAttribute("FONTATTRIBUTE", "lower");
-                break;
-            }
+            data.setAttribute("FONTATTRIBUTE", KoTextFormat::attributeFontToString( \
tmp->m_attribute ) );  }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic