LibreOffice Module vcl (master)
1
|
#include <QtInstance.hxx>
Signals | |
bool | ImplYieldSignal (bool bWait, bool bHandleAllCurrentEvents) |
void | deleteObjectLaterSignal (QObject *pObject) |
Public Member Functions | |
QtInstance (std::unique_ptr< QApplication > &pQApp, bool bUseCairo=false) | |
virtual | ~QtInstance () override |
void | MoveFakeCmdlineArgs (std::unique_ptr< char *[]> &rFakeArgv, std::unique_ptr< int > &rFakeArgc, std::vector< FreeableCStr > &rFakeArgvFreeable) |
void | RunInMainThread (std::function< void()> func) |
virtual SalFrame * | CreateFrame (SalFrame *pParent, SalFrameStyleFlags nStyle) override |
virtual SalFrame * | CreateChildFrame (SystemParentData *pParent, SalFrameStyleFlags nStyle) override |
virtual void | DestroyFrame (SalFrame *pFrame) override |
virtual SalObject * | CreateObject (SalFrame *pParent, SystemWindowData *pWindowData, bool bShow) override |
virtual void | DestroyObject (SalObject *pObject) override |
virtual std::unique_ptr< SalVirtualDevice > | CreateVirtualDevice (SalGraphics &rGraphics, tools::Long &nDX, tools::Long &nDY, DeviceFormat eFormat, const SystemGraphicsData *pData=nullptr) override |
virtual SalInfoPrinter * | CreateInfoPrinter (SalPrinterQueueInfo *pQueueInfo, ImplJobSetup *pSetupData) override |
virtual void | DestroyInfoPrinter (SalInfoPrinter *pPrinter) override |
virtual std::unique_ptr< SalPrinter > | CreatePrinter (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< SalMenu > | CreateMenu (bool, Menu *) override |
virtual std::unique_ptr< SalMenuItem > | CreateMenuItem (const SalItemParams &) override |
virtual SalTimer * | CreateSalTimer () override |
virtual SalSystem * | CreateSalSystem () override |
virtual std::shared_ptr< SalBitmap > | CreateSalBitmap () 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 OpenGLContext * | CreateOpenGLContext () override |
virtual OUString | GetConnectionIdentifier () override |
virtual void | AddToRecentDocumentList (const OUString &rFileUrl, const OUString &rMimeType, const OUString &rDocumentService) override |
virtual std::unique_ptr< GenPspGraphics > | CreatePrintGraphics () 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 > | ImplCreateDragSource (const SystemEnvData *) override |
virtual css::uno::Reference< css::uno::XInterface > | ImplCreateDropTarget (const SystemEnvData *) override |
void | UpdateStyle (bool bFontsChanged) |
void * | CreateGStreamerSink (const SystemChildWindow *) override |
bool | DoExecute (int &nExitCode) override |
void | DoQuit () override |
QtFrame * | activePopup () const |
void | setActivePopup (QtFrame *) |
![]() | |
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... | |
![]() | |
SalInstance (std::unique_ptr< comphelper::SolarMutex > pMutex) | |
virtual | ~SalInstance () |
bool | supportsBitmap32 () const |
bool | supportsOpenGL () const |
virtual bool | SVMainHook (int *) |
comphelper::SolarMutex * | GetYieldMutex () |
sal_uInt32 | ReleaseYieldMutexAll () |
void | AcquireYieldMutex (sal_uInt32 nCount=1) |
virtual std::unique_ptr< SalSession > | CreateSalSession () |
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) |
css::uno::Reference< css::uno::XInterface > | CreateDragSource (const SystemEnvData *=nullptr) |
css::uno::Reference< css::uno::XInterface > | CreateDropTarget (const SystemEnvData *=nullptr) |
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_t * | GetCairoFontOptions () |
virtual void | BeforeAbort (const OUString &, bool) |
![]() | |
SalUserEventList () | |
virtual | ~SalUserEventList () COVERITY_NOEXCEPT_FALSE |
const SalFrameSet & | getFrames () const |
SalFrame * | anyFrame () 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 void | RegisterFontSubstitutors (vcl::font::PhysicalFontCollection *pFontCollection) |
![]() | |
static bool | IsRunningUnitTest () |
Protected Member Functions | |
virtual rtl::Reference< QtFilePicker > | createPicker (css::uno::Reference< css::uno::XComponentContext > const &context, QFileDialog::FileMode) |
bool | useCairo () const |
OUString | constructToolkitID (std::u16string_view sTKname) |
void | connectQScreenSignals (const QScreen *) |
void | notifyDisplayChanged () |
![]() | |
virtual void | TriggerAllUserEventsProcessed () |
bool | HasUserEvents_NoLock () const |
Private Slots | |
bool | ImplYield (bool bWait, bool bHandleAllCurrentEvents) |
static void | deleteObjectLater (QObject *pObject) |
static void | localeChanged () |
void | orientationChanged (Qt::ScreenOrientation) |
void | primaryScreenChanged (QScreen *) |
void | screenAdded (QScreen *) |
void | screenRemoved (QScreen *) |
void | virtualGeometryChanged (const QRect &) |
Private Member Functions | |
DECL_DLLPRIVATE_LINK (updateStyleHdl, Timer *, void) | |
void | AfterAppInit () override |
Private Attributes | |
osl::Condition | m_aWaitingYieldCond |
const bool | m_bUseCairo |
QtTimer * | m_pTimer |
bool | m_bSleeping |
std::unordered_map< OUString, css::uno::Reference< css::uno::XInterface > > | m_aClipboards |
std::unique_ptr< QApplication > | m_pQApplication |
std::vector< FreeableCStr > | m_pFakeArgvFreeable |
std::unique_ptr< char *[]> | m_pFakeArgv |
std::unique_ptr< int > | m_pFakeArgc |
Timer | m_aUpdateStyleTimer |
bool | m_bUpdateFonts |
QtFrame * | m_pActivePopup |
Additional Inherited Members | |
![]() | |
static void | configurePspInfoPrinter (PspSalInfoPrinter *pInfoPrinter, SalPrinterQueueInfo const *pQueueInfo, ImplJobSetup *pSetupData) |
![]() | |
bool | mbPrinterInit |
![]() | |
bool | m_bSupportsBitmap32 = false |
bool | m_bSupportsOpenGL = false |
![]() | |
std::mutex | m_aUserEventsMutex |
std::list< SalUserEvent > | m_aUserEvents |
std::list< SalUserEvent > | m_aProcessingUserEvents |
bool | m_bAllUserEventProcessedSignaled |
SalFrameSet | m_aFrames |
oslThreadIdentifier | m_aProcessingThread |
Definition at line 51 of file qt5/QtInstance.hxx.
|
explicit |
|
overridevirtual |
|
inline |
Definition at line 184 of file qt5/QtInstance.hxx.
|
overridevirtual |
Implements SalInstance.
|
overrideprivatevirtual |
Reimplemented from SalInstance.
|
static |
|
overridevirtual |
Implements SalInstance.
|
protected |
|
protected |
|
overridevirtual |
Implements SalInstance.
|
overridevirtual |
Reimplemented from SalInstance.
|
overridevirtual |
Reimplemented from SalInstance.
|
overridevirtual |
Reimplemented from SalInstance.
|
overridevirtual |
Implements SalInstance.
|
overridevirtual |
Reimplemented from SalInstance.
|
overridevirtual |
Reimplemented from SalGenericInstance.
Reimplemented from SalInstance.
|
overridevirtual |
Reimplemented from SalInstance.
|
overridevirtual |
Implements SalInstance.
|
overridevirtual |
Reimplemented from SalInstance.
|
protectedvirtual |
|
overridevirtual |
Reimplemented from SalGenericInstance.
|
overridevirtual |
Implements SalGenericInstance.
|
static |
|
overridevirtual |
Implements SalInstance.
|
overridevirtual |
Implements SalInstance.
|
overridevirtual |
Implements SalInstance.
|
overridevirtual |
Implements SalInstance.
|
staticprivateslot |
|
signal |
Implements SalInstance.
|
overridevirtual |
Reimplemented from SalGenericInstance.
Implements SalInstance.
|
overridevirtual |
Reimplemented from SalInstance.
|
overridevirtual |
Reimplemented from SalInstance.
|
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.
|
overridevirtual |
Implements SalInstance.
|
overridevirtual |
Reimplemented from SalGenericInstance.
|
overridevirtual |
Reimplemented from SalGenericInstance.
|
overridevirtual |
Reimplemented from SalGenericInstance.
|
inlineoverridevirtual |
Reimplemented from SalInstance.
Definition at line 164 of file qt5/QtInstance.hxx.
|
overridevirtual |
Reimplemented from SalInstance.
|
overridevirtual |
Reimplemented from SalInstance.
|
privateslot |
|
signal |
|
overridevirtual |
Implements SalInstance.
|
staticprivateslot |
void QtInstance::MoveFakeCmdlineArgs | ( | std::unique_ptr< char *[]> & | rFakeArgv, |
std::unique_ptr< int > & | rFakeArgc, | ||
std::vector< FreeableCStr > & | rFakeArgvFreeable | ||
) |
|
protected |
|
privateslot |
|
overridevirtual |
Implements SalGenericInstance.
|
privateslot |
|
overridevirtual |
Implements SalUserEventList.
|
privateslot |
|
privateslot |
|
overridevirtual |
Implements SalUserEventList.
void QtInstance::UpdateStyle | ( | bool | bFontsChanged | ) |
|
inlineprotected |
Definition at line 95 of file qt5/QtInstance.hxx.
|
privateslot |
|
private |
Definition at line 61 of file qt5/QtInstance.hxx.
|
private |
Definition at line 68 of file qt5/QtInstance.hxx.
|
private |
Definition at line 57 of file qt5/QtInstance.hxx.
|
private |
Definition at line 60 of file qt5/QtInstance.hxx.
|
private |
Definition at line 69 of file qt5/QtInstance.hxx.
|
private |
Definition at line 58 of file qt5/QtInstance.hxx.
|
private |
Definition at line 71 of file qt5/QtInstance.hxx.
|
private |
Definition at line 66 of file qt5/QtInstance.hxx.
|
private |
Definition at line 65 of file qt5/QtInstance.hxx.
|
private |
Definition at line 64 of file qt5/QtInstance.hxx.
|
private |
Definition at line 63 of file qt5/QtInstance.hxx.
|
private |
Definition at line 59 of file qt5/QtInstance.hxx.