fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / toolkit / inc / helper / unowrapper.hxx
blob15eab553a0951be01f949ec42fcbd343f8ae57fd
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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"
33 // class UnoWrapper
36 class UnoWrapper : public UnoWrapperBase
38 private:
39 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit> mxToolkit;
40 ::toolkit::AccessibilityClient maAccessibleFactoryAccess;
42 public:
43 UnoWrapper( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit>& rxToolkit );
45 virtual void Destroy() SAL_OVERRIDE;
47 // Toolkit
48 virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit> GetVCLToolkit() SAL_OVERRIDE;
50 // Graphics
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;
54 // Window
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 );
76 // Accessibility
77 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
78 CreateAccessible( Menu* pMenu, bool bIsMenuBar ) SAL_OVERRIDE;
80 private:
81 virtual ~UnoWrapper();
84 #endif // INCLUDED_TOOLKIT_INC_HELPER_UNOWRAPPER_HXX
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */