1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_TOOLKIT_INC_HELPER_UNOWRAPPER_HXX
21 #define INCLUDED_TOOLKIT_INC_HELPER_UNOWRAPPER_HXX
23 #include <com/sun/star/awt/XToolkit.hpp>
24 #include <com/sun/star/awt/XGraphics.hpp>
25 #include <com/sun/star/awt/XWindowPeer.hpp>
26 #include <com/sun/star/accessibility/XAccessible.hpp>
28 #include <vcl/unowrap.hxx>
29 #include <vcl/window.hxx>
31 #include "helper/accessibilityclient.hxx"
36 class UnoWrapper
: public UnoWrapperBase
39 ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XToolkit
> mxToolkit
;
40 ::toolkit::AccessibilityClient maAccessibleFactoryAccess
;
43 UnoWrapper( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XToolkit
>& rxToolkit
);
45 virtual void Destroy() SAL_OVERRIDE
;
48 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XToolkit
> GetVCLToolkit() SAL_OVERRIDE
;
51 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XGraphics
> CreateGraphics( OutputDevice
* pOutDev
) SAL_OVERRIDE
;
52 virtual void ReleaseAllGraphics( OutputDevice
* pOutDev
) SAL_OVERRIDE
;
55 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XWindowPeer
> GetWindowInterface( vcl::Window
* pWindow
, bool bCreate
) SAL_OVERRIDE
;
56 virtual void SetWindowInterface( vcl::Window
* pWindow
, ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XWindowPeer
> xIFace
) SAL_OVERRIDE
;
58 void WindowDestroyed( vcl::Window
* pWindow
) SAL_OVERRIDE
;
59 void WindowEvent_Move( vcl::Window
* pWindow
);
60 void WindowEvent_Resize( vcl::Window
* pWindow
);
61 void WindowEvent_Show( vcl::Window
* pWindow
, bool bShow
);
62 void WindowEvent_Close( vcl::Window
* pWindow
);
63 void WindowEvent_Minimize( vcl::Window
* pWindow
);
64 void WindowEvent_Normalize( vcl::Window
* pWindow
);
65 void WindowEvent_Activate( vcl::Window
* pWindow
, bool bActivated
);
66 void WindowEvent_MouseButtonUp( vcl::Window
* pWindow
, const MouseEvent
& rEvt
);
67 void WindowEvent_MouseButtonDown( vcl::Window
* pWindow
, const MouseEvent
& rEvt
);
68 void WindowEvent_MouseMove( vcl::Window
* pWindow
, const MouseEvent
& rEvt
);
69 void WindowEvent_Command( vcl::Window
* pWindow
, const CommandEvent
& rCEvt
);
70 void WindowEvent_KeyInput( vcl::Window
* pWindow
, const KeyEvent
& rEvt
);
71 void WindowEvent_KeyUp( vcl::Window
* pWindow
, const KeyEvent
& rEvt
);
72 void WindowEvent_GetFocus( vcl::Window
* pWindow
);
73 void WindowEvent_LoseFocus( vcl::Window
* pWindow
);
74 void WindowEvent_Paint( vcl::Window
* pWindow
, const Rectangle
& rRect
);
77 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
>
78 CreateAccessible( Menu
* pMenu
, bool bIsMenuBar
) SAL_OVERRIDE
;
81 virtual ~UnoWrapper();
84 #endif // INCLUDED_TOOLKIT_INC_HELPER_UNOWRAPPER_HXX
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */