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

#include <QtFrame.hxx>

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

Public Member Functions

 QtFrame (QtFrame *pParent, SalFrameStyleFlags nSalFrameStyle, bool bUseCairo)
 
virtual ~QtFrame () override
 
QWidget * GetQWidget () const
 
QtMainWindowGetTopLevelWindow () const
 
QWidget * asChild () const
 
qreal devicePixelRatioF () const
 
void Damage (sal_Int32 nExtentsX, sal_Int32 nExtentsY, sal_Int32 nExtentsWidth, sal_Int32 nExtentsHeight) const
 
virtual SalGraphicsAcquireGraphics () override
 
virtual void ReleaseGraphics (SalGraphics *pGraphics) override
 
virtual bool PostEvent (std::unique_ptr< ImplSVEvent > pData) override
 
virtual void SetTitle (const OUString &rTitle) override
 
virtual void SetIcon (sal_uInt16 nIcon) override
 
virtual void SetMenu (SalMenu *pMenu) override
 
virtual void DrawMenuBar () override
 
virtual void registerDragSource (QtDragSource *pDragSource)
 
virtual void deregisterDragSource (QtDragSource const *pDragSource)
 
virtual void registerDropTarget (QtDropTarget *pDropTarget)
 
virtual void deregisterDropTarget (QtDropTarget const *pDropTarget)
 
void handleDragLeave ()
 
void handleDragMove (QDragMoveEvent *pEvent)
 
void handleDrop (QDropEvent *pEvent)
 
virtual void SetExtendedFrameStyle (SalExtStyle nExtStyle) override
 
virtual void Show (bool bVisible, bool bNoActivate=false) override
 
virtual void SetMinClientSize (tools::Long nWidth, tools::Long nHeight) override
 
virtual void SetMaxClientSize (tools::Long nWidth, tools::Long nHeight) override
 
virtual void SetPosSize (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt16 nFlags) override
 
virtual void GetClientSize (tools::Long &rWidth, tools::Long &rHeight) override
 
virtual void GetWorkArea (tools::Rectangle &rRect) override
 
virtual SalFrameGetParent () const override
 
virtual void SetModal (bool bModal) override
 
virtual bool GetModal () const override
 
virtual void SetWindowState (const SalFrameState *pState) override
 
virtual bool GetWindowState (SalFrameState *pState) override
 
virtual void ShowFullScreen (bool bFullScreen, sal_Int32 nDisplay) override
 
virtual void StartPresentation (bool bStart) override
 
virtual void SetAlwaysOnTop (bool bOnTop) override
 
virtual void ToTop (SalFrameToTop nFlags) override
 
virtual void SetPointer (PointerStyle ePointerStyle) override
 
virtual void CaptureMouse (bool bMouse) override
 
virtual void SetPointerPos (tools::Long nX, tools::Long nY) override
 
virtual bool ShowTooltip (const OUString &rText, const tools::Rectangle &rHelpArea) override
 
virtual void Flush () override
 
virtual void SetInputContext (SalInputContext *pContext) override
 
virtual void EndExtTextInput (EndExtTextInputFlags nFlags) override
 
virtual OUString GetKeyName (sal_uInt16 nKeyCode) override
 
virtual bool MapUnicodeToKeyCode (sal_Unicode aUnicode, LanguageType aLangType, vcl::KeyCode &rKeyCode) override
 
virtual LanguageType GetInputLanguage () override
 
virtual void UpdateSettings (AllSettings &rSettings) override
 
virtual void Beep () override
 
virtual const SystemEnvDataGetSystemData () const override
 
virtual SalPointerState GetPointerState () override
 
virtual KeyIndicatorState GetIndicatorState () override
 
virtual void SimulateKeyPress (sal_uInt16 nKeyCode) override
 
virtual void SetParent (SalFrame *pNewParent) override
 
virtual void SetPluginParent (SystemParentData *pNewParent) override
 
virtual void ResetClipRegion () override
 
virtual void BeginSetClipRegion (sal_uInt32 nRects) override
 
virtual void UnionClipRegion (tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight) override
 
virtual void EndSetClipRegion () override
 
