Hi devs, To be clear about what a "frame" means in OOo please have a look at following screenshots:
http://i39.tinypic.com/293aptt.png http://i41.tinypic.com/259fnfq.jpg The problem with these frames is that OOo server generates html like below: <code> <SPAN ID="Frame1" DIR="LTR" STYLE="float: left; width: 3.09in; height: 3.8in; border: 1px solid #000000; padding: 0.06in; background: #ffffff"> <P CLASS="frame-contents">Hello, This is a frame as it is called on openoffice writer.</P> <P CLASS="frame-contents"><BR><BR> </P> <P CLASS="frame-contents">We have a problem with importing documents that contain this sort of frames.</P> <P CLASS="frame-contents"><BR><BR> </P> <P CLASS="frame-contents">This is the last paragraph</P> </SPAN> <code> Let's forget the fact that it should be a <div> instead of a <span> for the moment. But even if we convert it to a <div>, with our style filtering approach this kind of frames are filtered out (because the frame is made out of a style). So, the first question is, should these "frames" be filtered in "filter styles" mode? I think they should not be filtered because it is same as if we filter tables with "filter styles" mode. If they should not be filtered completely, what should be the output under "filter styles" mode? I can think of two outputs: <code> <DIV STYLE="float: left; border: 1px solid #000000;"> <P CLASS="frame-contents">Hello, This is a frame as it is called on openoffice writer.</P> <P CLASS="frame-contents"><BR><BR> </P> <P CLASS="frame-contents">We have a problem with importing documents that contain this sort of frames.</P> <P CLASS="frame-contents"><BR><BR> </P> <P CLASS="frame-contents">This is the last paragraph</P> </DIV> <code> Height & Width are removed because when styles are filtered fonts sizes change and the size of the box might not be enough for the content to fit in. The other output we can have is: <code> <table> <tr> <td> <P CLASS="frame-contents">Hello, This is a frame as it is called on openoffice writer.</P> <P CLASS="frame-contents"><BR><BR> </P> <P CLASS="frame-contents">We have a problem with importing documents that contain this sort of frames.</P> <P CLASS="frame-contents"><BR><BR> </P> <P CLASS="frame-contents">This is the last paragraph</P> </td> </tr> </table> <code> So it becomes a single cell table, problem solved. So, wdyt? Thanks. - Asiri _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

