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

#include <svpinst.hxx>

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

Public Member Functions

 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 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 *pGraphics, long &nDX, 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
 
std::shared_ptr< vcl::BackendCapabilitiesGetBackendCapabilities () 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
 
virtual OpenGLContextCreateOpenGLContext () override
 
virtual OUString GetConnectionIdentifier () override
 
virtual void AddToRecentDocumentList (const OUString &rFileUrl, const OUString &rMimeType, const OUString &rDocumentService) override
 
virtual GenPspGraphicsCreatePrintGraphics () 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 void AfterAppInit ()
 
virtual bool SVMainHook (int *)
 
virtual std::unique_ptr< SalI18NImeStatusCreateI18NImeStatus ()
 
comphelper::SolarMutexGetYieldMutex ()
 
sal_uInt32 ReleaseYieldMutexAll ()
 
void AcquireYieldMutex (sal_uInt32 nCount=1)
 
virtual std::unique_ptr< SalMenuCreateMenu (bool bMenuBar, Menu *pMenu)
 
virtual std::unique_ptr< SalMenuItemCreateMenuItem (const SalItemParams &pItemData)
 
virtual std::unique_ptr< SalSessionCreateSalSession ()
 
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 css::uno::Reference< css::uno::XInterface > CreateClipboard (const css::uno::Sequence< css::uno::Any > &i_rArguments)
 
virtual css::uno::Reference< css::uno::XInterface > CreateDragSource ()
 
virtual css::uno::Reference< css::uno::XInterface > CreateDropTarget ()
 
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 const cairo_font_options_tGetCairoFontOptions ()
 
virtual voidCreateGStreamerSink (const SystemChildWindow *)
 
- Public Member Functions inherited from SalUserEventList
 SalUserEventList ()
 
virtual ~SalUserEventList ()
 
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)
 

Static Public Attributes

static SvpSalInstances_pDefaultInstance
 

Private Member Functions

virtual void TriggerUserEventProcessing () override
 
virtual void ProcessEvent (SalUserEvent aEvent) override
 

Private Attributes

timeval m_aTimeout
 
sal_uLong m_nTimeoutMS
 
oslThreadIdentifier m_MainThread
 

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)
 
- 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 97 of file svpinst.hxx.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Implements SalInstance.

virtual bool SvpSalInstance::AnyInput ( VclInputFlags  nType)
overridevirtual

Implements SalInstance.

Reimplemented in AndroidSalInstance.

bool SvpSalInstance::CheckTimeout ( bool  bExecuteTimers = true)
void SvpSalInstance::CloseWakeupPipe ( bool  log)
virtual SalFrame* SvpSalInstance::CreateChildFrame ( SystemParentData pParent,
SalFrameStyleFlags  nStyle 
)
overridevirtual

Implements SalInstance.

Reimplemented in IosSalInstance, and AndroidSalInstance.

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

Implements SalInstance.

Reimplemented in IosSalInstance, and AndroidSalInstance.

virtual SalInfoPrinter* SvpSalInstance::CreateInfoPrinter ( SalPrinterQueueInfo pQueueInfo,
ImplJobSetup pSetupData 
)
overridevirtual

Reimplemented from SalGenericInstance.

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

Implements SalInstance.

virtual OpenGLContext* SvpSalInstance::CreateOpenGLContext ( )
overridevirtual

Implements SalInstance.

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

Reimplemented from SalGenericInstance.

virtual GenPspGraphics* SvpSalInstance::CreatePrintGraphics ( )
overridevirtual

Implements SalGenericInstance.

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

Implements SalInstance.

virtual SalSystem* SvpSalInstance::CreateSalSystem ( )
overridevirtual

Implements SalInstance.

Reimplemented in IosSalInstance, and AndroidSalInstance.

virtual SalTimer* SvpSalInstance::CreateSalTimer ( )
overridevirtual

Implements SalInstance.

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

Implements SalInstance.

void SvpSalInstance::CreateWakeupPipe ( bool  log)
void SvpSalInstance::deregisterFrame ( SalFrame pFrame)
inline

Definition at line 187 of file svpinst.hxx.

References SalUserEventList::eraseFrame().

virtual void SvpSalInstance::DestroyFrame ( SalFrame pFrame)
overridevirtual

Implements SalInstance.

virtual void SvpSalInstance::DestroyInfoPrinter ( SalInfoPrinter pPrinter)
overridevirtual

Reimplemented from SalGenericInstance.

virtual void SvpSalInstance::DestroyObject ( SalObject pObject)
overridevirtual

Implements SalInstance.

virtual bool SvpSalInstance::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.

Implements SalInstance.

std::shared_ptr<vcl::BackendCapabilities> SvpSalInstance::GetBackendCapabilities ( )
overridevirtual

Reimplemented from SalInstance.

virtual OUString SvpSalInstance::GetConnectionIdentifier ( )
overridevirtual

Implements SalInstance.

virtual OUString SvpSalInstance::GetDefaultPrinter ( )
overridevirtual

Reimplemented from SalGenericInstance.

virtual void SvpSalInstance::GetPrinterQueueInfo ( ImplPrnQueueList pList)
overridevirtual

Reimplemented from SalGenericInstance.

virtual void SvpSalInstance::GetPrinterQueueState ( SalPrinterQueueInfo pInfo)
overridevirtual

Reimplemented from SalGenericInstance.

virtual bool SvpSalInstance::IsMainThread ( ) const
overridevirtual

Implements SalInstance.

virtual void SvpSalInstance::PostPrintersChanged ( )
overridevirtual

Implements SalGenericInstance.

virtual void SvpSalInstance::ProcessEvent ( SalUserEvent  aEvent)
overrideprivatevirtual

Implements SalUserEventList.

void SvpSalInstance::registerFrame ( SalFrame pFrame)
inline

Definition at line 182 of file svpinst.hxx.

References SalUserEventList::insertFrame().

void SvpSalInstance::StartTimer ( sal_uInt64  nMS)
void SvpSalInstance::StopTimer ( )
virtual void SvpSalInstance::TriggerUserEventProcessing ( )
overrideprivatevirtual

Implements SalUserEventList.

virtual void SvpSalInstance::updateMainThread ( )
overridevirtual

Reimplemented from SalInstance.

void SvpSalInstance::Wakeup ( SvpRequest  request = SvpRequest::NONE)

Member Data Documentation

timeval SvpSalInstance::m_aTimeout
private

Definition at line 99 of file svpinst.hxx.

oslThreadIdentifier SvpSalInstance::m_MainThread
private

Definition at line 101 of file svpinst.hxx.

sal_uLong SvpSalInstance::m_nTimeoutMS
private

Definition at line 100 of file svpinst.hxx.

SvpSalInstance* SvpSalInstance::s_pDefaultInstance
static

Definition at line 107 of file svpinst.hxx.


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