|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.WebBrowser.Tools.PrintToPdfDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.WebBrowser.Tools.PrintToPdfDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a dialog to enter the data for printing a web page to PDF. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#PrintToPdfDialog">PrintToPdfDialog</a></td> |
|
25 <td>Class implementing a dialog to enter the data for printing a web page to PDF.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="PrintToPdfDialog" ID="PrintToPdfDialog"></a> |
|
36 <h2>PrintToPdfDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a dialog to enter the data for printing a web page to |
|
40 PDF. |
|
41 </p> |
|
42 <h3>Derived from</h3> |
|
43 QDialog, Ui_PrintToPdfDialog |
|
44 <h3>Class Attributes</h3> |
|
45 |
|
46 <table> |
|
47 <tr><td>None</td></tr> |
|
48 </table> |
|
49 <h3>Class Methods</h3> |
|
50 |
|
51 <table> |
|
52 <tr><td>None</td></tr> |
|
53 </table> |
|
54 <h3>Methods</h3> |
|
55 |
|
56 <table> |
|
57 |
|
58 <tr> |
|
59 <td><a href="#PrintToPdfDialog.__init__">PrintToPdfDialog</a></td> |
|
60 <td>Constructor</td> |
|
61 </tr> |
|
62 <tr> |
|
63 <td><a href="#PrintToPdfDialog.__updatePageLayoutLabel">__updatePageLayoutLabel</a></td> |
|
64 <td>Private method to update the page layout label.</td> |
|
65 </tr> |
|
66 <tr> |
|
67 <td><a href="#PrintToPdfDialog.getData">getData</a></td> |
|
68 <td>Public method to get the dialog data.</td> |
|
69 </tr> |
|
70 <tr> |
|
71 <td><a href="#PrintToPdfDialog.on_pageLayoutButton_clicked">on_pageLayoutButton_clicked</a></td> |
|
72 <td>Private slot to define the page layout.</td> |
|
73 </tr> |
|
74 </table> |
|
75 <h3>Static Methods</h3> |
|
76 |
|
77 <table> |
|
78 <tr><td>None</td></tr> |
|
79 </table> |
|
80 |
|
81 <a NAME="PrintToPdfDialog.__init__" ID="PrintToPdfDialog.__init__"></a> |
|
82 <h4>PrintToPdfDialog (Constructor)</h4> |
|
83 <b>PrintToPdfDialog</b>(<i>filePath, parent=None</i>) |
|
84 |
|
85 <p> |
|
86 Constructor |
|
87 </p> |
|
88 <dl> |
|
89 |
|
90 <dt><i>filePath</i> (str)</dt> |
|
91 <dd> |
|
92 path of the file to write into |
|
93 </dd> |
|
94 <dt><i>parent</i> (QWidget)</dt> |
|
95 <dd> |
|
96 reference to the parent widget |
|
97 </dd> |
|
98 </dl> |
|
99 <a NAME="PrintToPdfDialog.__updatePageLayoutLabel" ID="PrintToPdfDialog.__updatePageLayoutLabel"></a> |
|
100 <h4>PrintToPdfDialog.__updatePageLayoutLabel</h4> |
|
101 <b>__updatePageLayoutLabel</b>(<i></i>) |
|
102 |
|
103 <p> |
|
104 Private method to update the page layout label. |
|
105 </p> |
|
106 <a NAME="PrintToPdfDialog.getData" ID="PrintToPdfDialog.getData"></a> |
|
107 <h4>PrintToPdfDialog.getData</h4> |
|
108 <b>getData</b>(<i></i>) |
|
109 |
|
110 <p> |
|
111 Public method to get the dialog data. |
|
112 </p> |
|
113 <dl> |
|
114 <dt>Return:</dt> |
|
115 <dd> |
|
116 tuple containing the file path and the page layout |
|
117 </dd> |
|
118 </dl> |
|
119 <dl> |
|
120 <dt>Return Type:</dt> |
|
121 <dd> |
|
122 tuple of str and QPageLayout |
|
123 </dd> |
|
124 </dl> |
|
125 <a NAME="PrintToPdfDialog.on_pageLayoutButton_clicked" ID="PrintToPdfDialog.on_pageLayoutButton_clicked"></a> |
|
126 <h4>PrintToPdfDialog.on_pageLayoutButton_clicked</h4> |
|
127 <b>on_pageLayoutButton_clicked</b>(<i></i>) |
|
128 |
|
129 <p> |
|
130 Private slot to define the page layout. |
|
131 </p> |
|
132 <div align="right"><a href="#top">Up</a></div> |
|
133 <hr /> |
|
134 </body></html> |