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? > > 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. > > == 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. > > Any pointers or help would be much appreciated. > > Thanks, > Nathan > > -- > <><><><><><><><><><><><><><><> > "Even if you are on the right track, you'll get run over if you just sit > there" - Will Rogers >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
