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

#include <salinst.hxx>

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

Public Member Functions

 SalInstance (std::unique_ptr< comphelper::SolarMutex > pMutex)
 
virtual ~SalInstance ()
 
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 *pGraphics, long &rDX, 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
 
virtual std::shared_ptr< vcl::BackendCapabilitiesGetBackendCapabilities ()
 
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 ()=0
 
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 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 > CreateDragSource ()
 
virtual css::uno::Reference< css::uno::XInterface > CreateDropTarget ()
 
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 ()
 
virtual OUString getOSVersion ()
 get information about underlying versions More...
 
virtual const cairo_font_options_tGetCairoFontOptions ()
 
virtual voidCreateGStreamerSink (const SystemChildWindow *)
 

Static Public Member Functions

static weld::BuilderCreateInterimBuilder (vcl::Window *pParent, const OUString &rUIRoot, const OUString &rUIFile)
 

Private Attributes

rtl::Reference< vcl::DisplayConnectionDispatchm_pEventInst
 
const std::unique_ptr< comphelper::SolarMutexm_pYieldMutex
 

Detailed Description

Definition at line 80 of file salinst.hxx.

Constructor & Destructor Documentation

SalInstance::SalInstance ( std::unique_ptr< comphelper::SolarMutex pMutex)

Definition at line 106 of file salvtables.cxx.

SalInstance::~SalInstance ( )
virtual

Definition at line 111 of file salvtables.cxx.

Member Function Documentation

void SalInstance::AcquireYieldMutex ( sal_uInt32  nCount = 1)

Definition at line 125 of file salvtables.cxx.

References m_pYieldMutex.

Referenced by Application::AcquireSolarMutex(), and CreateSalInstance().

virtual void SalInstance::AddToRecentDocumentList ( const OUString &  rFileUrl,
const OUString &  rMimeType,
const OUString &  rDocumentService 
)
pure virtual
virtual void SalInstance::AfterAppInit ( )
inlinevirtual

Reimplemented in GtkInstance, AquaSalInstance, X11SalInstance, and Qt5Instance.

Definition at line 91 of file salinst.hxx.

Referenced by InitVCL().

virtual bool SalInstance::AnyInput ( VclInputFlags  nType)
pure virtual
bool SalInstance::CallEventCallback ( void const *  pEvent,
int  nBytes 
)

Definition at line 146 of file salvtables.cxx.

References m_pEventInst.

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

Reimplemented in GtkInstance.

Definition at line 6529 of file salvtables.cxx.

Referenced by Application::CreateBuilder().

virtual SalFrame* SalInstance::CreateChildFrame ( SystemParentData pParent,
SalFrameStyleFlags  nStyle 
)
pure virtual
Reference< XInterface > SalInstance::CreateClipboard ( const css::uno::Sequence< css::uno::Any > &  i_rArguments)
virtual

Reimplemented in GtkInstance, Qt5Instance, AquaSalInstance, X11SalInstance, and IosSalInstance.

Definition at line 457 of file dtranscomp.cxx.

Reference< XInterface > SalInstance::CreateDragSource ( )
virtual

Reimplemented in GtkInstance, Qt5Instance, AquaSalInstance, and X11SalInstance.

Definition at line 462 of file dtranscomp.cxx.

Referenced by vcl::DragSource_createInstance().

Reference< XInterface > SalInstance::CreateDropTarget ( )
virtual

Reimplemented in GtkInstance, Qt5Instance, AquaSalInstance, and X11SalInstance.

Definition at line 467 of file dtranscomp.cxx.

Referenced by vcl::DropTarget_createInstance().

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

Reimplemented in GtkInstance, and Qt5Instance.

Definition at line 189 of file salinst.hxx.

Referenced by Application::createFilePicker().

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

Reimplemented in GtkInstance, and Qt5Instance.

Definition at line 191 of file salinst.hxx.

Referenced by Application::createFolderPicker().

virtual SalFrame* SalInstance::CreateFrame ( SalFrame pParent,
SalFrameStyleFlags  nStyle 
)
pure virtual
virtual void* SalInstance::CreateGStreamerSink ( const SystemChildWindow )
inlinevirtual

Reimplemented in GtkInstance, and Qt5Instance.

Definition at line 206 of file salinst.hxx.

Referenced by SystemChildWindow::CreateGStreamerSink().

virtual SalInfoPrinter* SalInstance::CreateInfoPrinter ( SalPrinterQueueInfo pQueueInfo,
ImplJobSetup pSetupData 
)
pure virtual
weld::Builder * SalInstance::CreateInterimBuilder ( vcl::Window pParent,
const OUString &  rUIRoot,
const OUString &  rUIFile 
)
static

Definition at line 6536 of file salvtables.cxx.

Referenced by Application::CreateInterimBuilder().

std::unique_ptr< SalMenu > SalInstance::CreateMenu ( bool  bMenuBar,
Menu pMenu 
)
virtual

Reimplemented in GtkInstance, Qt5Instance, AquaSalInstance, and WinSalInstance.

Definition at line 135 of file salvtables.cxx.

Referenced by MenuBar::MenuBar(), and PopupMenu::PopupMenu().

std::unique_ptr< SalMenuItem > SalInstance::CreateMenuItem ( const SalItemParams pItemData)
virtual

Reimplemented in GtkInstance, Qt5Instance, AquaSalInstance, and WinSalInstance.

Definition at line 141 of file salvtables.cxx.

Referenced by MenuItemList::Insert(), and MenuItemList::InsertSeparator().

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

Reimplemented in GtkInstance.

Definition at line 6597 of file salvtables.cxx.

Referenced by Application::CreateMessageDialog().

virtual SalObject* SalInstance::CreateObject ( SalFrame pParent,
SystemWindowData pWindowData,
bool  bShow 
)
pure virtual
virtual OpenGLContext* SalInstance::CreateOpenGLContext ( )
pure virtual
virtual std::unique_ptr<SalPrinter> SalInstance::CreatePrinter ( SalInfoPrinter pInfoPrinter)
pure virtual
virtual std::shared_ptr<SalBitmap> SalInstance::CreateSalBitmap ( )
pure virtual
std::unique_ptr< SalSession > SalInstance::CreateSalSession ( )
virtual

Reimplemented in X11SalInstance.

Definition at line 130 of file salvtables.cxx.

virtual SalSystem* SalInstance::CreateSalSystem ( )
pure virtual
virtual SalTimer* SalInstance::CreateSalTimer ( )
pure virtual
virtual std::unique_ptr<SalVirtualDevice> SalInstance::CreateVirtualDevice ( SalGraphics pGraphics,
long &  rDX,
long &  rDY,
DeviceFormat  eFormat,
const SystemGraphicsData pData = nullptr 
)
pure virtual
virtual void SalInstance::DestroyFrame ( SalFrame pFrame)
pure virtual
virtual void SalInstance::DestroyInfoPrinter ( SalInfoPrinter pPrinter)
pure virtual
virtual void SalInstance::DestroyObject ( SalObject pObject)
pure virtual
virtual bool SalInstance::DoYield ( bool  bWait,
bool  bHandleAllCurrentEvents 
)
pure virtual

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.

Implemented in GtkInstance, SvpSalInstance, Qt5Instance, AquaSalInstance, X11SalInstance, and WinSalInstance.

Referenced by ImplYield().

virtual std::shared_ptr<vcl::BackendCapabilities> SalInstance::GetBackendCapabilities ( )
inlinevirtual

Reimplemented in SvpSalInstance.

Definition at line 135 of file salinst.hxx.

Referenced by vcl::PngImageReader::read().

virtual const cairo_font_options_t* SalInstance::GetCairoFontOptions ( )
inlinevirtual

Reimplemented in GtkInstance.

Definition at line 204 of file salinst.hxx.

virtual OUString SalInstance::GetConnectionIdentifier ( )
pure virtual
virtual OUString SalInstance::GetDefaultPrinter ( )
pure virtual
weld::Window * SalInstance::GetFrameWeld ( const css::uno::Reference< css::awt::XWindow > &  rWindow)
virtual
virtual OUString SalInstance::getOSVersion ( )
inlinevirtual

get information about underlying versions

Reimplemented in AquaSalInstance, WinSalInstance, and SalGenericInstance.

Definition at line 202 of file salinst.hxx.

Referenced by Application::GetHWOSConfInfo().

virtual void SalInstance::GetPrinterQueueInfo ( ImplPrnQueueList pList)
pure virtual
virtual void SalInstance::GetPrinterQueueState ( SalPrinterQueueInfo pInfo)
pure virtual
comphelper::SolarMutex * SalInstance::GetYieldMutex ( )

Definition at line 115 of file salvtables.cxx.

References m_pYieldMutex.

Referenced by Application::GetSolarMutex().

virtual bool SalInstance::hasNativeFileSelection ( ) const
inlinevirtual

Reimplemented in GtkInstance, and Qt5Instance.

Definition at line 187 of file salinst.hxx.

Referenced by Application::hasNativeFileSelection().

virtual bool SalInstance::IsMainThread ( ) const
pure virtual
virtual void SalInstance::jobEndedPrinterUpdate ( )
inlinevirtual

Reimplemented in SalGenericInstance.

Definition at line 197 of file salinst.hxx.

virtual void SalInstance::jobStartedPrinterUpdate ( )
inlinevirtual

Reimplemented in SalGenericInstance.

Definition at line 196 of file salinst.hxx.

sal_uInt32 SalInstance::ReleaseYieldMutexAll ( )

Definition at line 120 of file salvtables.cxx.

References m_pYieldMutex.

Referenced by DestroySalInstance(), and Application::ReleaseSolarMutex().

void SalInstance::SetEventCallback ( rtl::Reference< vcl::DisplayConnectionDispatch > const &  pInstance)
inline
virtual bool SalInstance::SVMainHook ( int )
inlinevirtual

Reimplemented in AquaSalInstance.

Definition at line 92 of file salinst.hxx.

Referenced by ImplSVMain().

virtual void SalInstance::updateMainThread ( )
inlinevirtual

Reimplemented in SvpSalInstance.

Definition at line 199 of file salinst.hxx.

Referenced by Application::UpdateMainThread().

virtual void SalInstance::updatePrinterUpdate ( )
inlinevirtual

Reimplemented in SalGenericInstance.

Definition at line 195 of file salinst.hxx.

Member Data Documentation

rtl::Reference< vcl::DisplayConnectionDispatch > SalInstance::m_pEventInst
private

Definition at line 83 of file salinst.hxx.

Referenced by CallEventCallback().

const std::unique_ptr<comphelper::SolarMutex> SalInstance::m_pYieldMutex
private

Definition at line 84 of file salinst.hxx.

Referenced by AcquireYieldMutex(), GetYieldMutex(), and ReleaseYieldMutexAll().


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