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

#include <Qt5Instance.hxx>

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

Signals

bool ImplYieldSignal (bool bWait, bool bHandleAllCurrentEvents)
 
void ImplRunInMainSignal ()
 
void deleteObjectLaterSignal (QObject *pObject)
 

Public Member Functions

 Qt5Instance (std::unique_ptr< QApplication > &pQApp, bool bUseCairo=false)
 
virtual ~Qt5Instance () override
 
void MoveFakeCmdlineArgs (std::unique_ptr< char *[]> &rFakeArgv, std::unique_ptr< int > &rFakeArgc, std::vector< FreeableCStr > &rFakeArgvFreeable)
 
void RunInMainThread (std::function< void()> func)
 
virtual SalFrameCreateFrame (SalFrame *pParent, SalFrameStyleFlags nStyle) override
 
virtual SalFrameCreateChildFrame (SystemParentData *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 std::unique_ptr< SalMenuCreateMenu (bool, Menu *) override
 
virtual std::unique_ptr< SalMenuItemCreateMenuItem (const SalItemParams &) 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 OpenGLContextCreateOpenGLContext () override
 
virtual OUString GetConnectionIdentifier () override
 
virtual void AddToRecentDocumentList (const OUString &rFileUrl, const OUString &rMimeType, const OUString &rDocumentService) override
 
virtual std::unique_ptr< GenPspGraphicsCreatePrintGraphics () override
 
virtual bool IsMainThread () const override
 
virtual void TriggerUserEventProcessing () override
 
virtual void ProcessEvent (SalUserEvent aEvent) override
 
bool hasNativeFileSelection () const override
 
css::uno::Reference< css::ui::dialogs::XFilePicker2 > createFilePicker (const css::uno::Reference< css::uno::XComponentContext > &) override
 
css::uno::Reference< css::ui::dialogs::XFolderPicker2 > createFolderPicker (const css::uno::Reference< css::uno::XComponentContext > &) override
 
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 > CreateDragSource () override
 
virtual css::uno::Reference< css::uno::XInterface > CreateDropTarget () override
 
void UpdateStyle (bool bFontsChanged)
 
voidCreateGStreamerSink (const SystemChildWindow *) 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 bool SVMainHook (int *)
 
virtual std::shared_ptr< vcl::BackendCapabilitiesGetBackendCapabilities ()
 
comphelper::SolarMutexGetYieldMutex ()
 
sal_uInt32 ReleaseYieldMutexAll ()
 
void AcquireYieldMutex (sal_uInt32 nCount=1)
 
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 void updateMainThread ()
 
virtual const cairo_font_options_tGetCairoFontOptions ()
 
- 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 AllocFakeCmdlineArgs (std::unique_ptr< char *[]> &rFakeArgv, std::unique_ptr< int > &rFakeArgc, std::vector< FreeableCStr > &rFakeArgvFreeable)
 
static std::unique_ptr< QApplication > CreateQApplication (int &nArgc, char **pArgv)
 
- 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

virtual Qt5FilePickercreatePicker (css::uno::Reference< css::uno::XComponentContext > const &context, QFileDialog::FileMode)
 
- Protected Member Functions inherited from SalUserEventList
virtual void TriggerAllUserEventsProcessed ()
 

Private Slots

bool ImplYield (bool bWait, bool bHandleAllCurrentEvents)
 
void ImplRunInMain ()
 
static void deleteObjectLater (QObject *pObject)
 

Private Member Functions

 DECL_LINK (updateStyleHdl, Timer *, void)
 
void AfterAppInit () override
 

Private Attributes

osl::Condition m_aWaitingYieldCond
 
int m_postUserEventId
 
const bool m_bUseCairo
 
std::unordered_map< OUString, css::uno::Reference< css::uno::XInterface > > m_aClipboards
 
std::unique_ptr< QApplication > m_pQApplication
 
std::vector< FreeableCStrm_pFakeArgvFreeable
 
std::unique_ptr< char *[]> m_pFakeArgv
 
std::unique_ptr< intm_pFakeArgc
 
Timer m_aUpdateStyleTimer
 
bool m_bUpdateFonts
 

Additional Inherited Members

- 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 48 of file Qt5Instance.hxx.

Constructor & Destructor Documentation

Qt5Instance::Qt5Instance ( std::unique_ptr< QApplication > &  pQApp,
bool  bUseCairo = false 
)
explicit
virtual Qt5Instance::~Qt5Instance ( )
overridevirtual

Member Function Documentation

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

Implements SalInstance.

void Qt5Instance::AfterAppInit ( )
overrideprivatevirtual

Reimplemented from SalInstance.

static void Qt5Instance::AllocFakeCmdlineArgs ( std::unique_ptr< char *[]> &  rFakeArgv,
std::unique_ptr< int > &  rFakeArgc,
std::vector< FreeableCStr > &  rFakeArgvFreeable 
)
static
virtual bool Qt5Instance::AnyInput ( VclInputFlags  nType)
overridevirtual

Implements SalInstance.

virtual SalFrame* Qt5Instance::CreateChildFrame ( SystemParentData pParent,
SalFrameStyleFlags  nStyle 
)
overridevirtual

Implements SalInstance.

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

Reimplemented from SalInstance.

virtual css::uno::Reference<css::uno::XInterface> Qt5Instance::CreateDragSource ( )
overridevirtual

Reimplemented from SalInstance.

virtual css::uno::Reference<css::uno::XInterface> Qt5Instance::CreateDropTarget ( )
overridevirtual

Reimplemented from SalInstance.

css::uno::Reference<css::ui::dialogs::XFilePicker2> Qt5Instance::createFilePicker ( const css::uno::Reference< css::uno::XComponentContext > &  )
overridevirtual

Reimplemented from SalInstance.

css::uno::Reference<css::ui::dialogs::XFolderPicker2> Qt5Instance::createFolderPicker ( const css::uno::Reference< css::uno::XComponentContext > &  )
overridevirtual

Reimplemented from SalInstance.

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

Implements SalInstance.

void* Qt5Instance::CreateGStreamerSink ( const SystemChildWindow )
overridevirtual

Reimplemented from SalInstance.

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

Reimplemented from SalGenericInstance.

virtual std::unique_ptr<SalMenu> Qt5Instance::CreateMenu ( bool  ,
Menu  
)
overridevirtual

Reimplemented from SalInstance.

virtual std::unique_ptr<SalMenuItem> Qt5Instance::CreateMenuItem ( const SalItemParams )
overridevirtual

Reimplemented from SalInstance.

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

Implements SalInstance.

virtual OpenGLContext* Qt5Instance::CreateOpenGLContext ( )
overridevirtual

Implements SalInstance.

virtual Qt5FilePicker* Qt5Instance::createPicker ( css::uno::Reference< css::uno::XComponentContext > const &  context,
QFileDialog::FileMode   
)
protectedvirtual
virtual std::unique_ptr<SalPrinter> Qt5Instance::CreatePrinter ( SalInfoPrinter pInfoPrinter)
overridevirtual

Reimplemented from SalGenericInstance.

virtual std::unique_ptr<GenPspGraphics> Qt5Instance::CreatePrintGraphics ( )
overridevirtual

Implements SalGenericInstance.

static std::unique_ptr<QApplication> Qt5Instance::CreateQApplication ( int nArgc,
char **  pArgv 
)
static
virtual std::shared_ptr<SalBitmap> Qt5Instance::CreateSalBitmap ( )
overridevirtual

Implements SalInstance.

virtual SalSystem* Qt5Instance::CreateSalSystem ( )
overridevirtual

Implements SalInstance.

virtual SalTimer* Qt5Instance::CreateSalTimer ( )
overridevirtual

Implements SalInstance.

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

Implements SalInstance.

Qt5Instance::DECL_LINK ( updateStyleHdl  ,
Timer ,
void   
)
private
static void Qt5Instance::deleteObjectLater ( QObject *  pObject)
staticprivateslot
void Qt5Instance::deleteObjectLaterSignal ( QObject *  pObject)
signal
virtual void Qt5Instance::DestroyFrame ( SalFrame pFrame)
overridevirtual

Implements SalInstance.

virtual void Qt5Instance::DestroyInfoPrinter ( SalInfoPrinter pPrinter)
overridevirtual

Reimplemented from SalGenericInstance.

virtual void Qt5Instance::DestroyObject ( SalObject pObject)
overridevirtual

Implements SalInstance.

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

virtual OUString Qt5Instance::GetConnectionIdentifier ( )
overridevirtual

Implements SalInstance.

virtual OUString Qt5Instance::GetDefaultPrinter ( )
overridevirtual

Reimplemented from SalGenericInstance.

virtual void Qt5Instance::GetPrinterQueueInfo ( ImplPrnQueueList pList)
overridevirtual

Reimplemented from SalGenericInstance.

virtual void Qt5Instance::GetPrinterQueueState ( SalPrinterQueueInfo pInfo)
overridevirtual

Reimplemented from SalGenericInstance.

bool Qt5Instance::hasNativeFileSelection ( ) const
inlineoverridevirtual

Reimplemented from SalInstance.

Definition at line 145 of file Qt5Instance.hxx.

void Qt5Instance::ImplRunInMain ( )
privateslot
void Qt5Instance::ImplRunInMainSignal ( )
signal
bool Qt5Instance::ImplYield ( bool  bWait,
bool  bHandleAllCurrentEvents 
)
privateslot
bool Qt5Instance::ImplYieldSignal ( bool  bWait,
bool  bHandleAllCurrentEvents 
)
signal
virtual bool Qt5Instance::IsMainThread ( ) const
overridevirtual

Implements SalInstance.

void Qt5Instance::MoveFakeCmdlineArgs ( std::unique_ptr< char *[]> &  rFakeArgv,
std::unique_ptr< int > &  rFakeArgc,
std::vector< FreeableCStr > &  rFakeArgvFreeable 
)
virtual void Qt5Instance::PostPrintersChanged ( )
overridevirtual

Implements SalGenericInstance.

virtual void Qt5Instance::ProcessEvent ( SalUserEvent  aEvent)
overridevirtual

Implements SalUserEventList.

void Qt5Instance::RunInMainThread ( std::function< void()>  func)
virtual void Qt5Instance::TriggerUserEventProcessing ( )
overridevirtual

Implements SalUserEventList.

void Qt5Instance::UpdateStyle ( bool  bFontsChanged)

Member Data Documentation

std::unordered_map<OUString, css::uno::Reference<css::uno::XInterface> > Qt5Instance::m_aClipboards
private

Definition at line 57 of file Qt5Instance.hxx.

Timer Qt5Instance::m_aUpdateStyleTimer
private

Definition at line 64 of file Qt5Instance.hxx.

osl::Condition Qt5Instance::m_aWaitingYieldCond
private

Definition at line 54 of file Qt5Instance.hxx.

bool Qt5Instance::m_bUpdateFonts
private

Definition at line 65 of file Qt5Instance.hxx.

const bool Qt5Instance::m_bUseCairo
private

Definition at line 56 of file Qt5Instance.hxx.

std::unique_ptr<int> Qt5Instance::m_pFakeArgc
private

Definition at line 62 of file Qt5Instance.hxx.

std::unique_ptr<char* []> Qt5Instance::m_pFakeArgv
private

Definition at line 61 of file Qt5Instance.hxx.

std::vector<FreeableCStr> Qt5Instance::m_pFakeArgvFreeable
private

Definition at line 60 of file Qt5Instance.hxx.

int Qt5Instance::m_postUserEventId
private

Definition at line 55 of file Qt5Instance.hxx.

std::unique_ptr<QApplication> Qt5Instance::m_pQApplication
private

Definition at line 59 of file Qt5Instance.hxx.


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