LibreOffice Module forms (master) 1
|
#include <FormComponent.hxx>
Public Member Functions | |
OControl (const css::uno::Reference< css::uno::XComponentContext > &_rFactory, const OUString &_rAggregateService, const bool _bSetDelegator=true) | |
constructs a control More... | |
Public Member Functions inherited from cppu::OComponentHelper | |
OComponentHelper (::osl::Mutex &rMutex) | |
virtual | ~OComponentHelper () SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE=0 |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual void SAL_CALL | dispose () SAL_OVERRIDE |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) SAL_OVERRIDE |
Public Member Functions inherited from cppu::OWeakAggObject | |
OWeakAggObject () | |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
virtual void SAL_CALL | setDelegator (const css::uno::Reference< css::uno::XInterface > &Delegator) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | queryAggregation (const css::uno::Type &rType) SAL_OVERRIDE |
Public Member Functions inherited from cppu::OWeakObject | |
OWeakObject () | |
OWeakObject (const OWeakObject &) | |
OWeakObject &SAL_CALL | operator= (const OWeakObject &) |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL | queryAdapter () SAL_OVERRIDE |
SAL_CALL | operator css::uno::Reference< css::uno::XInterface > () |
Public Member Functions inherited from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 > | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
Protected Member Functions | |
virtual | ~OControl () override |
void | doSetDelegator () |
sets the control as delegator at the aggregate More... | |
void | doResetDelegator () |
virtual css::uno::Any SAL_CALL | queryAggregation (const css::uno::Type &_rType) override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual void SAL_CALL | disposing () override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &_rxListener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &_rxListener) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual OUString SAL_CALL | getImplementationName () override=0 |
virtual void SAL_CALL | setContext (const css::uno::Reference< css::uno::XInterface > &Context) override |
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | getContext () override |
virtual void SAL_CALL | createPeer (const css::uno::Reference< css::awt::XToolkit > &Toolkit, const css::uno::Reference< css::awt::XWindowPeer > &Parent) override |
virtual css::uno::Reference< css::awt::XWindowPeer > SAL_CALL | getPeer () override |
virtual sal_Bool SAL_CALL | setModel (const css::uno::Reference< css::awt::XControlModel > &Model) override |
virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL | getModel () override |
virtual css::uno::Reference< css::awt::XView > SAL_CALL | getView () override |
virtual void SAL_CALL | setDesignMode (sal_Bool bOn) override |
virtual sal_Bool SAL_CALL | isDesignMode () override |
virtual sal_Bool SAL_CALL | isTransparent () override |
virtual css::uno::Sequence< css::uno::Type > | _getTypes () |
css::uno::Sequence< OUString > | getAggregateServiceNames () const |
virtual void SAL_CALL | disposing () |
Protected Member Functions inherited from cppu::OWeakAggObject | |
virtual | ~OWeakAggObject () SAL_OVERRIDE |
Protected Member Functions inherited from cppu::OWeakObject | |
virtual | ~OWeakObject () COVERITY_NOEXCEPT_FALSE |
void | disposeWeakConnectionPoint () |
Protected Member Functions inherited from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 > | |
~ImplHelper3 () SAL_NOEXCEPT | |
Protected Attributes | |
::osl::Mutex | m_aMutex |
css::uno::Reference< css::awt::XControl > | m_xControl |
css::uno::Reference< css::uno::XAggregation > | m_xAggregate |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
WindowStateGuard | m_aWindowStateGuard |
Protected Attributes inherited from cppu::OWeakAggObject | |
css::uno::WeakReferenceHelper | xDelegator |
Protected Attributes inherited from cppu::OWeakObject | |
oslInterlockedCount | m_refCount |
Private Member Functions | |
void | impl_resetStateGuard_nothrow () |
Definition at line 138 of file FormComponent.hxx.
frm::OControl::OControl | ( | const css::uno::Reference< css::uno::XComponentContext > & | _rFactory, |
const OUString & | _rAggregateService, | ||
const bool | _bSetDelegator = true |
||
) |
constructs a control
_rFactory | the service factory for this control |
_rAggregateService | the service name of the component to aggregate |
_bSetDelegator | set this to <FALSE> if you don't want the constructor to set the delegator at the aggregate. In this case, you have to call doSetDelegator within your own constructor. |
This is helpful, if your derived class wants to cache an interface of the aggregate. In this case, the aggregate needs to be queried for this interface before the <member scope="css::uno">XAggregation::setDelegator</member> call.
In such a case, pass <FALSE> to this parameter. Then, cache the aggregate's interface(s) as needed. Afterwards, call <member>doSetDelegator</member>.
In your destructor, you need to call <member>doResetDelegator</member> before resetting the cached interfaces. This will reset the aggregates delegator to <NULL>, which will ensure that the <member scope="css::uno">XInterface::release</member> calls on the cached interfaces are really applied to the aggregate, instead of the <type>OControl</type> itself.
Definition at line 118 of file FormComponent.cxx.
References doSetDelegator(), m_aMutex, cppu::OWeakObject::m_refCount, m_xAggregate, m_xContext, and m_xControl.
|
overrideprotectedvirtual |
Definition at line 135 of file FormComponent.cxx.
References doResetDelegator().
|
protectedvirtual |
Reimplemented in frm::OButtonControl, frm::OClickableImageBaseControl, frm::ODateControl, frm::OEditControl, frm::OFormattedControl, frm::OImageButtonControl, frm::OImageControlControl, frm::OListBoxControl, frm::OTimeControl, and frm::OBoundControl.
Definition at line 191 of file FormComponent.cxx.
References frm::TypeBag::getTypes(), and cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >::getTypes().
Referenced by frm::OClickableImageBaseControl::_getTypes(), frm::OBoundControl::_getTypes(), and getTypes().
|
inlineoverrideprotectedvirtual |
Reimplemented from cppu::OComponentHelper.
Definition at line 208 of file FormComponent.hxx.
|
overrideprotectedvirtual |
Definition at line 273 of file FormComponent.cxx.
|
inlineoverrideprotectedvirtual |
Reimplemented from cppu::OComponentHelper.
Definition at line 206 of file FormComponent.hxx.
Referenced by frm::OClickableImageBaseControl::~OClickableImageBaseControl(), frm::OEditControl::~OEditControl(), frm::OFormattedControl::~OFormattedControl(), and frm::OListBoxControl::~OListBoxControl().
|
overrideprotectedvirtual |
Reimplemented from cppu::OComponentHelper.
Reimplemented in frm::OButtonControl, frm::OClickableImageBaseControl, frm::OClickableImageBaseControl, frm::OEditControl, frm::OFormattedControl, frm::OImageButtonControl, frm::OImageButtonControl, frm::OImageControlControl, frm::OListBoxControl, and frm::OBoundControl.
Definition at line 197 of file FormComponent.cxx.
References frm::WindowStateGuard::attach(), and m_aWindowStateGuard.
Referenced by frm::OClickableImageBaseControl::disposing(), frm::OImageButtonControl::disposing(), and frm::OClickableImageBaseModel::disposing().
|
overrideprotectedvirtual |
Reimplemented in frm::OButtonControl, frm::OEditControl, frm::OFormattedControl, frm::OImageButtonControl, frm::OImageControlControl, frm::OClickableImageBaseControl, frm::OFormattedControl, frm::OImageButtonControl, frm::OListBoxControl, and frm::OBoundControl.
Definition at line 231 of file FormComponent.cxx.
References m_xAggregate, and query_aggregation().
|
protected |
Definition at line 140 of file FormComponent.cxx.
References m_xAggregate.
Referenced by ~OControl(), and frm::OListBoxControl::~OListBoxControl().
|
protected |
sets the control as delegator at the aggregate
This has to be called from within your derived class' constructor, if and only if you passed <FALSE> to the <arg>_bSetDelegator</arg> parameter of the <type>OControl</type> constructor.
Definition at line 146 of file FormComponent.cxx.
References cppu::OWeakObject::m_refCount, and m_xAggregate.
Referenced by OControl(), and frm::OListBoxControl::OListBoxControl().
|
protected |
Definition at line 214 of file FormComponent.cxx.
Referenced by getSupportedServiceNames().
|
overrideprotectedvirtual |
Definition at line 252 of file FormComponent.cxx.
References m_xControl.
|
overrideprotectedvirtual |
Reimplemented from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >.
Definition at line 175 of file FormComponent.cxx.
|
overrideprotectedpure virtual |
Implemented in frm::OButtonControl, frm::OCheckBoxControl, frm::OComboBoxControl, frm::OCurrencyControl, frm::ODateControl, frm::OEditControl, frm::OFormattedControl, frm::OGroupBoxControl, frm::OImageButtonControl, frm::OImageControlControl, frm::OListBoxControl, frm::ONumericControl, frm::OPatternControl, frm::ORadioButtonControl, and frm::OTimeControl.
|
overrideprotectedvirtual |
Definition at line 297 of file FormComponent.cxx.
References m_xControl.
Referenced by frm::OClickableImageBaseControl::actionPerformed_Impl(), frm::OListBoxControl::focusGained(), frm::OEditControl::focusGained(), frm::OEditControl::focusLost(), frm::OImageControlControl::impl_isEmptyGraphics_nothrow(), impl_resetStateGuard_nothrow(), frm::OImageControlControl::implClearGraphics(), frm::OImageControlControl::implInsertGraphics(), frm::OClickableImageBaseControl::implSubmit(), frm::OListBoxControl::itemStateChanged(), frm::OEditControl::keyPressed(), frm::OFormattedControl::keyPressed(), and frm::OImageControlControl::mousePressed().
|
overrideprotectedvirtual |
Definition at line 282 of file FormComponent.cxx.
References m_xControl.
Referenced by impl_resetStateGuard_nothrow(), and frm::OImageControlControl::mousePressed().
|
overrideprotectedvirtual |
Reimplemented in frm::OButtonControl, frm::OCheckBoxControl, frm::OClickableImageBaseControl, frm::OComboBoxControl, frm::OCurrencyControl, frm::ODateControl, frm::OEditControl, frm::OFormattedControl, frm::OGroupBoxControl, frm::OImageButtonControl, frm::OImageControlControl, frm::OListBoxControl, frm::ONumericControl, frm::OPatternControl, frm::ORadioButtonControl, and frm::OTimeControl.
Definition at line 224 of file FormComponent.cxx.
References getAggregateServiceNames().
Referenced by frm::OCheckBoxControl::getSupportedServiceNames(), frm::OClickableImageBaseControl::getSupportedServiceNames(), frm::OComboBoxControl::getSupportedServiceNames(), frm::OCurrencyControl::getSupportedServiceNames(), frm::OEditControl::getSupportedServiceNames(), frm::OFormattedControl::getSupportedServiceNames(), frm::OGroupBoxControl::getSupportedServiceNames(), frm::OImageControlControl::getSupportedServiceNames(), frm::OListBoxControl::getSupportedServiceNames(), frm::OPatternControl::getSupportedServiceNames(), and frm::ORadioButtonControl::getSupportedServiceNames().
|
overrideprotectedvirtual |
Reimplemented from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >.
Definition at line 180 of file FormComponent.cxx.
References _getTypes(), aTypes, m_xAggregate, and query_aggregation().
|
overrideprotectedvirtual |
Definition at line 302 of file FormComponent.cxx.
References m_xControl.
|
private |
Definition at line 257 of file FormComponent.cxx.
References frm::WindowStateGuard::attach(), DBG_UNHANDLED_EXCEPTION, Exception, getModel(), getPeer(), m_aWindowStateGuard, and xModel.
Referenced by frm::OFormattedControl::disposing(), and setModel().
|
overrideprotectedvirtual |
Definition at line 313 of file FormComponent.cxx.
References m_xControl.
|
overrideprotectedvirtual |
Definition at line 318 of file FormComponent.cxx.
References m_xControl.
|
overrideprotectedvirtual |
Reimplemented from cppu::OComponentHelper.
Reimplemented in frm::OButtonControl, frm::OClickableImageBaseControl, frm::OEditControl, frm::OFormattedControl, frm::OImageButtonControl, frm::OImageControlControl, frm::OListBoxControl, and frm::OBoundControl.
Definition at line 159 of file FormComponent.cxx.
References Any, m_xAggregate, and cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >::queryInterface().
Referenced by frm::OClickableImageBaseControl::queryAggregation(), and frm::OBoundControl::queryAggregation().
|
inlineoverrideprotectedvirtual |
Reimplemented from cppu::OComponentHelper.
Definition at line 210 of file FormComponent.hxx.
|
overrideprotectedvirtual |
Definition at line 246 of file FormComponent.cxx.
References m_xControl.
|
overrideprotectedvirtual |
Reimplemented in frm::OButtonControl.
Definition at line 307 of file FormComponent.cxx.
References m_xControl.
|
overrideprotectedvirtual |
Reimplemented in frm::OButtonControl, and frm::OBoundControl.
Definition at line 287 of file FormComponent.cxx.
References impl_resetStateGuard_nothrow(), m_xControl, and Model.
Referenced by frm::OBoundControl::setModel().
|
overrideprotectedvirtual |
Definition at line 209 of file FormComponent.cxx.
|
protected |
Definition at line 142 of file FormComponent.hxx.
Referenced by frm::OButtonControl::actionPerformed(), frm::OButtonControl::actionPerformed_Impl(), frm::OClickableImageBaseControl::disposing(), frm::OListBoxControl::disposing(), frm::OListBoxControl::focusGained(), frm::OListBoxControl::itemStateChanged(), frm::OImageButtonControl::mousePressed(), frm::OListBoxControl::processEvent(), frm::OButtonControl::setActionCommand(), and frm::OBoundControl::setLock().
|
protected |
Definition at line 149 of file FormComponent.hxx.
Referenced by disposing(), and impl_resetStateGuard_nothrow().
|
protected |
Definition at line 145 of file FormComponent.hxx.
Referenced by frm::OClickableImageBaseControl::disposing(), disposing(), doResetDelegator(), doSetDelegator(), getTypes(), frm::OButtonControl::OButtonControl(), OControl(), frm::OFormattedControl::OFormattedControl(), frm::OImageButtonControl::OImageButtonControl(), frm::OImageControlControl::OImageControlControl(), frm::OListBoxControl::OListBoxControl(), queryAggregation(), frm::OButtonControl::setActionCommand(), and frm::OButtonControl::setLabel().
|
protected |
Definition at line 148 of file FormComponent.hxx.
Referenced by frm::OImageControlControl::mousePressed().
|
protected |
Definition at line 143 of file FormComponent.hxx.
Referenced by frm::OFormattedControl::disposing(), getContext(), getModel(), getPeer(), getView(), isDesignMode(), isTransparent(), OControl(), setContext(), setDesignMode(), and setModel().