2010-10-14 01:27:31 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2009-08-07 05:16:34 -05:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
*
|
2010-02-12 08:01:35 -06:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2009-08-07 05:16:34 -05:00
|
|
|
*
|
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
|
|
*
|
|
|
|
* This file is part of OpenOffice.org.
|
|
|
|
*
|
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2011-01-24 09:34:14 -06:00
|
|
|
#include <unx/saldisp.hxx>
|
2009-08-07 05:16:34 -05:00
|
|
|
|
|
|
|
class SalKDEDisplay : public SalX11Display
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SalKDEDisplay( Display* pDisp );
|
2010-10-12 08:52:53 -05:00
|
|
|
virtual ~SalKDEDisplay();
|
|
|
|
static SalKDEDisplay* self();
|
2010-10-13 07:39:16 -05:00
|
|
|
virtual void Yield();
|
2011-02-22 09:31:11 -06:00
|
|
|
bool checkDirectInputEvent( XEvent* ev );
|
2010-10-12 08:52:53 -05:00
|
|
|
private:
|
2011-02-22 09:31:11 -06:00
|
|
|
Atom xim_protocol;
|
2010-10-12 08:52:53 -05:00
|
|
|
static SalKDEDisplay* selfptr;
|
2009-08-07 05:16:34 -05:00
|
|
|
};
|
2010-10-14 01:27:31 -05:00
|
|
|
|
2010-10-12 08:52:53 -05:00
|
|
|
inline SalKDEDisplay* SalKDEDisplay::self()
|
|
|
|
{
|
|
|
|
return selfptr;
|
|
|
|
}
|
|
|
|
|
2010-10-14 01:27:31 -05:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|