change html to xml in funcions names
[mdictionary] / src / plugins / xdxf / TranslationXdxf.cpp
index 0bd9718..fe228b5 100644 (file)
@@ -28,7 +28,6 @@
 
 TranslationXdxf::TranslationXdxf():_key(""),_dictionaryInfo("") {
     xdxfPlugin=0;
-//   qDebug()<<"\n\n create translaton Xdxf\n\n";
 }
 
 TranslationXdxf::TranslationXdxf(QString _key, QString _dictionaryInfo,
@@ -37,31 +36,23 @@ TranslationXdxf::TranslationXdxf(QString _key, QString _dictionaryInfo,
     if(xdxfPlugin)
         _dictHash = xdxfPlugin->hash();
     _bookmark=0;
-
-//    qDebug()<<"create translaton Xdxf";
 }
 
-TranslationXdxf::~TranslationXdxf() {
-//    qDebug()<<"delete translation:: Xdxf";
-}
 
 QString TranslationXdxf::key() const {
     return _key;
 }
 
-QString TranslationXdxf::dictionaryInfo() const {
-    return _dictionaryInfo;
-}
-
-QString TranslationXdxf::toHtml() const { 
+QString TranslationXdxf::toXml() const { 
     QString result("");
     if(!xdxfPlugin)
         return result;
-    result=result + "<dict>" + "<info";
+
+    result=result + "<dict> <info path=\"/usr/share/mdictionary/xdxf.png\" ";
     if(isBookmark())
-        result+= " bookmark=\"true\" ";
+        result+= " bookmark=\"true\" > \n";
     else
-        result+= " bookmark=\"false\" ";
+        result+= " bookmark=\"false\" > \n";
     result+= _dictionaryInfo + "</info>" + xdxfPlugin->search(_key) + "</dict>";
     return result.replace("&","&amp;");
 }