Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsISanePluginInstance Interface Reference

This interface can be obtained with the following HTML/JavaScript sequence: More...

import "nsSanePluginControl.idl";

Inheritance diagram for nsISanePluginInstance:
Inheritance graph
[legend]
Collaboration diagram for nsISanePluginInstance:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void ZoomImage (in unsigned short x, in unsigned short y, in unsigned short width, in unsigned short height)
void ZoomImageWithAttributes (in unsigned short x, in unsigned short y, in unsigned short width, in unsigned short height, in long req_line_width, in string req_line_style, in string req_cap_style, in string req_join_style)
void Restore ()
void Crop (in unsigned short x, in unsigned short y, in unsigned short width, in unsigned short height)
void ScanImage ()
void SetOption (in string name, in string value)
void SaveImage ()

Public Attributes

attribute boolean Success
attribute string State
attribute unsigned short ZoomX
attribute unsigned short ZoomY
attribute unsigned short ZoomWidth
attribute unsigned short ZoomHeight
attribute long ZoomLineWidth
attribute string ZoomLineStyle
attribute string ZoomCapStyle
attribute string ZoomJoinStyle
attribute float ZoomBR_XChange
attribute float ZoomBR_YChange
attribute float ZoomTL_XChange
attribute float ZoomTL_YChange
attribute long Quality
attribute string Method
attribute string DeviceOptions
attribute string ActiveDevice
attribute string ImageParameters
attribute string AvailableDevices

Detailed Description

This interface can be obtained with the following HTML/JavaScript sequence:

 <EMBED type="application/X-sane-plugin" id="SaneObject" onscancomplete="ScanCompleteCallback()" device="hp:/dev/usbscanner" line_width="5" line_style="dash" cap_style="round" join_style="round" width="320" height="240">
<form name="myForm">
  <input type="button" value="Start Scan" onclick="scanner.ScanImage()">
</form>
 <script>
  var scanner = document.SaneObject.nsISaneControl;
  dump("scanner = "+ scanner + "\n");
 </script>
 

This fragment will create an embedded plugin, which can then be accessed and controlled by the nsISanePluginInstance interface which is instantiated in the script.

Definition at line 77 of file nsSanePluginControl.idl.


Member Function Documentation

void nsISanePluginInstance::Crop ( in unsigned short  x,
in unsigned short  y,
in unsigned short  width,
in unsigned short  height 
)

Here is the caller graph for this function:

void nsISanePluginInstance::ZoomImage ( in unsigned short  x,
in unsigned short  y,
in unsigned short  width,
in unsigned short  height 
)
void nsISanePluginInstance::ZoomImageWithAttributes ( in unsigned short  x,
in unsigned short  y,
in unsigned short  width,
in unsigned short  height,
in long  req_line_width,
in string  req_line_style,
in string  req_cap_style,
in string  req_join_style 
)

Member Data Documentation

Definition at line 147 of file nsSanePluginControl.idl.

Definition at line 153 of file nsSanePluginControl.idl.

Definition at line 144 of file nsSanePluginControl.idl.

Definition at line 150 of file nsSanePluginControl.idl.

Definition at line 136 of file nsSanePluginControl.idl.

Definition at line 135 of file nsSanePluginControl.idl.

Definition at line 86 of file nsSanePluginControl.idl.

Definition at line 83 of file nsSanePluginControl.idl.

Definition at line 129 of file nsSanePluginControl.idl.

Definition at line 130 of file nsSanePluginControl.idl.

Definition at line 122 of file nsSanePluginControl.idl.

Definition at line 116 of file nsSanePluginControl.idl.

Definition at line 123 of file nsSanePluginControl.idl.

Definition at line 121 of file nsSanePluginControl.idl.

Definition at line 120 of file nsSanePluginControl.idl.

Definition at line 131 of file nsSanePluginControl.idl.

Definition at line 132 of file nsSanePluginControl.idl.

Definition at line 115 of file nsSanePluginControl.idl.

Definition at line 113 of file nsSanePluginControl.idl.

Definition at line 114 of file nsSanePluginControl.idl.


The documentation for this interface was generated from the following file: