HTMLWorker CSS Style Unsupported Operations

View: New views
2 Messages — Rating Filter:   Alert me  

HTMLWorker CSS Style Unsupported Operations

by MooMaster :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Looking through the source of HTMLWorker, there seem to be a bunch of unsupported operations.  For example, and earlier post to the mailing list mentioned table columns. This blog post has a section for adding support for background color and border color. Yet there are many CSS elements in Markup that are supported, such as CSS_KEY_PADDING, etc etc, as I'm running into now.

How would one add support for padding to the public static void InsertStyle(Hashtable h, ChainedProperties cprops) method? Here's what I got:


else if (key.Equals(Markup.CSS_KEY_PADDING))
                {
                    h[ElementTags.] = ss;  
                }

Which element tag best corresponds to padding? I notice

else if (key.Equals(Markup.CSS_KEY_PADDINGLEFT)) {
                    h[ElementTags.INDENT] = ss;
                }

But that makes sense for left...what about for top, right, and bottom?
   

Re: HTMLWorker CSS Style Unsupported Operations

by tommyp :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Did you ever work out a solution for this? I'm facing the exact same issue now.

Thanks
>Tommy

MooMaster wrote:
Looking through the source of HTMLWorker, there seem to be a bunch of unsupported operations.  For example, and earlier post to the mailing list mentioned table columns. This blog post has a section for adding support for background color and border color. Yet there are many CSS elements in Markup that are supported, such as CSS_KEY_PADDING, etc etc, as I'm running into now.

How would one add support for padding to the public static void InsertStyle(Hashtable h, ChainedProperties cprops) method? Here's what I got:


else if (key.Equals(Markup.CSS_KEY_PADDING))
                {
                    h[ElementTags.] = ss;  
                }

Which element tag best corresponds to padding? I notice

else if (key.Equals(Markup.CSS_KEY_PADDINGLEFT)) {
                    h[ElementTags.INDENT] = ss;
                }

But that makes sense for left...what about for top, right, and bottom?