LibreOffice Module starmath (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SmGraphicWidget Class Referencefinal

#include <view.hxx>

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

Public Member Functions

bool IsCursorVisible () const
 
void ShowCursor (bool bShow)
 
bool IsLineVisible () const
 
void ShowLine (bool bShow)
 
const SmNodeSetCursorPos (sal_uInt16 nRow, sal_uInt16 nCol)
 
 SmGraphicWidget (SmViewShell &rShell, SmGraphicWindow &rGraphicWindow)
 
virtual ~SmGraphicWidget () override
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 
virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual bool MouseMove (const MouseEvent &rMEvt) override
 
virtual void GetFocus () override
 
virtual void LoseFocus () override
 
virtual bool KeyInput (const KeyEvent &rKEvt) override
 
void SetTotalSize ()
 
SmViewShellGetView ()
 
SmDocShellGetDoc ()
 
SmCursorGetCursor ()
 
const PointGetFormulaDrawPos () const
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
 
SmGraphicAccessibleGetAccessible_Impl ()
 
OutputDeviceGetOutputDevice ()
 
- Public Member Functions inherited from weld::CustomWidgetController
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible ()
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0
 
virtual void Resize ()
 
virtual bool MouseButtonDown (const MouseEvent &)
 
virtual bool MouseMove (const MouseEvent &)
 
virtual bool MouseButtonUp (const MouseEvent &)
 
virtual void GetFocus ()
 
virtual void LoseFocus ()
 
virtual void StyleUpdated ()
 
virtual bool Command (const CommandEvent &)
 
virtual bool KeyInput (const KeyEvent &)
 
virtual tools::Rectangle GetFocusRect ()
 
virtual FactoryFunction GetUITestFactory () const
 
virtual OUString RequestHelp (tools::Rectangle &)
 
virtual OUString GetHelpText () const
 
Size const & GetOutputSizePixel () const
 
void SetOutputSizePixel (const Size &rSize)
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea)
 
weld::DrawingAreaGetDrawingArea () const
 
void Invalidate ()
 
void Invalidate (const tools::Rectangle &rRect)
 
virtual void Show ()
 
virtual void Hide ()
 
void SetCursor (void *pData)
 
void GrabFocus ()
 
bool HasFocus () const
 
bool HasChildFocus () const
 
bool IsVisible () const
 
bool IsReallyVisible () const
 
bool IsEnabled () const
 
void Enable () const
 
void Disable () const
 
bool IsActive () const
 
int GetTextHeight () const
 
int GetTextWidth (const OUString &rText) const
 
OUString GetAccessibleName () const
 
OUString GetAccessibleDescription () const
 
void CaptureMouse ()
 
bool IsMouseCaptured () const
 
Point GetPointerPosPixel () const
 
void EnableRTL (bool bEnable)
 
bool IsRTLEnabled () const
 
void ReleaseMouse ()
 
void SetPointer (PointerStyle ePointerStyle)
 
void SetHelpId (const OUString &rHelpId)
 
void SetAccessibleName (const OUString &rName)
 
void SetInputContext (const InputContext &rInputContext)
 
void SetCursorRect (const tools::Rectangle &rCursorRect, int nExtTextInputWidth)
 
virtual int GetSurroundingText (OUString &)
 
virtual bool DeleteSurroundingText (const Selection &)
 
css::uno::Reference< css::datatransfer::dnd::XDropTarget > GetDropTarget ()
 
css::uno::Reference< css::datatransfer::clipboard::XClipboard > GetClipboard () const
 
void SetDragDataTransferable (rtl::Reference< TransferDataContainer > &rTransferable, sal_uInt8 eDNDConstants)
 
virtual bool StartDrag ()
 
void set_size_request (int nWidth, int nHeight)
 
void queue_resize ()
 
 CustomWidgetController ()
 
virtual ~CustomWidgetController ()
 
 CustomWidgetController (CustomWidgetController const &)=default
 
 CustomWidgetController (CustomWidgetController &&)=default
 