virtual void SetScreenNumber (unsigned int) override
 
virtual void SetApplicationID (const OUString &) override
 
virtual void ResolveWindowHandle (SystemEnvData &rData) const override
 
bool CallCallback (SalEvent nEvent, const void *pEvent) const
 
void setInputLanguage (LanguageType)
 
bool isPopup () const
 
- Public Member Functions inherited from SalFrame
 SalFrame ()
 
virtual ~SalFrame () override
 
virtual tools::Long GetWidth () const override
 
virtual tools::Long GetHeight () const override
 
virtual bool IsOffScreen () const override
 
virtual void SetRepresentedURL (const OUString &)
 
SalFrameGeometry GetGeometry () const
 
const SalFrameGeometryGetUnmirroredGeometry () const
 
virtual void PositionByToolkit (const tools::Rectangle &, FloatWinPopupFlags)
 
virtual void GrabFocus ()
 
virtual void Flush (const tools::Rectangle &)
 
virtual voidShowPopover (const OUString &, vcl::Window *, const tools::Rectangle &, QuickHelpFlags)
 
virtual bool UpdatePopover (void *, const OUString &, vcl::Window *, const tools::Rectangle &)
 
virtual bool HidePopover (void *)
 
virtual weld::WindowGetFrameWeld () const
 
void SetCallback (vcl::Window *pWindow, SALFRAMEPROC pProc)
 
vcl::WindowGetWindow () const
 
void SetModalHierarchyHdl (const Link< bool, void > &rLink)
 
void NotifyModalHierarchy (bool bModal)
 
bool CallCallback (SalEvent nEvent, const void *pEvent) const
 
- Public Member Functions inherited from vcl::DeletionNotifier
void addDel (DeletionListener *pListener)
 
void removeDel (DeletionListener *pListener)
 
- Public Member Functions inherited from SalGeometryProvider
virtual ~SalGeometryProvider ()
 

Static Public Member Functions

static void FillSystemEnvData (SystemEnvData &, sal_IntPtr pWindow, QWidget *pWidget)
 

Private Member Functions

void SetDefaultPos ()
 
Size CalcDefaultSize ()
 
void SetDefaultSize ()
 
bool isChild (bool bPlug=true, bool bSysChild=true) const
 
bool isWindow () const
 
QWindow * windowHandle () const
 
QScreen * screen () const
 
bool isMinimized () const
 
bool isMaximized () const
 
void SetWindowStateImpl (Qt::WindowStates eState)
 
void fixICCCMwindowGroup ()
 
void modalReparent (bool bVisible)
 

Private Attributes

QWidget * m_pQWidget
 
QtMainWindowm_pTopLevel
 
const bool m_bUseCairo
 
std::unique_ptr< QImage > m_pQImage
 
std::unique_ptr< QtGraphicsm_pQtGraphics
 
UniqueCairoSurface m_pSurface
 
std::unique_ptr< QtSvpGraphicsm_pSvpGraphics
 
DamageHandler m_aDamageHandler
 
QRegion m_aRegion
 
bool m_bNullRegion
 
bool m_bGraphicsInUse
 
SalFrameStyleFlags m_nStyle
 
QtFramem_pParent
 
PointerStyle m_ePointerStyle
 
SystemEnvData m_aSystemData
 
QtDragSourcem_pDragSource
 
QtDropTargetm_pDropTarget
 
bool m_bInDrag
 
bool m_bDefaultSize
 
bool m_bDefaultPos
 
bool m_bFullScreen
 
bool m_bFullScreenSpanAll
 
sal_uInt32 m_nRestoreScreen
 
QRect m_aRestoreGeometry
 
LanguageType m_nInputLanguage
 

Friends

class QtWidget
 

Additional Inherited Members

- Public Attributes inherited from SalFrame
SalFrameGeometry maGeometry = {}
 absolute, unmirrored values More...
 
- Protected Member Functions inherited from vcl::DeletionNotifier
 DeletionNotifier ()
 
 ~DeletionNotifier ()
 
void notifyDelete ()
 
- Protected Attributes inherited from SalFrame
std::unique_ptr< weld::Windowm_xFrameWeld
 

Detailed Description

Definition at line 67 of file qt5/QtFrame.hxx.

Constructor & Destructor Documentation

QtFrame::QtFrame ( QtFrame pParent,
SalFrameStyleFlags  nSalFrameStyle,
bool  bUseCairo 
)
virtual QtFrame::~QtFrame ( )
overridevirtual

Member Function Documentation

virtual SalGraphics* QtFrame::AcquireGraphics ( )
overridevirtual

Implements SalFrame.

QWidget* QtFrame::asChild ( ) const
virtual void QtFrame::Beep ( )
overridevirtual

Implements SalFrame.

virtual void QtFrame::BeginSetClipRegion ( sal_uInt32  nRects)
overridevirtual

Implements SalFrame.

Size QtFrame::CalcDefaultSize ( )
private
bool QtFrame::CallCallback ( SalEvent  nEvent,
const void pEvent 
) const
inline

Definition at line 222 of file qt5/QtFrame.hxx.

References SalFrame::CallCallback().

virtual void QtFrame::CaptureMouse ( bool  bMouse)
overridevirtual

Implements SalFrame.

void QtFrame::Damage ( sal_Int32  nExtentsX,
sal_Int32  nExtentsY,
sal_Int32  nExtentsWidth,
sal_Int32  nExtentsHeight 
) const
virtual void QtFrame::deregisterDragSource ( QtDragSource const *  pDragSource)
virtual
virtual void QtFrame::deregisterDropTarget ( QtDropTarget const *  pDropTarget)
virtual
qreal QtFrame::devicePixelRatioF ( ) const
virtual void QtFrame::DrawMenuBar ( )
overridevirtual

Implements SalFrame.

virtual void QtFrame::EndExtTextInput ( EndExtTextInputFlags  nFlags)
overridevirtual

Implements SalFrame.

virtual void QtFrame::EndSetClipRegion ( )
overridevirtual

Implements SalFrame.

static void QtFrame::FillSystemEnvData ( SystemEnvData ,
sal_IntPtr  pWindow,
QWidget *  pWidget 
)
static
void QtFrame::fixICCCMwindowGroup ( )
private
virtual void QtFrame::Flush ( )
overridevirtual

Implements SalFrame.

virtual void QtFrame::GetClientSize ( tools::Long rWidth,
tools::Long rHeight 
)
overridevirtual

Implements SalFrame.

virtual KeyIndicatorState QtFrame::GetIndicatorState ( )
overridevirtual

Implements SalFrame.

virtual LanguageType QtFrame::GetInputLanguage ( )
overridevirtual

Implements SalFrame.

virtual OUString QtFrame::GetKeyName ( sal_uInt16  nKeyCode)
overridevirtual

Implements SalFrame.

virtual bool QtFrame::GetModal ( ) const
overridevirtual

Reimplemented from SalFrame.

virtual SalFrame* QtFrame::GetParent ( ) const
overridevirtual

Implements SalFrame.

virtual SalPointerState QtFrame::GetPointerState ( )
overridevirtual

Implements SalFrame.

QWidget* QtFrame::GetQWidget ( ) const
inline

Definition at line 141 of file qt5/QtFrame.hxx.

Referenced by QtPainter::update(), and QtPainter::~QtPainter().

virtual const SystemEnvData* QtFrame::GetSystemData ( ) const
inlineoverridevirtual

Implements SalFrame.

Definition at line 199 of file qt5/QtFrame.hxx.

QtMainWindow* QtFrame::GetTopLevelWindow ( ) const
inline

Definition at line 142 of file qt5/QtFrame.hxx.

virtual bool QtFrame::GetWindowState ( SalFrameState pState)
overridevirtual

Implements SalFrame.

virtual void QtFrame::GetWorkArea ( tools::Rectangle rRect)
overridevirtual

Implements SalFrame.

void QtFrame::handleDragLeave ( )
void QtFrame::handleDragMove ( QDragMoveEvent *  pEvent)
void QtFrame::handleDrop ( QDropEvent *  pEvent)
bool QtFrame::isChild ( bool  bPlug = true,
bool  bSysChild = true 
) const
inlineprivate

