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