--- a/src/eric7/Documentation/Source/eric7.WebBrowser.WebBrowserView.html Thu Oct 12 17:03:41 2023 +0200 +++ b/src/eric7/Documentation/Source/eric7.WebBrowser.WebBrowserView.html Thu Oct 12 17:05:08 2023 +0200 @@ -28,7 +28,11 @@ <h3>Functions</h3> <table> -<tr><td>None</td></tr> + +<tr> +<td><a href="#isCupsAvailable">isCupsAvailable</a></td> +<td>Static method to test the availability of CUPS.</td> +</tr> </table> <hr /> <hr /> @@ -258,8 +262,16 @@ <td>Private slot to pause or play the selected media.</td> </tr> <tr> -<td><a href="#WebBrowserView.__printPage">__printPage</a></td> -<td>Private slot to support printing from the web page.</td> +<td><a href="#WebBrowserView.__printPageFinished">__printPageFinished</a></td> +<td>Private slot to handle the finishing of a print job.</td> +</tr> +<tr> +<td><a href="#WebBrowserView.__printPageToPdfFinished">__printPageToPdfFinished</a></td> +<td>Private slot to handle the finishing of a PDF print job.</td> +</tr> +<tr> +<td><a href="#WebBrowserView.__printPreviewRequested">__printPreviewRequested</a></td> +<td>Private slot to generate the print preview.</td> </tr> <tr> <td><a href="#WebBrowserView.__quotaRequested">__quotaRequested</a></td> @@ -310,6 +322,10 @@ <td>Private slot to set widget that receives input events.</td> </tr> <tr> +<td><a href="#WebBrowserView.__setupPrinter">__setupPrinter</a></td> +<td>Private method to create and initialize a QPrinter object.</td> +</tr> +<tr> <td><a href="#WebBrowserView.__showContextMenu">__showContextMenu</a></td> <td>Private slot to show a context menu.</td> </tr> @@ -510,6 +526,18 @@ <td>Public method to indicate a change of the settings.</td> </tr> <tr> +<td><a href="#WebBrowserView.printPage">printPage</a></td> +<td>Public slot to print the current page.</td> +</tr> +<tr> +<td><a href="#WebBrowserView.printPageToPdf">printPageToPdf</a></td> +<td>Public slot to save the current page as a PDF file.</td> +</tr> +<tr> +<td><a href="#WebBrowserView.printPreviewPage">printPreviewPage</a></td> +<td>Public slot to create a print preview of the current page.</td> +</tr> +<tr> <td><a href="#WebBrowserView.progress">progress</a></td> <td>Public method to get the load progress.</td> </tr> @@ -1103,13 +1131,52 @@ <p> Private slot to pause or play the selected media. </p> -<a NAME="WebBrowserView.__printPage" ID="WebBrowserView.__printPage"></a> -<h4>WebBrowserView.__printPage</h4> -<b>__printPage</b>(<i></i>) +<a NAME="WebBrowserView.__printPageFinished" ID="WebBrowserView.__printPageFinished"></a> +<h4>WebBrowserView.__printPageFinished</h4> +<b>__printPageFinished</b>(<i>success</i>) + +<p> + Private slot to handle the finishing of a print job. +</p> +<dl> + +<dt><i>success</i> (bool)</dt> +<dd> +flag indicating success (not used) +</dd> +</dl> +<a NAME="WebBrowserView.__printPageToPdfFinished" ID="WebBrowserView.__printPageToPdfFinished"></a> +<h4>WebBrowserView.__printPageToPdfFinished</h4> +<b>__printPageToPdfFinished</b>(<i>filepath, success</i>) <p> - Private slot to support printing from the web page. + Private slot to handle the finishing of a PDF print job. </p> +<dl> + +<dt><i>filepath</i> (str)</dt> +<dd> +path of the output PDF file +</dd> +<dt><i>success</i> (bool)</dt> +<dd> +flag indicating success +</dd> +</dl> +<a NAME="WebBrowserView.__printPreviewRequested" ID="WebBrowserView.__printPreviewRequested"></a> +<h4>WebBrowserView.__printPreviewRequested</h4> +<b>__printPreviewRequested</b>(<i>printer</i>) + +<p> + Private slot to generate the print preview. +</p> +<dl> + +<dt><i>printer</i> (QPrinter)</dt> +<dd> +reference to the printer object +</dd> +</dl> <a NAME="WebBrowserView.__quotaRequested" ID="WebBrowserView.__quotaRequested"></a> <h4>WebBrowserView.__quotaRequested</h4> <b>__quotaRequested</b>(<i>quotaRequest</i>) @@ -1234,6 +1301,32 @@ <p> Private slot to set widget that receives input events. </p> +<a NAME="WebBrowserView.__setupPrinter" ID="WebBrowserView.__setupPrinter"></a> +<h4>WebBrowserView.__setupPrinter</h4> +<b>__setupPrinter</b>(<i>filePath=None</i>) + +<p> + Private method to create and initialize a QPrinter object. +</p> +<dl> + +<dt><i>filePath</i> (str (optional))</dt> +<dd> +name of the output file for the printer (defaults to None) +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +initialized QPrinter object +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +QPrinter +</dd> +</dl> <a NAME="WebBrowserView.__showContextMenu" ID="WebBrowserView.__showContextMenu"></a> <h4>WebBrowserView.__showContextMenu</h4> <b>__showContextMenu</b>(<i>pos</i>) @@ -1939,6 +2032,27 @@ <p> Public method to indicate a change of the settings. </p> +<a NAME="WebBrowserView.printPage" ID="WebBrowserView.printPage"></a> +<h4>WebBrowserView.printPage</h4> +<b>printPage</b>(<i></i>) + +<p> + Public slot to print the current page. +</p> +<a NAME="WebBrowserView.printPageToPdf" ID="WebBrowserView.printPageToPdf"></a> +<h4>WebBrowserView.printPageToPdf</h4> +<b>printPageToPdf</b>(<i></i>) + +<p> + Public slot to save the current page as a PDF file. +</p> +<a NAME="WebBrowserView.printPreviewPage" ID="WebBrowserView.printPreviewPage"></a> +<h4>WebBrowserView.printPreviewPage</h4> +<b>printPreviewPage</b>(<i></i>) + +<p> + Public slot to create a print preview of the current page. +</p> <a NAME="WebBrowserView.progress" ID="WebBrowserView.progress"></a> <h4>WebBrowserView.progress</h4> <b>progress</b>(<i></i>) @@ -2168,4 +2282,26 @@ </dl> <div align="right"><a href="#top">Up</a></div> <hr /> +<hr /> +<a NAME="isCupsAvailable" ID="isCupsAvailable"></a> +<h2>isCupsAvailable</h2> +<b>isCupsAvailable</b>(<i></i>) + +<p> + Static method to test the availability of CUPS. +</p> +<dl> +<dt>Return:</dt> +<dd> +flag indicating the availability of CUPS +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> </body></html> \ No newline at end of file