Definition at line 117 of file qt5/QtFrame.hxx.

References NONE, PLUG, and SYSTEMCHILD.

bool QtFrame::isMaximized ( ) const
private
bool QtFrame::isMinimized ( ) const
private
bool QtFrame::isPopup ( ) const
inline

Definition at line 228 of file qt5/QtFrame.hxx.

References FLOAT, m_nStyle, and OWNERDRAWDECORATION.

bool QtFrame::isWindow ( ) const
private
virtual bool QtFrame::MapUnicodeToKeyCode ( sal_Unicode  aUnicode,
LanguageType  aLangType,
vcl::KeyCode rKeyCode 
)
overridevirtual

Implements SalFrame.

void QtFrame::modalReparent ( bool  bVisible)
private
virtual bool QtFrame::PostEvent ( std::unique_ptr< ImplSVEvent pData)
overridevirtual

Implements SalFrame.

virtual void QtFrame::registerDragSource ( QtDragSource pDragSource)
virtual
virtual void QtFrame::registerDropTarget ( QtDropTarget pDropTarget)
virtual
virtual void QtFrame::ReleaseGraphics ( SalGraphics pGraphics)
overridevirtual

Implements SalFrame.

virtual void QtFrame::ResetClipRegion ( )
overridevirtual

Implements SalFrame.

virtual void QtFrame::ResolveWindowHandle ( SystemEnvData rData) const
overridevirtual

Reimplemented from SalFrame.

QScreen* QtFrame::screen ( ) const
private
virtual void QtFrame::SetAlwaysOnTop ( bool  bOnTop)
overridevirtual

Implements SalFrame.

virtual void QtFrame::SetApplicationID ( const OUString &  )
overridevirtual

Implements SalFrame.

void QtFrame::SetDefaultPos ( )
private
void QtFrame::SetDefaultSize ( )
private
virtual void QtFrame::SetExtendedFrameStyle ( SalExtStyle  nExtStyle)
overridevirtual

Implements SalFrame.

virtual void QtFrame::SetIcon ( sal_uInt16  nIcon)
overridevirtual

Implements SalFrame.

virtual void QtFrame::SetInputContext ( SalInputContext pContext)
overridevirtual

Implements SalFrame.

void QtFrame::setInputLanguage ( LanguageType  )
virtual void QtFrame::SetMaxClientSize ( tools::Long  nWidth,
tools::Long  nHeight 
)
overridevirtual

Implements SalFrame.

virtual void QtFrame::SetMenu ( SalMenu pMenu)
overridevirtual

Implements SalFrame.

virtual void QtFrame::SetMinClientSize ( tools::Long  nWidth,
tools::Long  nHeight 
)
overridevirtual

Implements SalFrame.

virtual void QtFrame::SetModal ( bool  bModal)
overridevirtual

Reimplemented from SalFrame.

virtual void QtFrame::SetParent ( SalFrame pNewParent)
overridevirtual

Implements SalFrame.

virtual void QtFrame::SetPluginParent ( SystemParentData pNewParent)
overridevirtual

Implements SalFrame.

virtual void QtFrame::SetPointer ( PointerStyle  ePointerStyle)
overridevirtual

Implements SalFrame.

virtual void QtFrame::SetPointerPos ( tools::Long  nX,
tools::Long  nY 
)
overridevirtual

Implements SalFrame.

virtual void QtFrame::SetPosSize ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight,
sal_uInt16  nFlags 
)
overridevirtual

Implements SalFrame.

virtual void QtFrame::SetScreenNumber ( unsigned  int)
overridevirtual

Implements SalFrame.

virtual void QtFrame::SetTitle ( const OUString &  rTitle)
overridevirtual

Implements SalFrame.

virtual void QtFrame::SetWindowState ( const SalFrameState pState)
overridevirtual

Implements SalFrame.

void QtFrame::SetWindowStateImpl ( Qt::WindowStates  eState)
private
virtual void QtFrame::Show ( bool  bVisible,
bool  bNoActivate = false 
)
overridevirtual

Implements SalFrame.

virtual void QtFrame::ShowFullScreen ( bool  bFullScreen,
sal_Int32  nDisplay 
)
overridevirtual

Implements SalFrame.

virtual bool QtFrame::ShowTooltip ( const OUString &  rText,
const tools::Rectangle rHelpArea 
)
overridevirtual

Reimplemented from SalFrame.

virtual void QtFrame::SimulateKeyPress ( sal_uInt16  nKeyCode)
overridevirtual

Implements SalFrame.

virtual void QtFrame::StartPresentation ( bool  bStart)
overridevirtual

Implements SalFrame.

virtual void QtFrame::ToTop ( SalFrameToTop  nFlags)
overridevirtual

Implements SalFrame.

virtual void QtFrame::UnionClipRegion ( tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight 
)
overridevirtual

Implements SalFrame.

virtual void QtFrame::UpdateSettings ( AllSettings rSettings)
overridevirtual

Implements SalFrame.

QWindow* QtFrame::windowHandle ( ) const
private

Friends And Related Function Documentation

friend class QtWidget
friend

Definition at line 71 of file qt5/QtFrame.hxx.

Member Data Documentation

DamageHandler QtFrame::m_aDamageHandler
private

Definition at line 81 of file qt5/QtFrame.hxx.

QRegion QtFrame::m_aRegion
private

Definition at line 82 of file qt5/QtFrame.hxx.

QRect QtFrame::m_aRestoreGeometry
private

Definition at line 101 of file qt5/QtFrame.hxx.

SystemEnvData QtFrame::m_aSystemData
private

Definition at line 90 of file qt5/QtFrame.hxx.

bool QtFrame::m_bDefaultPos
private

Definition at line 97 of file qt5/QtFrame.hxx.

bool QtFrame::m_bDefaultSize
private

Definition at line 96 of file qt5/QtFrame.hxx.

bool QtFrame::m_bFullScreen
private

Definition at line 98 of file qt5/QtFrame.hxx.

bool QtFrame::m_bFullScreenSpanAll
private

Definition at line 99 of file qt5/QtFrame.hxx.

bool QtFrame::m_bGraphicsInUse
private

Definition at line 85 of file qt5/QtFrame.hxx.

bool QtFrame::m_bInDrag
private

Definition at line 94 of file qt5/QtFrame.hxx.

bool QtFrame::m_bNullRegion
private

Definition at line 83 of file qt5/QtFrame.hxx.

const bool QtFrame::m_bUseCairo
private

Definition at line 76 of file qt5/QtFrame.hxx.

PointerStyle QtFrame::m_ePointerStyle
private

Definition at line 88 of file qt5/QtFrame.hxx.

LanguageType QtFrame::m_nInputLanguage
private

Definition at line 111 of file qt5/QtFrame.hxx.

sal_uInt32 QtFrame::m_nRestoreScreen
private

Definition at line 100 of file qt5/QtFrame.hxx.

SalFrameStyleFlags QtFrame::m_nStyle
private

Definition at line 86 of file qt5/QtFrame.hxx.

Referenced by isPopup().

QtDragSource* QtFrame::m_pDragSource
private

Definition at line 92 of file qt5/QtFrame.hxx.

QtDropTarget* QtFrame::m_pDropTarget
private

Definition at line 93 of file qt5/QtFrame.hxx.

QtFrame* QtFrame::m_pParent
private

Definition at line 87 of file qt5/QtFrame.hxx.

std::unique_ptr<QImage> QtFrame::m_pQImage
private

Definition at line 77 of file qt5/QtFrame.hxx.

std::unique_ptr<QtGraphics> QtFrame::m_pQtGraphics
private

Definition at line 78 of file qt5/QtFrame.hxx.

QWidget* QtFrame::m_pQWidget
private

Definition at line 73 of file qt5/QtFrame.hxx.

UniqueCairoSurface QtFrame::m_pSurface
private

Definition at line 79 of file qt5/QtFrame.hxx.

std::unique_ptr<QtSvpGraphics> QtFrame::m_pSvpGraphics
private

Definition at line 80 of file qt5/QtFrame.hxx.

QtMainWindow* QtFrame::m_pTopLevel
private

Definition at line 74 of file qt5/QtFrame.hxx.


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