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

#include <salframe.h>

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

Public Member Functions

 AquaSalFrame (SalFrame *pParent, SalFrameStyleFlags salFrameStyle)
 Constructor. More...
 
virtual ~AquaSalFrame () override
 
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 SetRepresentedURL (const OUString &) override
 
virtual void SetMenu (SalMenu *pSalMenu) override
 
virtual void DrawMenuBar () 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 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 void Flush (void) override
 
virtual void Flush (const tools::Rectangle &) 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 SetExtendedFrameStyle (SalExtStyle) override
 
virtual void SetScreenNumber (unsigned int) override
 
virtual void SetApplicationID (const OUString &rApplicationID) 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
 
void UpdateFrameGeometry ()
 
void SendPaintEvent (const tools::Rectangle *pRect=nullptr)
 
NSWindow * getNSWindow () const
 
NSView * getNSView () const
 
unsigned int getStyleMask () const
 
void getResolution (sal_Int32 &o_rDPIX, sal_Int32 &o_rDPIY)
 
void VCLToCocoa (NSRect &io_rRect, bool bRelativeToScreen=true)
 
void CocoaToVCL (NSRect &io_rRect, bool bRelativeToScreen=true)
 
void VCLToCocoa (NSPoint &io_rPoint, bool bRelativeToScreen=true)
 
void CocoaToVCL (NSPoint &io_Point, bool bRelativeToScreen=true)
 
NSCursor * getCurrentCursor ()
 
CGMutablePathRef getClipPath () const
 
void screenParametersChanged ()
 
- 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
 
SalFrameGeometry GetGeometry ()
 
const SalFrameGeometryGetUnmirroredGeometry () const
 
virtual void PositionByToolkit (const tools::Rectangle &, FloatWinPopupFlags)
 
virtual void SetModal (bool)
 
virtual bool GetModal () const
 
