LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
GtkInstance Class Referencefinal

#include <gtkinst.hxx>

Inheritance diagram for GtkInstance:
[legend]
Collaboration diagram for GtkInstance:
[legend]

Public Member Functions

 GtkInstance (std::unique_ptr< SalYieldMutex > pMutex)
 
virtual ~GtkInstance () override
 
void EnsureInit ()
 
virtual void AfterAppInit () override
 
virtual SalFrameCreateFrame (SalFrame *pParent, SalFrameStyleFlags nStyle) override
 
virtual SalFrameCreateChildFrame (SystemParentData *pParent, SalFrameStyleFlags nStyle) override
 
virtual SalObjectCreateObject (SalFrame *pParent, SystemWindowData *pWindowData, bool bShow) override
 
virtual SalSystemCreateSalSystem () override
 
virtual SalInfoPrinterCreateInfoPrinter (SalPrinterQueueInfo *pPrinterQueueInfo, ImplJobSetup *pJobSetup) override
 
virtual std::unique_ptr< SalPrinterCreatePrinter (SalInfoPrinter *pInfoPrinter) override
 
virtual std::unique_ptr< SalMenuCreateMenu (bool, Menu *) override
 
virtual std::unique_ptr< SalMenuItemCreateMenuItem (const SalItemParams &) override
 
virtual SalTimerCreateSalTimer () override
 
virtual void AddToRecentDocumentList (const OUString &rFileUrl, const OUString &rMimeType, const OUString &rDocumentService) override
 
virtual std::unique_ptr< SalVirtualDeviceCreateVirtualDevice (SalGraphics &, tools::Long &nDX, tools::Long &nDY, DeviceFormat eFormat, const SystemGraphicsData *=nullptr) override
 
virtual std::shared_ptr< SalBitmapCreateSalBitmap () override
 
virtual bool DoYield (bool bWait, bool bHandleAllCurrentEvents) override
 Wait for the next event (if bWait) and dispatch it, includes posted events, and timers. More...
 
virtual bool AnyInput (VclInputFlags nType) override
 
virtual bool IsMainThread () const override
 
virtual std::unique_ptr< GenPspGraphicsCreatePrintGraphics () override
 
virtual bool hasNativeFileSelection () const override
 
virtual css::uno::Reference< css::ui::dialogs::XFilePicker2 > createFilePicker (const css::uno::Reference< css::uno::XComponentContext > &) override
 
virtual css::uno::Reference< css::ui::dialogs::XFolderPicker2 > createFolderPicker (const css::uno::Reference< css::uno::XComponentContext > &) override
 
virtual css::uno::Reference< css::uno::XInterface > CreateClipboard (const css::uno::Sequence< css::uno::Any > &i_rArguments) override
 
virtual css::uno::Reference< css::uno::XInterface > ImplCreateDragSource (const SystemEnvData *) override
 
virtual css::uno::Reference< css::uno::XInterface > ImplCreateDropTarget (const SystemEnvData *) override
 
virtual OpenGLContextCreateOpenGLContext () override
 
virtual std::unique_ptr< weld::BuilderCreateBuilder (weld::Widget *pParent, const OUString &rUIRoot, const OUString &rUIFile) override
 
virtual std::unique_ptr< weld::BuilderCreateInterimBuilder (vcl::Window *pParent, const OUString &rUIRoot, const OUString &rUIFile, bool bAllowCycleFocusOut, sal_uInt64 nLOKWindowId=0) override
 
virtual weld::MessageDialogCreateMessageDialog (weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage) override
 
virtual weld::WindowGetFrameWeld (const css::uno::Reference< css::awt::XWindow > &rWindow) override
 
virtual const cairo_font_options_tGetCairoFontOptions () override
 
const cairo_font_options_tGetLastSeenCairoFontOptions () const
 
void ResetLastSeenCairoFontOptions (const cairo_font_options_t *pOptions)
 
void RemoveTimer ()
 
void * CreateGStreamerSink (const SystemChildWindow *) override
 
- Public Member Functions inherited from SvpSalInstance
 SvpSalInstance (std::unique_ptr< SalYieldMutex > pMutex)
 
virtual ~SvpSalInstance () override
 
void CloseWakeupPipe ()
 
void Wakeup (SvpRequest request=SvpRequest::NONE)
 
void StartTimer (sal_uInt64 nMS)
 
void StopTimer ()
 
void registerFrame (SalFrame *pFrame)
 
void deregisterFrame (SalFrame *pFrame)
 
bool CheckTimeout (bool bExecuteTimers=true)
 
virtual SalFrameCreateChildFrame (SystemParentData *pParent, SalFrameStyleFlags nStyle) override
 
virtual SalFrameCreateFrame (SalFrame *pParent, SalFrameStyleFlags nStyle) override
 
virtual void DestroyFrame (SalFrame *pFrame) override
 
virtual SalObjectCreateObject (SalFrame *pParent, SystemWindowData *pWindowData, bool bShow) override
 
virtual void DestroyObject (SalObject *pObject) override
 
virtual std::unique_ptr< SalVirtualDeviceCreateVirtualDevice (SalGraphics &rGraphics, tools::Long &nDX, tools::Long &nDY, DeviceFormat eFormat, const SystemGraphicsData *pData=nullptr) override
 
virtual SalInfoPrinterCreateInfoPrinter (SalPrinterQueueInfo *pQueueInfo, ImplJobSetup *pSetupData) override
 
virtual void DestroyInfoPrinter (SalInfoPrinter *pPrinter) override
 
virtual std::unique_ptr< SalPrinterCreatePrinter (SalInfoPrinter *pInfoPrinter) override
 
virtual void GetPrinterQueueInfo (ImplPrnQueueList *pList) override
 
virtual void GetPrinterQueueState (SalPrinterQueueInfo *pInfo) override
 
virtual OUString GetDefaultPrinter () override
 
virtual void PostPrintersChanged () override
 
virtual SalTimerCreateSalTimer () override
 
virtual SalSystemCreateSalSystem () override
 
virtual std::shared_ptr< SalBitmapCreateSalBitmap () override
 
virtual bool DoYield (bool bWait, bool bHandleAllCurrentEvents) override
 Wait for the next event (if bWait) and dispatch it, includes posted events, and timers. More...
 
virtual bool AnyInput (VclInputFlags nType) override
 
virtual bool IsMainThread () const override
 
virtual void updateMainThread () override
 Set the app's (somewhat) magic/main-thread to this one. More...
 
virtual OUString GetConnectionIdentifier () override
 
virtual void AddToRecentDocumentList (const OUString &rFileUrl, const OUString &rMimeType, const OUString &rDocumentService) override
 
virtual std::unique_ptr< GenPspGraphicsCreatePrintGraphics () override
 
virtual const cairo_font_options_tGetCairoFontOptions () override
 
- Public Member Functions inherited from SalGenericInstance
 SalGenericInstance (std::unique_ptr< comphelper::SolarMutex > pMutex)
 
virtual ~SalGenericInstance () override
 
virtual SalInfoPrinterCreateInfoPrinter (SalPrinterQueueInfo *pQueueInfo, ImplJobSetup *pSetupData) override
 
virtual void DestroyInfoPrinter (SalInfoPrinter *pPrinter) override
 
virtual std::unique_ptr< SalPrinterCreatePrinter (SalInfoPrinter *pInfoPrinter) override
 
virtual void GetPrinterQueueInfo (ImplPrnQueueList *pList) override
 
virtual void GetPrinterQueueState (SalPrinterQueueInfo *pInfo) override
 
virtual OUString GetDefaultPrinter () override
 
virtual void PostPrintersChanged ()=0
 
virtual void updatePrinterUpdate () override
 
virtual void jobStartedPrinterUpdate () override
 
virtual void jobEndedPrinterUpdate () override
 
bool isPrinterInit () const
 
virtual std::unique_ptr< GenPspGraphicsCreatePrintGraphics ()=0
 
virtual OUString getOSVersion () override
 get information about underlying versions More...
 
- Public Member Functions inherited from SalInstance
 SalInstance (std::unique_ptr< comphelper::SolarMutex > pMutex)
 
virtual ~SalInstance ()
 