CustomWidgetControlleroperator= (CustomWidgetController const &)=default
 
CustomWidgetControlleroperator= (CustomWidgetController &&)=default
 

Private Member Functions

void SetIsCursorVisible (bool bVis)
 
void SetCursor (const SmNode *pNode)
 
void SetCursor (const tools::Rectangle &rRect)
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &) override
 
virtual bool Command (const CommandEvent &rCEvt) override
 
void RepaintViewShellDoc ()
 
 DECL_LINK (CaretBlinkTimerHdl, Timer *, void)
 
void CaretBlinkInit ()
 
void CaretBlinkStart ()
 
void CaretBlinkStop ()
 

Private Attributes

SmGraphicWindowmrGraphicWindow
 
Point aFormulaDrawPos
 
tools::Rectangle aCursorRect
 
bool bIsCursorVisible
 
bool bIsLineVisible
 
AutoTimer aCaretBlinkTimer
 
rtl::Reference< SmGraphicAccessiblemxAccessible
 
SmViewShellmrViewShell
 
double mfLastZoomScale = 0
 
double mfAccumulatedZoom = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::CustomWidgetController
static bool IsUpdateMode ()
 

Detailed Description

Definition at line 87 of file view.hxx.

Constructor & Destructor Documentation

◆ SmGraphicWidget()

SmGraphicWidget::SmGraphicWidget ( SmViewShell rShell,
SmGraphicWindow rGraphicWindow 
)
explicit

Definition at line 297 of file view.cxx.

References mrViewShell.

◆ ~SmGraphicWidget()

SmGraphicWidget::~SmGraphicWidget ( )
overridevirtual

Definition at line 334 of file view.cxx.

References CaretBlinkStop(), and mxAccessible.

Member Function Documentation

◆ CaretBlinkInit()

void SmGraphicWidget::CaretBlinkInit ( )
private

◆ CaretBlinkStart()

void SmGraphicWidget::CaretBlinkStart ( )
private

◆ CaretBlinkStop()

void SmGraphicWidget::CaretBlinkStop ( )
private

◆ Command()

bool SmGraphicWidget::Command ( const CommandEvent rCEvt)
overrideprivatevirtual

◆ CreateAccessible()

uno::Reference< XAccessible > SmGraphicWidget::CreateAccessible ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 891 of file view.cxx.

References mxAccessible.

◆ DECL_LINK()

SmGraphicWidget::DECL_LINK ( CaretBlinkTimerHdl  ,
Timer ,
void   
)
private

◆ GetAccessible_Impl()

SmGraphicAccessible * SmGraphicWidget::GetAccessible_Impl ( )
inline

Definition at line 127 of file view.hxx.

References mxAccessible.

Referenced by SmDocShell::SetText().

◆ GetCursor()

SmCursor & SmGraphicWidget::GetCursor ( )

Definition at line 344 of file view.cxx.

References SmDocShell::GetCursor(), and GetDoc().

Referenced by Command(), KeyInput(), MouseButtonDown(), and MouseMove().

◆ GetDoc()

SmDocShell * SmGraphicWidget::GetDoc ( )

◆ GetFocus()

void SmGraphicWidget::GetFocus ( )
overridevirtual

◆ GetFormulaDrawPos()

const Point & SmGraphicWidget::GetFormulaDrawPos ( ) const
inline

◆ GetOutputDevice()

OutputDevice & SmGraphicWidget::GetOutputDevice ( )
inline

◆ GetView()

SmViewShell & SmGraphicWidget::GetView ( )
inline

◆ IsCursorVisible()

bool SmGraphicWidget::IsCursorVisible ( ) const
inline

Definition at line 90 of file view.hxx.

References bIsCursorVisible.

Referenced by SmViewShell::getLOKPayload(), Paint(), SetCursor(), and ShowCursor().

◆ IsLineVisible()

bool SmGraphicWidget::IsLineVisible ( ) const
inline

Definition at line 95 of file view.hxx.

References bIsLineVisible.

Referenced by Paint().

