ProjectWeb/Documentation/source/Plugin_Project_Web.ProjectWeb.Html5ToCss3Converter.html

Mon, 16 Mar 2015 19:41:53 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 16 Mar 2015 19:41:53 +0100
changeset 7
e6fbd4a7484d
child 30
38092622e612
permissions
-rw-r--r--

Some small corrections, added source docu, translations and the other supporting files.

<!DOCTYPE html>
<html><head>
<title>Plugin_Project_Web.ProjectWeb.Html5ToCss3Converter</title>
<meta charset="UTF-8">
<style>
body {
    background: #EDECE6;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #85774A; }
h2 { color: white; background: #85774A; }
h3 { color: white; background: #9D936E; }
h4 { color: white; background: #9D936E; }
    
a { color: #BA6D36; }

</style>
</head>
<body><a NAME="top" ID="top"></a>
<h1>Plugin_Project_Web.ProjectWeb.Html5ToCss3Converter</h1>
<p>
Module implementing the HTML5 to CSS3 converter.
</p>
<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>
<table>
<tr>
<td><a href="#Html5ToCss3Converter">Html5ToCss3Converter</a></td>
<td>Class implementing the HTML5 to CSS3 converter.</td>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>
<hr /><hr />
<a NAME="Html5ToCss3Converter" ID="Html5ToCss3Converter"></a>
<h2>Html5ToCss3Converter</h2>
<p>
    Class implementing the HTML5 to CSS3 converter.
</p>
<h3>Derived from</h3>
QObject
<h3>Class Attributes</h3>
<table>
<tr><td>CssTemplate7</td></tr><tr><td>CssTemplate8</td></tr><tr><td>Placeholders</td></tr><tr><td>TagsToIgnore</td></tr>
</table>
<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>
<table>
<tr>
<td><a href="#Html5ToCss3Converter.__init__">Html5ToCss3Converter</a></td>
<td>Constructor</td>
</tr><tr>
<td><a href="#Html5ToCss3Converter.__createSoup">__createSoup</a></td>
<td>Private method to get a BeaitifulSoup object with our HTML text.</td>
</tr><tr>
<td><a href="#Html5ToCss3Converter.__getClasses">__getClasses</a></td>
<td>Private method to extract all classes of the HTML text.</td>
</tr><tr>
<td><a href="#Html5ToCss3Converter.__getIds">__getIds</a></td>
<td>Private method to extract all IDs of the HTML text.</td>
</tr><tr>
<td><a href="#Html5ToCss3Converter.__getTags">__getTags</a></td>
<td>Private method to extract all tags of the HTML text.</td>
</tr><tr>
<td><a href="#Html5ToCss3Converter.getCss3">getCss3</a></td>
<td>Public method to get the converted CSS3 text.</td>
</tr>
</table>
<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<a NAME="Html5ToCss3Converter.__init__" ID="Html5ToCss3Converter.__init__"></a>
<h4>Html5ToCss3Converter (Constructor)</h4>
<b>Html5ToCss3Converter</b>(<i>html, parent=None</i>)
<p>
        Constructor
</p><dl>
<dt><i>html</i></dt>
<dd>
HTML text to be converted (string)
</dd><dt><i>parent</i></dt>
<dd>
reference to the parent object (QObject)
</dd>
</dl><a NAME="Html5ToCss3Converter.__createSoup" ID="Html5ToCss3Converter.__createSoup"></a>
<h4>Html5ToCss3Converter.__createSoup</h4>
<b>__createSoup</b>(<i></i>)
<p>
        Private method to get a BeaitifulSoup object with our HTML text.
</p><a NAME="Html5ToCss3Converter.__getClasses" ID="Html5ToCss3Converter.__getClasses"></a>
<h4>Html5ToCss3Converter.__getClasses</h4>
<b>__getClasses</b>(<i></i>)
<p>
        Private method to extract all classes of the HTML text.
</p><dl>
<dt>Returns:</dt>
<dd>
list of tuples containing the tag name and its classes
            as a blank separated string (list of tuples of two strings)
</dd>
</dl><a NAME="Html5ToCss3Converter.__getIds" ID="Html5ToCss3Converter.__getIds"></a>
<h4>Html5ToCss3Converter.__getIds</h4>
<b>__getIds</b>(<i></i>)
<p>
        Private method to extract all IDs of the HTML text.
</p><dl>
<dt>Returns:</dt>
<dd>
list of tuples containing the tag name and its ID
            (list of tuples of two strings)
</dd>
</dl><a NAME="Html5ToCss3Converter.__getTags" ID="Html5ToCss3Converter.__getTags"></a>
<h4>Html5ToCss3Converter.__getTags</h4>
<b>__getTags</b>(<i></i>)
<p>
        Private method to extract all tags of the HTML text.
</p><dl>
<dt>Returns:</dt>
<dd>
list of all tags (list of strings)
</dd>
</dl><a NAME="Html5ToCss3Converter.getCss3" ID="Html5ToCss3Converter.getCss3"></a>
<h4>Html5ToCss3Converter.getCss3</h4>
<b>getCss3</b>(<i></i>)
<p>
        Public method to get the converted CSS3 text.
</p><dl>
<dt>Returns:</dt>
<dd>
CSS3 text (string)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial