22#include <com/sun/star/awt/XPaintListener.hpp>
23#include <com/sun/star/awt/XWindowListener.hpp>
24#include <com/sun/star/awt/XControl.hpp>
25#include <com/sun/star/awt/XWindow.hpp>
26#include <com/sun/star/awt/XView.hpp>
27#include <com/sun/star/lang/XServiceInfo.hpp>
38namespace unocontrols {
class OMRCListenerMultiplexerHelper; }
43 ,
public css::awt::XPaintListener
44 ,
public css::awt::XWindowListener
45 ,
public css::awt::XView
46 ,
public css::awt::XWindow
47 ,
public css::awt::XControl
49 ,
public ::cppu::WeakComponentImplHelper<>
52 BaseControl(
const css::uno::Reference< css::uno::XComponentContext >& rxContext );
72 const css::uno::Type& aType
82 virtual void SAL_CALL
acquire()
noexcept override;
91 virtual void SAL_CALL
release()
noexcept override;
103 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes()
override;
130 virtual void SAL_CALL
dispose()
override;
133 const css::uno::Reference< css::lang::XEventListener >& xListener
137 const css::uno::Reference< css::lang::XEventListener >& xListener
143 const css::uno::Reference< css::awt::XToolkit >& xToolkit,
144 const css::uno::Reference< css::awt::XWindowPeer >& xParent
148 const css::uno::Reference< css::uno::XInterface >& xContext
152 const css::uno::Reference< css::awt::XControlModel >& xModel
157 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL
getContext()
override;
159 virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL
getModel()
override = 0;
161 virtual css::uno::Reference< css::awt::XWindowPeer > SAL_CALL
getPeer()
override;
163 virtual css::uno::Reference< css::awt::XView > SAL_CALL
getView()
override;
171 virtual void SAL_CALL
setPosSize( sal_Int32 nX ,
175 sal_Int16 nFlags )
override;
181 virtual void SAL_CALL
setFocus()
override;
183 virtual css::awt::Rectangle SAL_CALL
getPosSize()
override;
186 const css::uno::Reference< css::awt::XWindowListener >& xListener
190 const css::uno::Reference< css::awt::XFocusListener >& xListener
194 const css::uno::Reference< css::awt::XKeyListener >& xListener )
override;
197 const css::uno::Reference< css::awt::XMouseListener >& xListener
201 const css::uno::Reference< css::awt::XMouseMotionListener >& xListener
205 const css::uno::Reference< css::awt::XPaintListener >& xListener
209 const css::uno::Reference< css::awt::XWindowListener >& xListener
213 const css::uno::Reference< css::awt::XFocusListener >& xListener
217 const css::uno::Reference< css::awt::XKeyListener >& xListener
221 const css::uno::Reference< css::awt::XMouseListener >& xListener
225 const css::uno::Reference< css::awt::XMouseMotionListener >& xListener
229 const css::uno::Reference< css::awt::XPaintListener >& xListener
234 virtual void SAL_CALL
draw( sal_Int32 nX ,
235 sal_Int32 nY )
override;
238 const css::uno::Reference< css::awt::XGraphics >& xDevice
241 virtual void SAL_CALL
setZoom(
float fZoomX ,
242 float fZoomY )
override;
244 virtual css::uno::Reference< css::awt::XGraphics > SAL_CALL
getGraphics()
override;
246 virtual css::awt::Size SAL_CALL
getSize()
override;
251 const css::lang::EventObject& rSource
257 const css::awt::PaintEvent& rEvent
262 virtual void SAL_CALL
windowResized(
const css::awt::WindowEvent& aEvent )
override;
263 virtual void SAL_CALL
windowMoved(
const css::awt::WindowEvent& aEvent )
override;
264 virtual void SAL_CALL
windowShown(
const css::lang::EventObject& aEvent )
override;
265 virtual void SAL_CALL
windowHidden(
const css::lang::EventObject& aEvent )
override;
268 using WeakComponentImplHelper::disposing;
281 const css::uno::Reference< css::awt::XWindowPeer >& xParentPeer
286 const css::uno::Reference< css::awt::XGraphics >& xGraphics );
296 css::uno::Reference< css::awt::XWindowPeer >
m_xPeer;
constexpr OUStringLiteral sServiceName
virtual OUString SAL_CALL getImplementationName() 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
sal_Int32 impl_getWidth() const
const css::uno::Reference< css::awt::XWindow > & impl_getPeerWindow() const
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 removeEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual void SAL_CALL setFocus() override
virtual sal_Bool SAL_CALL isTransparent() override
virtual void SAL_CALL windowMoved(const css::awt::WindowEvent &aEvent) override
virtual void SAL_CALL windowPaint(const css::awt::PaintEvent &rEvent) override
virtual void SAL_CALL addEventListener(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 setPosSize(sal_Int32 nX, sal_Int32 nY, sal_Int32 nWidth, sal_Int32 nHeight, sal_Int16 nFlags) override
virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL getModel() override=0
sal_Int32 impl_getHeight() const
css::uno::Reference< css::awt::XGraphics > m_xGraphicsView
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
get implementation id @descr This ID is necessary for UNO-caching.
css::uno::Reference< css::awt::XWindow > m_xPeerWindow
const css::uno::Reference< css::awt::XGraphics > & impl_getGraphicsPeer() const
virtual void SAL_CALL windowShown(const css::lang::EventObject &aEvent) override
virtual void SAL_CALL release() noexcept override
decrement refcount @seealso XInterface @seealso acquire() @onerror A RuntimeException is thrown.
virtual void SAL_CALL setZoom(float fZoomX, float fZoomY) override
virtual sal_Bool SAL_CALL supportsService(const OUString &sServiceName) override
virtual void SAL_CALL setEnable(sal_Bool bEnable) override
virtual void SAL_CALL removeMouseListener(const css::uno::Reference< css::awt::XMouseListener > &xListener) override
virtual void SAL_CALL setVisible(sal_Bool bVisible) override
css::uno::Reference< css::awt::XWindowPeer > m_xPeer
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
get information about supported interfaces @seealso XTypeProvider
virtual void SAL_CALL windowResized(const css::awt::WindowEvent &aEvent) override
virtual css::uno::Reference< css::awt::XWindowPeer > SAL_CALL getPeer() override
virtual css::uno::Reference< css::awt::XGraphics > SAL_CALL getGraphics() override
virtual void SAL_CALL removeMouseMotionListener(const css::uno::Reference< css::awt::XMouseMotionListener > &xListener) override
virtual void SAL_CALL draw(sal_Int32 nX, sal_Int32 nY) override
virtual void SAL_CALL addWindowListener(const css::uno::Reference< css::awt::XWindowListener > &xListener) override
const css::uno::Reference< css::uno::XComponentContext > & impl_getComponentContext() const
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.
virtual sal_Bool SAL_CALL isDesignMode() override
virtual void SAL_CALL addFocusListener(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 dispose() override
css::uno::Reference< css::uno::XComponentContext > m_xComponentContext
virtual void SAL_CALL setDesignMode(sal_Bool bOn) override
virtual css::awt::Rectangle SAL_CALL getPosSize() override
virtual void SAL_CALL removeFocusListener(const css::uno::Reference< css::awt::XFocusListener > &xListener) override
virtual void SAL_CALL addMouseMotionListener(const css::uno::Reference< css::awt::XMouseMotionListener > &xListener) override
virtual sal_Bool SAL_CALL setModel(const css::uno::Reference< css::awt::XControlModel > &xModel) override=0
virtual css::uno::Reference< css::awt::XView > SAL_CALL getView() override
virtual void impl_paint(sal_Int32 nX, sal_Int32 nY, const css::uno::Reference< css::awt::XGraphics > &xGraphics)
virtual void SAL_CALL windowHidden(const css::lang::EventObject &aEvent) override
virtual void SAL_CALL removeWindowListener(const css::uno::Reference< css::awt::XWindowListener > &xListener) override
virtual void SAL_CALL removePaintListener(const css::uno::Reference< css::awt::XPaintListener > &xListener) override
rtl::Reference< OMRCListenerMultiplexerHelper > m_xMultiplexer
virtual ~BaseControl() override
virtual sal_Bool SAL_CALL setGraphics(const css::uno::Reference< css::awt::XGraphics > &xDevice) override
css::uno::Reference< css::awt::XGraphics > m_xGraphicsPeer
virtual void SAL_CALL addPaintListener(const css::uno::Reference< css::awt::XPaintListener > &xListener) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL disposing(const css::lang::EventObject &rSource) override
BaseControl(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
css::uno::Reference< css::uno::XInterface > m_xContext
virtual css::awt::WindowDescriptor impl_getWindowDescriptor(const css::uno::Reference< css::awt::XWindowPeer > &xParentPeer)
OMRCListenerMultiplexerHelper * impl_getMultiplexer()
virtual css::awt::Size SAL_CALL getSize() override
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getContext() override
virtual void impl_recalcLayout(const css::awt::WindowEvent &aEvent)
virtual void SAL_CALL acquire() noexcept override
increment refcount @seealso XInterface @seealso release() @onerror A RuntimeException is thrown.