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