LibreOffice Module vcl (master) 1
|
#include <salinst.hxx>
Public Member Functions | |
SalInstance (std::unique_ptr< comphelper::SolarMutex > pMutex) | |
virtual | ~SalInstance () |
bool | supportsBitmap32 () const |
bool | supportsOpenGL () const |
virtual void | AfterAppInit () |
virtual bool | SVMainHook (int *) |
virtual SalFrame * | CreateChildFrame (SystemParentData *pParent, SalFrameStyleFlags nStyle)=0 |
virtual SalFrame * | CreateFrame (SalFrame *pParent, SalFrameStyleFlags nStyle)=0 |
virtual void | DestroyFrame (SalFrame *pFrame)=0 |
virtual SalObject * | CreateObject (SalFrame *pParent, SystemWindowData *pWindowData, bool bShow)=0 |
virtual void | DestroyObject (SalObject *pObject)=0 |
virtual std::unique_ptr< SalVirtualDevice > | CreateVirtualDevice (SalGraphics &rGraphics, tools::Long &rDX, tools::Long &rDY, DeviceFormat eFormat, const SystemGraphicsData *pData=nullptr)=0 |
virtual SalInfoPrinter * | CreateInfoPrinter (SalPrinterQueueInfo *pQueueInfo, ImplJobSetup *pSetupData)=0 |
virtual void | DestroyInfoPrinter (SalInfoPrinter *pPrinter)=0 |
virtual std::unique_ptr< SalPrinter > | CreatePrinter (SalInfoPrinter *pInfoPrinter)=0 |
virtual void | GetPrinterQueueInfo (ImplPrnQueueList *pList)=0 |
virtual void | GetPrinterQueueState (SalPrinterQueueInfo *pInfo)=0 |
virtual OUString | GetDefaultPrinter ()=0 |
virtual SalTimer * | CreateSalTimer ()=0 |
virtual SalSystem * | CreateSalSystem ()=0 |
virtual std::shared_ptr< SalBitmap > | CreateSalBitmap ()=0 |
comphelper::SolarMutex * | GetYieldMutex () |
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< SalMenu > | CreateMenu (bool bMenuBar, Menu *pMenu) |
virtual std::unique_ptr< SalMenuItem > | CreateMenuItem (const SalItemParams &pItemData) |
virtual std::unique_ptr< SalSession > | CreateSalSession () |
virtual OpenGLContext * | CreateOpenGLContext () |
virtual std::unique_ptr< weld::Builder > | CreateBuilder (weld::Widget *pParent, const OUString &rUIRoot, const OUString &rUIFile) |
virtual std::unique_ptr< weld::Builder > | CreateInterimBuilder (vcl::Window *pParent, const OUString &rUIRoot, const OUString &rUIFile, bool bAllowCycleFocusOut, sal_uInt64 nLOKWindowId=0) |
virtual weld::MessageDialog * | CreateMessageDialog (weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage) |
virtual weld::Window * | GetFrameWeld (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_t * | GetCairoFontOptions () |
virtual void * | CreateGStreamerSink (const SystemChildWindow *) |
virtual void | BeforeAbort (const OUString &, bool) |
virtual bool | DoExecute (int &nExitCode) |
virtual void | DoQuit () |
Static Public Member Functions | |
static bool | IsRunningUnitTest () |
Protected Attributes | |
bool | m_bSupportsBitmap32 = false |
bool | m_bSupportsOpenGL = false |
Private Attributes | |
rtl::Reference< vcl::DisplayConnectionDispatch > | m_pEventInst |
const std::unique_ptr< comphelper::SolarMutex > | m_pYieldMutex |
css::uno::Reference< css::uno::XInterface > | m_clipboard |
Definition at line 75 of file salinst.hxx.
SalInstance::SalInstance | ( | std::unique_ptr< comphelper::SolarMutex > | pMutex | ) |
Definition at line 136 of file salvtables.cxx.
|
virtual |
Definition at line 141 of file salvtables.cxx.
void SalInstance::AcquireYieldMutex | ( | sal_uInt32 | nCount = 1 | ) |
Definition at line 147 of file salvtables.cxx.
References m_pYieldMutex, and nCount.
Referenced by Application::AcquireSolarMutex(), and InitVCL().
|
pure virtual |
Implemented in SvpSalInstance, AquaSalInstance, QtInstance, GtkInstance, X11SalInstance, and WinSalInstance.
Referenced by Application::AddToRecentDocumentList().
|
inlinevirtual |
Reimplemented in AquaSalInstance, QtInstance, GtkInstance, X11SalInstance, and WinSalInstance.
Definition at line 94 of file salinst.hxx.
Referenced by InitVCL().
|
pure virtual |
Implemented in AndroidSalInstance, SvpSalInstance, AquaSalInstance, QtInstance, GtkInstance, X11SalInstance, and WinSalInstance.
References GetFrameWeld().
Referenced by Application::AnyInput().
|
inlinevirtual |
Reimplemented in WinSalInstance.
Definition at line 213 of file salinst.hxx.
Referenced by SalAbort().
bool SalInstance::CallEventCallback | ( | void const * | pEvent, |
int | nBytes | ||
) |
Definition at line 165 of file salvtables.cxx.
References m_pEventInst.
|
virtual |
Reimplemented in GtkInstance.
Definition at line 7406 of file salvtables.cxx.
References SalInstanceWidget::getWidget().
Referenced by Application::CreateBuilder().
|
pure virtual |
Implemented in AndroidSalInstance, SvpSalInstance, IosSalInstance, AquaSalInstance, QtInstance, GtkInstance, X11SalInstance, and WinSalInstance.
Referenced by vcl::Window::ImplInit().
|
virtual |
Reimplemented in IosSalInstance, AquaSalInstance, QtInstance, GtkInstance, and X11SalInstance.
Definition at line 413 of file dtranscomp.cxx.
References DBG_TESTSOLARMUTEX, comphelper::getProcessComponentContext(), comphelper::LibreOfficeKit::isActive(), and m_clipboard.
Referenced by vcl::vcl_SystemClipboard_get_implementation().
Reference< XInterface > SalInstance::CreateDragSource | ( | const SystemEnvData * | pSysEnv = nullptr | ) |
Definition at line 445 of file dtranscomp.cxx.
References ImplCreateDragSource(), Application::IsHeadlessModeEnabled(), and IsRunningUnitTest().
Referenced by vcl::DragSource_createInstance(), and vcl::Window::GetDragSource().
Reference< XInterface > SalInstance::CreateDropTarget | ( | const SystemEnvData * | pSysEnv = nullptr | ) |
Definition at line 459 of file dtranscomp.cxx.
References ImplCreateDropTarget(), Application::IsHeadlessModeEnabled(), and IsRunningUnitTest().
Referenced by vcl::DropTarget_createInstance(), and vcl::Window::GetDragSource().
|
inlinevirtual |
Reimplemented in QtInstance, and GtkInstance.
Definition at line 191 of file salinst.hxx.
Referenced by Application::createFilePicker().
|
inlinevirtual |
Reimplemented in QtInstance, and GtkInstance.
Definition at line 193 of file salinst.hxx.
Referenced by Application::createFolderPicker().
|
pure virtual |
Implemented in AndroidSalInstance, SvpSalInstance, IosSalInstance, AquaSalInstance, QtInstance, GtkInstance, X11SalInstance, and WinSalInstance.
Referenced by vcl::Window::ImplInit().
|
inlinevirtual |
Reimplemented in QtInstance, and GtkInstance.
Definition at line 211 of file salinst.hxx.
Referenced by SystemChildWindow::CreateGStreamerSink().
|
pure virtual |
Implemented in GtkInstance, SvpSalInstance, AquaSalInstance, QtInstance, SalGenericInstance, and WinSalInstance.
Referenced by Printer::ImplInit().
|
virtual |
Reimplemented in GtkInstance.
Definition at line 7413 of file salvtables.cxx.
Referenced by Application::CreateInterimBuilder().
Reimplemented in WinSalInstance, AquaSalInstance, QtInstance, and GtkInstance.
Definition at line 157 of file salvtables.cxx.
Referenced by MenuBar::MenuBar(), and PopupMenu::PopupMenu().
|
virtual |
Reimplemented in QtInstance, GtkInstance, AquaSalInstance, and WinSalInstance.
Definition at line 163 of file salvtables.cxx.
Referenced by MenuItemList::Insert(), and MenuItemList::InsertSeparator().
|
virtual |
Reimplemented in GtkInstance.
Definition at line 7487 of file salvtables.cxx.
References SalInstanceWidget::getSystemWindow().
Referenced by Application::CreateMessageDialog().
|
pure virtual |
Implemented in SvpSalInstance, AquaSalInstance, QtInstance, GtkInstance, X11SalInstance, and WinSalInstance.
Referenced by SystemChildWindow::ImplInitSysChild().
|
virtual |
Reimplemented in AquaSalInstance, QtInstance, GtkInstance, X11SalInstance, and WinSalInstance.
Definition at line 151 of file salvtables.cxx.
References m_bSupportsOpenGL.
|
pure virtual |
Implemented in SvpSalInstance, AquaSalInstance, QtInstance, SalGenericInstance, GtkInstance, and WinSalInstance.
Referenced by Printer::StartJob().
|
pure virtual |
Implemented in SvpSalInstance, AquaSalInstance, QtInstance, GtkInstance, X11SalInstance, and WinSalInstance.
Referenced by Bitmap::Bitmap(), BitmapEx::Create(), and Bitmap::ImplMakeUnique().
|
virtual |
Reimplemented in X11SalInstance.
Definition at line 149 of file salvtables.cxx.
|
pure virtual |
Implemented in AndroidSalInstance, SvpSalInstance, IosSalInstance, AquaSalInstance, QtInstance, GtkInstance, X11SalInstance, and WinSalInstance.
Referenced by ImplGetSalSystem().
|
pure virtual |
Implemented in SvpSalInstance, AquaSalInstance, QtInstance, GtkInstance, X11SalInstance, and WinSalInstance.
Referenced by Scheduler::ImplStartTimer().
|
pure virtual |
Implemented in GtkInstance, SvpSalInstance, AquaSalInstance, QtInstance, X11SalInstance, and WinSalInstance.
Referenced by VirtualDevice::ImplInitVirDev(), and VirtualDevice::InnerImplSetOutputSizePixel().
|
pure virtual |
Implemented in SvpSalInstance, AquaSalInstance, QtInstance, X11SalInstance, and WinSalInstance.
Referenced by vcl::Window::dispose().
|
pure virtual |
Implemented in SvpSalInstance, AquaSalInstance, QtInstance, SalGenericInstance, and WinSalInstance.
Referenced by Printer::dispose(), and Printer::SetPrinterProps().
|
pure virtual |
Implemented in SvpSalInstance, AquaSalInstance, QtInstance, X11SalInstance, and WinSalInstance.
Referenced by SystemChildWindow::dispose().
|
virtual |
Reimplemented in QtInstance.
Definition at line 170 of file salvtables.cxx.
References Application::IsOnSystemEventLoop().
Referenced by Application::Execute().
|
virtual |
Reimplemented in QtInstance.
Definition at line 178 of file salvtables.cxx.
References Application::IsOnSystemEventLoop().
Referenced by IMPL_STATIC_LINK_NOARG().
|
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 SvpSalInstance, AquaSalInstance, QtInstance, GtkInstance, X11SalInstance, and WinSalInstance.
Referenced by ImplYield().
|
inlinevirtual |
Reimplemented in SvpSalInstance, and GtkInstance.
Definition at line 209 of file salinst.hxx.
|
pure virtual |
Implemented in SvpSalInstance, AquaSalInstance, QtInstance, X11SalInstance, and WinSalInstance.
Referenced by vcl::DisplayConnectionDispatch::DisplayConnectionDispatch().
|
pure virtual |
Implemented in SvpSalInstance, AquaSalInstance, QtInstance, SalGenericInstance, and WinSalInstance.
Referenced by Printer::GetDefaultPrinterName().
|
virtual |
Reimplemented in GtkInstance.
Definition at line 7499 of file salvtables.cxx.
References vcl::Window::GetFrameWeld(), UnoWrapperBase::GetUnoWrapper(), and UnoWrapperBase::GetWindow().
Referenced by Application::GetFrameWeld().
|
inlinevirtual |
get information about underlying versions
Reimplemented in AquaSalInstance, SalGenericInstance, and WinSalInstance.
Definition at line 207 of file salinst.hxx.
Referenced by Application::GetOSVersion().
|
pure virtual |
Implemented in SvpSalInstance, AquaSalInstance, QtInstance, SalGenericInstance, and WinSalInstance.
Referenced by ImplInitPrnQueueList(), and Printer::updatePrinters().
|
pure virtual |
Implemented in SvpSalInstance, AquaSalInstance, QtInstance, SalGenericInstance, and WinSalInstance.
Referenced by Printer::GetQueueInfo(), and Printer::ImplInit().
comphelper::SolarMutex * SalInstance::GetYieldMutex | ( | ) |
Definition at line 143 of file salvtables.cxx.
References m_pYieldMutex.
Referenced by Application::GetSolarMutex().
|
inlinevirtual |
Reimplemented in QtInstance, and GtkInstance.
Definition at line 189 of file salinst.hxx.
Referenced by Application::hasNativeFileSelection().
|
virtual |
Reimplemented in AquaSalInstance, QtInstance, GtkInstance, X11SalInstance, and WinSalInstance.
Definition at line 440 of file dtranscomp.cxx.
Referenced by CreateDragSource().
|
virtual |
Reimplemented in AquaSalInstance, QtInstance, GtkInstance, X11SalInstance, and WinSalInstance.
Definition at line 454 of file dtranscomp.cxx.
Referenced by CreateDropTarget().
|
pure virtual |
Implemented in SvpSalInstance, AquaSalInstance, QtInstance, GtkInstance, X11SalInstance, and WinSalInstance.
Referenced by Scheduler::ProcessEventsToIdle().
|
inlinestatic |
Definition at line 216 of file salinst.hxx.
Referenced by CreateDragSource(), CreateDropTarget(), and Dialog::ImplStartExecute().
|
inlinevirtual |
Reimplemented in SalGenericInstance.
Definition at line 199 of file salinst.hxx.
|
inlinevirtual |
Reimplemented in SalGenericInstance.
Definition at line 198 of file salinst.hxx.
|
inlinevirtual |
Disconnect that - good for detaching from the JavaVM on Android.
Reimplemented in AndroidSalInstance.
Definition at line 204 of file salinst.hxx.
Referenced by vcl::lok::unregisterPollCallbacks().
sal_uInt32 SalInstance::ReleaseYieldMutexAll | ( | ) |
Definition at line 145 of file salvtables.cxx.
References m_pYieldMutex.
Referenced by DeInitVCL(), and Application::ReleaseSolarMutex().
|
inline |
Definition at line 174 of file salinst.hxx.
Referenced by vcl::DisplayConnectionDispatch::start(), and vcl::DisplayConnectionDispatch::terminate().
|
inline |
Definition at line 90 of file salinst.hxx.
Referenced by Bitmap32IsPreMultipled(), and readWebp().
|
inline |
Definition at line 91 of file salinst.hxx.
|
inlinevirtual |
Reimplemented in AquaSalInstance.
Definition at line 95 of file salinst.hxx.
Referenced by ImplSVMain().
|
inlinevirtual |
Set the app's (somewhat) magic/main-thread to this one.
Reimplemented in AndroidSalInstance, and SvpSalInstance.
Definition at line 202 of file salinst.hxx.
Referenced by Application::UpdateMainThread().
|
inlinevirtual |
Reimplemented in SalGenericInstance.
Definition at line 197 of file salinst.hxx.
|
protected |
Definition at line 83 of file salinst.hxx.
|
protected |
Definition at line 84 of file salinst.hxx.
Referenced by CreateOpenGLContext().
|
private |
Definition at line 80 of file salinst.hxx.
Referenced by CreateClipboard().
|
private |
Definition at line 78 of file salinst.hxx.
Referenced by CallEventCallback().
|
private |
Definition at line 79 of file salinst.hxx.
Referenced by AcquireYieldMutex(), GetYieldMutex(), and ReleaseYieldMutexAll().