C# 클래스 ContentFiltering.Html.CSSUtil

Provides static methods for working with CSS.
파일 보기 프로젝트 열기: xwiki-contrib/xwiki-office 1 사용 예제들

공개 메소드들

메소드 설명
ConvertInlineStylesToCssClasses ( XmlNode xnode, XmlDocument &xmlDoc, int &counter, Hashtable &cssClasses ) : XmlNode

Extracts inline styles and replaces them with CSS classes.

GroupCSSSelectors ( Hashtable existingCSSSelectors ) : Hashtable

Groups CSS selectors (CSS classes and ids) with the same properties to minify the generated CSS content.

InlineCSS ( XmlDocument &xmlDoc ) : void

Inlines CSS for nodes with an id and/or class attribute.

비공개 메소드들

메소드 설명
CleanCSSProperties ( string style ) : string

Cleans CSS properties by allowing only valid properties.

ExtractCSSClassesAndIDs ( XmlDocument &xmlDoc ) : Hashtable

Extracts and removes the CSS classes and ids from the 'style' nodes. Deletes all the style nodes and creates a new one with unparsed CSS.

ExtractStyle ( XmlNode &node, XmlDocument &xmlDoc, int &counter, Hashtable &cssClasses ) : void

Extracts inline style from an XmlNode to a CSS class. Adds new CSS class to 'class' property of the node.

RemoveXOfficeCSSClasses ( XmlNode &node ) : void

Removes previous XOffice CSS classes from an XmlNode.

메소드 상세

ConvertInlineStylesToCssClasses() 공개 정적인 메소드

Extracts inline styles and replaces them with CSS classes.
public static ConvertInlineStylesToCssClasses ( XmlNode xnode, XmlDocument &xmlDoc, int &counter, Hashtable &cssClasses ) : XmlNode
xnode System.Xml.XmlNode Node to filter
xmlDoc System.Xml.XmlDocument A reference to the XmlDocument.
counter int
cssClasses System.Collections.Hashtable
리턴 System.Xml.XmlNode

GroupCSSSelectors() 공개 정적인 메소드

Groups CSS selectors (CSS classes and ids) with the same properties to minify the generated CSS content.
public static GroupCSSSelectors ( Hashtable existingCSSSelectors ) : Hashtable
existingCSSSelectors System.Collections.Hashtable
리턴 System.Collections.Hashtable

InlineCSS() 공개 정적인 메소드

Inlines CSS for nodes with an id and/or class attribute.
public static InlineCSS ( XmlDocument &xmlDoc ) : void
xmlDoc System.Xml.XmlDocument A reference to an XmlDocument.
리턴 void