LCOV - code coverage report
Current view: top level - vcl/inc/unx - salinst.h (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 0.0 %
Date: 2014-04-14 Functions: 0 2 0.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_INC_UNX_SALINST_H
      21             : #define INCLUDED_VCL_INC_UNX_SALINST_H
      22             : 
      23             : #include <osl/thread.hxx>
      24             : #include <vclpluginapi.h>
      25             : #include <salinst.hxx>
      26             : #include "generic/geninst.h"
      27             : 
      28             : #include <prex.h>
      29             : #include <X11/Xlib.h>
      30             : #include <postx.h>
      31             : 
      32             : namespace com { namespace sun { namespace star { namespace datatransfer {
      33             :     namespace clipboard { class XClipboard; }
      34             : } } } }
      35             : 
      36             : class SalXLib;
      37             : class VCLPLUG_GEN_PUBLIC X11SalInstance : public SalGenericInstance
      38             : {
      39             : private:
      40             :     boost::unordered_map< Atom, com::sun::star::uno::Reference< com::sun::star::datatransfer::clipboard::XClipboard > > m_aInstances;
      41             : 
      42             : protected:
      43             :     SalXLib *mpXLib;
      44             : 
      45             : public:
      46           0 :     X11SalInstance( SalYieldMutex* pMutex ) : SalGenericInstance( pMutex ), mpXLib(NULL) {}
      47             :     virtual ~X11SalInstance();
      48             : 
      49             :     virtual SalFrame*           CreateChildFrame( SystemParentData* pParent, sal_uIntPtr nStyle ) SAL_OVERRIDE;
      50             :     virtual SalFrame*           CreateFrame( SalFrame* pParent, sal_uIntPtr nStyle ) SAL_OVERRIDE;
      51             :     virtual void                DestroyFrame( SalFrame* pFrame ) SAL_OVERRIDE;
      52             : 
      53             :     virtual SalObject*          CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, bool bShow = true ) SAL_OVERRIDE;
      54             :     virtual void                DestroyObject( SalObject* pObject ) SAL_OVERRIDE;
      55             : 
      56             :     virtual SalVirtualDevice*   CreateVirtualDevice( SalGraphics* pGraphics,
      57             :                                                      long nDX, long nDY,
      58             :                                                      sal_uInt16 nBitCount, const SystemGraphicsData *pData = NULL ) SAL_OVERRIDE;
      59             :     virtual void                PostPrintersChanged() SAL_OVERRIDE;
      60             :     virtual GenPspGraphics     *CreatePrintGraphics() SAL_OVERRIDE;
      61             : 
      62             :     virtual SalTimer*           CreateSalTimer() SAL_OVERRIDE;
      63             :     virtual SalI18NImeStatus*   CreateI18NImeStatus() SAL_OVERRIDE;
      64             :     virtual SalSystem*          CreateSalSystem() SAL_OVERRIDE;
      65             :     virtual SalBitmap*          CreateSalBitmap() SAL_OVERRIDE;
      66             :     virtual SalSession*         CreateSalSession() SAL_OVERRIDE;
      67             : 
      68             :     virtual void                Yield( bool bWait, bool bHandleAllCurrentEvents ) SAL_OVERRIDE;
      69             :     virtual bool                AnyInput( sal_uInt16 nType ) SAL_OVERRIDE;
      70             : 
      71             :     virtual void*               GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes ) SAL_OVERRIDE;
      72             :     virtual void                FillFontPathList( std::list< OString >& o_rFontPaths ) SAL_OVERRIDE;
      73           0 :     void                        SetLib( SalXLib *pXLib ) { mpXLib = pXLib; }
      74             : 
      75             :     // dtrans implementation
      76             :     virtual com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
      77             :         CreateClipboard( const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& i_rArguments ) SAL_OVERRIDE;
      78             :     virtual com::sun::star::uno::Reference< com::sun::star::uno::XInterface > CreateDragSource() SAL_OVERRIDE;
      79             :     virtual com::sun::star::uno::Reference< com::sun::star::uno::XInterface > CreateDropTarget() SAL_OVERRIDE;
      80             :     virtual void            AddToRecentDocumentList(const OUString& rFileUrl, const OUString& rMimeType, const OUString& rDocumentService) SAL_OVERRIDE;
      81             : };
      82             : 
      83             : #endif // INCLUDED_VCL_INC_UNX_SALINST_H
      84             : 
      85             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10