bool supportsBitmap32 () const
 
bool supportsOpenGL () const
 
virtual void AfterAppInit ()
 
virtual bool SVMainHook (int *)
 
virtual SalFrameCreateChildFrame (SystemParentData *pParent, SalFrameStyleFlags nStyle)=0
 
virtual SalFrameCreateFrame (SalFrame *pParent, SalFrameStyleFlags nStyle)=0
 
virtual void DestroyFrame (SalFrame *pFrame)=0
 
virtual SalObjectCreateObject (SalFrame *pParent, SystemWindowData *pWindowData, bool bShow)=0
 
virtual void DestroyObject (SalObject *pObject)=0
 
virtual std::unique_ptr< SalVirtualDeviceCreateVirtualDevice (SalGraphics &rGraphics, tools::Long &rDX, tools::Long &rDY, DeviceFormat eFormat, const SystemGraphicsData *pData=nullptr)=0
 
virtual SalInfoPrinterCreateInfoPrinter (SalPrinterQueueInfo *pQueueInfo, ImplJobSetup *pSetupData)=0
 
virtual void DestroyInfoPrinter (SalInfoPrinter *pPrinter)=0
 
virtual std::unique_ptr< SalPrinterCreatePrinter (SalInfoPrinter *pInfoPrinter)=0
 
virtual void GetPrinterQueueInfo (ImplPrnQueueList *pList)=0
 
virtual void GetPrinterQueueState (SalPrinterQueueInfo *pInfo)=0
 
virtual OUString GetDefaultPrinter ()=0
 
virtual SalTimerCreateSalTimer ()=0
 
virtual SalSystemCreateSalSystem ()=0
 
virtual std::shared_ptr< SalBitmapCreateSalBitmap ()=0
 
comphelper::SolarMutexGetYieldMutex ()
 
sal_uInt32 ReleaseYieldMutexAll ()
 
void AcquireYieldMutex (sal_uInt32 nCount=1)
 
virtual bool IsMainThread () const =0
 
virtual bool DoYield (bool bWait, bool bHandleAllCurrentEvents)=0
 Wait for the next event (if bWait) and dispatch it, includes posted events, and timers. More...
 
virtual bool AnyInput (VclInputFlags nType)=0
 
virtual std::unique_ptr< SalMenuCreateMenu (bool bMenuBar, Menu *pMenu)
 
virtual std::unique_ptr< SalMenuItemCreateMenuItem (const SalItemParams &pItemData)
 
virtual std::unique_ptr< SalSessionCreateSalSession ()
 
virtual OpenGLContextCreateOpenGLContext ()
 
virtual std::unique_ptr< weld::BuilderCreateBuilder (weld::Widget *pParent, const OUString &rUIRoot, const OUString &rUIFile)
 
virtual std::unique_ptr< weld::BuilderCreateInterimBuilder (vcl::Window *pParent, const OUString &rUIRoot, const OUString &rUIFile, bool bAllowCycleFocusOut, sal_uInt64 nLOKWindowId=0)
 
virtual weld::MessageDialogCreateMessageDialog (weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage)
 
virtual weld::WindowGetFrameWeld (const css::uno::Reference< css::awt::XWindow > &rWindow)
 
void SetEventCallback (rtl::Reference< vcl::DisplayConnectionDispatch > const &pInstance)
 
bool CallEventCallback (void const *pEvent, int nBytes)
 
virtual OUString GetConnectionIdentifier ()=0
 
virtual css::uno::Reference< css::uno::XInterface > CreateClipboard (const css::uno::Sequence< css::uno::Any > &i_rArguments)
 
virtual css::uno::Reference< css::uno::XInterface > ImplCreateDragSource (const SystemEnvData *)
 
virtual css::uno::Reference< css::uno::XInterface > ImplCreateDropTarget (const SystemEnvData *)
 
css::uno::Reference< css::uno::XInterface > CreateDragSource (const SystemEnvData *=nullptr)
 
css::uno::Reference< css::uno::XInterface > CreateDropTarget (const SystemEnvData *=nullptr)
 
