16 |
16 |
17 a { color: #BA6D36; } |
17 a { color: #BA6D36; } |
18 |
18 |
19 </style> |
19 </style> |
20 </head> |
20 </head> |
21 <body><a NAME="top" ID="top"></a> |
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
22 <h1>Plugin_Project_Web.ProjectWeb.Html5ToCss3Converter</h1> |
23 <h1>Plugin_Project_Web.ProjectWeb.Html5ToCss3Converter</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing the HTML5 to CSS3 converter. |
26 Module implementing the HTML5 to CSS3 converter. |
25 </p> |
27 </p> |
26 <h3>Global Attributes</h3> |
28 <h3>Global Attributes</h3> |
|
29 |
27 <table> |
30 <table> |
28 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
29 </table> |
32 </table> |
30 <h3>Classes</h3> |
33 <h3>Classes</h3> |
|
34 |
31 <table> |
35 <table> |
|
36 |
32 <tr> |
37 <tr> |
33 <td><a href="#Html5ToCss3Converter">Html5ToCss3Converter</a></td> |
38 <td><a href="#Html5ToCss3Converter">Html5ToCss3Converter</a></td> |
34 <td>Class implementing the HTML5 to CSS3 converter.</td> |
39 <td>Class implementing the HTML5 to CSS3 converter.</td> |
35 </tr> |
40 </tr> |
36 </table> |
41 </table> |
37 <h3>Functions</h3> |
42 <h3>Functions</h3> |
|
43 |
38 <table> |
44 <table> |
39 <tr><td>None</td></tr> |
45 <tr><td>None</td></tr> |
40 </table> |
46 </table> |
41 <hr /><hr /> |
47 <hr /> |
|
48 <hr /> |
42 <a NAME="Html5ToCss3Converter" ID="Html5ToCss3Converter"></a> |
49 <a NAME="Html5ToCss3Converter" ID="Html5ToCss3Converter"></a> |
43 <h2>Html5ToCss3Converter</h2> |
50 <h2>Html5ToCss3Converter</h2> |
|
51 |
44 <p> |
52 <p> |
45 Class implementing the HTML5 to CSS3 converter. |
53 Class implementing the HTML5 to CSS3 converter. |
46 </p> |
54 </p> |
47 <h3>Derived from</h3> |
55 <h3>Derived from</h3> |
48 QObject |
56 QObject |
49 <h3>Class Attributes</h3> |
57 <h3>Class Attributes</h3> |
|
58 |
50 <table> |
59 <table> |
51 <tr><td>CssTemplate7</td></tr><tr><td>CssTemplate8</td></tr><tr><td>Placeholders</td></tr><tr><td>TagsToIgnore</td></tr> |
60 <tr><td>CssTemplate7</td></tr><tr><td>CssTemplate8</td></tr><tr><td>Placeholders</td></tr><tr><td>TagsToIgnore</td></tr> |
52 </table> |
61 </table> |
53 <h3>Class Methods</h3> |
62 <h3>Class Methods</h3> |
|
63 |
54 <table> |
64 <table> |
55 <tr><td>None</td></tr> |
65 <tr><td>None</td></tr> |
56 </table> |
66 </table> |
57 <h3>Methods</h3> |
67 <h3>Methods</h3> |
|
68 |
58 <table> |
69 <table> |
|
70 |
59 <tr> |
71 <tr> |
60 <td><a href="#Html5ToCss3Converter.__init__">Html5ToCss3Converter</a></td> |
72 <td><a href="#Html5ToCss3Converter.__init__">Html5ToCss3Converter</a></td> |
61 <td>Constructor</td> |
73 <td>Constructor</td> |
62 </tr><tr> |
74 </tr> |
|
75 <tr> |
63 <td><a href="#Html5ToCss3Converter.__createSoup">__createSoup</a></td> |
76 <td><a href="#Html5ToCss3Converter.__createSoup">__createSoup</a></td> |
64 <td>Private method to get a BeaitifulSoup object with our HTML text.</td> |
77 <td>Private method to get a BeaitifulSoup object with our HTML text.</td> |
65 </tr><tr> |
78 </tr> |
|
79 <tr> |
66 <td><a href="#Html5ToCss3Converter.__getClasses">__getClasses</a></td> |
80 <td><a href="#Html5ToCss3Converter.__getClasses">__getClasses</a></td> |
67 <td>Private method to extract all classes of the HTML text.</td> |
81 <td>Private method to extract all classes of the HTML text.</td> |
68 </tr><tr> |
82 </tr> |
|
83 <tr> |
69 <td><a href="#Html5ToCss3Converter.__getIds">__getIds</a></td> |
84 <td><a href="#Html5ToCss3Converter.__getIds">__getIds</a></td> |
70 <td>Private method to extract all IDs of the HTML text.</td> |
85 <td>Private method to extract all IDs of the HTML text.</td> |
71 </tr><tr> |
86 </tr> |
|
87 <tr> |
72 <td><a href="#Html5ToCss3Converter.__getTags">__getTags</a></td> |
88 <td><a href="#Html5ToCss3Converter.__getTags">__getTags</a></td> |
73 <td>Private method to extract all tags of the HTML text.</td> |
89 <td>Private method to extract all tags of the HTML text.</td> |
74 </tr><tr> |
90 </tr> |
|
91 <tr> |
75 <td><a href="#Html5ToCss3Converter.getCss3">getCss3</a></td> |
92 <td><a href="#Html5ToCss3Converter.getCss3">getCss3</a></td> |
76 <td>Public method to get the converted CSS3 text.</td> |
93 <td>Public method to get the converted CSS3 text.</td> |
77 </tr> |
94 </tr> |
78 </table> |
95 </table> |
79 <h3>Static Methods</h3> |
96 <h3>Static Methods</h3> |
|
97 |
80 <table> |
98 <table> |
81 <tr><td>None</td></tr> |
99 <tr><td>None</td></tr> |
82 </table> |
100 </table> |
|
101 |
83 <a NAME="Html5ToCss3Converter.__init__" ID="Html5ToCss3Converter.__init__"></a> |
102 <a NAME="Html5ToCss3Converter.__init__" ID="Html5ToCss3Converter.__init__"></a> |
84 <h4>Html5ToCss3Converter (Constructor)</h4> |
103 <h4>Html5ToCss3Converter (Constructor)</h4> |
85 <b>Html5ToCss3Converter</b>(<i>html, parent=None</i>) |
104 <b>Html5ToCss3Converter</b>(<i>html, parent=None</i>) |
|
105 |
86 <p> |
106 <p> |
87 Constructor |
107 Constructor |
88 </p><dl> |
108 </p> |
|
109 <dl> |
|
110 |
89 <dt><i>html</i></dt> |
111 <dt><i>html</i></dt> |
90 <dd> |
112 <dd> |
91 HTML text to be converted (string) |
113 HTML text to be converted (string) |
92 </dd><dt><i>parent</i></dt> |
114 </dd> |
|
115 <dt><i>parent</i></dt> |
93 <dd> |
116 <dd> |
94 reference to the parent object (QObject) |
117 reference to the parent object (QObject) |
95 </dd> |
118 </dd> |
96 </dl><a NAME="Html5ToCss3Converter.__createSoup" ID="Html5ToCss3Converter.__createSoup"></a> |
119 </dl> |
|
120 <a NAME="Html5ToCss3Converter.__createSoup" ID="Html5ToCss3Converter.__createSoup"></a> |
97 <h4>Html5ToCss3Converter.__createSoup</h4> |
121 <h4>Html5ToCss3Converter.__createSoup</h4> |
98 <b>__createSoup</b>(<i></i>) |
122 <b>__createSoup</b>(<i></i>) |
|
123 |
99 <p> |
124 <p> |
100 Private method to get a BeaitifulSoup object with our HTML text. |
125 Private method to get a BeaitifulSoup object with our HTML text. |
101 </p><a NAME="Html5ToCss3Converter.__getClasses" ID="Html5ToCss3Converter.__getClasses"></a> |
126 </p> |
|
127 <a NAME="Html5ToCss3Converter.__getClasses" ID="Html5ToCss3Converter.__getClasses"></a> |
102 <h4>Html5ToCss3Converter.__getClasses</h4> |
128 <h4>Html5ToCss3Converter.__getClasses</h4> |
103 <b>__getClasses</b>(<i></i>) |
129 <b>__getClasses</b>(<i></i>) |
|
130 |
104 <p> |
131 <p> |
105 Private method to extract all classes of the HTML text. |
132 Private method to extract all classes of the HTML text. |
106 </p><dl> |
133 </p> |
|
134 <dl> |
107 <dt>Returns:</dt> |
135 <dt>Returns:</dt> |
108 <dd> |
136 <dd> |
109 list of tuples containing the tag name and its classes |
137 list of tuples containing the tag name and its classes |
110 as a blank separated string (list of tuples of two strings) |
138 as a blank separated string (list of tuples of two strings) |
111 </dd> |
139 </dd> |
112 </dl><a NAME="Html5ToCss3Converter.__getIds" ID="Html5ToCss3Converter.__getIds"></a> |
140 </dl> |
|
141 <a NAME="Html5ToCss3Converter.__getIds" ID="Html5ToCss3Converter.__getIds"></a> |
113 <h4>Html5ToCss3Converter.__getIds</h4> |
142 <h4>Html5ToCss3Converter.__getIds</h4> |
114 <b>__getIds</b>(<i></i>) |
143 <b>__getIds</b>(<i></i>) |
|
144 |
115 <p> |
145 <p> |
116 Private method to extract all IDs of the HTML text. |
146 Private method to extract all IDs of the HTML text. |
117 </p><dl> |
147 </p> |
|
148 <dl> |
118 <dt>Returns:</dt> |
149 <dt>Returns:</dt> |
119 <dd> |
150 <dd> |
120 list of tuples containing the tag name and its ID |
151 list of tuples containing the tag name and its ID |
121 (list of tuples of two strings) |
152 (list of tuples of two strings) |
122 </dd> |
153 </dd> |
123 </dl><a NAME="Html5ToCss3Converter.__getTags" ID="Html5ToCss3Converter.__getTags"></a> |
154 </dl> |
|
155 <a NAME="Html5ToCss3Converter.__getTags" ID="Html5ToCss3Converter.__getTags"></a> |
124 <h4>Html5ToCss3Converter.__getTags</h4> |
156 <h4>Html5ToCss3Converter.__getTags</h4> |
125 <b>__getTags</b>(<i></i>) |
157 <b>__getTags</b>(<i></i>) |
|
158 |
126 <p> |
159 <p> |
127 Private method to extract all tags of the HTML text. |
160 Private method to extract all tags of the HTML text. |
128 </p><dl> |
161 </p> |
|
162 <dl> |
129 <dt>Returns:</dt> |
163 <dt>Returns:</dt> |
130 <dd> |
164 <dd> |
131 list of all tags (list of strings) |
165 list of all tags (list of strings) |
132 </dd> |
166 </dd> |
133 </dl><a NAME="Html5ToCss3Converter.getCss3" ID="Html5ToCss3Converter.getCss3"></a> |
167 </dl> |
|
168 <a NAME="Html5ToCss3Converter.getCss3" ID="Html5ToCss3Converter.getCss3"></a> |
134 <h4>Html5ToCss3Converter.getCss3</h4> |
169 <h4>Html5ToCss3Converter.getCss3</h4> |
135 <b>getCss3</b>(<i></i>) |
170 <b>getCss3</b>(<i></i>) |
|
171 |
136 <p> |
172 <p> |
137 Public method to get the converted CSS3 text. |
173 Public method to get the converted CSS3 text. |
138 </p><dl> |
174 </p> |
|
175 <dl> |
139 <dt>Returns:</dt> |
176 <dt>Returns:</dt> |
140 <dd> |
177 <dd> |
141 CSS3 text (string) |
178 CSS3 text (string) |
142 </dd> |
179 </dd> |
143 </dl> |
180 </dl> |