virtual bool ShowTooltip (const OUString &, 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 bool isAlive (const AquaSalFrame *pFrame)
 
static AquaSalFrameGetCaptureFrame ()
 

Public Attributes

NSWindow * mpNSWindow
 
NSView * mpNSView
 
NSMenuItem * mpDockMenuEntry
 
NSRect maScreenRect
 
AquaSalGraphicsmpGraphics
 
AquaSalFramempParent
 
SystemEnvData maSysData
 
int mnMinWidth
 
int mnMinHeight
 
int mnMaxWidth
 
int mnMaxHeight
 
NSRect maFullScreenRect
 
bool mbGraphics
 
bool mbFullScreen
 
bool mbShown
 
bool mbInitShow
 
bool mbPositioned
 
bool mbSized
 
bool mbPresentation
 
SalFrameStyleFlags mnStyle
 
unsigned int mnStyleMask
 
sal_uInt64 mnLastEventTime
 
unsigned int mnLastModifierFlags
 
AquaSalMenumpMenu
 
SalExtStyle mnExtStyle
 
PointerStyle mePointerStyle
 
NSTrackingRectTag mnTrackingRectTag
 
NSRect maTrackingRect
 
CGMutablePathRef mrClippingPath
 
std::vector< CGRect > maClippingRects
 
tools::Rectangle maInvalidRect
 
InputContextFlags mnICOptions
 
IOPMAssertionID mnAssertionID
 
NSRect maFrameRect
 
NSRect maContentRect
 
bool mbGeometryDidChange
 
- Public Attributes inherited from SalFrame
SalFrameGeometry maGeometry
 absolute, unmirrored values More...
 

Protected Member Functions

SalEvent PreparePosSize (long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags)
 
- Protected Member Functions inherited from vcl::DeletionNotifier
 DeletionNotifier ()
 
 ~DeletionNotifier ()
 
void notifyDelete ()
 

Private Member Functions

void initShow ()
 do things on initial show (like centering on parent or on screen) More...
 
void initWindowAndView ()
 
 AquaSalFrame (const AquaSalFrame &)=delete
 
AquaSalFrameoperator= (const AquaSalFrame &)=delete
 

Static Private Attributes

static AquaSalFrames_pCaptureFrame
 

Additional Inherited Members

- Protected Attributes inherited from SalFrame
std::unique_ptr< weld::Windowm_xFrameWeld
 

Detailed Description

Definition at line 46 of file osx/salframe.h.

Constructor & Destructor Documentation

AquaSalFrame::AquaSalFrame ( SalFrame pParent,
SalFrameStyleFlags  salFrameStyle 
)

Constructor.

Creates a system window and connects this frame with it.

Exceptions
std::runtime_errorin case window creation fails
virtual AquaSalFrame::~AquaSalFrame ( )
overridevirtual
AquaSalFrame::AquaSalFrame ( const AquaSalFrame )
privatedelete

Member Function Documentation

virtual SalGraphics* AquaSalFrame::AcquireGraphics ( )
overridevirtual

Implements SalFrame.

virtual void AquaSalFrame::Beep ( )
overridevirtual

Implements SalFrame.

virtual void AquaSalFrame::BeginSetClipRegion ( sal_uInt32  nRects)
overridevirtual

Implements SalFrame.

virtual void AquaSalFrame::CaptureMouse ( bool  bMouse)
overridevirtual

Implements SalFrame.

void AquaSalFrame::CocoaToVCL ( NSRect &  io_rRect,
bool  bRelativeToScreen = true 
)
void AquaSalFrame::CocoaToVCL ( NSPoint &  io_Point,
bool  bRelativeToScreen = true 
)
virtual void AquaSalFrame::DrawMenuBar ( )
overridevirtual

Implements SalFrame.

virtual void AquaSalFrame::EndExtTextInput ( EndExtTextInputFlags  nFlags)
overridevirtual

Implements SalFrame.

virtual void AquaSalFrame::EndSetClipRegion ( )
overridevirtual

Implements SalFrame.

virtual void AquaSalFrame::Flush ( void  )
overridevirtual

Implements SalFrame.

virtual void AquaSalFrame::Flush ( const tools::Rectangle )
overridevirtual

Reimplemented from SalFrame.

static AquaSalFrame* AquaSalFrame::GetCaptureFrame ( )
inlinestatic

Definition at line 169 of file osx/salframe.h.

References s_pCaptureFrame.

virtual void AquaSalFrame::GetClientSize ( long &  rWidth,
long &  rHeight 
)
overridevirtual

Implements SalFrame.

CGMutablePathRef AquaSalFrame::getClipPath ( ) const
inline

Definition at line 188 of file osx/salframe.h.

References mrClippingPath.

NSCursor* AquaSalFrame::getCurrentCursor ( )
virtual KeyIndicatorState AquaSalFrame::GetIndicatorState ( )
overridevirtual

Implements SalFrame.

virtual LanguageType AquaSalFrame::GetInputLanguage ( )
overridevirtual

Implements SalFrame.

virtual OUString AquaSalFrame::GetKeyName ( sal_uInt16  nKeyCode)
overridevirtual

Implements SalFrame.

NSView* AquaSalFrame::getNSView ( ) const
inline

Definition at line 172 of file osx/salframe.h.

References mpNSView.

NSWindow* AquaSalFrame::getNSWindow ( ) const
inline

Definition at line 171 of file osx/salframe.h.

References mpNSWindow.

virtual SalFrame* AquaSalFrame::GetParent ( ) const
overridevirtual

Implements SalFrame.

virtual SalPointerState AquaSalFrame::GetPointerState ( )
overridevirtual

Implements SalFrame.

void AquaSalFrame::getResolution ( sal_Int32 &  o_rDPIX,
sal_Int32 &  o_rDPIY 
)
unsigned int AquaSalFrame::getStyleMask ( ) const
inline

Definition at line 173 of file osx/salframe.h.

References mnStyleMask.

virtual const SystemEnvData* AquaSalFrame::GetSystemData ( ) const
overridevirtual

Implements SalFrame.

virtual bool AquaSalFrame::GetWindowState ( SalFrameState pState)
overridevirtual

Implements SalFrame.

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

Implements SalFrame.

void AquaSalFrame::initShow ( )
private

do things on initial show (like centering on parent or on screen)

void AquaSalFrame::initWindowAndView ( )
private
bool AquaSalFrame::isAlive ( const AquaSalFrame pFrame)
inlinestatic
virtual bool AquaSalFrame::MapUnicodeToKeyCode ( sal_Unicode  aUnicode,
LanguageType  aLangType,
vcl::KeyCode rKeyCode 
)
overridevirtual

Implements SalFrame.

AquaSalFrame& AquaSalFrame::operator= ( const AquaSalFrame )
privatedelete
virtual bool AquaSalFrame::PostEvent ( std::unique_ptr< ImplSVEvent pData)
overridevirtual

Implements SalFrame.

SalEvent AquaSalFrame::PreparePosSize ( long  nX,
long  nY,
long  nWidth,
long  nHeight,
sal_uInt16  nFlags 
)
protected
virtual void AquaSalFrame::ReleaseGraphics ( SalGraphics pGraphics)
overridevirtual

Implements SalFrame.

virtual void AquaSalFrame::ResetClipRegion ( )
overridevirtual

Implements SalFrame.

void AquaSalFrame::screenParametersChanged ( )
void AquaSalFrame::SendPaintEvent ( const tools::Rectangle pRect = nullptr)
virtual void AquaSalFrame::SetAlwaysOnTop ( bool  bOnTop)
overridevirtual

Implements SalFrame.

virtual void AquaSalFrame::SetApplicationID ( const OUString &  rApplicationID)
overridevirtual

Implements SalFrame.

virtual void AquaSalFrame::SetExtendedFrameStyle ( SalExtStyle  )
overridevirtual

Implements SalFrame.

virtual void AquaSalFrame::SetIcon ( sal_uInt16  nIcon)
overridevirtual

Implements SalFrame.

virtual void AquaSalFrame::SetInputContext ( SalInputContext pContext)
overridevirtual

Implements SalFrame.

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

Implements SalFrame.

virtual void AquaSalFrame::SetMenu ( SalMenu pSalMenu)
overridevirtual

Implements SalFrame.

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

Implements SalFrame.

virtual void AquaSalFrame::SetParent ( SalFrame pNewParent)
overridevirtual

Implements SalFrame.

virtual bool AquaSalFrame::SetPluginParent ( SystemParentData pNewParent)
overridevirtual

Implements SalFrame.

virtual void AquaSalFrame::SetPointer ( PointerStyle  ePointerStyle)
overridevirtual

Implements SalFrame.

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

Implements SalFrame.

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

Implements SalFrame.

virtual void AquaSalFrame::SetRepresentedURL ( const OUString &  )
overridevirtual

Reimplemented from SalFrame.

virtual void AquaSalFrame::SetScreenNumber ( unsigned  int)
overridevirtual

Implements SalFrame.

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

Implements SalFrame.

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

Implements SalFrame.

virtual void AquaSalFrame::Show ( bool  bVisible,
bool  bNoActivate = false 
)
overridevirtual

Implements SalFrame.

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

Implements SalFrame.

virtual void AquaSalFrame::SimulateKeyPress ( sal_uInt16  nKeyCode)
overridevirtual

Implements SalFrame.

virtual void AquaSalFrame::StartPresentation ( bool  bStart)
overridevirtual

Implements SalFrame.

virtual void AquaSalFrame::ToTop ( SalFrameToTop  nFlags)
overridevirtual

Implements SalFrame.

virtual void AquaSalFrame::UnionClipRegion ( long  nX,
long  nY,
long  nWidth,
long  nHeight 
)
overridevirtual

Implements SalFrame.

void AquaSalFrame::UpdateFrameGeometry ( )
virtual void AquaSalFrame::UpdateSettings ( AllSettings rSettings)
overridevirtual

Implements SalFrame.

void AquaSalFrame::VCLToCocoa ( NSRect &  io_rRect,
bool  bRelativeToScreen = true 
)
void AquaSalFrame::VCLToCocoa ( NSPoint &  io_rPoint,
bool  bRelativeToScreen = true 
)

Member Data Documentation

std::vector< CGRect > AquaSalFrame::maClippingRects

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

NSRect AquaSalFrame::maContentRect

Definition at line 94 of file osx/salframe.h.

NSRect AquaSalFrame::maFrameRect

Definition at line 93 of file osx/salframe.h.

NSRect AquaSalFrame::maFullScreenRect

Definition at line 60 of file osx/salframe.h.

tools::Rectangle AquaSalFrame::maInvalidRect

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

NSRect AquaSalFrame::maScreenRect

Definition at line 52 of file osx/salframe.h.

SystemEnvData AquaSalFrame::maSysData

Definition at line 55 of file osx/salframe.h.

NSRect AquaSalFrame::maTrackingRect

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

bool AquaSalFrame::mbFullScreen

Definition at line 62 of file osx/salframe.h.

bool AquaSalFrame::mbGeometryDidChange

Definition at line 96 of file osx/salframe.h.

bool AquaSalFrame::mbGraphics

Definition at line 61 of file osx/salframe.h.

bool AquaSalFrame::mbInitShow

Definition at line 64 of file osx/salframe.h.

bool AquaSalFrame::mbPositioned

Definition at line 65 of file osx/salframe.h.

bool AquaSalFrame::mbPresentation

Definition at line 67 of file osx/salframe.h.

bool AquaSalFrame::mbShown

Definition at line 63 of file osx/salframe.h.

bool AquaSalFrame::mbSized

Definition at line 66 of file osx/salframe.h.

PointerStyle AquaSalFrame::mePointerStyle

Definition at line 78 of file osx/salframe.h.

IOPMAssertionID AquaSalFrame::mnAssertionID

Definition at line 91 of file osx/salframe.h.

SalExtStyle AquaSalFrame::mnExtStyle

Definition at line 76 of file osx/salframe.h.

InputContextFlags AquaSalFrame::mnICOptions

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

sal_uInt64 AquaSalFrame::mnLastEventTime

Definition at line 72 of file osx/salframe.h.

unsigned int AquaSalFrame::mnLastModifierFlags

Definition at line 73 of file osx/salframe.h.

int AquaSalFrame::mnMaxHeight

Definition at line 59 of file osx/salframe.h.

int AquaSalFrame::mnMaxWidth

Definition at line 58 of file osx/salframe.h.

int AquaSalFrame::mnMinHeight

Definition at line 57 of file osx/salframe.h.

int AquaSalFrame::mnMinWidth

Definition at line 56 of file osx/salframe.h.

SalFrameStyleFlags AquaSalFrame::mnStyle

Definition at line 69 of file osx/salframe.h.

unsigned int AquaSalFrame::mnStyleMask

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

Referenced by getStyleMask().

NSTrackingRectTag AquaSalFrame::mnTrackingRectTag

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

NSMenuItem* AquaSalFrame::mpDockMenuEntry

Definition at line 51 of file osx/salframe.h.

AquaSalGraphics* AquaSalFrame::mpGraphics

Definition at line 53 of file osx/salframe.h.

AquaSalMenu* AquaSalFrame::mpMenu

Definition at line 74 of file osx/salframe.h.

NSView* AquaSalFrame::mpNSView

Definition at line 50 of file osx/salframe.h.

Referenced by getNSView().

NSWindow* AquaSalFrame::mpNSWindow

Definition at line 49 of file osx/salframe.h.

Referenced by getNSWindow().

AquaSalFrame* AquaSalFrame::mpParent

Definition at line 54 of file osx/salframe.h.

CGMutablePathRef AquaSalFrame::mrClippingPath

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

Referenced by getClipPath().

AquaSalFrame* AquaSalFrame::s_pCaptureFrame
staticprivate

Definition at line 204 of file osx/salframe.h.

Referenced by GetCaptureFrame().


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