LibreOffice Module UnoControls (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
unocontrols::FrameControl Class Referencefinal

#include <framecontrol.hxx>

Inheritance diagram for unocontrols::FrameControl:
[legend]
Collaboration diagram for unocontrols::FrameControl:
[legend]

Public Member Functions

 FrameControl (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~FrameControl () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) override
 
virtual void SAL_CALL acquire () noexcept override
 increment refcount @seealso XInterface @seealso release() @onerror A RuntimeException is thrown. More...
 
virtual void SAL_CALL release () noexcept override
 decrement refcount @seealso XInterface @seealso acquire() @onerror A RuntimeException is thrown. More...
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 get information about supported interfaces @seealso XTypeProvider More...
 
OUString SAL_CALL getImplementationName () override
 
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL createPeer (const css::uno::Reference< css::awt::XToolkit > &xToolkit, const css::uno::Reference< css::awt::XWindowPeer > &xParent) override
 
virtual sal_Bool SAL_CALL setModel (const css::uno::Reference< css::awt::XControlModel > &xModel) override
 
virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL getModel () override
 
virtual void SAL_CALL dispose () override
 
virtual sal_Bool SAL_CALL setGraphics (const css::uno::Reference< css::awt::XGraphics > &xDevice) override
 
virtual css::uno::Reference< css::awt::XGraphics > SAL_CALL getGraphics () override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getConnectionPointTypes () override
 
virtual css::uno::Reference< css::lang::XConnectionPoint > SAL_CALL queryConnectionPoint (const css::uno::Type &aType) override
 
virtual void SAL_CALL advise (const css::uno::Type &aType, const css::uno::Reference< css::uno::XInterface > &xListener) override
 
virtual void SAL_CALL unadvise (const css::uno::Type &aType, const css::uno::Reference< css::uno::XInterface > &xListener) override
 
- Public Member Functions inherited from unocontrols::BaseControl
 BaseControl (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~BaseControl () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) override
 give answer, if interface is supported @descr The interfaces are searched by type. More...
 
virtual void SAL_CALL acquire () noexcept override
 increment refcount @seealso XInterface @seealso release() @onerror A RuntimeException is thrown. More...
 
virtual void SAL_CALL release () noexcept override
 decrement refcount @seealso XInterface @seealso acquire() @onerror A RuntimeException is thrown. More...
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 get information about supported interfaces @seealso XTypeProvider More...
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 get implementation id @descr This ID is necessary for UNO-caching. More...
 
virtual sal_Bool SAL_CALL supportsService (const OUString &sServiceName) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
virtual void SAL_CALL createPeer (const css::uno::Reference< css::awt::XToolkit > &xToolkit, const css::uno::Reference< css::awt::XWindowPeer > &xParent) override
 
virtual void SAL_CALL setContext (const css::uno::Reference< css::uno::XInterface > &xContext) override
 
virtual sal_Bool SAL_CALL setModel (const css::uno::Reference< css::awt::XControlModel > &xModel) override=0
 
virtual void SAL_CALL setDesignMode (sal_Bool bOn) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getContext () override
 
virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL getModel () override=0
 
virtual css::uno::Reference< css::awt::XWindowPeer > SAL_CALL getPeer () override
 
virtual css::uno::Reference< css::awt::XView > SAL_CALL getView () override
 
virtual sal_Bool SAL_CALL isDesignMode () override
 
virtual sal_Bool SAL_CALL isTransparent () override
 
virtual void SAL_CALL setPosSize (sal_Int32 nX, sal_Int32 nY, sal_Int32 nWidth, sal_Int32 nHeight, sal_Int16 nFlags) override
 
virtual void SAL_CALL setVisible (sal_Bool bVisible) override
 
virtual void SAL_CALL setEnable (sal_Bool bEnable) override
 
virtual void SAL_CALL setFocus () override
 
virtual css::awt::Rectangle SAL_CALL getPosSize () override
 
virtual void SAL_CALL addWindowListener (const css::uno::Reference< css::awt::XWindowListener > &xListener) override
 
virtual void SAL_CALL addFocusListener (const css::uno::Reference< css::awt::XFocusListener > &xListener) override
 
virtual void SAL_CALL addKeyListener (const css::uno::Reference< css::awt::XKeyListener > &xListener) override
 
virtual void SAL_CALL addMouseListener (const css::uno::Reference< css::awt::XMouseListener > &xListener) override
 
virtual void SAL_CALL addMouseMotionListener (const css::uno::Reference< css::awt::XMouseMotionListener > &xListener) override
 
virtual void SAL_CALL addPaintListener (const css::uno::Reference< css::awt::XPaintListener > &xListener) override
 
virtual void SAL_CALL removeWindowListener (const css::uno::Reference< css::awt::XWindowListener > &xListener) override
 
virtual void SAL_CALL removeFocusListener (const css::uno::Reference< css::awt::XFocusListener > &xListener) override
 
virtual void SAL_CALL removeKeyListener (const css::uno::Reference< css::awt::XKeyListener > &xListener) override
 
virtual void SAL_CALL removeMouseListener (const css::uno::Reference< css::awt::XMouseListener > &xListener) override
 
virtual void SAL_CALL removeMouseMotionListener (const css::uno::Reference< css::awt::XMouseMotionListener > &xListener) override
 
virtual void SAL_CALL removePaintListener (const css::uno::Reference< css::awt::XPaintListener > &xListener) override
 
virtual void SAL_CALL draw (sal_Int32 nX, sal_Int32 nY) override
 
virtual sal_Bool SAL_CALL setGraphics (const css::uno::Reference< css::awt::XGraphics > &xDevice) override
 
virtual void SAL_CALL setZoom (float fZoomX, float fZoomY) override
 
virtual css::uno::Reference< css::awt::XGraphics > SAL_CALL getGraphics () override
 
virtual css::awt::Size SAL_CALL getSize () override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &rSource) override
 
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent &rEvent) override
 
virtual void SAL_CALL windowResized (const css::awt::WindowEvent &aEvent) override
 
virtual void SAL_CALL windowMoved (const css::awt::WindowEvent &aEvent) override
 
virtual void SAL_CALL windowShown (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL windowHidden (const css::lang::EventObject &aEvent) override
 
- Public Member Functions inherited from cppu::OBroadcastHelperVar< class container, class keyType >
 OBroadcastHelperVar (::osl::Mutex &rMutex_)
 
void addListener (const keyType &key, const css::uno::Reference< css::uno::XInterface > &r)
 
void removeListener (const keyType &key, const css::uno::Reference< css::uno::XInterface > &r)
 
OInterfaceContainerHelper *SAL_CALL getContainer (const keyType &key) const
 
- Public Member Functions inherited from cppu::OPropertySetHelper
 OPropertySetHelper (OBroadcastHelper &rBHelper)
 
 OPropertySetHelper (OBroadcastHelper &rBHelper, bool bIgnoreRuntimeExceptionsWhileFiring)
 
 OPropertySetHelper (OBroadcastHelper &rBHelper, IEventNotificationHook *i_pFireEvents, bool bIgnoreRuntimeExceptionsWhileFiring=false)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
css::uno::Sequence< css::uno::Type > getTypes ()
 
void SAL_CALL disposing ()
 
virtual void SAL_CALL setPropertyValue (const ::rtl::OUString &rPropertyName, const css::uno::Any &aValue) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL getPropertyValue (const ::rtl::OUString &aPropertyName) SAL_OVERRIDE
 
virtual void SAL_CALL addPropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE
 
virtual void SAL_CALL removePropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE
 
virtual void SAL_CALL addVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE
 
virtual void SAL_CALL removeVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) SAL_OVERRIDE
 
virtual void SAL_CALL setPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames) SAL_OVERRIDE
 
virtual void SAL_CALL addPropertiesChangeListener (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE
 
virtual void SAL_CALL removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE
 
virtual void SAL_CALL firePropertiesChangeEvent (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE
 

Private Member Functions

virtual sal_Bool SAL_CALL convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override
 
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual css::awt::WindowDescriptor impl_getWindowDescriptor (const css::uno::Reference< css::awt::XWindowPeer > &xParentPeer) override
 
void impl_createFrame (const css::uno::Reference< css::awt::XWindowPeer > &xPeer, const OUString &sURL, const css::uno::Sequence< css::beans::PropertyValue > &seqArguments)
 
void impl_deleteFrame ()
 

Private Attributes

css::uno::Reference< css::frame::XFrame2 > m_xFrame
 
OUString m_sComponentURL
 
css::uno::Sequence< css::beans::PropertyValue > m_seqLoaderArguments
 
rtl::Reference< OConnectionPointContainerHelperm_aConnectionPointContainer
 

Additional Inherited Members

- Static Public Member Functions inherited from cppu::OPropertySetHelper
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo (IPropertyArrayHelper &rProperties)
 
- Public Attributes inherited from cppu::OBroadcastHelperVar< class container, class keyType >
::osl::Mutex & rMutex
 
container aLC
 
sal_Bool bDisposed
 
sal_Bool bInDispose
 
- Protected Member Functions inherited from unocontrols::BaseControl
const css::uno::Reference< css::uno::XComponentContext > & impl_getComponentContext () const
 
const css::uno::Reference< css::awt::XWindow > & impl_getPeerWindow () const
 
const css::uno::Reference< css::awt::XGraphics > & impl_getGraphicsPeer () const
 
sal_Int32 impl_getWidth () const
 
sal_Int32 impl_getHeight () const
 
virtual css::awt::WindowDescriptor impl_getWindowDescriptor (const css::uno::Reference< css::awt::XWindowPeer > &xParentPeer)
 
virtual void impl_paint (sal_Int32 nX, sal_Int32 nY, const css::uno::Reference< css::awt::XGraphics > &xGraphics)
 
virtual void impl_recalcLayout (const css::awt::WindowEvent &aEvent)
 
- Protected Member Functions inherited from cppu::OPropertySetHelper
void SAL_CALL fire (sal_Int32 *pnHandles, const css::uno::Any *pNewValues, const css::uno::Any *pOldValues, sal_Int32 nCount, sal_Bool bVetoable)
 
void SAL_CALL setFastPropertyValues (sal_Int32 nSeqLen, sal_Int32 *pHandles, const css::uno::Any *pValues, sal_Int32 nHitCount)
 
virtual IPropertyArrayHelper &SAL_CALL getInfoHelper ()=0
 
virtual sal_Bool SAL_CALL convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)=0
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue)=0
 
