Niklas Nebel wrote:
> Loiseleur Michel wrote:
>>     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
>
> What do you mean by "HTML table"? Any HTML file that contains a table?
> Without specifying a filter, those were always loaded into Writer/Web.
    A file which begins with "<table>", eventually "<html><table>" and
close respectively with "</table>" or "</table></html>".
    Those kind of files are already well parsed and displayed in Calc.
The problem is just on the file detection.

>
>>     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) );
>>        }
>
> In that code, pFilterHtml and pFilterHtmlWeb are the two filters for
> loading HTML files into Calc (normal HTML and WebQuery). Loading into
> Writer/Web is done without executing any Calc filter detection code.
Damn ! I have to hack into swdetector.cxx ?


Thanks for your reply,


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