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

#include <salinst.h>

Inheritance diagram for AquaSalInstance:
Collaboration diagram for AquaSalInstance:

Public Member Functions

virtual void TriggerUserEventProcessing () override
 AquaSalInstance ()
virtual ~AquaSalInstance () override
virtual void AfterAppInit () override
virtual bool SVMainHook (int *) override
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 &rGraphics, tools::Long &nDX, tools::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 SalTimerCreateSalTimer () override
virtual SalSystemCreateSalSystem () 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 std::unique_ptr< SalMenuCreateMenu (bool bMenuBar, Menu *pVCLMenu) override
virtual std::unique_ptr< SalMenuItemCreateMenuItem (const SalItemParams &rItemData) override
virtual OpenGLContextCreateOpenGLContext () override
virtual OUString GetConnectionIdentifier () override
virtual void AddToRecentDocumentList (const OUString &rFileUrl, const OUString &rMimeType, const OUString &rDocumentService) override
virtual OUString getOSVersion () override
 get information about underlying versions More...
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 > ImplCreateDragSource (const SystemEnvData *) override
virtual css::uno::Reference< css::uno::XInterface > ImplCreateDropTarget (const SystemEnvData *) override
void delayedSettingsChanged (bool bInvalidate)
virtual bool IsMainThread () const override
void startedPrintJob ()
void endedPrintJob ()
- Public Member Functions inherited from SalInstance
 SalInstance (std::unique_ptr< comphelper::SolarMutex > pMutex)
virtual ~SalInstance ()
bool supportsBitmap32 () const
bool supportsOpenGL () const
comphelper::SolarMutexGetYieldMutex ()
sal_uInt32 ReleaseYieldMutexAll ()
void AcquireYieldMutex (sal_uInt32 nCount=1)
virtual std::unique_ptr< SalSessionCreateSalSession ()
virtual std::unique_ptr< weld::BuilderCreateBuilder (weld::Widget *pParent, const OUString &rUIRoot, const OUString &rUIFile)
virtual std::unique_ptr< weld::BuilderCreateInterimBuilder (vcl::Window *pParent, const OUString &rUIRoot, const OUString &rUIFile, bool bAllowCycleFocusOut, sal_uInt64 nLOKWindowId=0)
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)
css::uno::Reference< css::uno::XInterface > CreateDragSource (const SystemEnvData *=nullptr)
css::uno::Reference< css::uno::XInterface > CreateDropTarget (const SystemEnvData *=nullptr)
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 const cairo_font_options_tGetCairoFontOptions ()
virtual voidCreateGStreamerSink (const SystemChildWindow *)
virtual void BeforeAbort (const OUString &, bool)
virtual bool DoExecute (int &nExitCode)
virtual void DoQuit ()
- Public Member Functions inherited from SalUserEventList
 SalUserEventList ()
virtual ~SalUserEventList () COVERITY_NOEXCEPT_FALSE
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 Member Functions

static void handleAppDefinedEvent (NSEvent *pEvent)
static bool isOnCommandLine (const OUString &)
static NSMenu * GetDynamicDockMenu ()
- Static Public Member Functions inherited from SalInstance
static bool IsRunningUnitTest ()

Public Attributes

OUString maDefaultPrinter
oslThreadIdentifier maMainThread
int mnActivePrintJobs
osl::Mutex maUserEventListMutex
osl::Condition maWaitingYieldCond
bool mbIsLiveResize
bool mbNoYieldLock
bool mbTimerProcessed

Static Public Attributes

static std::list< const ApplicationEvent * > aAppEventList
static const short AppExecuteSVMain = 1
static const short AppStartTimerEvent = 10
static const short YieldWakeupEvent = 20
static const short DispatchTimerEvent = 30

Private Member Functions

bool RunInMainYield (bool bHandleAllCurrentEvents)
virtual void ProcessEvent (SalUserEvent aEvent) override


class AquaSalFrame

Additional Inherited Members

- Protected Member Functions inherited from SalUserEventList
virtual void TriggerAllUserEventsProcessed ()
bool HasUserEvents_NoLock () const
- Protected Attributes inherited from SalInstance
bool m_bSupportsBitmap32 = false
bool m_bSupportsOpenGL = false
- Protected Attributes inherited from SalUserEventList
std::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 68 of file osx/salinst.h.

Constructor & Destructor Documentation

AquaSalInstance::AquaSalInstance ( )
virtual AquaSalInstance::~AquaSalInstance ( )

Member Function Documentation

virtual void AquaSalInstance::AddToRecentDocumentList ( const OUString &  rFileUrl,
const OUString &  rMimeType,
const OUString &  rDocumentService 

Implements SalInstance.

virtual void AquaSalInstance::AfterAppInit ( )

Reimplemented from SalInstance.

virtual bool AquaSalInstance::AnyInput ( VclInputFlags  nType)

Implements SalInstance.

virtual SalFrame* AquaSalInstance::CreateChildFrame ( SystemParentData pParent,
SalFrameStyleFlags  nStyle 

Implements SalInstance.

virtual css::uno::Reference< css::uno::XInterface > AquaSalInstance::CreateClipboard ( const css::uno::Sequence< css::uno::Any > &  i_rArguments)

Reimplemented from SalInstance.

virtual SalFrame* AquaSalInstance::CreateFrame ( SalFrame pParent,
SalFrameStyleFlags  nStyle 

Implements SalInstance.

virtual SalInfoPrinter* AquaSalInstance::CreateInfoPrinter ( SalPrinterQueueInfo pQueueInfo,
ImplJobSetup pSetupData 

Implements SalInstance.

virtual std::unique_ptr<SalMenu> AquaSalInstance::CreateMenu ( bool  bMenuBar,
Menu pVCLMenu 

Reimplemented from SalInstance.

virtual std::unique_ptr<SalMenuItem> AquaSalInstance::CreateMenuItem ( const SalItemParams rItemData)

Reimplemented from SalInstance.

virtual SalObject* AquaSalInstance::CreateObject ( SalFrame pParent,
SystemWindowData pWindowData,
bool  bShow 

Implements SalInstance.

virtual OpenGLContext* AquaSalInstance::CreateOpenGLContext ( )

Reimplemented from SalInstance.

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

Implements SalInstance.

virtual std::shared_ptr<SalBitmap> AquaSalInstance::CreateSalBitmap ( )

Implements SalInstance.

virtual SalSystem* AquaSalInstance::CreateSalSystem ( )

Implements SalInstance.

virtual SalTimer* AquaSalInstance::CreateSalTimer ( )

Implements SalInstance.

virtual std::unique_ptr<SalVirtualDevice> AquaSalInstance::CreateVirtualDevice ( SalGraphics rGraphics,
tools::Long nDX,
tools::Long nDY,
DeviceFormat  eFormat,
const SystemGraphicsData pData = nullptr 

Implements SalInstance.

void AquaSalInstance::delayedSettingsChanged ( bool  bInvalidate)
virtual void AquaSalInstance::DestroyFrame ( SalFrame pFrame)

Implements SalInstance.

virtual void AquaSalInstance::DestroyInfoPrinter ( SalInfoPrinter pPrinter)

Implements SalInstance.

virtual void AquaSalInstance::DestroyObject ( SalObject pObject)

Implements SalInstance.

virtual bool AquaSalInstance::DoYield ( bool  bWait,
bool  bHandleAllCurrentEvents 

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.

void AquaSalInstance::endedPrintJob ( )

Definition at line 146 of file osx/salinst.h.

virtual OUString AquaSalInstance::GetConnectionIdentifier ( )

Implements SalInstance.

virtual OUString AquaSalInstance::GetDefaultPrinter ( )

Implements SalInstance.

static NSMenu* AquaSalInstance::GetDynamicDockMenu ( )
virtual OUString AquaSalInstance::getOSVersion ( )

get information about underlying versions

Reimplemented from SalInstance.

virtual void AquaSalInstance::GetPrinterQueueInfo ( ImplPrnQueueList pList)

Implements SalInstance.

virtual void AquaSalInstance::GetPrinterQueueState ( SalPrinterQueueInfo pInfo)

Implements SalInstance.

static void AquaSalInstance::handleAppDefinedEvent ( NSEvent *  pEvent)
virtual css::uno::Reference<css::uno::XInterface> AquaSalInstance::ImplCreateDragSource ( const SystemEnvData )

Reimplemented from SalInstance.

virtual css::uno::Reference<css::uno::XInterface> AquaSalInstance::ImplCreateDropTarget ( const SystemEnvData )

Reimplemented from SalInstance.

virtual bool AquaSalInstance::IsMainThread ( ) const

Implements SalInstance.

static bool AquaSalInstance::isOnCommandLine ( const OUString &  )
virtual void AquaSalInstance::ProcessEvent ( SalUserEvent  aEvent)

Implements SalUserEventList.

bool AquaSalInstance::RunInMainYield ( bool  bHandleAllCurrentEvents)
void AquaSalInstance::startedPrintJob ( )

Definition at line 145 of file osx/salinst.h.

virtual bool AquaSalInstance::SVMainHook ( int )

Reimplemented from SalInstance.

virtual void AquaSalInstance::TriggerUserEventProcessing ( )

Implements SalUserEventList.

Friends And Related Function Documentation

friend class AquaSalFrame

Definition at line 70 of file osx/salinst.h.

Member Data Documentation

std::list<const ApplicationEvent*> AquaSalInstance::aAppEventList

Definition at line 88 of file osx/salinst.h.

const short AquaSalInstance::AppExecuteSVMain = 1

Definition at line 149 of file osx/salinst.h.

const short AquaSalInstance::AppStartTimerEvent = 10

Definition at line 150 of file osx/salinst.h.

const short AquaSalInstance::DispatchTimerEvent = 30

Definition at line 152 of file osx/salinst.h.

OUString AquaSalInstance::maDefaultPrinter

Definition at line 79 of file osx/salinst.h.

oslThreadIdentifier AquaSalInstance::maMainThread

Definition at line 80 of file osx/salinst.h.

osl::Mutex AquaSalInstance::maUserEventListMutex

Definition at line 82 of file osx/salinst.h.

osl::Condition AquaSalInstance::maWaitingYieldCond

Definition at line 83 of file osx/salinst.h.

bool AquaSalInstance::mbIsLiveResize

Definition at line 84 of file osx/salinst.h.

bool AquaSalInstance::mbNoYieldLock

Definition at line 85 of file osx/salinst.h.

bool AquaSalInstance::mbTimerProcessed

Definition at line 86 of file osx/salinst.h.

int AquaSalInstance::mnActivePrintJobs

Definition at line 81 of file osx/salinst.h.

const short AquaSalInstance::YieldWakeupEvent = 20

Definition at line 151 of file osx/salinst.h.

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