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 std::unique_ptr< SalI18NImeStatusCreateI18NImeStatus () 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 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 const cairo_font_options_tGetCairoFontOptions () override
 
const cairo_font_options_tGetLastSeenCairoFontOptions ()
 
void ResetLastSeenCairoFontOptions (const cairo_font_options_t *pOptions)
 
void RemoveTimer ()
 
std::shared_ptr< vcl::unx::GtkPrintWrapper > const & getPrintWrapper () const
 
- Public Member Functions inherited from X11SalInstance
 X11SalInstance (std::unique_ptr< SalYieldMutex > pMutex)
 
virtual ~X11SalInstance () override
 
virtual void DestroyFrame (SalFrame *pFrame) override
 
virtual void DestroyObject (SalObject *pObject) override
 
virtual void PostPrintersChanged () override
 
virtual std::unique_ptr< SalSessionCreateSalSession () override
 
virtual OpenGLContextCreateOpenGLContext () override
 
virtual OUString GetConnectionIdentifier () override
 
void SetLib (SalXLib *pXLib)
 
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
 
- Public Member Functions inherited from SalGenericInstance
 SalGenericInstance (std::unique_ptr< comphelper::SolarMutex > pMutex)
 
virtual ~SalGenericInstance () 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 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 *)
 
virtual std::shared_ptr< vcl::BackendCapabilitiesGetBackendCapabilities ()
 
comphelper::SolarMutexGetYieldMutex ()
 
sal_uInt32 ReleaseYieldMutexAll ()
 
void AcquireYieldMutex (sal_uInt32 nCount=1)
 
virtual weld::BuilderCreateBuilder (weld::Widget *pParent, const OUString &rUIRoot, const OUString &rUIFile)
 
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 void updateMainThread ()
 
virtual voidCreateGStreamerSink (const SystemChildWindow *)
 

Private Types

typedef X11SalInstance Superclass_t
 

Private Member Functions

bool IsTimerExpired ()
 

Private Attributes

GtkSalTimerm_pTimer
 
bool bNeedsInit
 
cairo_font_options_tm_pLastCairoFontOptions
 
std::shared_ptr< vcl::unx::GtkPrintWrapperm_xPrintWrapper
 

Additional Inherited Members

- Static Public Member Functions inherited from X11SalInstance
static std::unique_ptr< SalVirtualDeviceCreateX11VirtualDevice (SalGraphics const *pGraphics, long &nDX, long &nDY, DeviceFormat eFormat, const SystemGraphicsData *pData, std::unique_ptr< X11SalGraphics > pNewGraphics)
 Gtk vclplug needs to pass GtkSalGraphics to X11SalVirtualDevice, so create it, and pass as pNewGraphics. More...
 
- 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)
 
- Protected Member Functions inherited from X11SalInstance
virtual SalX11DisplayCreateDisplay () const
 
- Static Protected Member Functions inherited from SalGenericInstance
static void configurePspInfoPrinter (PspSalInfoPrinter *pInfoPrinter, SalPrinterQueueInfo const *pQueueInfo, ImplJobSetup *pSetupData)
 
- Protected Attributes inherited from X11SalInstance
SalXLibmpXLib
 
- Protected Attributes inherited from SalGenericInstance
bool mbPrinterInit
 

Detailed Description

Definition at line 191 of file gtkinst.hxx.

Member Typedef Documentation

Definition at line 197 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 X11SalInstance.

virtual void GtkInstance::AfterAppInit ( )
overridevirtual

Reimplemented from X11SalInstance.

virtual bool GtkInstance::AnyInput ( VclInputFlags  nType)
overridevirtual

Reimplemented from X11SalInstance.

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

Reimplemented from X11SalInstance.

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 X11SalInstance.

virtual std::unique_ptr<SalI18NImeStatus> GtkInstance::CreateI18NImeStatus ( )
overridevirtual

Reimplemented from X11SalInstance.

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

Reimplemented from SalGenericInstance.

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 SalObject* GtkInstance::CreateObject ( SalFrame pParent,
SystemWindowData pWindowData,
bool  bShow 
)
overridevirtual

Reimplemented from X11SalInstance.

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

Reimplemented from SalGenericInstance.

virtual GenPspGraphics* GtkInstance::CreatePrintGraphics ( )
overridevirtual

Reimplemented from X11SalInstance.

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

Reimplemented from X11SalInstance.

virtual SalSystem* GtkInstance::CreateSalSystem ( )
overridevirtual

Reimplemented from X11SalInstance.

virtual SalTimer* GtkInstance::CreateSalTimer ( )
overridevirtual

Reimplemented from X11SalInstance.

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

Reimplemented from X11SalInstance.

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 X11SalInstance.

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

Reimplemented from SalInstance.

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

Reimplemented from SalInstance.

Definition at line 232 of file gtkinst.hxx.

virtual bool GtkInstance::IsMainThread ( ) const
inlineoverridevirtual

Reimplemented from X11SalInstance.

Definition at line 228 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 267 of file gtkinst.hxx.

cairo_font_options_t* GtkInstance::m_pLastCairoFontOptions
private

Definition at line 268 of file gtkinst.hxx.

GtkSalTimer* GtkInstance::m_pTimer
private

Definition at line 262 of file gtkinst.hxx.

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

Definition at line 270 of file gtkinst.hxx.


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