LibreOffice Module vcl (master)  1
gtkinst.hxx
Go to the documentation of this file.
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_GTK_GTKINST_HXX
21 #define INCLUDED_VCL_INC_UNX_GTK_GTKINST_HXX
22 
23 #include <sal/config.h>
24 
25 #include <stack>
26 
27 #include <unx/salinst.h>
28 #include <unx/gensys.h>
29 #include <headless/svpinst.hxx>
30 #include <com/sun/star/datatransfer/DataFlavor.hpp>
31 #include <com/sun/star/datatransfer/dnd/XDragSource.hpp>
32 #include <com/sun/star/datatransfer/dnd/XDropTarget.hpp>
33 #include <com/sun/star/lang/XInitialization.hpp>
34 #include <com/sun/star/lang/XServiceInfo.hpp>
35 #include <com/sun/star/awt/XWindow.hpp>
36 #include <cppuhelper/compbase.hxx>
37 #include <vcl/weld.hxx>
38 #include <vcl/weldutils.hxx>
39 #include <gtk/gtk.h>
40 
41 namespace vcl::unx { class GtkPrintWrapper; }
42 
43 vcl::Font pango_to_vcl(const PangoFontDescription* font, const css::lang::Locale& rLocale);
44 
45 class GenPspGraphics;
46 class GtkYieldMutex final : public SalYieldMutex
47 {
48  thread_local static std::stack<sal_uInt32> yieldCounts;
49 
50 public:
52  void ThreadsEnter();
53  void ThreadsLeave();
54 };
55 
56 class GtkSalFrame;
57 
59 {
60  std::vector<css::datatransfer::DataFlavor> aInfoToFlavor;
61  std::vector<GtkTargetEntry> FormatsToGtk(const css::uno::Sequence<css::datatransfer::DataFlavor> &rFormats);
62  void setSelectionData(const css::uno::Reference<css::datatransfer::XTransferable> &rTrans,
63  GtkSelectionData *selection_data, guint info);
64 private:
65  GtkTargetEntry makeGtkTargetEntry(const css::datatransfer::DataFlavor& rFlavor);
66 };
67 
68 class GtkTransferable : public cppu::WeakImplHelper<css::datatransfer::XTransferable>
69 {
70 protected:
71  std::map<OUString, GdkAtom> m_aMimeTypeToAtom;
72 
73  std::vector<css::datatransfer::DataFlavor> getTransferDataFlavorsAsVector(GdkAtom *targets, gint n_targets);
74 
75 public:
76  virtual css::uno::Any SAL_CALL getTransferData(const css::datatransfer::DataFlavor& rFlavor) override = 0;
77  virtual std::vector<css::datatransfer::DataFlavor> getTransferDataFlavorsAsVector() = 0;
78  virtual css::uno::Sequence<css::datatransfer::DataFlavor> SAL_CALL getTransferDataFlavors() override;
79  virtual sal_Bool SAL_CALL isDataFlavorSupported(const css::datatransfer::DataFlavor& rFlavor) override;
80 };
81 
82 class GtkDnDTransferable;
83 
84 class GtkDropTarget final : public cppu::WeakComponentImplHelper<css::datatransfer::dnd::XDropTarget,
85  css::lang::XInitialization,
86  css::lang::XServiceInfo>
87 {
88  osl::Mutex m_aMutex;
90  GtkDnDTransferable* m_pFormatConversionRequest;
91  bool m_bActive;
92  bool m_bInDrag;
94  std::vector<css::uno::Reference<css::datatransfer::dnd::XDropTargetListener>> m_aListeners;
95 public:
96  GtkDropTarget();
97  virtual ~GtkDropTarget() override;
98 
99  // XInitialization
100  virtual void SAL_CALL initialize(const css::uno::Sequence<css::uno::Any>& rArgs) override;
101  void deinitialize();
102 
103  // XDropTarget
104  virtual void SAL_CALL addDropTargetListener(const css::uno::Reference<css::datatransfer::dnd::XDropTargetListener>&) override;
105  virtual void SAL_CALL removeDropTargetListener(const css::uno::Reference<css::datatransfer::dnd::XDropTargetListener>&) override;
106  virtual sal_Bool SAL_CALL isActive() override;
107  virtual void SAL_CALL setActive(sal_Bool active) override;
108  virtual sal_Int8 SAL_CALL getDefaultActions() override;
109  virtual void SAL_CALL setDefaultActions(sal_Int8 actions) override;
110 
111  OUString SAL_CALL getImplementationName() override;
112 
113  sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
114 
115  css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
116 
117  void fire_dragEnter(const css::datatransfer::dnd::DropTargetDragEnterEvent& dtdee);
118  void fire_dragOver(const css::datatransfer::dnd::DropTargetDragEvent& dtde);
119  void fire_drop(const css::datatransfer::dnd::DropTargetDropEvent& dtde);
120  void fire_dragExit(const css::datatransfer::dnd::DropTargetEvent& dte);
121 
122  void SetFormatConversionRequest(GtkDnDTransferable *pRequest)
123  {
124  m_pFormatConversionRequest = pRequest;
125  }
126 
127  gboolean signalDragDrop(GtkWidget* pWidget, GdkDragContext* context, gint x, gint y, guint time);
128  gboolean signalDragMotion(GtkWidget* pWidget, GdkDragContext* context, gint x, gint y, guint time);
129  void signalDragDropReceived(GtkWidget* pWidget, GdkDragContext* context, gint x, gint y, GtkSelectionData* data, guint ttype, guint time);
130  void signalDragLeave(GtkWidget* pWidget, GdkDragContext* context, guint time);
131 };
132 
133 class GtkDragSource final : public cppu::WeakComponentImplHelper<css::datatransfer::dnd::XDragSource,
134  css::lang::XInitialization,
135  css::lang::XServiceInfo>
136 {
137  osl::Mutex m_aMutex;
139  css::uno::Reference<css::datatransfer::dnd::XDragSourceListener> m_xListener;
140  css::uno::Reference<css::datatransfer::XTransferable> m_xTrans;
142 public:
144  : WeakComponentImplHelper(m_aMutex)
145  , m_pFrame(nullptr)
146  {
147  }
148 
149  void set_datatransfer(const css::uno::Reference<css::datatransfer::XTransferable>& rTrans,
150  const css::uno::Reference<css::datatransfer::dnd::XDragSourceListener>& rListener);
151 
152  std::vector<GtkTargetEntry> FormatsToGtk(const css::uno::Sequence<css::datatransfer::DataFlavor> &rFormats);
153 
154  void setActiveDragSource();
155 
156  virtual ~GtkDragSource() override;
157 
158  // XDragSource
159  virtual sal_Bool SAL_CALL isDragImageSupported() override;
160  virtual sal_Int32 SAL_CALL getDefaultCursor(sal_Int8 dragAction) override;
161  virtual void SAL_CALL startDrag(
162  const css::datatransfer::dnd::DragGestureEvent& trigger, sal_Int8 sourceActions, sal_Int32 cursor, sal_Int32 image,
163  const css::uno::Reference< css::datatransfer::XTransferable >& transferable,
164  const css::uno::Reference< css::datatransfer::dnd::XDragSourceListener >& listener) override;
165 
166  // XInitialization
167  virtual void SAL_CALL initialize(const css::uno::Sequence<css::uno::Any >& rArguments) override;
168  void deinitialize();
169 
170  OUString SAL_CALL getImplementationName() override;
171 
172  sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
173 
174  css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
175 
176  void dragFailed();
177  void dragDelete();
178  void dragEnd(GdkDragContext* context);
179  void dragDataGet(GtkSelectionData *data, guint info);
180 
181  // For LibreOffice internal D&D we provide the Transferable without Gtk
182  // intermediaries as a shortcut, see tdf#100097 for how dbaccess depends on this
184  css::uno::Reference<css::datatransfer::XTransferable> const & GetTransferrable() const { return m_xTrans; }
185 };
186 
187 class GtkSalTimer;
188 class GtkInstance final : public SvpSalInstance
189 {
190 public:
191  GtkInstance( std::unique_ptr<SalYieldMutex> pMutex );
192  virtual ~GtkInstance() override;
193  void EnsureInit();
194  virtual void AfterAppInit() override;
195 
196  virtual SalFrame* CreateFrame( SalFrame* pParent, SalFrameStyleFlags nStyle ) override;
197  virtual SalFrame* CreateChildFrame( SystemParentData* pParent, SalFrameStyleFlags nStyle ) override;
198  virtual SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, bool bShow ) override;
199  virtual SalSystem* CreateSalSystem() override;
200  virtual SalInfoPrinter* CreateInfoPrinter(SalPrinterQueueInfo* pPrinterQueueInfo, ImplJobSetup* pJobSetup) override;
201  virtual std::unique_ptr<SalPrinter> CreatePrinter( SalInfoPrinter* pInfoPrinter ) override;
202  virtual std::unique_ptr<SalMenu> CreateMenu( bool, Menu* ) override;
203  virtual std::unique_ptr<SalMenuItem> CreateMenuItem( const SalItemParams& ) override;
204  virtual SalTimer* CreateSalTimer() override;
205  virtual void AddToRecentDocumentList(const OUString& rFileUrl, const OUString& rMimeType, const OUString& rDocumentService) override;
206  virtual std::unique_ptr<SalVirtualDevice>
208  tools::Long &nDX, tools::Long &nDY,
209  DeviceFormat eFormat,
210  const SystemGraphicsData* = nullptr ) override;
211  virtual std::shared_ptr<SalBitmap> CreateSalBitmap() override;
212 
213  virtual bool DoYield(bool bWait, bool bHandleAllCurrentEvents) override;
214  virtual bool AnyInput( VclInputFlags nType ) override;
215  // impossible to handle correctly, as "main thread" depends on the dispatch mutex
216  virtual bool IsMainThread() const override { return false; }
217 
218  virtual std::unique_ptr<GenPspGraphics> CreatePrintGraphics() override;
219 
220  virtual bool hasNativeFileSelection() const override { return true; }
221 
222  virtual css::uno::Reference< css::ui::dialogs::XFilePicker2 >
223  createFilePicker( const css::uno::Reference< css::uno::XComponentContext >& ) override;
224  virtual css::uno::Reference< css::ui::dialogs::XFolderPicker2 >
225  createFolderPicker( const css::uno::Reference< css::uno::XComponentContext >& ) override;
226 
227  virtual css::uno::Reference< css::uno::XInterface > CreateClipboard( const css::uno::Sequence< css::uno::Any >& i_rArguments ) override;
228  virtual css::uno::Reference< css::uno::XInterface > CreateDragSource() override;
229  virtual css::uno::Reference< css::uno::XInterface > CreateDropTarget() override;
230  virtual OpenGLContext* CreateOpenGLContext() override;
231  virtual weld::Builder* CreateBuilder(weld::Widget* pParent, const OUString& rUIRoot, const OUString& rUIFile) override;
232  virtual weld::Builder* CreateInterimBuilder(vcl::Window* pParent, const OUString& rUIRoot, const OUString& rUIFile,
233  bool bAllowCycleFocusOut, sal_uInt64 nLOKWindowId = 0) override;
234  virtual weld::MessageDialog* CreateMessageDialog(weld::Widget* pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage) override;
235  virtual weld::Window* GetFrameWeld(const css::uno::Reference<css::awt::XWindow>& rWindow) override;
236 
237  virtual const cairo_font_options_t* GetCairoFontOptions() override;
240 
241  void RemoveTimer ();
242 
243  std::shared_ptr<vcl::unx::GtkPrintWrapper> const & getPrintWrapper() const;
244 
245  void* CreateGStreamerSink(const SystemChildWindow*) override;
246 
247 private:
249  std::unordered_map< GdkAtom, css::uno::Reference<css::uno::XInterface> > m_aClipboards;
250  bool IsTimerExpired();
253 
254  mutable std::shared_ptr<vcl::unx::GtkPrintWrapper> m_xPrintWrapper;
255 };
256 
258 {
259 private:
261  GtkWidget* m_pWidget;
262 public:
263 
264  SalGtkXWindow(weld::Window* pWeldWidget, GtkWidget* pWidget)
265  : TransportAsXWindow(pWeldWidget)
266  , m_pWeldWidget(pWeldWidget)
267  , m_pWidget(pWidget)
268  {
269  }
270 
271  virtual void clear() override
272  {
273  m_pWeldWidget = nullptr;
274  m_pWidget = nullptr;
275  TransportAsXWindow::clear();
276  }
277 
278  GtkWidget* getGtkWidget() const
279  {
280  return m_pWidget;
281  }
282 
284  {
285  return m_pWeldWidget;
286  }
287 };
288 
289 GdkPixbuf* load_icon_by_name(const OUString& rIconName);
290 
291 #endif // INCLUDED_VCL_INC_UNX_GTK_GTKINST_HXX
292 
293 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool hasNativeFileSelection() const override
Definition: gtkinst.hxx:220
virtual void AddToRecentDocumentList(const OUString &rFileUrl, const OUString &rMimeType, const OUString &rDocumentService) override
void dragEnd(GdkDragContext *context)
virtual std::unique_ptr< SalMenu > CreateMenu(bool, Menu *) override
std::vector< GtkTargetEntry > FormatsToGtk(const css::uno::Sequence< css::datatransfer::DataFlavor > &rFormats)
virtual const cairo_font_options_t * GetCairoFontOptions() override
void ThreadsEnter()
std::shared_ptr< vcl::unx::GtkPrintWrapper > m_xPrintWrapper
Definition: gtkinst.hxx:254
VclButtonsType
Definition: vclenum.hxx:246
TransportAsXWindow(weld::Widget *pWeldWidget, weld::Builder *pWeldWidgetBuilder=nullptr)
Definition: weldutils.hxx:52
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &rArguments) override
virtual css::uno::Any SAL_CALL getTransferData(const css::datatransfer::DataFlavor &rFlavor) override=0
weld::Window * getFrameWeld() const
Definition: gtkinst.hxx:283
signed char sal_Int8
virtual SalSystem * CreateSalSystem() override
virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors() override
long Long
GtkSalFrame * m_pFrame
Definition: gtkinst.hxx:138
void RemoveTimer()
void fire_dragOver(const css::datatransfer::dnd::DropTargetDragEvent &dtde)
gboolean signalDragMotion(GtkWidget *pWidget, GdkDragContext *context, gint x, gint y, guint time)
sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
virtual std::vector< css::datatransfer::DataFlavor > getTransferDataFlavorsAsVector()=0
void * CreateGStreamerSink(const SystemChildWindow *) override
virtual OpenGLContext * CreateOpenGLContext() override
virtual void SAL_CALL setDefaultActions(sal_Int8 actions) override
virtual void clear() override
Definition: gtkinst.hxx:271
void signalDragLeave(GtkWidget *pWidget, GdkDragContext *context, guint time)
virtual weld::Builder * CreateBuilder(weld::Widget *pParent, const OUString &rUIRoot, const OUString &rUIFile) override
virtual SalTimer * CreateSalTimer() override
GtkWidget * getGtkWidget() const
Definition: gtkinst.hxx:278
vcl::Font pango_to_vcl(const PangoFontDescription *font, const css::lang::Locale &rLocale)
const cairo_font_options_t * GetLastSeenCairoFontOptions() const
css::uno::Reference< css::datatransfer::XTransferable > m_xTrans
Definition: gtkinst.hxx:140
virtual sal_Int32 SAL_CALL getDefaultCursor(sal_Int8 dragAction) override
virtual ~GtkDropTarget() override
bool m_bActive
Definition: gtkinst.hxx:91
virtual void SAL_CALL addDropTargetListener(const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > &) override
virtual css::uno::Reference< css::ui::dialogs::XFilePicker2 > createFilePicker(const css::uno::Reference< css::uno::XComponentContext > &) override
VclInputFlags
Definition: inputtypes.hxx:25
GtkSalFrame * m_pFrame
Definition: gtkinst.hxx:89
virtual ~GtkDragSource() override
sal_Int8 m_nDefaultActions
Definition: gtkinst.hxx:93
virtual css::uno::Reference< css::ui::dialogs::XFolderPicker2 > createFolderPicker(const css::uno::Reference< css::uno::XComponentContext > &) override
std::vector< css::datatransfer::DataFlavor > aInfoToFlavor
Definition: gtkinst.hxx:60
virtual SalFrame * CreateFrame(SalFrame *pParent, SalFrameStyleFlags nStyle) override
GdkPixbuf * load_icon_by_name(const OUString &rIconName)
OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL isActive() override
void fire_dragExit(const css::datatransfer::dnd::DropTargetEvent &dte)
ttype
virtual css::uno::Reference< css::uno::XInterface > CreateDragSource() override
VclMessageType
Definition: vclenum.hxx:256
cairo_font_options_t * m_pLastCairoFontOptions
Definition: gtkinst.hxx:252
virtual void AfterAppInit() override
void ThreadsLeave()
virtual std::unique_ptr< SalMenuItem > CreateMenuItem(const SalItemParams &) override
void SetFormatConversionRequest(GtkDnDTransferable *pRequest)
Definition: gtkinst.hxx:122
osl::Mutex m_aMutex
Definition: gtkinst.hxx:88
virtual void SAL_CALL setActive(sal_Bool active) override
osl::Mutex m_aMutex
Definition: gtkinst.hxx:137
std::vector< GtkTargetEntry > FormatsToGtk(const css::uno::Sequence< css::datatransfer::DataFlavor > &rFormats)
virtual std::shared_ptr< SalBitmap > CreateSalBitmap() override
GtkSalTimer * m_pTimer
Definition: gtkinst.hxx:248
virtual bool AnyInput(VclInputFlags nType) override
void deinitialize()
std::map< OUString, GdkAtom > m_aMimeTypeToAtom
Definition: gtkinst.hxx:71
void deinitialize()
sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
void setActiveDragSource()
virtual bool IsMainThread() const override
Definition: gtkinst.hxx:216
unsigned char sal_Bool
bool m_bInDrag
Definition: gtkinst.hxx:92
virtual std::unique_ptr< SalVirtualDevice > CreateVirtualDevice(SalGraphics *, tools::Long &nDX, tools::Long &nDY, DeviceFormat eFormat, const SystemGraphicsData *=nullptr) override
virtual css::uno::Reference< css::uno::XInterface > CreateClipboard(const css::uno::Sequence< css::uno::Any > &i_rArguments) override
css::uno::Reference< css::datatransfer::XTransferable > const & GetTransferrable() const
Definition: gtkinst.hxx:184
virtual weld::Window * GetFrameWeld(const css::uno::Reference< css::awt::XWindow > &rWindow) override
std::shared_ptr< vcl::unx::GtkPrintWrapper > const & getPrintWrapper() const
void fire_dragEnter(const css::datatransfer::dnd::DropTargetDragEnterEvent &dtdee)
std::vector< css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > > m_aListeners
Definition: gtkinst.hxx:94
static GtkDragSource * g_ActiveDragSource
Definition: gtkinst.hxx:183
DeviceFormat
Definition: salgtype.hxx:28
A SalFrame is a system window (e.g. an X11 window).
Definition: salframe.hxx:112
struct _cairo_font_options cairo_font_options_t
Definition: salinst.hxx:74
virtual void SAL_CALL removeDropTargetListener(const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > &) override
css::uno::Reference< css::datatransfer::dnd::XDragSourceListener > m_xListener
Definition: gtkinst.hxx:139
Definition: menu.hxx:121
gboolean signalDragDrop(GtkWidget *pWidget, GdkDragContext *context, gint x, gint y, guint time)
void setSelectionData(const css::uno::Reference< css::datatransfer::XTransferable > &rTrans, GtkSelectionData *selection_data, guint info)
void dragDelete()
virtual ~GtkInstance() override
virtual sal_Int8 SAL_CALL getDefaultActions() override
virtual SalObject * CreateObject(SalFrame *pParent, SystemWindowData *pWindowData, bool bShow) override
SalFrameStyleFlags
Definition: salframe.hxx:64
void dragDataGet(GtkSelectionData *data, guint info)
VclToGtkHelper m_aConversionHelper
Definition: gtkinst.hxx:141
virtual css::uno::Reference< css::uno::XInterface > CreateDropTarget() override
virtual SalFrame * CreateChildFrame(SystemParentData *pParent, SalFrameStyleFlags nStyle) override
SalGtkXWindow(weld::Window *pWeldWidget, GtkWidget *pWidget)
Definition: gtkinst.hxx:264
virtual std::unique_ptr< GenPspGraphics > CreatePrintGraphics() override
void set_datatransfer(const css::uno::Reference< css::datatransfer::XTransferable > &rTrans, const css::uno::Reference< css::datatransfer::dnd::XDragSourceListener > &rListener)
GtkDnDTransferable * m_pFormatConversionRequest
Definition: gtkinst.hxx:90
bool IsTimerExpired()
weld::Window * m_pWeldWidget
Definition: gtkinst.hxx:260
virtual sal_Bool SAL_CALL isDataFlavorSupported(const css::datatransfer::DataFlavor &rFlavor) override
QPRO_FUNC_TYPE nType
virtual weld::Builder * CreateInterimBuilder(vcl::Window *pParent, const OUString &rUIRoot, const OUString &rUIFile, bool bAllowCycleFocusOut, sal_uInt64 nLOKWindowId=0) override
virtual weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage) override
virtual SalInfoPrinter * CreateInfoPrinter(SalPrinterQueueInfo *pPrinterQueueInfo, ImplJobSetup *pJobSetup) override
OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL isDragImageSupported() override
virtual std::unique_ptr< SalPrinter > CreatePrinter(SalInfoPrinter *pInfoPrinter) override
bool bNeedsInit
Definition: gtkinst.hxx:251
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &rArgs) override
std::unordered_map< GdkAtom, css::uno::Reference< css::uno::XInterface > > m_aClipboards
Definition: gtkinst.hxx:249
virtual bool DoYield(bool bWait, bool bHandleAllCurrentEvents) override
Wait for the next event (if bWait) and dispatch it, includes posted events, and timers.
virtual void SAL_CALL startDrag(const css::datatransfer::dnd::DragGestureEvent &trigger, sal_Int8 sourceActions, sal_Int32 cursor, sal_Int32 image, const css::uno::Reference< css::datatransfer::XTransferable > &transferable, const css::uno::Reference< css::datatransfer::dnd::XDragSourceListener > &listener) override
void signalDragDropReceived(GtkWidget *pWidget, GdkDragContext *context, gint x, gint y, GtkSelectionData *data, guint ttype, guint time)
GtkTargetEntry makeGtkTargetEntry(const css::datatransfer::DataFlavor &rFlavor)
void dragFailed()
void fire_drop(const css::datatransfer::dnd::DropTargetDropEvent &dtde)
static thread_local std::stack< sal_uInt32 > yieldCounts
Definition: gtkinst.hxx:48
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
GtkWidget * m_pWidget
Definition: gtkinst.hxx:261
void ResetLastSeenCairoFontOptions(const cairo_font_options_t *pOptions)
void EnsureInit()
GtkInstance(std::unique_ptr< SalYieldMutex > pMutex)