virtual void AddToRecentDocumentList (const OUString &rFileUrl, const OUString &rMimeType, const OUString &rDocumentService)=0
 
virtual bool hasNativeFileSelection () const
 
virtual css::uno::Reference< css::ui::dialogs::XFilePicker2 > createFilePicker (const css::uno::Reference< css::uno::XComponentContext > &)
 
virtual css::uno::Reference< css::ui::dialogs::XFolderPicker2 > createFolderPicker (const css::uno::Reference< css::uno::XComponentContext > &)
 
virtual void updatePrinterUpdate ()
 
virtual void jobStartedPrinterUpdate ()
 
virtual void jobEndedPrinterUpdate ()
 
virtual void updateMainThread ()
 Set the app's (somewhat) magic/main-thread to this one. More...
 
virtual void releaseMainThread ()
 Disconnect that - good for detaching from the JavaVM on Android. More...
 
virtual OUString getOSVersion ()
 get information about underlying versions More...
 
virtual const cairo_font_options_tGetCairoFontOptions ()
 
virtual void * CreateGStreamerSink (const SystemChildWindow *)
 
virtual void BeforeAbort (const OUString &, bool)
 
virtual bool DoExecute (int &nExitCode)
 
virtual void DoQuit ()
 
- Public Member Functions inherited from SalUserEventList
 SalUserEventList ()
 
virtual ~SalUserEventList () COVERITY_NOEXCEPT_FALSE
 
const SalFrameSetgetFrames () const
 
SalFrameanyFrame () const
 
void insertFrame (SalFrame *pFrame)
 
void eraseFrame (SalFrame *pFrame)
 
bool isFrameAlive (const SalFrame *pFrame) const
 
void PostEvent (SalFrame *pFrame, void *pData, SalEvent nEvent)
 
void RemoveEvent (SalFrame *pFrame, void *pData, SalEvent nEvent)
 
bool HasUserEvents () const
 
bool DispatchUserEvents (bool bHandleAllCurrentEvents)
 

Private Member Functions

bool IsTimerExpired ()
 

Private Attributes

GtkSalTimerm_pTimer
 
css::uno::Reference< css::uno::XInterface > m_aClipboards [2]
 
bool bNeedsInit
 
cairo_font_options_tm_pLastCairoFontOptions
 

Additional Inherited Members

- Static Public Member Functions inherited from SalGenericInstance
static void RegisterFontSubstitutors (vcl::font::PhysicalFontCollection *pFontCollection)
 
- Static Public Member Functions inherited from SalInstance
static bool IsRunningUnitTest ()
 
- Static Public Attributes inherited from SvpSalInstance
static SvpSalInstances_pDefaultInstance
 
- Protected Member Functions inherited from SalUserEventList
virtual void ProcessEvent (SalUserEvent aEvent)=0
 
virtual void TriggerUserEventProcessing ()=0
 
virtual void TriggerAllUserEventsProcessed ()
 
bool HasUserEvents_NoLock () const
 
- Static Protected Member Functions inherited from SalGenericInstance
static void configurePspInfoPrinter (PspSalInfoPrinter *pInfoPrinter, SalPrinterQueueInfo const *pQueueInfo, ImplJobSetup *pSetupData)
 
- Protected Attributes inherited from SalGenericInstance
bool mbPrinterInit
 
- Protected Attributes inherited from SalInstance
bool m_bSupportsBitmap32 = false
 
bool m_bSupportsOpenGL = false
 
- Protected Attributes inherited from SalUserEventList
std::mutex m_aUserEventsMutex
 
std::list< SalUserEventm_aUserEvents
 
std::list< SalUserEventm_aProcessingUserEvents
 
bool m_bAllUserEventProcessedSignaled
 
SalFrameSet m_aFrames
 
oslThreadIdentifier m_aProcessingThread
 

Detailed Description

Definition at line 249 of file gtkinst.hxx.

Constructor & Destructor Documentation

◆ GtkInstance()

GtkInstance::GtkInstance ( std::unique_ptr< SalYieldMutex pMutex)

◆ ~GtkInstance()

virtual GtkInstance::~GtkInstance ( )
overridevirtual

Member Function Documentation

◆ AddToRecentDocumentList()

virtual void GtkInstance::AddToRecentDocumentList ( const OUString &  rFileUrl,
const OUString &  rMimeType,
const OUString &  rDocumentService 
)
overridevirtual

Reimplemented from SvpSalInstance.

◆ AfterAppInit()

virtual void GtkInstance::AfterAppInit ( )
overridevirtual

Reimplemented from SalInstance.

◆ AnyInput()

virtual bool GtkInstance::AnyInput ( VclInputFlags  nType)
overridevirtual

Reimplemented from SvpSalInstance.

◆ CreateBuilder()

virtual std::unique_ptr< weld::Builder > GtkInstance::CreateBuilder ( weld::Widget pParent,
const OUString &  rUIRoot,
const OUString &  rUIFile 
)
overridevirtual

Reimplemented from SalInstance.

◆ CreateChildFrame()

virtual SalFrame * GtkInstance::CreateChildFrame ( SystemParentData pParent,
SalFrameStyleFlags  nStyle 
)
overridevirtual

Reimplemented from SvpSalInstance.

◆ CreateClipboard()

virtual css::uno::Reference< css::uno::XInterface > GtkInstance::CreateClipboard ( const css::uno::Sequence< css::uno::Any > &  i_rArguments)
overridevirtual

Reimplemented from SalInstance.

◆ createFilePicker()

virtual css::uno::Reference< css::ui::dialogs::XFilePicker2 > GtkInstance::createFilePicker ( const css::uno::Reference< css::uno::XComponentContext > &  )
overridevirtual

Reimplemented from SalInstance.

◆ createFolderPicker()

virtual css::uno::Reference< css::ui::dialogs::XFolderPicker2 > GtkInstance::createFolderPicker ( const css::uno::Reference< css::uno::XComponentContext > &  )
overridevirtual

Reimplemented from SalInstance.

◆ CreateFrame()

virtual SalFrame * GtkInstance::CreateFrame ( SalFrame pParent,
SalFrameStyleFlags  nStyle 
)
overridevirtual

Reimplemented from SvpSalInstance.

◆ CreateGStreamerSink()

void * GtkInstance::CreateGStreamerSink ( const SystemChildWindow )
overridevirtual

Reimplemented from SalInstance.

◆ CreateInfoPrinter()

virtual SalInfoPrinter * GtkInstance::CreateInfoPrinter ( SalPrinterQueueInfo pPrinterQueueInfo,
ImplJobSetup pJobSetup 
)
overridevirtual

Reimplemented from SvpSalInstance.

◆ CreateInterimBuilder()

virtual std::unique_ptr< weld::Builder > GtkInstance::CreateInterimBuilder ( vcl::Window pParent,
const OUString &  rUIRoot,
const OUString &  rUIFile,
bool  bAllowCycleFocusOut,
sal_uInt64  nLOKWindowId = 0 
)
overridevirtual

Reimplemented from SalInstance.

◆ CreateMenu()

virtual std::unique_ptr< SalMenu > GtkInstance::CreateMenu ( bool  ,
Menu  
)
overridevirtual

Reimplemented from SalInstance.

◆ CreateMenuItem()

virtual std::unique_ptr< SalMenuItem > GtkInstance::CreateMenuItem ( const SalItemParams )
overridevirtual

Reimplemented from SalInstance.

◆ CreateMessageDialog()

virtual weld::MessageDialog * GtkInstance::CreateMessageDialog ( weld::Widget pParent,
VclMessageType  eMessageType,
VclButtonsType  eButtonType,
const OUString &  rPrimaryMessage 
)
overridevirtual

Reimplemented from SalInstance.

◆ CreateObject()

virtual SalObject * GtkInstance::CreateObject ( SalFrame pParent,
SystemWindowData pWindowData,
bool  bShow 
)
overridevirtual

Reimplemented from SvpSalInstance.

◆ CreateOpenGLContext()

virtual OpenGLContext * GtkInstance::CreateOpenGLContext ( )
overridevirtual

Reimplemented from SalInstance.

◆ CreatePrinter()

