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

#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 *, long &nDX, 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 > CreateDragSource () override
 
virtual css::uno::Reference< css::uno::XInterface > CreateDropTarget () override
 
virtual OpenGLContextCreateOpenGLContext () override
 
virtual weld::BuilderCreateBuilder (weld::Widget *pParent, const OUString &rUIRoot, const OUString &rUIFile) 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 ()
 
std::shared_ptr< vcl::unx::GtkPrintWrapper > const & getPrintWrapper () const
 
voidCreateGStreamerSink (const SystemChildWindow *) override
 
- Public Member Functions inherited from SvpSalInstance
 SvpSalInstance (std::unique_ptr< SalYieldMutex > pMutex)
 
virtual ~SvpSalInstance () override
 
void CloseWakeupPipe (bool log)
 
void CreateWakeupPipe (bool log)
 
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 void DestroyFrame (SalFrame *pFrame) override
 
virtual void DestroyObject (SalObject *pObject) override
 
virtual void DestroyInfoPrinter (SalInfoPrinter *pPrinter) override
 
virtual void GetPrinterQueueInfo (ImplPrnQueueList *pList) override
 
virtual void GetPrinterQueueState (SalPrinterQueueInfo *pInfo) override
 
virtual OUString GetDefaultPrinter () override
 
virtual void PostPrintersChanged () override
 
std::shared_ptr< vcl::BackendCapabilitiesGetBackendCapabilities () override
 
virtual void updateMainThread () override
 
virtual OUString GetConnectionIdentifier () override
 
- Public Member Functions inherited from SalGenericInstance
 SalGenericInstance (std::unique_ptr< comphelper::SolarMutex > pMutex)
 
virtual ~SalGenericInstance () override
 
virtual void updatePrinterUpdate () override
 
virtual void jobStartedPrinterUpdate () override
 
virtual void jobEndedPrinterUpdate () override
 
bool isPrinterInit () const
 
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 ()
 
virtual bool SVMainHook (int *)
 
comphelper::SolarMutexGetYieldMutex ()
 
sal_uInt32 ReleaseYieldMutexAll ()
 
void AcquireYieldMutex (sal_uInt32 nCount=1)
 
virtual std::unique_ptr< SalSessionCreateSalSession ()
 
void SetEventCallback (rtl::Reference< vcl::DisplayConnectionDispatch > const &pInstance)
 
bool CallEventCallback (void const *pEvent, int nBytes)
 
- 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 Types

typedef SvpSalInstance Superclass_t
 

Private Member Functions

bool IsTimerExpired ()
 

Private Attributes

GtkSalTimerm_pTimer
 
std::unordered_map< GdkAtom, css::uno::Reference< css::uno::XInterface > > m_aClipboards
 
bool bNeedsInit
 
cairo_font_options_tm_pLastCairoFontOptions
 
std::shared_ptr< vcl::unx::GtkPrintWrapperm_xPrintWrapper
 

Additional Inherited Members

- Static Public Member Functions inherited from SalGenericInstance
static void RegisterFontSubstitutors (PhysicalFontCollection *pFontCollection)
 
- Static Public Member Functions inherited from SalInstance
static weld::BuilderCreateInterimBuilder (vcl::Window *pParent, const OUString &rUIRoot, const OUString &rUIFile)
 
- Static Public Attributes inherited from SvpSalInstance
static SvpSalInstances_pDefaultInstance
 
- Protected Member Functions inherited from SalUserEventList
virtual void TriggerAllUserEventsProcessed ()
 
- 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 SalUserEventList
osl::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 185 of file gtkinst.hxx.

Member Typedef Documentation

Definition at line 187 of file gtkinst.hxx.

Constructor & Destructor Documentation

GtkInstance::GtkInstance ( std::unique_ptr< SalYieldMutex pMutex)
virtual GtkInstance::~GtkInstance ( )
overridevirtual

Member Function Documentation

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

Reimplemented from SvpSalInstance.

virtual void GtkInstance::AfterAppInit ( )
overridevirtual

Reimplemented from SalInstance.

virtual bool GtkInstance::AnyInput ( VclInputFlags  nType)
overridevirtual

Reimplemented from SvpSalInstance.

virtual weld::Builder* GtkInstance::CreateBuilder ( weld::Widget pParent,
const OUString &  rUIRoot,
const OUString &  rUIFile 
)
overridevirtual

Reimplemented from SalInstance.

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

Reimplemented from SvpSalInstance.

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

Reimplemented from SalInstance.

virtual css::uno::Reference< css::uno::XInterface > GtkInstance::CreateDragSource ( )
overridevirtual

Reimplemented from SalInstance.

virtual css::uno::Reference< css::uno::XInterface > GtkInstance::CreateDropTarget ( )
overridevirtual

Reimplemented from SalInstance.

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

Reimplemented from SalInstance.

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

Reimplemented from SalInstance.

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

Reimplemented from SvpSalInstance.

void* GtkInstance::CreateGStreamerSink ( const SystemChildWindow )
overridevirtual

Reimplemented from SalInstance.

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

Reimplemented from SvpSalInstance.

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

Reimplemented from SalInstance.

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

Reimplemented from SalInstance.

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

Reimplemented from SalInstance.

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

Reimplemented from SvpSalInstance.

virtual OpenGLContext* GtkInstance::CreateOpenGLContext ( )
overridevirtual

Reimplemented from SvpSalInstance.

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

Reimplemented from SvpSalInstance.

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

Reimplemented from SvpSalInstance.

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

Reimplemented from SvpSalInstance.

virtual SalSystem* GtkInstance::CreateSalSystem ( )
overridevirtual

Reimplemented from SvpSalInstance.

virtual SalTimer* GtkInstance::CreateSalTimer ( )
overridevirtual

Reimplemented from SvpSalInstance.

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

Reimplemented from SvpSalInstance.

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.

void GtkInstance::EnsureInit ( )
virtual const cairo_font_options_t* GtkInstance::GetCairoFontOptions ( )
overridevirtual

Reimplemented from SalInstance.

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

Reimplemented from SalInstance.

const cairo_font_options_t* GtkInstance::GetLastSeenCairoFontOptions ( ) const
std::shared_ptr<vcl::unx::GtkPrintWrapper> const& GtkInstance::getPrintWrapper ( ) const
virtual bool GtkInstance::hasNativeFileSelection ( ) const
inlineoverridevirtual

Reimplemented from SalInstance.

Definition at line 218 of file gtkinst.hxx.

virtual bool GtkInstance::IsMainThread ( ) const
inlineoverridevirtual

Reimplemented from SvpSalInstance.

Definition at line 214 of file gtkinst.hxx.

bool GtkInstance::IsTimerExpired ( )
private
void GtkInstance::RemoveTimer ( )
void GtkInstance::ResetLastSeenCairoFontOptions ( const cairo_font_options_t pOptions)

Member Data Documentation

bool GtkInstance::bNeedsInit
private

Definition at line 247 of file gtkinst.hxx.

std::unordered_map< GdkAtom, css::uno::Reference<css::uno::XInterface> > GtkInstance::m_aClipboards
private

Definition at line 245 of file gtkinst.hxx.

cairo_font_options_t* GtkInstance::m_pLastCairoFontOptions
private

Definition at line 248 of file gtkinst.hxx.

GtkSalTimer* GtkInstance::m_pTimer
private

Definition at line 244 of file gtkinst.hxx.

std::shared_ptr<vcl::unx::GtkPrintWrapper> GtkInstance::m_xPrintWrapper
mutableprivate

Definition at line 250 of file gtkinst.hxx.


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