virtual void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const=0
 
void setDependentFastPropertyValue (sal_Int32 i_handle, const css::uno::Any &i_value)
 
 ~OPropertySetHelper ()
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 
- Protected Attributes inherited from cppu::OPropertySetHelper
OBroadcastHelperrBHelper
 
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
 
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
 
Impl *const m_pReserved
 

Detailed Description

Definition at line 34 of file framecontrol.hxx.

Constructor & Destructor Documentation

◆ FrameControl()

unocontrols::FrameControl::FrameControl ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)

Definition at line 60 of file framecontrol.cxx.

References m_aMutex.

◆ ~FrameControl()

unocontrols::FrameControl::~FrameControl ( )
overridevirtual

Definition at line 68 of file framecontrol.cxx.

Member Function Documentation

◆ acquire()

void SAL_CALL unocontrols::FrameControl::acquire ( )
overridevirtualnoexcept

increment refcount @seealso XInterface @seealso release() @onerror A RuntimeException is thrown.

Reimplemented from unocontrols::BaseControl.

Definition at line 100 of file framecontrol.cxx.

References unocontrols::BaseControl::acquire().

◆ advise()

void SAL_CALL unocontrols::FrameControl::advise ( const css::uno::Type &  aType,
const css::uno::Reference< css::uno::XInterface > &  xListener 
)
overridevirtual

Definition at line 216 of file framecontrol.cxx.

References m_aConnectionPointContainer.

◆ convertFastPropertyValue()

sal_Bool unocontrols::FrameControl::convertFastPropertyValue ( css::uno::Any &  rConvertedValue,
css::uno::Any &  rOldValue,
sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overrideprivatevirtual

Implements cppu::OPropertySetHelper.

Definition at line 234 of file framecontrol.cxx.

References m_sComponentURL, m_seqLoaderArguments, and nHandle.

◆ createPeer()

void SAL_CALL unocontrols::FrameControl::createPeer ( const css::uno::Reference< css::awt::XToolkit > &  xToolkit,
const css::uno::Reference< css::awt::XWindowPeer > &  xParent 
)
overridevirtual

◆ dispose()

void SAL_CALL unocontrols::FrameControl::dispose ( void  )
overridevirtual

Reimplemented from unocontrols::BaseControl.

Definition at line 176 of file framecontrol.cxx.

References unocontrols::BaseControl::dispose(), and impl_deleteFrame().

◆ getConnectionPointTypes()

Sequence< Type > SAL_CALL unocontrols::FrameControl::getConnectionPointTypes ( )
overridevirtual

Definition at line 200 of file framecontrol.cxx.

References m_aConnectionPointContainer.

◆ getFastPropertyValue()

void unocontrols::FrameControl::getFastPropertyValue ( css::uno::Any &  rValue,
sal_Int32  nHandle 
) const
overrideprivatevirtual

Implements cppu::OPropertySetHelper.

Definition at line 286 of file framecontrol.cxx.

References m_sComponentURL, m_seqLoaderArguments, m_xFrame, and nHandle.

◆ getGraphics()

Reference< XGraphics > SAL_CALL unocontrols::FrameControl::getGraphics ( )
overridevirtual

Reimplemented from unocontrols::BaseControl.

Definition at line 192 of file framecontrol.cxx.

◆ getImplementationName()

OUString unocontrols::FrameControl::getImplementationName ( )
overridevirtual

Reimplemented from unocontrols::BaseControl.

Definition at line 133 of file framecontrol.cxx.

◆ getInfoHelper()

IPropertyArrayHelper & unocontrols::FrameControl::getInfoHelper ( )
overrideprivatevirtual

Implements cppu::OPropertySetHelper.

Definition at line 308 of file framecontrol.cxx.

References Property.

Referenced by getPropertySetInfo().

◆ getModel()

Reference< XControlModel > SAL_CALL unocontrols::FrameControl::getModel ( )
overridevirtual

Implements unocontrols::BaseControl.

Definition at line 168 of file framecontrol.cxx.

◆ getPropertySetInfo()

Reference< XPropertySetInfo > SAL_CALL unocontrols::FrameControl::getPropertySetInfo ( )
overrideprivate

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > unocontrols::FrameControl::getSupportedServiceNames ( )
overridevirtual

Reimplemented from unocontrols::BaseControl.

Definition at line 138 of file framecontrol.cxx.

◆ getTypes()

Sequence< Type > SAL_CALL unocontrols::FrameControl::getTypes ( )
overridevirtual

get information about supported interfaces @seealso XTypeProvider

Returns
Sequence of types of all supported interfaces

@onerror A RuntimeException is thrown.

Reimplemented from unocontrols::BaseControl.

Definition at line 122 of file framecontrol.cxx.

References unocontrols::BaseControl::getTypes().

◆ impl_createFrame()

void unocontrols::FrameControl::impl_createFrame ( const css::uno::Reference< css::awt::XWindowPeer > &  xPeer,
const OUString &  sURL,
const css::uno::Sequence< css::beans::PropertyValue > &  seqArguments 
)
private

◆ impl_deleteFrame()

void unocontrols::FrameControl::impl_deleteFrame ( )
private

Definition at line 407 of file framecontrol.cxx.

References Any, cppu::OPropertySetHelper::fire(), cppu::BaseMutex::m_aMutex, and m_xFrame.

Referenced by dispose().

◆ impl_getWindowDescriptor()

WindowDescriptor unocontrols::FrameControl::impl_getWindowDescriptor ( const css::uno::Reference< css::awt::XWindowPeer > &  xParentPeer)
overrideprivatevirtual

Reimplemented from unocontrols::BaseControl.

Definition at line 339 of file framecontrol.cxx.

References unocontrols::BaseControl::getPosSize().

◆ queryConnectionPoint()

Reference< XConnectionPoint > SAL_CALL unocontrols::FrameControl::queryConnectionPoint ( const css::uno::Type &  aType)
overridevirtual

Definition at line 208 of file framecontrol.cxx.

References m_aConnectionPointContainer.

◆ queryInterface()

Any SAL_CALL unocontrols::FrameControl::queryInterface ( const css::uno::Type &  aType)
overridevirtual

Reimplemented from cppu::OPropertySetHelper.

Definition at line 74 of file framecontrol.cxx.

References Any, and unocontrols::BaseControl::queryInterface().

◆ release()

void SAL_CALL unocontrols::FrameControl::release ( )
overridevirtualnoexcept

decrement refcount @seealso XInterface @seealso acquire() @onerror A RuntimeException is thrown.

Reimplemented from unocontrols::BaseControl.

Definition at line 111 of file framecontrol.cxx.

References unocontrols::BaseControl::release().

◆ setFastPropertyValue_NoBroadcast()

void unocontrols::FrameControl::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overrideprivatevirtual

◆ setGraphics()

sal_Bool SAL_CALL unocontrols::FrameControl::setGraphics ( const css::uno::Reference< css::awt::XGraphics > &  xDevice)
overridevirtual

Reimplemented from unocontrols::BaseControl.

Definition at line 184 of file framecontrol.cxx.

◆ setModel()

sal_Bool SAL_CALL unocontrols::FrameControl::setModel ( const css::uno::Reference< css::awt::XControlModel > &  xModel)
overridevirtual

Implements unocontrols::BaseControl.

Definition at line 160 of file framecontrol.cxx.

◆ unadvise()

void SAL_CALL unocontrols::FrameControl::unadvise ( const css::uno::Type &  aType,
const css::uno::Reference< css::uno::XInterface > &  xListener 
)
overridevirtual

Definition at line 225 of file framecontrol.cxx.

References m_aConnectionPointContainer.

Member Data Documentation

◆ m_aConnectionPointContainer

rtl::Reference<OConnectionPointContainerHelper> unocontrols::FrameControl::m_aConnectionPointContainer
private

Definition at line 163 of file framecontrol.hxx.

Referenced by advise(), getConnectionPointTypes(), queryConnectionPoint(), and unadvise().

◆ m_sComponentURL

OUString unocontrols::FrameControl::m_sComponentURL
private

◆ m_seqLoaderArguments

css::uno::Sequence< css::beans::PropertyValue > unocontrols::FrameControl::m_seqLoaderArguments
private

◆ m_xFrame

css::uno::Reference< css::frame::XFrame2 > unocontrols::FrameControl::m_xFrame
private

Definition at line 160 of file framecontrol.hxx.

Referenced by getFastPropertyValue(), impl_createFrame(), and impl_deleteFrame().


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