◆ KeyInput()

bool SmGraphicWidget::KeyInput ( const KeyEvent rKEvt)
overridevirtual

◆ LoseFocus()

void SmGraphicWidget::LoseFocus ( )
overridevirtual

◆ MouseButtonDown()

bool SmGraphicWidget::MouseButtonDown ( const MouseEvent rMEvt)
overridevirtual

◆ MouseMove()

bool SmGraphicWidget::MouseMove ( const MouseEvent rMEvt)
overridevirtual

◆ Paint()

void SmGraphicWidget::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle  
)
overrideprivatevirtual

◆ RepaintViewShellDoc()

void SmGraphicWidget::RepaintViewShellDoc ( )
private

Definition at line 447 of file view.cxx.

References GetDoc().

Referenced by GetFocus(), KeyInput(), LoseFocus(), and MouseMove().

◆ SetCursor() [1/2]

void SmGraphicWidget::SetCursor ( const SmNode pNode)
private

◆ SetCursor() [2/2]

void SmGraphicWidget::SetCursor ( const tools::Rectangle rRect)
private

◆ SetCursorPos()

const SmNode * SmGraphicWidget::SetCursorPos ( sal_uInt16  nRow,
sal_uInt16  nCol 
)

◆ SetDrawingArea()

void SmGraphicWidget::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual

◆ SetIsCursorVisible()

void SmGraphicWidget::SetIsCursorVisible ( bool  bVis)
private

◆ SetTotalSize()

void SmGraphicWidget::SetTotalSize ( )

◆ ShowCursor()

void SmGraphicWidget::ShowCursor ( bool  bShow)

◆ ShowLine()

void SmGraphicWidget::ShowLine ( bool  bShow)

Definition at line 499 of file view.cxx.

References bIsLineVisible, and SmViewShell::IsInlineEditEnabled().

Referenced by GetFocus(), LoseFocus(), and SetDrawingArea().

Member Data Documentation

◆ aCaretBlinkTimer

AutoTimer SmGraphicWidget::aCaretBlinkTimer
private

Definition at line 159 of file view.hxx.

Referenced by CaretBlinkInit(), CaretBlinkStart(), and CaretBlinkStop().

◆ aCursorRect

tools::Rectangle SmGraphicWidget::aCursorRect
private

Definition at line 156 of file view.hxx.

Referenced by SetCursor(), and ShowCursor().

◆ aFormulaDrawPos

Point SmGraphicWidget::aFormulaDrawPos
private

Definition at line 154 of file view.hxx.

Referenced by GetFormulaDrawPos(), and Paint().

◆ bIsCursorVisible

bool SmGraphicWidget::bIsCursorVisible
private

Definition at line 157 of file view.hxx.

Referenced by IsCursorVisible(), and SetIsCursorVisible().

◆ bIsLineVisible

bool SmGraphicWidget::bIsLineVisible
private

Definition at line 158 of file view.hxx.

Referenced by IsLineVisible(), and ShowLine().

◆ mfAccumulatedZoom

double SmGraphicWidget::mfAccumulatedZoom = 0
private

Definition at line 163 of file view.hxx.

Referenced by Command().

◆ mfLastZoomScale

double SmGraphicWidget::mfLastZoomScale = 0
private

Definition at line 162 of file view.hxx.

Referenced by Command().

◆ mrGraphicWindow

SmGraphicWindow& SmGraphicWidget::mrGraphicWindow
private

Definition at line 152 of file view.hxx.

Referenced by Command(), and SetTotalSize().

◆ mrViewShell

SmViewShell& SmGraphicWidget::mrViewShell
private

Definition at line 161 of file view.hxx.

Referenced by GetView(), and SetIsCursorVisible().

◆ mxAccessible

rtl::Reference<SmGraphicAccessible> SmGraphicWidget::mxAccessible
private

Definition at line 160 of file view.hxx.

Referenced by CreateAccessible(), GetAccessible_Impl(), LoseFocus(), and ~SmGraphicWidget().


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