An application can be notified of a number of different events:
More...
#include <svapp.hxx>
An application can be notified of a number of different events:
- Type::Accept - listen for connection to the application (a connection string is passed via the event)
- Type::Unaccept - stops listening for a connection to the app (determined by a connection string passed via the event)
- Type::Appear - brings the app to the front (i.e. makes it "appear")
- Type::Version - display the app version
- Type::Help - opens a help topic (help topic passed as string)
- Type::OpenHELP_URL - opens a help URL (URL passed as a string)
- Type::ShowDialog - shows a dialog (dialog passed as a string)
- Type::Open - opens a document or group of documents (documents passed as an array of strings)
- Type::Print - print a document or group of documents (documents passed as an array of strings
- Type::PrivateDoShutdown - shutdown the app
Definition at line 118 of file svapp.hxx.
◆ Type
Enumerator |
---|
Accept | Listen for connections.
|
Appear | Make application appear.
|
Open | Open a document.
|
OpenHelpUrl | Open a help URL.
|
Print | Print document.
|
PrivateDoShutdown | Shutdown application.
|
QuickStart | Start QuickStart.
|
ShowDialog | Show a dialog.
|
Unaccept | Stop listening for connections.
|
Definition at line 121 of file svapp.hxx.
◆ ApplicationEvent() [1/3]
ApplicationEvent::ApplicationEvent |
( |
Type |
type | ) |
|
|
inlineexplicit |
Explicit constructor for ApplicationEvent.
- Attention: \n Type::Appear, Type::PrivateDoShutdown and
- Type::QuickStart are the only events that don't need to include a data string with the event. No other events should use this constructor!
Definition at line 140 of file svapp.hxx.
References aEvent, and type.
◆ ApplicationEvent() [2/3]
ApplicationEvent::ApplicationEvent |
( |
Type |
type, |
|
|
OUString const & |
data |
|
) |
| |
|
inline |
Constructor for ApplicationEvent, accepts a string for the data associated with the event.
- Attention: \n Type::Accept, Type::OpenHelpUrl, Type::ShowDialog
- and Type::Unaccept are the only events that accept a single string as event data. No other events should use this constructor!
Definition at line 152 of file svapp.hxx.
References aData, aEvent, and type.
◆ ApplicationEvent() [3/3]
ApplicationEvent::ApplicationEvent |
( |
Type |
type, |
|
|
std::vector< OUString > && |
data |
|
) |
| |
|
inline |
Constructor for ApplicationEvent, accepts an array of strings for the data associated with the event.
- Attention: \n Type::Open and Type::Print can apply to multiple documents,
- and are the only events that accept an array of strings. No other events should use this constructor.
Definition at line 167 of file svapp.hxx.
References aData, aEvent, and type.
◆ GetEvent()
Type ApplicationEvent::GetEvent |
( |
| ) |
const |
|
inline |
Get the type of event.
- Returns
- The type of event.
Definition at line 177 of file svapp.hxx.
References aEvent.
◆ GetStringData()
OUString const & ApplicationEvent::GetStringData |
( |
| ) |
const |
|
inline |
◆ GetStringsData()
std::vector< OUString > const & ApplicationEvent::GetStringsData |
( |
| ) |
const |
|
inline |
◆ aData
std::vector<OUString> ApplicationEvent::aData |
|
private |
◆ aEvent
Type ApplicationEvent::aEvent |
|
private |
The documentation for this class was generated from the following file: