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

#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 () override throw ()
 increment refcount XInterface release() A RuntimeException is thrown. More...
 
virtual void SAL_CALL release () override throw ()
 decrement refcount XInterface acquire() A RuntimeException is thrown. More...
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 get information about supported interfaces XTypeProvider More...
 
css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &aType) override
 
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::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 get implementation id This ID is necessary for UNO-caching. More...
 
virtual void SAL_CALL setDelegator (const css::uno::Reference< css::uno::XInterface > &xDelegator) override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &sServiceName) 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 setContext (const css::uno::Reference< css::uno::XInterface > &xContext) override
 
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::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 void SAL_CALL setZoom (float fZoomX, float fZoomY) 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::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
 
- Public Member Functions inherited from cppu::OWeakAggObject
 OWeakAggObject ()
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
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::OBroadcastHelperVar< class, class >
 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)
 
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
 

Static Public Member Functions

static css::uno::Sequence< OUString > impl_getStaticSupportedServiceNames ()
 
static OUString impl_getStaticImplementationName ()
 
- Static Public Member Functions inherited from cppu::OPropertySetHelper
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo (IPropertyArrayHelper &rProperties)
 

Protected 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
 
- 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 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)
 
const css::uno::Reference< css::uno::XInterface > & impl_getDelegator () const
 
- Protected Member Functions inherited from cppu::OComponentHelper
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::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)
 
void setDependentFastPropertyValue (sal_Int32 i_handle, const css::uno::Any &i_value)
 
 ~OPropertySetHelper ()
 

Private Member Functions

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

- Public Attributes inherited from unocontrols::IMPL_MutexContainer
::osl::Mutex m_aMutex
 
- Public Attributes inherited from cppu::OBroadcastHelperVar< class, class >
::osl::Mutex & rMutex
 
container aLC
 
sal_Bool bDisposed
 
sal_Bool bInDispose
 
- Protected Attributes inherited from cppu::OWeakAggObject
css::uno::WeakReferenceHelper xDelegator
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 
- Protected Attributes inherited from cppu::OPropertySetHelper
OBroadcastHelperrBHelper
 
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
 
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
 
Impl *const m_pReserved
 

Detailed Description

Definition at line 35 of file framecontrol.hxx.

Constructor & Destructor Documentation

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

Definition at line 60 of file framecontrol.cxx.

References m_aMutex.

unocontrols::FrameControl::~FrameControl ( )
overridevirtual

Definition at line 68 of file framecontrol.cxx.

Member Function Documentation

void SAL_CALL unocontrols::FrameControl::acquire ( )
throw (
)
overridevirtual

increment refcount XInterface release() A RuntimeException is thrown.

Reimplemented from unocontrols::BaseControl.

Definition at line 97 of file framecontrol.cxx.

References unocontrols::BaseControl::acquire().

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

Definition at line 239 of file framecontrol.cxx.

References m_aConnectionPointContainer.

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

Implements cppu::OPropertySetHelper.

Definition at line 271 of file framecontrol.cxx.

References m_sComponentURL, and m_seqLoaderArguments.

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

Reimplemented from unocontrols::BaseControl.

Definition at line 199 of file framecontrol.cxx.

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

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

Definition at line 223 of file framecontrol.cxx.

References m_aConnectionPointContainer.

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

Implements cppu::OPropertySetHelper.

Definition at line 323 of file framecontrol.cxx.

References m_sComponentURL, m_seqLoaderArguments, and m_xFrame.

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

Reimplemented from unocontrols::BaseControl.

Definition at line 215 of file framecontrol.cxx.

OUString unocontrols::FrameControl::getImplementationName ( )
overridevirtual

Reimplemented from unocontrols::BaseControl.

Definition at line 156 of file framecontrol.cxx.

References impl_getStaticImplementationName().

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

Implements cppu::OPropertySetHelper.

Definition at line 345 of file framecontrol.cxx.

References Property.

Referenced by getPropertySetInfo().

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

Implements unocontrols::BaseControl.

Definition at line 191 of file framecontrol.cxx.

Reference< XPropertySetInfo > SAL_CALL unocontrols::FrameControl::getPropertySetInfo ( )
overrideprotected
css::uno::Sequence< OUString > unocontrols::FrameControl::getSupportedServiceNames ( )
overridevirtual

Reimplemented from unocontrols::BaseControl.

Definition at line 161 of file framecontrol.cxx.

References impl_getStaticSupportedServiceNames().

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

get information about supported interfaces XTypeProvider

Returns
Sequence of types of all supported interfaces

A RuntimeException is thrown.

Reimplemented from unocontrols::BaseControl.

Definition at line 119 of file framecontrol.cxx.

References unocontrols::BaseControl::getTypes().

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
void unocontrols::FrameControl::impl_deleteFrame ( )
private
OUString unocontrols::FrameControl::impl_getStaticImplementationName ( )
static

Definition at line 264 of file framecontrol.cxx.

Referenced by ctl_component_getFactory(), and getImplementationName().

Sequence< OUString > unocontrols::FrameControl::impl_getStaticSupportedServiceNames ( )
static

Definition at line 257 of file framecontrol.cxx.

Referenced by ctl_component_getFactory(), and getSupportedServiceNames().

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

Reimplemented from unocontrols::BaseControl.

Definition at line 376 of file framecontrol.cxx.

References unocontrols::BaseControl::getPosSize().

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

Reimplemented from unocontrols::BaseControl.

Definition at line 132 of file framecontrol.cxx.

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

Referenced by queryInterface().

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

Definition at line 231 of file framecontrol.cxx.

References m_aConnectionPointContainer.

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, unocontrols::BaseControl::impl_getDelegator(), and queryAggregation().

void SAL_CALL unocontrols::FrameControl::release ( )
throw (
)
overridevirtual

decrement refcount XInterface acquire() A RuntimeException is thrown.

Reimplemented from unocontrols::BaseControl.

Definition at line 108 of file framecontrol.cxx.

References unocontrols::BaseControl::release().

void unocontrols::FrameControl::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overrideprotectedvirtual
sal_Bool SAL_CALL unocontrols::FrameControl::setGraphics ( const css::uno::Reference< css::awt::XGraphics > &  xDevice)
overridevirtual

Reimplemented from unocontrols::BaseControl.

Definition at line 207 of file framecontrol.cxx.

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

Implements unocontrols::BaseControl.

Definition at line 183 of file framecontrol.cxx.

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

Definition at line 248 of file framecontrol.cxx.

References m_aConnectionPointContainer.

Member Data Documentation

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

Definition at line 177 of file framecontrol.hxx.

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

OUString unocontrols::FrameControl::m_sComponentURL
private
css::uno::Sequence< css::beans::PropertyValue > unocontrols::FrameControl::m_seqLoaderArguments
private
css::uno::Reference< css::frame::XFrame2 > unocontrols::FrameControl::m_xFrame
private

Definition at line 174 of file framecontrol.hxx.

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


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