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?

On my 18 month old, low-end dual-core Athlon machine it takes ~4 hours to build from scratch. If you have a dual-core machine, add the line

setenv MAXPROCESS 2

to LinuxX86Env.Set (or the equivalent command to LinuxX86Env.Set.sh if you are building using bash) to take advantage of both cores.

I suspect that having a large amount of RAM helps - Linux uses free RAM to cache disk data.

The best way to further reduce build time is to specify the --disable-binfilter option when running configure - this reduces the build time by 1 hour on my machine.

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.

Having recently tried adding a feature to the CSS import code for Writer, and finding it didn't have any effect, I would be interested in an answer to this too. I came to the conclusion that CSS style import was not currently supported.

Martin

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

Reply via email to