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

#include <Qt5Frame.hxx>

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

Public Member Functions

 Qt5Frame (Qt5Frame *pParent, SalFrameStyleFlags nSalFrameStyle, bool bUseCairo)
 
virtual ~Qt5Frame () override
 
QWidget * GetQWidget () const
 
Qt5MainWindowGetTopLevelWindow () const
 
QWidget * asChild () const
 
void Damage (sal_Int32 nExtentsX, sal_Int32 nExtentsY, sal_Int32 nExtentsWidth, sal_Int32 nExtentsHeight) const
 
void InitQt5SvpGraphics (Qt5SvpGraphics *pQt5SvpGraphics)
 
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 (Qt5DragSource *pDragSource)
 
virtual void deregisterDragSource (Qt5DragSource const *pDragSource)
 
virtual void registerDropTarget (Qt5DropTarget *pDropTarget)
 
virtual void deregisterDropTarget (Qt5DropTarget const *pDropTarget)
 
void draggingStarted (const int x, const int y, Qt::DropActions eActions, Qt::KeyboardModifiers eKeyMod, const QMimeData *pQMimeData)
 
void dropping (const int x, const int y, Qt::KeyboardModifiers eKeyMod, const QMimeData *pQMimeData)
 
virtual void SetExtendedFrameStyle (SalExtStyle nExtStyle) override
 
virtual void Show (bool bVisible, bool bNoActivate=false) override
 
virtual void SetMinClientSize (long nWidth, long nHeight) override
 
virtual void SetMaxClientSize (long nWidth, long nHeight) override
 
virtual void SetPosSize (long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags) override
 
virtual void GetClientSize (long &rWidth, 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 (long nX, 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 bool SetPluginParent (SystemParentData *pNewParent) override
 
virtual void ResetClipRegion () override
 
virtual void BeginSetClipRegion (sal_uInt32 nRects) override
 
virtual void UnionClipRegion (long nX, long nY, long nWidth, long nHeight) override
 
virtual void EndSetClipRegion () override
 
virtual void SetScreenNumber (unsigned int) override
 
virtual void SetApplicationID (const OUString &) override
 
bool CallCallback (SalEvent nEvent, const void *pEvent) const
 
cairo_tgetCairoContext () const
 
- Public Member Functions inherited from SalFrame
 SalFrame ()
 
virtual ~SalFrame () override
 
virtual long GetWidth () const override
 
virtual long GetHeight () const override
 
virtual bool IsOffScreen () const override
 
virtual void SetRepresentedURL (const OUString &)
 
SalFrameGeometry GetGeometry ()
 
const SalFrameGeometryGetUnmirroredGeometry () const
 
virtual void PositionByToolkit (const tools::Rectangle &, FloatWinPopupFlags)
 
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 ()
 

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 TriggerPaintEvent ()
 
void TriggerPaintEvent (QRect aRect)
 

Private Attributes

QWidget * m_pQWidget
 
Qt5MainWindowm_pTopLevel
 
const bool m_bUseCairo
 
std::unique_ptr< QImage > m_pQImage
 
std::unique_ptr< Qt5Graphicsm_pQt5Graphics
 
UniqueCairoSurface m_pSurface
 
std::unique_ptr< Qt5SvpGraphicsm_pOurSvpGraphics
 
Qt5SvpGraphicsm_pSvpGraphics
 
DamageHandler m_aDamageHandler
 
QRegion m_aRegion
 
bool m_bNullRegion
 
bool m_bGraphicsInUse
 
bool m_bGraphicsInvalid
 
SalFrameStyleFlags m_nStyle
 
Qt5Framem_pParent
 
PointerStyle m_ePointerStyle
 
SystemEnvData m_aSystemData
 
Qt5Menum_pSalMenu
 
Qt5DragSourcem_pDragSource
 
Qt5DropTargetm_pDropTarget
 
bool m_bInDrag
 
bool m_bDefaultSize
 
bool m_bDefaultPos
 
bool m_bFullScreen
 
bool m_bFullScreenSpanAll
 
sal_uInt32 m_nRestoreScreen
 
QRect m_aRestoreGeometry
 

Friends

class Qt5Widget
 

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 65 of file Qt5Frame.hxx.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual SalGraphics* Qt5Frame::AcquireGraphics ( )
overridevirtual

Implements SalFrame.

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

Implements SalFrame.

virtual void Qt5Frame::BeginSetClipRegion ( sal_uInt32  nRects)
overridevirtual

Implements SalFrame.

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

Definition at line 217 of file Qt5Frame.hxx.

References SalFrame::CallCallback().

virtual void Qt5Frame::CaptureMouse ( bool  bMouse)
overridevirtual

Implements SalFrame.

void Qt5Frame::Damage ( sal_Int32  nExtentsX,
sal_Int32  nExtentsY,
sal_Int32  nExtentsWidth,
sal_Int32  nExtentsHeight 
) const
virtual void Qt5Frame::deregisterDragSource ( Qt5DragSource const *  pDragSource)
virtual
virtual void Qt5Frame::deregisterDropTarget ( Qt5DropTarget const *  pDropTarget)
virtual
void Qt5Frame::draggingStarted ( const int  x,
const int  y,
Qt::DropActions  eActions,
Qt::KeyboardModifiers  eKeyMod,
const QMimeData *  pQMimeData 
)
virtual void Qt5Frame::DrawMenuBar ( )
overridevirtual

Implements SalFrame.

void Qt5Frame::dropping ( const int  x,
const int  y,
Qt::KeyboardModifiers  eKeyMod,
const QMimeData *  pQMimeData 
)
virtual void Qt5Frame::EndExtTextInput ( EndExtTextInputFlags  nFlags)
overridevirtual

Implements SalFrame.

virtual void Qt5Frame::EndSetClipRegion ( )
overridevirtual

Implements SalFrame.

virtual void Qt5Frame::Flush ( )
overridevirtual

Implements SalFrame.

cairo_t* Qt5Frame::getCairoContext ( ) const
virtual void Qt5Frame::GetClientSize ( long &  rWidth,
long &  rHeight 
)
overridevirtual

Implements SalFrame.

virtual KeyIndicatorState Qt5Frame::GetIndicatorState ( )
overridevirtual

Implements SalFrame.

virtual LanguageType Qt5Frame::GetInputLanguage ( )
overridevirtual

Implements SalFrame.

virtual OUString Qt5Frame::GetKeyName ( sal_uInt16  nKeyCode)
overridevirtual

Implements SalFrame.

virtual bool Qt5Frame::GetModal ( ) const
overridevirtual

Reimplemented from SalFrame.

virtual SalFrame* Qt5Frame::GetParent ( ) const
overridevirtual

Implements SalFrame.

virtual SalPointerState Qt5Frame::GetPointerState ( )
overridevirtual

Implements SalFrame.

QWidget* Qt5Frame::GetQWidget ( ) const
inline

Definition at line 140 of file Qt5Frame.hxx.

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

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

Implements SalFrame.

Definition at line 198 of file Qt5Frame.hxx.

Qt5MainWindow* Qt5Frame::GetTopLevelWindow ( ) const
inline

Definition at line 141 of file Qt5Frame.hxx.

virtual bool Qt5Frame::GetWindowState ( SalFrameState pState)
overridevirtual

Implements SalFrame.

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

Implements SalFrame.

void Qt5Frame::InitQt5SvpGraphics ( Qt5SvpGraphics pQt5SvpGraphics)
bool Qt5Frame::isChild ( bool  bPlug = true,
bool  bSysChild = true 
) const
inlineprivate

Definition at line 116 of file Qt5Frame.hxx.

References NONE, PLUG, and SYSTEMCHILD.

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

Implements SalFrame.

virtual bool Qt5Frame::PostEvent ( std::unique_ptr< ImplSVEvent pData)
overridevirtual

Implements SalFrame.

virtual void Qt5Frame::registerDragSource ( Qt5DragSource pDragSource)
virtual
virtual void Qt5Frame::registerDropTarget ( Qt5DropTarget pDropTarget)
virtual
virtual void Qt5Frame::ReleaseGraphics ( SalGraphics pGraphics)
overridevirtual

Implements SalFrame.

virtual void Qt5Frame::ResetClipRegion ( )
overridevirtual

Implements SalFrame.

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

Implements SalFrame.

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

Implements SalFrame.

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

Implements SalFrame.

virtual void Qt5Frame::SetIcon ( sal_uInt16  nIcon)
overridevirtual

Implements SalFrame.

virtual void Qt5Frame::SetInputContext ( SalInputContext pContext)
overridevirtual

Implements SalFrame.

virtual void Qt5Frame::SetMaxClientSize ( long  nWidth,
long  nHeight 
)
overridevirtual

Implements SalFrame.

virtual void Qt5Frame::SetMenu ( SalMenu pMenu)
overridevirtual

Implements SalFrame.

virtual void Qt5Frame::SetMinClientSize ( long  nWidth,
long  nHeight 
)
overridevirtual

Implements SalFrame.

virtual void Qt5Frame::SetModal ( bool  bModal)
overridevirtual

Reimplemented from SalFrame.

virtual void Qt5Frame::SetParent ( SalFrame pNewParent)
overridevirtual

Implements SalFrame.

virtual bool Qt5Frame::SetPluginParent ( SystemParentData pNewParent)
overridevirtual

Implements SalFrame.

virtual void Qt5Frame::SetPointer ( PointerStyle  ePointerStyle)
overridevirtual

Implements SalFrame.

virtual void Qt5Frame::SetPointerPos ( long  nX,
long  nY 
)
overridevirtual

Implements SalFrame.

virtual void Qt5Frame::SetPosSize ( long  nX,
long  nY,
long  nWidth,
long  nHeight,
sal_uInt16  nFlags 
)
overridevirtual

Implements SalFrame.

virtual void Qt5Frame::SetScreenNumber ( unsigned  int)
overridevirtual

Implements SalFrame.

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

Implements SalFrame.

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

Implements SalFrame.

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

Implements SalFrame.

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

Implements SalFrame.

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

Reimplemented from SalFrame.

virtual void Qt5Frame::SimulateKeyPress ( sal_uInt16  nKeyCode)
overridevirtual

Implements SalFrame.

virtual void Qt5Frame::StartPresentation ( bool  bStart)
overridevirtual

Implements SalFrame.

virtual void Qt5Frame::ToTop ( SalFrameToTop  nFlags)
overridevirtual

Implements SalFrame.

void Qt5Frame::TriggerPaintEvent ( )
private
void Qt5Frame::TriggerPaintEvent ( QRect  aRect)
private
virtual void Qt5Frame::UnionClipRegion ( long  nX,
long  nY,
long  nWidth,
long  nHeight 
)
overridevirtual

Implements SalFrame.

virtual void Qt5Frame::UpdateSettings ( AllSettings rSettings)
overridevirtual

Implements SalFrame.

QWindow* Qt5Frame::windowHandle ( ) const
private

Friends And Related Function Documentation

friend class Qt5Widget
friend

Definition at line 69 of file Qt5Frame.hxx.

Member Data Documentation

DamageHandler Qt5Frame::m_aDamageHandler
private

Definition at line 83 of file Qt5Frame.hxx.

QRegion Qt5Frame::m_aRegion
private

Definition at line 84 of file Qt5Frame.hxx.

QRect Qt5Frame::m_aRestoreGeometry
private

Definition at line 106 of file Qt5Frame.hxx.

SystemEnvData Qt5Frame::m_aSystemData
private

Definition at line 93 of file Qt5Frame.hxx.

bool Qt5Frame::m_bDefaultPos
private

Definition at line 102 of file Qt5Frame.hxx.

bool Qt5Frame::m_bDefaultSize
private

Definition at line 101 of file Qt5Frame.hxx.

bool Qt5Frame::m_bFullScreen
private

Definition at line 103 of file Qt5Frame.hxx.

bool Qt5Frame::m_bFullScreenSpanAll
private

Definition at line 104 of file Qt5Frame.hxx.

bool Qt5Frame::m_bGraphicsInUse
private

Definition at line 87 of file Qt5Frame.hxx.

bool Qt5Frame::m_bGraphicsInvalid
private

Definition at line 88 of file Qt5Frame.hxx.

bool Qt5Frame::m_bInDrag
private

Definition at line 99 of file Qt5Frame.hxx.

bool Qt5Frame::m_bNullRegion
private

Definition at line 85 of file Qt5Frame.hxx.

const bool Qt5Frame::m_bUseCairo
private

Definition at line 74 of file Qt5Frame.hxx.

PointerStyle Qt5Frame::m_ePointerStyle
private

Definition at line 91 of file Qt5Frame.hxx.

sal_uInt32 Qt5Frame::m_nRestoreScreen
private

Definition at line 105 of file Qt5Frame.hxx.

SalFrameStyleFlags Qt5Frame::m_nStyle
private

Definition at line 89 of file Qt5Frame.hxx.

Qt5DragSource* Qt5Frame::m_pDragSource
private

Definition at line 97 of file Qt5Frame.hxx.

Qt5DropTarget* Qt5Frame::m_pDropTarget
private

Definition at line 98 of file Qt5Frame.hxx.

std::unique_ptr<Qt5SvpGraphics> Qt5Frame::m_pOurSvpGraphics
private

Definition at line 78 of file Qt5Frame.hxx.

Qt5Frame* Qt5Frame::m_pParent
private

Definition at line 90 of file Qt5Frame.hxx.

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

Definition at line 75 of file Qt5Frame.hxx.

std::unique_ptr<Qt5Graphics> Qt5Frame::m_pQt5Graphics
private

Definition at line 76 of file Qt5Frame.hxx.

QWidget* Qt5Frame::m_pQWidget
private

Definition at line 71 of file Qt5Frame.hxx.

Qt5Menu* Qt5Frame::m_pSalMenu
private

Definition at line 95 of file Qt5Frame.hxx.

UniqueCairoSurface Qt5Frame::m_pSurface
private

Definition at line 77 of file Qt5Frame.hxx.

Qt5SvpGraphics* Qt5Frame::m_pSvpGraphics
private

Definition at line 82 of file Qt5Frame.hxx.

Qt5MainWindow* Qt5Frame::m_pTopLevel
private

Definition at line 72 of file Qt5Frame.hxx.


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