22#include <com/sun/star/lang/XMultiComponentFactory.hpp>
23#include <com/sun/star/beans/XPropertyChangeListener.hpp>
24#include <com/sun/star/frame/XController.hpp>
25#include <com/sun/star/uno/XComponentContext.hpp>
38 class ISQLCommandAdapter;
42 typedef ::cppu::WeakImplHelper < css::beans::XPropertyChangeListener
50 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
51 css::uno::Reference< css::lang::XMultiComponentFactory >
m_xORB;
73 const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
74 const ::rtl::Reference< ISQLCommandAdapter >& _rxPropertyAdapter,
110 virtual void SAL_CALL
propertyChange(
const css::beans::PropertyChangeEvent& evt )
override;
113 virtual void SAL_CALL
disposing(
const css::lang::EventObject& Source )
override;
145 css::uno::Reference< css::frame::XFrame >
an adapter to forward changed SQL command property values to a component
virtual OUString getSQLCommand() const =0
retrieves the current SQL command of the component
virtual void setSQLCommand(const OUString &_rCommand) const =0
sets a new SQL command
virtual ~ISQLCommandAdapter() override
virtual bool getEscapeProcessing() const =0
retrieves the current value of the EscapeProcessing property of the component
virtual void setEscapeProcessing(const bool _bEscapeProcessing) const =0
sets a new EscapeProcessing property value
encapsulates the code for calling and managing a query design frame, used for interactively designing...
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 ...
css::uno::Reference< css::frame::XController > m_xDesigner
void impl_checkDisposed_throw() const
checks whether we are already disposed
virtual ~SQLCommandDesigner() override
::dbtools::SharedConnection m_xConnection
SQLCommandDesigner & operator=(const SQLCommandDesigner &)=delete
void impl_closeDesigner_nothrow()
closes the component denoted by m_xDesigner @precond our designer component is actually active (->isA...
bool impl_trySuspendDesigner_nothrow() const
suspends our designer component @precond the designer component is actually active (->isActive)
css::uno::Reference< css::lang::XMultiComponentFactory > m_xORB
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
void impl_doOpenDesignerFrame_nothrow()
opens a new frame for interactively designing an SQL command @precond the designer is not currently a...
const ::rtl::Reference< ISQLCommandAdapter > & getPropertyAdapter() const
returns the property adapter used by the instance
::rtl::Reference< ISQLCommandAdapter > m_xObjectAdapter
Link< SQLCommandDesigner &, void > m_aCloseLink
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
bool impl_isDisposed() const
determines whether we are already disposed
virtual void SAL_CALL propertyChange(const css::beans::PropertyChangeEvent &evt) override
SQLCommandDesigner(const SQLCommandDesigner &)=delete
bool suspend() const
suspends the designer @precond the designer is active (->isActive) @precond the instance is not dispo...
void impl_raise_nothrow() const
impl-version of ->raise
css::uno::Reference< css::uno::XComponentContext > m_xContext
void raise() const
raises the designer window to top @precond the designer is active (->isActive) @precond the instance ...
bool isActive() const
determines whether the SQL Command designer is currently active, i.e.
void dispose()
disposes the instance so that it becomes non-functional
a property handler for any virtual string properties
::cppu::WeakImplHelper< css::beans::XPropertyChangeListener > SQLCommandDesigner_Base