LibreOffice Module extensions (master) 1
|
encapsulates the code for calling and managing a query design frame, used for interactively designing the Command property of a ->RowSet More...
#include <sqlcommanddesign.hxx>
Public Member Functions | |
SQLCommandDesigner (const css::uno::Reference< css::uno::XComponentContext > &_rxContext, const ::rtl::Reference< ISQLCommandAdapter > &_rxPropertyAdapter, ::dbtools::SharedConnection _aConnection, const Link< SQLCommandDesigner &, void > &_rCloseLink) | |
creates the instance, and immediately opens the SQL command design frame More... | |
bool | isActive () const |
determines whether the SQL Command designer is currently active, i.e. More... | |
const ::rtl::Reference< ISQLCommandAdapter > & | getPropertyAdapter () const |
returns the property adapter used by the instance More... | |
void | raise () const |
raises the designer window to top @precond the designer is active (->isActive) @precond the instance is not disposed More... | |
bool | suspend () const |
suspends the designer @precond the designer is active (->isActive) @precond the instance is not disposed More... | |
void | dispose () |
disposes the instance so that it becomes non-functional More... | |
Private Member Functions | |
virtual void SAL_CALL | propertyChange (const css::beans::PropertyChangeEvent &evt) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual | ~SQLCommandDesigner () override |
void | impl_doOpenDesignerFrame_nothrow () |
opens a new frame for interactively designing an SQL command @precond the designer is not currently active (see ->isActive) @precond ->m_xConnection is not <NULL> More... | |
void | impl_raise_nothrow () const |
impl-version of ->raise More... | |
bool | impl_isDisposed () const |
determines whether we are already disposed More... | |
void | impl_checkDisposed_throw () const |
checks whether we are already disposed More... | |
css::uno::Reference< css::frame::XFrame > | impl_createEmptyParentlessTask_nothrow () const |
create an empty top-level frame, which does not belong to the desktop's frame list @precond ->m_xORB is not <NULL> More... | |
void | impl_closeDesigner_nothrow () |
closes the component denoted by m_xDesigner @precond our designer component is actually active (->isActive) @precond we're not disposed already More... | |
bool | impl_trySuspendDesigner_nothrow () const |
suspends our designer component @precond the designer component is actually active (->isActive) More... | |
SQLCommandDesigner (const SQLCommandDesigner &)=delete | |
SQLCommandDesigner & | operator= (const SQLCommandDesigner &)=delete |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::lang::XMultiComponentFactory > | m_xORB |
::dbtools::SharedConnection | m_xConnection |
css::uno::Reference< css::frame::XController > | m_xDesigner |
::rtl::Reference< ISQLCommandAdapter > | m_xObjectAdapter |
Link< SQLCommandDesigner &, void > | m_aCloseLink |
encapsulates the code for calling and managing a query design frame, used for interactively designing the Command property of a ->RowSet
Definition at line 47 of file sqlcommanddesign.hxx.
pcr::SQLCommandDesigner::SQLCommandDesigner | ( | const css::uno::Reference< css::uno::XComponentContext > & | _rxContext, |
const ::rtl::Reference< ISQLCommandAdapter > & | _rxPropertyAdapter, | ||
::dbtools::SharedConnection | _aConnection, | ||
const Link< SQLCommandDesigner &, void > & | _rCloseLink | ||
) |
creates the instance, and immediately opens the SQL command design frame
_rxContext | our component context. Must not be <NULL>, and must provide a non-<NULL> XMultiComponentFactory |
_rxPropertyAdapter | an adapter to the object's SQL command related properties |
_rConnection | the current connection of ->_rxRowSet. Must not be <NULL>. |
_rCloseLink | link to call when the component has been closed |
css::lang::NullPointerException | if any of the arguments (except ->_rCloseLink) is <NULL>, or if the component context does not provide a valid component factory. |
|
overrideprivatevirtual |
Definition at line 109 of file sqlcommanddesign.cxx.
|
privatedelete |
void pcr::SQLCommandDesigner::dispose | ( | void | ) |
disposes the instance so that it becomes non-functional
Definition at line 155 of file sqlcommanddesign.cxx.
References utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::clear(), impl_closeDesigner_nothrow(), impl_isDisposed(), isActive(), m_xConnection, m_xContext, and m_xORB.
|
overrideprivatevirtual |
Definition at line 145 of file sqlcommanddesign.cxx.
References m_aCloseLink, m_xDesigner, and Source.
|
inline |
returns the property adapter used by the instance
Definition at line 86 of file sqlcommanddesign.hxx.
References m_xObjectAdapter.
|
private |
checks whether we are already disposed
css::lang::DisposedException | if we in fact are disposed |
Definition at line 169 of file sqlcommanddesign.cxx.
References impl_isDisposed().
|
private |
closes the component denoted by m_xDesigner @precond our designer component is actually active (->isActive) @precond we're not disposed already
Definition at line 295 of file sqlcommanddesign.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, isActive(), m_xDesigner, m_xORB, PROPERTY_ACTIVECOMMAND, and xDispatch.
Referenced by dispose().
|
private |
create an empty top-level frame, which does not belong to the desktop's frame list @precond ->m_xORB is not <NULL>
Definition at line 273 of file sqlcommanddesign.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, m_xContext, m_xORB, and xFrame.
Referenced by impl_doOpenDesignerFrame_nothrow().
|
private |
opens a new frame for interactively designing an SQL command @precond the designer is not currently active (see ->isActive) @precond ->m_xConnection is not <NULL>
Definition at line 213 of file sqlcommanddesign.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::getTyped(), impl_createEmptyParentlessTask_nothrow(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), isActive(), m_refCount, m_xConnection, m_xDesigner, m_xObjectAdapter, comphelper::makePropertyValue(), pcr::PcrRes(), PROPERTY_ACTIVE_CONNECTION, PROPERTY_ACTIVECOMMAND, PROPERTY_COMMAND, PROPERTY_COMMANDTYPE, PROPERTY_ESCAPE_PROCESSING, and sDisplayName.
|
inlineprivate |
determines whether we are already disposed
Definition at line 131 of file sqlcommanddesign.hxx.
References m_xContext.
Referenced by dispose(), and impl_checkDisposed_throw().
|
private |
impl-version of ->raise
Definition at line 190 of file sqlcommanddesign.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, isActive(), m_xDesigner, and xFrame.
Referenced by raise().
|
private |
suspends our designer component @precond the designer component is actually active (->isActive)
Definition at line 337 of file sqlcommanddesign.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, isActive(), and m_xDesigner.
Referenced by suspend().
|
inline |
determines whether the SQL Command designer is currently active, i.e.
if there currently exists a frame which allows the user entering the SQL command
Definition at line 82 of file sqlcommanddesign.hxx.
References m_xDesigner.
Referenced by dispose(), impl_closeDesigner_nothrow(), impl_doOpenDesignerFrame_nothrow(), impl_raise_nothrow(), and impl_trySuspendDesigner_nothrow().
|
privatedelete |
|
overrideprivatevirtual |
Definition at line 114 of file sqlcommanddesign.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, m_xDesigner, m_xObjectAdapter, PROPERTY_ACTIVECOMMAND, and PROPERTY_ESCAPE_PROCESSING.
void pcr::SQLCommandDesigner::raise | ( | ) | const |
raises the designer window to top @precond the designer is active (->isActive) @precond the instance is not disposed
Definition at line 176 of file sqlcommanddesign.cxx.
References impl_checkDisposed_throw(), and impl_raise_nothrow().
bool pcr::SQLCommandDesigner::suspend | ( | ) | const |
suspends the designer @precond the designer is active (->isActive) @precond the instance is not disposed
Definition at line 183 of file sqlcommanddesign.cxx.
References impl_checkDisposed_throw(), and impl_trySuspendDesigner_nothrow().
|
private |
Definition at line 55 of file sqlcommanddesign.hxx.
Referenced by disposing().
|
private |
Definition at line 52 of file sqlcommanddesign.hxx.
Referenced by dispose(), and impl_doOpenDesignerFrame_nothrow().
|
private |
Definition at line 50 of file sqlcommanddesign.hxx.
Referenced by dispose(), impl_createEmptyParentlessTask_nothrow(), and impl_isDisposed().
|
private |
Definition at line 53 of file sqlcommanddesign.hxx.
Referenced by disposing(), impl_closeDesigner_nothrow(), impl_doOpenDesignerFrame_nothrow(), impl_raise_nothrow(), impl_trySuspendDesigner_nothrow(), isActive(), and propertyChange().
|
private |
Definition at line 54 of file sqlcommanddesign.hxx.
Referenced by getPropertyAdapter(), impl_doOpenDesignerFrame_nothrow(), and propertyChange().
|
private |
Definition at line 51 of file sqlcommanddesign.hxx.
Referenced by dispose(), impl_closeDesigner_nothrow(), and impl_createEmptyParentlessTask_nothrow().