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 .
23 #include <tools/solar.h>
24 #include <osl/thread.hxx>
25 #include <vclpluginapi.h>
26 #include <salinst.hxx>
27 #include <vcl/solarmutex.hxx>
28 #include "generic/geninst.h"
34 namespace com
{ namespace sun
{ namespace star
{ namespace datatransfer
{
35 namespace clipboard
{ class XClipboard
; }
39 class VCLPLUG_GEN_PUBLIC X11SalInstance
: public SalGenericInstance
42 boost::unordered_map
< OUString
, boost::unordered_map
< Atom
, com::sun::star::uno::Reference
< com::sun::star::datatransfer::clipboard::XClipboard
> >, OUStringHash
> m_aInstances
;
47 X11SalInstance( SalYieldMutex
* pMutex
) : SalGenericInstance( pMutex
), mpXLib(NULL
) {}
48 virtual ~X11SalInstance();
50 virtual SalFrame
* CreateChildFrame( SystemParentData
* pParent
, sal_uIntPtr nStyle
);
51 virtual SalFrame
* CreateFrame( SalFrame
* pParent
, sal_uIntPtr nStyle
);
52 virtual void DestroyFrame( SalFrame
* pFrame
);
54 virtual SalObject
* CreateObject( SalFrame
* pParent
, SystemWindowData
* pWindowData
, sal_Bool bShow
= sal_True
);
55 virtual void DestroyObject( SalObject
* pObject
);
57 virtual SalVirtualDevice
* CreateVirtualDevice( SalGraphics
* pGraphics
,
59 sal_uInt16 nBitCount
, const SystemGraphicsData
*pData
= NULL
);
60 virtual void DestroyVirtualDevice( SalVirtualDevice
* pDevice
);
61 virtual void PostPrintersChanged();
62 virtual GenPspGraphics
*CreatePrintGraphics();
64 virtual SalTimer
* CreateSalTimer();
65 virtual SalI18NImeStatus
* CreateI18NImeStatus();
66 virtual SalSystem
* CreateSalSystem();
67 virtual SalBitmap
* CreateSalBitmap();
68 virtual SalSession
* CreateSalSession();
70 virtual void Yield( bool bWait
, bool bHandleAllCurrentEvents
);
71 virtual bool AnyInput( sal_uInt16 nType
);
73 virtual void* GetConnectionIdentifier( ConnectionIdentifierType
& rReturnedType
, int& rReturnedBytes
);
74 void FillFontPathList( std::list
< OString
>& o_rFontPaths
);
75 void SetLib( SalXLib
*pXLib
) { mpXLib
= pXLib
; }
77 // dtrans implementation
78 virtual com::sun::star::uno::Reference
< com::sun::star::uno::XInterface
>
79 CreateClipboard( const com::sun::star::uno::Sequence
< com::sun::star::uno::Any
>& i_rArguments
);
80 virtual com::sun::star::uno::Reference
< com::sun::star::uno::XInterface
> CreateDragSource();
81 virtual com::sun::star::uno::Reference
< com::sun::star::uno::XInterface
> CreateDropTarget();
82 virtual void AddToRecentDocumentList(const OUString
& rFileUrl
, const OUString
& rMimeType
, const OUString
& rDocumentService
);
85 #endif // _SV_SALINST_H
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */