# HG changeset patch
# User Michael Stahl <mst@openoffice.org>
# Date 1305133099 0
# Node ID 5f3049fd2415309a2ccdca17190e0a879f97a589
# Parent  44cc21e7bdaa0aa3a9f0d622469301cad7fc94d6
rtftok01: XMLScanner: implement unknown() method

diff --git a/writerfilter/unocomponent/debugservices/rtftok/XMLScanner.cxx b/writerfilter/unocomponent/debugservices/rtftok/XMLScanner.cxx
--- a/writerfilter/unocomponent/debugservices/rtftok/XMLScanner.cxx
+++ b/writerfilter/unocomponent/debugservices/rtftok/XMLScanner.cxx
@@ -119,9 +119,21 @@
         ucharBuffer = "";
     }
 
-    virtual void unknown(char const*const /*token*/, char const*const /*value*/,
-                         bool const /*bStar*/)
+    virtual void unknown(char const*const token, char const*const value,
+                         bool const bStar)
     {
+        clearBuffers();
+        if (bStar)
+        {
+            cout << "<dest name=\"" << token << "\" value=\""<< value
+                 << "\">" << endl;
+            vCloseTags.push_back("</dest>");
+        }
+        else
+        {
+            cout << "<" << token << ">" << value
+                 << "<" << token << "/>" << endl;
+        }
     }
 
     virtual void dest(Token_t const token, char const*const value)
