LCOV - code coverage report
Current view: top level - include/vcl - unowrap.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 2 2 100.0 %
Date: 2014-04-11 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       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/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      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 .
      18             :  */
      19             : 
      20             : #ifndef INCLUDED_VCL_UNOWRAP_HXX
      21             : #define INCLUDED_VCL_UNOWRAP_HXX
      22             : 
      23             : #include <com/sun/star/uno/Reference.h>
      24             : #include <vcl/dllapi.h>
      25             : 
      26             : class XWindowPeer;
      27             : class XToolkit;
      28             : class EventList;
      29             : class Window;
      30             : class OutputDevice;
      31             : class MouseEvent;
      32             : class CommandEvent;
      33             : class KeyEvent;
      34             : class Rectangle;
      35             : class Menu;
      36             : 
      37             : namespace com {
      38             : namespace sun {
      39             : namespace star {
      40             : namespace awt {
      41             :     class XGraphics;
      42             :     class XToolkit;
      43             :     class XWindowPeer;
      44             : }
      45             : namespace lang {
      46             :     class XMultiServiceFactory;
      47             : }
      48             : } } }
      49             : 
      50             : namespace com {
      51             : namespace sun {
      52             : namespace star {
      53             : namespace accessibility {
      54             :     class XAccessible;
      55             : }}}}
      56             : 
      57          79 : class VCL_DLLPUBLIC UnoWrapperBase
      58             : {
      59             : public:
      60             :     virtual void                Destroy() = 0;
      61             : 
      62             :     // Toolkit
      63             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit > GetVCLToolkit() = 0;
      64             : 
      65             :     // Graphics
      66             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics >    CreateGraphics( OutputDevice* pOutDev ) = 0;
      67             :     virtual void                ReleaseAllGraphics( OutputDevice* pOutDev ) = 0;
      68             : 
      69             :     // Window
      70             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer> GetWindowInterface( Window* pWindow, sal_Bool bCreate ) = 0;
      71             :     virtual void                SetWindowInterface( Window* pWindow, ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xIFace ) = 0;
      72             : 
      73             :     virtual void                WindowDestroyed( Window* pWindow ) = 0;
      74             : 
      75             :     // Accessibility
      76             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
      77             :                                 CreateAccessible( Menu* pMenu, sal_Bool bIsMenuBar ) = 0;
      78             : 
      79             : protected:
      80          32 :     ~UnoWrapperBase() {}
      81             : };
      82             : 
      83             : #endif // INCLUDED_VCL_UNOWRAP_HXX
      84             : 
      85             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10