virtual std::unique_ptr< SalPrinter > GtkInstance::CreatePrinter ( SalInfoPrinter pInfoPrinter)
overridevirtual

Reimplemented from SvpSalInstance.

◆ CreatePrintGraphics()

virtual std::unique_ptr< GenPspGraphics > GtkInstance::CreatePrintGraphics ( )
overridevirtual

Reimplemented from SvpSalInstance.

◆ CreateSalBitmap()

virtual std::shared_ptr< SalBitmap > GtkInstance::CreateSalBitmap ( )
overridevirtual

Reimplemented from SvpSalInstance.

◆ CreateSalSystem()

virtual SalSystem * GtkInstance::CreateSalSystem ( )
overridevirtual

Reimplemented from SvpSalInstance.

◆ CreateSalTimer()

virtual SalTimer * GtkInstance::CreateSalTimer ( )
overridevirtual

Reimplemented from SvpSalInstance.

◆ CreateVirtualDevice()

virtual std::unique_ptr< SalVirtualDevice > GtkInstance::CreateVirtualDevice ( SalGraphics ,
tools::Long nDX,
tools::Long nDY,
DeviceFormat  eFormat,
const SystemGraphicsData = nullptr 
)
overridevirtual

Reimplemented from SvpSalInstance.

◆ DoYield()

virtual bool GtkInstance::DoYield ( bool  bWait,
bool  bHandleAllCurrentEvents 
)
overridevirtual

Wait for the next event (if bWait) and dispatch it, includes posted events, and timers.

If bHandleAllCurrentEvents - dispatch multiple posted user events. Returns true if events were processed.

Reimplemented from SvpSalInstance.

◆ EnsureInit()

void GtkInstance::EnsureInit ( )

◆ GetCairoFontOptions()

virtual const cairo_font_options_t * GtkInstance::GetCairoFontOptions ( )
overridevirtual

Reimplemented from SvpSalInstance.

◆ GetFrameWeld()

virtual weld::Window * GtkInstance::GetFrameWeld ( const css::uno::Reference< css::awt::XWindow > &  rWindow)
overridevirtual

Reimplemented from SalInstance.

◆ GetLastSeenCairoFontOptions()

const cairo_font_options_t * GtkInstance::GetLastSeenCairoFontOptions ( ) const

◆ hasNativeFileSelection()

virtual bool GtkInstance::hasNativeFileSelection ( ) const
inlineoverridevirtual

Reimplemented from SalInstance.

Definition at line 281 of file gtkinst.hxx.

◆ ImplCreateDragSource()

virtual css::uno::Reference< css::uno::XInterface > GtkInstance::ImplCreateDragSource ( const SystemEnvData )
overridevirtual

Reimplemented from SalInstance.

◆ ImplCreateDropTarget()

virtual css::uno::Reference< css::uno::XInterface > GtkInstance::ImplCreateDropTarget ( const SystemEnvData )
overridevirtual

Reimplemented from SalInstance.

◆ IsMainThread()

virtual bool GtkInstance::IsMainThread ( ) const
inlineoverridevirtual

Reimplemented from SvpSalInstance.

Definition at line 277 of file gtkinst.hxx.

◆ IsTimerExpired()

bool GtkInstance::IsTimerExpired ( )
private

◆ RemoveTimer()

void GtkInstance::RemoveTimer ( )

◆ ResetLastSeenCairoFontOptions()

void GtkInstance::ResetLastSeenCairoFontOptions ( const cairo_font_options_t pOptions)

Member Data Documentation

◆ bNeedsInit

bool GtkInstance::bNeedsInit
private

Definition at line 310 of file gtkinst.hxx.

◆ m_aClipboards

css::uno::Reference<css::uno::XInterface> GtkInstance::m_aClipboards[2]
private

Definition at line 308 of file gtkinst.hxx.

◆ m_pLastCairoFontOptions

cairo_font_options_t* GtkInstance::m_pLastCairoFontOptions
private

Definition at line 311 of file gtkinst.hxx.

◆ m_pTimer

GtkSalTimer* GtkInstance::m_pTimer
private

Definition at line 307 of file gtkinst.hxx.


The documentation for this class was generated from the following file: