::com::sun::star::lang::XInitialization |
- Description
- is used to initialize the QueryDesign.
Parameters (passed to the method
::com::sun::star::lang::XInitialization::initialize )
have to be instances of ::com::sun::star::beans::PropertyValue , where the
::com::sun::star::beans::PropertyValue::Name member specifies what the parameter controls,
with the ::com::sun::star::beans::PropertyValue::Value member containing the value
to be used.
Recognized parameters are:
- Frame
has to be an ::com::sun::star::frame::XFrame interface specifying the frame to plug the
QueryDesign component into.
This parameter is mandatory.
- DataSourceName
The name of the globally registered DataSource for which a query or view
is to be designed.
The DataSourceName may be omitted if and only if a valid ActiveConnection
parameter is present.
- ActiveConnection
The connection to work with.
May be ommitted if and only if a valid DataSourceName parameter is supplied.
- CurrentQuery
If the component should be used to design an existing query, it's name has to be specified as CurrentQuery
parameter.
If the DataSourceName parameter is present, the query is looked up
in the specified data source. If DataSourceName is not present, the component
tries to determine the data source which the ActiveConnection belongs
to, and looks up the query there.
If this parameter is not present, a new query will be designed.
This parameter is ignored if IndependentSQLCommand is set to true .
- QueryDesignView
This value indicates if the QueryDesign should be opened in the design view or in the text view.
If set to than the design view will be displayed otherwise the text view will appear.
If not present, false is assumed for this parameter.
- CreateView
Indicates whether the component should be used to create a server-side view in the database (set to true ),
or a client-side query in the data source. There are some differences in both modi, e.g. the component closes
itself when a view is being saved, since a view cannot be modified after creation.
If not present, false is assumed for this parameter.
This parameter is ignored if IndependentSQLCommand is set to true .
- IndependentSQLCommand
Allows to use the component to design an SQL command which is neither to be stored as server-side view,
nor as a client-side query. Instead, when the user attempts to save the designed SQL statement,
the ActiveCommand property of the component is updated. Whoever invoked the
query design with IndependentSQLCommand being true is then responsible for listening at this property,
and reacting appropriately on its changes.
If not present, false is assumed for this parameter.
|