interface XPluginContext in module com::sun::star::plugin::

(Global Index)

Syntax

interface XPluginContext : com::sun::star::uno::XInterface ;

Description

implements the calls a plugin library can make on its browser.

A default context can be created by a XPluginManager .

See also

XPluginManager

Method Summary

getValue requests global application parameters like display connection on UNIX systems

getURLNotify requests a notification of completion of the operation on an URL.

getURL requests an URL to be loaded into the frame target.

postURLNotify posts data from a buffer or file to an URL and receives a notification upon completion.

postURL posts data from a buffer or file to an URL.

newStream requests a new stream that is created by the plugin and consumed by the browser.

displayStatusText displays a message in the browser status line.

getUserAgent returns an application dependent identification string. This is the same string that is transmitted by a browser to an http server.

Method Details



getValue

Syntax

string getValue (
com::sun::star::plugin::XPlugin xPlugin,
com::sun::star::plugin::PluginVariable aVariable )
raises ( com::sun::star::plugin::PluginException );

Description

requests global application parameters like display connection on UNIX systems


getURLNotify

Syntax

void getURLNotify (
com::sun::star::plugin::XPlugin plugin,
string url,
string target,
com::sun::star::lang::XEventListener listener )
raises ( com::sun::star::plugin::PluginException );

Description

requests a notification of completion of the operation on an URL.


getURL

Syntax

void getURL (
com::sun::star::plugin::XPlugin plugin,
string url,
string target )
raises ( com::sun::star::plugin::PluginException );

Description

requests an URL to be loaded into the frame target.


postURLNotify

Syntax

void postURLNotify (
com::sun::star::plugin::XPlugin plugin,
string url,
string target,
sequence< byte > buf,
boolean file,
com::sun::star::lang::XEventListener listener )
raises ( com::sun::star::plugin::PluginException );

Description

posts data from a buffer or file to an URL and receives a notification upon completion.


postURL

Syntax

void postURL (
com::sun::star::plugin::XPlugin plugin,
string url,
string target,
sequence< byte > buf,
boolean file )
raises ( com::sun::star::plugin::PluginException );

Description

posts data from a buffer or file to an URL.


newStream

Syntax

void newStream (
com::sun::star::plugin::XPlugin plugin,
string mimetype,
string target,
com::sun::star::io::XActiveDataSource aSource )
raises ( com::sun::star::plugin::PluginException );

Description

requests a new stream that is created by the plugin and consumed by the browser.


displayStatusText

Syntax

void displayStatusText (
com::sun::star::plugin::XPlugin plugin,
string message )
raises ( com::sun::star::plugin::PluginException );

Description

displays a message in the browser status line.


getUserAgent

Syntax

string getUserAgent (
com::sun::star::plugin::XPlugin plugin )
raises ( com::sun::star::plugin::PluginException );

Description

returns an application dependent identification string. This is the same string that is transmitted by a browser to an http server.

Top of Page