Hi Nathan, Nathan Buchanan wrote:
> This didn't seem to show up on the mailing list, so I'll try again. > > On Sun, May 11, 2008 at 3:48 AM, Nathan Buchanan <[EMAIL PROTECTED]> wrote: > >> Hello! >> >> I have a html document where most of the style is defined using css styles >> in the <style> section. When I try to import the document I encounter a >> problem. The styles defined in html tags are accepted, but those same >> styles are not always accepted when defined in the <style> section of the >> document. >> >> I would like to solve this problem, but have no experience with the >> OpenOffice code base. I was hoping someone could point me in the right >> direction and provide guidance. I have identified that the code in question >> is in sw/source/filter/html/ . I have also checked out the code and am going >> to try building it (Kubuntu)(I checked out all of OpenOffice2, which >> apparently should take 12 hours to build :( ). Is it possible to compile a >> smaller subset of the checkout and still get something runnable? It is possible to save some build time using a "Solver" tarball containing precompiled binaries but IMHO it's better to do the whole build once and then only rebuild the changed files. I wonder about the 12 hours - what is your hardware? >> After taking a short look at the files, I have been unable to find the >> entry point. How does this code get used? Where is a new class of >> SwHTMLParser (is it?) get created and called? I'm hoping that I should be >> able to find a starting place and trace through it from there. If anyone >> could give me a 5 second overview of this part of the code, that would much >> appreciated. The SwHTMLParser is created in sw/source/filter/html/swhtml.cxx in the method HTMLReader::Read(). Our expert for the HTML filter is Michael Brauer who nowadays is working on XML and ODF, so he most probably doesn't read this list regularly and I cc:ed him now. >> >> == Test Case == >> >> I have attached a small test case to illustrate the problem. The original >> html file was generated with OpenOffice 2.4 and modified slightly to apply >> the bold style to the last paragraph through the <style> tag. Both >> documents should have a frame (aligned on the right). >> >> test_no_css.html : has the frame's style defined in the <span> tag. This >> works perfectly. >> >> test_css.html : has the style defined in the <style> section. In >> this document, we can see that Writer completely ignores the fact that there >> is a frame there. The text is simply placed above the first paragraph. We >> also note that the final paragraph is still interpreted, correctly, as bold >> through the <style> section. It seems that your attachments didn't make it through. Perhaps you can create an issue in our Issue Tracker and attach your files. Regards, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[EMAIL PROTECTED]". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
