LibreOffice Module dbaccess (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
dbaui::TableDesigner Class Reference

#include <databaseobjectview.hxx>

Inheritance diagram for dbaui::TableDesigner:
[legend]
Collaboration diagram for dbaui::TableDesigner:
[legend]

Public Member Functions

 TableDesigner (const css::uno::Reference< css::uno::XComponentContext > &_rxORB, const css::uno::Reference< css::sdb::application::XDatabaseDocumentUI > &_rxApplication, const css::uno::Reference< css::frame::XFrame > &_rxParentFrame)
 
- Public Member Functions inherited from dbaui::DatabaseObjectView
 DatabaseObjectView (const css::uno::Reference< css::uno::XComponentContext > &_rxORB, const css::uno::Reference< css::sdb::application::XDatabaseDocumentUI > &_rxApplication, const css::uno::Reference< css::frame::XFrame > &_rxParentFrame, OUString _sComponentURL)
 
virtual ~DatabaseObjectView ()
 
void setTargetFrame (const css::uno::Reference< css::frame::XFrame > &_rxFrame)
 sets the target frame into which the view should be loaded. More...
 
css::uno::Reference< css::lang::XComponent > createNew (const css::uno::Reference< css::sdbc::XDataSource > &_xDataSource, const ::comphelper::NamedValueCollection &i_rDispatchArgs=::comphelper::NamedValueCollection())
 opens a view for a to-be-created object More...
 
css::uno::Reference< css::lang::XComponent > openExisting (const css::uno::Any &_aDataSource, const OUString &_rName, const ::comphelper::NamedValueCollection &i_rDispatchArgs)
 opens a view for an existent object More...
 

Protected Member Functions

virtual void fillDispatchArgs (::comphelper::NamedValueCollection &i_rDispatchArgs, const css::uno::Any &_aDataSource, const OUString &_rObjectName) override
 
virtual css::uno::Reference< css::lang::XComponent > doCreateView (const css::uno::Any &_rDataSource, const OUString &_rObjectName, const ::comphelper::NamedValueCollection &i_rCreationArgs) override
 creates the desired view More...
 
- Protected Member Functions inherited from dbaui::DatabaseObjectView
virtual css::uno::Reference< css::lang::XComponent > doCreateView (const css::uno::Any &_rDataSource, const OUString &_rObjectName, const ::comphelper::NamedValueCollection &i_rCreationArgs)
 creates the desired view More...
 
virtual void fillDispatchArgs (::comphelper::NamedValueCollection &i_rDispatchArgs, const css::uno::Any &_rDataSource, const OUString &_rObjectName)
 
const css::uno::Reference< css::sdb::application::XDatabaseDocumentUI > & getApplicationUI () const
 
css::uno::Reference< css::sdbc::XConnection > getConnection () const
 

Private Member Functions

css::uno::Reference< css::uno::XInterface > impl_getConnectionProvidedDesigner_nothrow (const OUString &_rTableName)
 retrieves the table designer component as provided by the connection, if any More...
 

Detailed Description

Definition at line 161 of file databaseobjectview.hxx.

Constructor & Destructor Documentation

◆ TableDesigner()

dbaui::TableDesigner::TableDesigner ( const css::uno::Reference< css::uno::XComponentContext > &  _rxORB,
const css::uno::Reference< css::sdb::application::XDatabaseDocumentUI > &  _rxApplication,
const css::uno::Reference< css::frame::XFrame > &  _rxParentFrame 
)

Definition at line 191 of file databaseobjectview.cxx.

Member Function Documentation

◆ doCreateView()

Reference< XComponent > dbaui::TableDesigner::doCreateView ( const css::uno::Any &  _rDataSource,
const OUString &  _rObjectName,
const ::comphelper::NamedValueCollection i_rCreationArgs 
)
overrideprotectedvirtual

creates the desired view

The default implementation will call <member>fillDispatchArgs</member>, followed by <member>doDispatch</member>.

Parameters
_rDataSourcethe data source, as passed to the <member>createNew</member> or <member>openExisting</member> method.
_rObjectNamethe name of the object for which the view is to be opened, or an empty string if a view for a new object should be created.
_rCreationArgsthe arguments for the view's creation

Reimplemented from dbaui::DatabaseObjectView.

Definition at line 207 of file databaseobjectview.cxx.

References DBG_UNHANDLED_EXCEPTION, dbaui::DatabaseObjectView::doCreateView(), Exception, dbaui::AsyncDialogExecutor::executeModalDialogAsync(), and impl_getConnectionProvidedDesigner_nothrow().

◆ fillDispatchArgs()

void dbaui::TableDesigner::fillDispatchArgs ( ::comphelper::NamedValueCollection i_rDispatchArgs,
const css::uno::Any &  _aDataSource,
const OUString &  _rObjectName 
)
overrideprotectedvirtual

◆ impl_getConnectionProvidedDesigner_nothrow()

Reference< XInterface > dbaui::TableDesigner::impl_getConnectionProvidedDesigner_nothrow ( const OUString &  _rTableName)
private

retrieves the table designer component as provided by the connection, if any

Parameters
_rTableNamethe name of the table for which a designer is to be obtained
Returns
the designer component, as provided by the connection, or <NULL>, if the connection does not provide a specialized designer.
See also
css::sdb::application::XTableUIProvider

Definition at line 227 of file databaseobjectview.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, dbaui::DatabaseObjectView::getApplicationUI(), and dbaui::DatabaseObjectView::getConnection().

Referenced by doCreateView().


The documentation for this class was generated from the following files: