LibreOffice Module vcl (master)
1
|
#include <salinst.hxx>
Public Member Functions | |
SalInstance (std::unique_ptr< comphelper::SolarMutex > pMutex) | |
virtual | ~SalInstance () |
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 *pGraphics, 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 |
virtual std::shared_ptr< vcl::BackendCapabilities > | GetBackendCapabilities () |
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 ()=0 |
virtual weld::Builder * | CreateBuilder (weld::Widget *pParent, const OUString &rUIRoot, const OUString &rUIFile) |
virtual 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 > | 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 () |
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 *) |
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 76 of file salinst.hxx.
SalInstance::SalInstance | ( | std::unique_ptr< comphelper::SolarMutex > | pMutex | ) |
Definition at line 111 of file salvtables.cxx.
|
virtual |
Definition at line 116 of file salvtables.cxx.
void SalInstance::AcquireYieldMutex | ( | sal_uInt32 | nCount = 1 | ) |
Definition at line 122 of file salvtables.cxx.
References m_pYieldMutex.
Referenced by Application::AcquireSolarMutex(), and CreateSalInstance().
|
pure virtual |
Implemented in GtkInstance, SvpSalInstance, Qt5Instance, AquaSalInstance, X11SalInstance, and WinSalInstance.
Referenced by Application::AddToRecentDocumentList().
|
inlinevirtual |
Reimplemented in GtkInstance, AquaSalInstance, X11SalInstance, and Qt5Instance.
Definition at line 88 of file salinst.hxx.
Referenced by InitVCL().
|
pure virtual |
Implemented in GtkInstance, SvpSalInstance, Qt5Instance, AquaSalInstance, X11SalInstance, WinSalInstance, and AndroidSalInstance.
Referenced by Application::AnyInput().
Definition at line 134 of file salvtables.cxx.
References m_pEventInst.
|
virtual |
Reimplemented in GtkInstance.
Definition at line 7059 of file salvtables.cxx.
References SalInstanceWidget::getWidget().
Referenced by Application::CreateBuilder().
|
pure virtual |
Implemented in GtkInstance, SvpSalInstance, Qt5Instance, AquaSalInstance, IosSalInstance, X11SalInstance, WinSalInstance, and AndroidSalInstance.
Referenced by vcl::Window::ImplInit().
|
virtual |
Reimplemented in GtkInstance, Qt5Instance, AquaSalInstance, X11SalInstance, and IosSalInstance.
Definition at line 413 of file dtranscomp.cxx.
References DBG_TESTSOLARMUTEX, and comphelper::LibreOfficeKit::isActive().
Referenced by vcl::vcl_SystemClipboard_get_implementation().
|
virtual |
Reimplemented in GtkInstance, Qt5Instance, AquaSalInstance, and X11SalInstance.
Definition at line 435 of file dtranscomp.cxx.
Referenced by vcl::DragSource_createInstance().
|
virtual |
Reimplemented in GtkInstance, Qt5Instance, AquaSalInstance, and X11SalInstance.
Definition at line 440 of file dtranscomp.cxx.
Referenced by vcl::DropTarget_createInstance().
|
inlinevirtual |
Reimplemented in GtkInstance, and Qt5Instance.
Definition at line 187 of file salinst.hxx.
Referenced by Application::createFilePicker().
|
inlinevirtual |
Reimplemented in GtkInstance, and Qt5Instance.
Definition at line 189 of file salinst.hxx.
Referenced by Application::createFolderPicker().
|
pure virtual |
Implemented in GtkInstance, SvpSalInstance, Qt5Instance, AquaSalInstance, X11SalInstance, WinSalInstance, IosSalInstance, and AndroidSalInstance.
Referenced by vcl::Window::ImplInit().
|
inlinevirtual |
Reimplemented in GtkInstance, and Qt5Instance.
Definition at line 207 of file salinst.hxx.
Referenced by SystemChildWindow::CreateGStreamerSink().
|
pure virtual |
Implemented in GtkInstance, SvpSalInstance, Qt5Instance, AquaSalInstance, WinSalInstance, and SalGenericInstance.
Referenced by Printer::ImplInit().
|
virtual |
Reimplemented in GtkInstance.
Definition at line 7067 of file salvtables.cxx.
Referenced by Application::CreateInterimBuilder().
Reimplemented in GtkInstance, Qt5Instance, AquaSalInstance, and WinSalInstance.
Definition at line 126 of file salvtables.cxx.
Referenced by MenuBar::MenuBar(), and PopupMenu::PopupMenu().
|
virtual |
Reimplemented in GtkInstance, Qt5Instance, AquaSalInstance, and WinSalInstance.
Definition at line 132 of file salvtables.cxx.
Referenced by MenuItemList::Insert(), and MenuItemList::InsertSeparator().
|
virtual |
Reimplemented in GtkInstance.
Definition at line 7137 of file salvtables.cxx.
References SalInstanceWidget::getSystemWindow().
Referenced by Application::CreateMessageDialog().
|
pure virtual |
Implemented in GtkInstance, SvpSalInstance, Qt5Instance, AquaSalInstance, X11SalInstance, and WinSalInstance.
Referenced by SystemChildWindow::ImplInitSysChild().
|
pure virtual |
Implemented in GtkInstance, SvpSalInstance, Qt5Instance, AquaSalInstance, WinSalInstance, and X11SalInstance.
Referenced by OpenGLContext::Create().
|
pure virtual |
Implemented in GtkInstance, SvpSalInstance, Qt5Instance, AquaSalInstance, WinSalInstance, and SalGenericInstance.
Referenced by Printer::StartJob().
|
pure virtual |
Implemented in GtkInstance, SvpSalInstance, Qt5Instance, AquaSalInstance, X11SalInstance, and WinSalInstance.
Referenced by Bitmap::Bitmap(), BitmapEx::Create(), and Bitmap::ImplMakeUnique().
|
virtual |
Reimplemented in X11SalInstance.
Definition at line 124 of file salvtables.cxx.
|
pure virtual |
Implemented in GtkInstance, SvpSalInstance, Qt5Instance, AquaSalInstance, X11SalInstance, WinSalInstance, IosSalInstance, and AndroidSalInstance.
Referenced by ImplGetSalSystem().
|
pure virtual |
Implemented in GtkInstance, SvpSalInstance, Qt5Instance, AquaSalInstance, X11SalInstance, and WinSalInstance.
Referenced by Scheduler::ImplStartTimer().
|
pure virtual |
Implemented in GtkInstance, SvpSalInstance, Qt5Instance, AquaSalInstance, X11SalInstance, and WinSalInstance.
Referenced by VirtualDevice::ImplInitVirDev(), and VirtualDevice::InnerImplSetOutputSizePixel().
Implemented in SvpSalInstance, Qt5Instance, AquaSalInstance, X11SalInstance, and WinSalInstance.
Referenced by vcl::Window::dispose().
|
pure virtual |
Implemented in SvpSalInstance, Qt5Instance, AquaSalInstance, WinSalInstance, and SalGenericInstance.
Referenced by Printer::dispose(), and Printer::SetPrinterProps().
Implemented in SvpSalInstance, Qt5Instance, AquaSalInstance, X11SalInstance, and WinSalInstance.
Referenced by SystemChildWindow::dispose().
|
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().
|
inlinevirtual |
Reimplemented in SvpSalInstance, X11SalInstance, and WinSalInstance.
Definition at line 132 of file salinst.hxx.
Referenced by Bitmap32IsPreMultipled(), and vcl::PngImageReader::read().
|
inlinevirtual |
Reimplemented in GtkInstance, and SvpSalInstance.
Definition at line 205 of file salinst.hxx.
|
pure virtual |
Implemented in SvpSalInstance, Qt5Instance, AquaSalInstance, X11SalInstance, and WinSalInstance.
Referenced by vcl::DisplayConnectionDispatch::DisplayConnectionDispatch().
|
pure virtual |
Implemented in SvpSalInstance, Qt5Instance, AquaSalInstance, WinSalInstance, and SalGenericInstance.
Referenced by Printer::GetDefaultPrinterName().
|
virtual |
Reimplemented in GtkInstance.
Definition at line 7149 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, WinSalInstance, and SalGenericInstance.
Definition at line 203 of file salinst.hxx.
Referenced by Application::GetHWOSConfInfo().
|
pure virtual |
Implemented in SvpSalInstance, Qt5Instance, AquaSalInstance, WinSalInstance, and SalGenericInstance.
Referenced by ImplInitPrnQueueList(), and Printer::updatePrinters().
|
pure virtual |
Implemented in SvpSalInstance, Qt5Instance, AquaSalInstance, WinSalInstance, and SalGenericInstance.
Referenced by Printer::GetQueueInfo(), and Printer::ImplInit().
comphelper::SolarMutex * SalInstance::GetYieldMutex | ( | ) |
Definition at line 118 of file salvtables.cxx.
References m_pYieldMutex.
Referenced by Application::GetSolarMutex().
|
inlinevirtual |
Reimplemented in GtkInstance, and Qt5Instance.
Definition at line 185 of file salinst.hxx.
Referenced by Application::hasNativeFileSelection().
|
pure virtual |
Implemented in GtkInstance, SvpSalInstance, AquaSalInstance, Qt5Instance, X11SalInstance, and WinSalInstance.
Referenced by Scheduler::ProcessEventsToIdle().
|
inlinevirtual |
Reimplemented in SalGenericInstance.
Definition at line 195 of file salinst.hxx.
|
inlinevirtual |
Reimplemented in SalGenericInstance.
Definition at line 194 of file salinst.hxx.
|
inlinevirtual |
Disconnect that - good for detaching from the JavaVM on Android.
Reimplemented in AndroidSalInstance.
Definition at line 200 of file salinst.hxx.
Referenced by vcl::lok::unregisterPollCallbacks().
sal_uInt32 SalInstance::ReleaseYieldMutexAll | ( | ) |
Definition at line 120 of file salvtables.cxx.
References m_pYieldMutex.
Referenced by DestroySalInstance(), and Application::ReleaseSolarMutex().
|
inline |
Definition at line 172 of file salinst.hxx.
Referenced by vcl::DisplayConnectionDispatch::start(), and vcl::DisplayConnectionDispatch::terminate().
|
inlinevirtual |
Reimplemented in AquaSalInstance.
Definition at line 89 of file salinst.hxx.
Referenced by ImplSVMain().
|
inlinevirtual |
Set the app's (somewhat) magic/main-thread to this one.
Reimplemented in SvpSalInstance, and AndroidSalInstance.
Definition at line 198 of file salinst.hxx.
Referenced by Application::UpdateMainThread().
|
inlinevirtual |
Reimplemented in SalGenericInstance.
Definition at line 193 of file salinst.hxx.
|
private |
Definition at line 81 of file salinst.hxx.
|
private |
Definition at line 79 of file salinst.hxx.
Referenced by CallEventCallback().
|
private |
Definition at line 80 of file salinst.hxx.
Referenced by AcquireYieldMutex(), GetYieldMutex(), and ReleaseYieldMutexAll().