gi-webkit2-4.0.11: WebKit2 bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2.Objects.PrintOperation

Contents

Description

 

Synopsis

Exported types

Methods

getPageSetup

printOperationGetPageSetup Source #

Arguments

:: (HasCallStack, MonadIO m, IsPrintOperation a) 
=> a

printOperation: a PrintOperation

-> m PageSetup

Returns: the current PageSetup of printOperation.

Return the current page setup of printOperation. It returns Nothing until either printOperationSetPageSetup or printOperationRunDialog have been called.

getPrintSettings

printOperationGetPrintSettings Source #

Arguments

:: (HasCallStack, MonadIO m, IsPrintOperation a) 
=> a

printOperation: a PrintOperation

-> m PrintSettings

Returns: the current PrintSettings of printOperation.

Return the current print settings of printOperation. It returns Nothing until either printOperationSetPrintSettings or printOperationRunDialog have been called.

new

printOperationNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebView a) 
=> a

webView: a WebView

-> m PrintOperation

Returns: a new PrintOperation.

Create a new PrintOperation to print webView contents.

print

printOperationPrint Source #

Arguments

:: (HasCallStack, MonadIO m, IsPrintOperation a) 
=> a

printOperation: a PrintOperation

-> m () 

Start a print operation using current print settings and page setup without showing the print dialog. If either print settings or page setup are not set with printOperationSetPrintSettings and printOperationSetPageSetup, the default options will be used and the print job will be sent to the default printer. The PrintOperation::finished signal is emitted when the printing operation finishes. If an error occurs while printing the signal PrintOperation::failed is emitted before PrintOperation::finished.

runDialog

printOperationRunDialog Source #

Arguments

:: (HasCallStack, MonadIO m, IsPrintOperation a, IsWindow b) 
=> a

printOperation: a PrintOperation

-> Maybe b

parent: transient parent of the print dialog

-> m PrintOperationResponse

Returns: the PrintOperationResponse of the print dialog

Run the print dialog and start printing using the options selected by the user. This method returns when the print dialog is closed. If the print dialog is cancelled PrintOperationResponseCancel is returned. If the user clicks on the print button, PrintOperationResponsePrint is returned and the print operation starts. In this case, the PrintOperation::finished signal is emitted when the operation finishes. If an error occurs while printing, the signal PrintOperation::failed is emitted before PrintOperation::finished. If the print dialog is not cancelled current print settings and page setup of printOperation are updated with options selected by the user when Print button is pressed in print dialog. You can get the updated print settings and page setup by calling printOperationGetPrintSettings and printOperationGetPageSetup after this method.

setPageSetup

printOperationSetPageSetup Source #

Arguments

:: (HasCallStack, MonadIO m, IsPrintOperation a, IsPageSetup b) 
=> a

printOperation: a PrintOperation

-> b

pageSetup: a PageSetup to set

-> m () 

Set the current page setup of printOperation. Current page setup is used for the initial values of the print dialog when printOperationRunDialog is called.

setPrintSettings

printOperationSetPrintSettings Source #

Arguments

:: (HasCallStack, MonadIO m, IsPrintOperation a, IsPrintSettings b) 
=> a

printOperation: a PrintOperation

-> b

printSettings: a PrintSettings to set

-> m () 

Set the current print settings of printOperation. Current print settings are used for the initial values of the print dialog when printOperationRunDialog is called.

Properties

pageSetup

data PrintOperationPageSetupPropertyInfo Source #

Instances

AttrInfo PrintOperationPageSetupPropertyInfo Source # 
type AttrOrigin PrintOperationPageSetupPropertyInfo Source # 
type AttrLabel PrintOperationPageSetupPropertyInfo Source # 
type AttrGetType PrintOperationPageSetupPropertyInfo Source # 
type AttrBaseTypeConstraint PrintOperationPageSetupPropertyInfo Source # 
type AttrSetTypeConstraint PrintOperationPageSetupPropertyInfo Source # 
type AttrAllowedOps PrintOperationPageSetupPropertyInfo Source # 

printSettings

data PrintOperationPrintSettingsPropertyInfo Source #

Instances

AttrInfo PrintOperationPrintSettingsPropertyInfo Source # 
type AttrOrigin PrintOperationPrintSettingsPropertyInfo Source # 
type AttrLabel PrintOperationPrintSettingsPropertyInfo Source # 
type AttrGetType PrintOperationPrintSettingsPropertyInfo Source # 
type AttrBaseTypeConstraint PrintOperationPrintSettingsPropertyInfo Source # 
type AttrSetTypeConstraint PrintOperationPrintSettingsPropertyInfo Source # 
type AttrAllowedOps PrintOperationPrintSettingsPropertyInfo Source # 

webView

data PrintOperationWebViewPropertyInfo Source #

Instances

AttrInfo PrintOperationWebViewPropertyInfo Source # 
type AttrOrigin PrintOperationWebViewPropertyInfo Source # 
type AttrLabel PrintOperationWebViewPropertyInfo Source # 
type AttrGetType PrintOperationWebViewPropertyInfo Source # 
type AttrBaseTypeConstraint PrintOperationWebViewPropertyInfo Source # 
type AttrSetTypeConstraint PrintOperationWebViewPropertyInfo Source # 
type AttrAllowedOps PrintOperationWebViewPropertyInfo Source # 

Signals

failed

finished