Hello,

    I have opened an issue on a regression betwen OOo 1.x and OOo 2.x.
http://www.openoffice.org/issues/show_bug.cgi?id=69081

    I try to correct it myself, but it's my first time, so please excuse
me if I forget some rules. I have already located the location where I
can put the fix.
    In /sc/source/ui/unoobj/scdetector.cxx:757, there is something like
this :
     if ( HTMLParser::IsHTMLFormat( aHeader.GetBuffer() ) )
        {
           // test for HTML
           if ( pPreselectedFilter->GetName().EqualsAscii(pFilterHtml) )
               pFilter = pPreselectedFilter;
           else
              pFilter = aMatcher.GetFilter4FilterName(
String::CreateFromAscii(pFilterHtmlWeb) );
          }

    I intend to implement something which looks like that, in the same
file :
     if ( HTMLParser::IsHTMLFormat( aHeader.GetBuffer() ) )
       {
         if (HTMLParser::IsHTMLTable( aHeader.GetBuffer() ))
            pFilter = aMatcher.GetFilter4FilterName(
String::CreateFromAscii(pFilterHtml) );
         else
            pFilter = aMatcher.GetFilter4FilterName(
String::CreateFromAscii(pFilterHtmlWeb) );
       }

And to implement the the method "HTMLParser::IsHTMLTable" in
svtools/source/svhtml/parhtml.*


    I will begin to code this afternoon (in 5 hours), so here are the
questions :
1) you have until this time to stop me for making a big mistake.
2) Will the "pFilterHtml" be enough to launch Calc for html table ?


Regards,

-- 
Loiseleur Michel - TM2L (08000LINUX)
27, rue de Berri
75008 PARIS
Tél/Fax : 01 58 18 68 28 / 01 58 18 68 29
"Si hoc legere scis nimium eruditionis habes"

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to