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

List:       kde-commits
Subject:    kdeaddons/konq-plugins/kimgalleryplugin
From:       Dirk Mueller <mueller () kde ! org>
Date:       2003-03-24 0:08:49
[Download RAW message or body]

CVS commit by mueller: 

XHTML corrections
CCMAIL: 56292-done@bugs.kde.org


  M +6 -5      imgalleryplugin.cpp   1.41


--- kdeaddons/konq-plugins/kimgalleryplugin/imgalleryplugin.cpp  #1.40:1.41
@@ -118,6 +118,6 @@ void KImGalleryPlugin::createHead(QTextS
 
   if (m_configDlg->generateXHTML()) {
-    stream << "<?xml version=\"1.0\" charset=\"" +  chsetName + "\" ?>" << endl;
-    stream << "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \
\"DTD/xhtml1-strict.dtd\">" << endl; +    stream << "<?xml version=\"1.0\" \
encoding=\"" +  chsetName + "\" ?>" << endl; +    stream << "<!DOCTYPE html PUBLIC \
\"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">" << \
endl;  stream << "<html xmlns=\"http://www.w3.org/1999/xhtml\">" << endl;
   } else {
@@ -139,11 +139,12 @@ void KImGalleryPlugin::createCSSSection(
   //adding a touch of style
   stream << "<style type='text/css'>\n";
-  stream << "<!--BODY {color: " << foregroundColor << "; background: " << \
backgroundColor << ";" << endl; +  stream << "BODY {color: " << foregroundColor << "; \
background: " << backgroundColor << ";" << endl;  stream << "          font-family: " \
                << m_configDlg->getFontName() << ", sans-serif;" << endl;
-  stream << "          font-size: " << m_configDlg->getFontSize() << "pt; margin: \
8%};" << endl; +  stream << "          font-size: " << m_configDlg->getFontSize() << \
"pt; margin: 8%; }" << endl;  stream << "H1       {color: " << foregroundColor << \
";}" << endl;  stream << "TABLE    {margin-left: auto; margin-right: auto;}" << endl;
   stream << "TD       { color: " << foregroundColor << "; padding: 1em}" << endl;
-  stream << "--></style>" << endl;
+  stream << "IMG      { border: 1px solid " << foregroundColor << "; }" << endl;
+  stream << "</style>" << endl;
 }
 


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

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