LibreOffice Module starmath (master) 1
|
#include <view.hxx>
Public Member Functions | |
bool | IsCursorVisible () const |
void | ShowCursor (bool bShow) |
bool | IsLineVisible () const |
void | ShowLine (bool bShow) |
const SmNode * | SetCursorPos (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 () |
SmViewShell & | GetView () |
SmDocShell * | GetDoc () |
SmCursor & | GetCursor () |
const Point & | GetFormulaDrawPos () const |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () override |
SmGraphicAccessible * | GetAccessible_Impl () |
OutputDevice & | GetOutputDevice () |
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::DrawingArea * | GetDrawingArea () 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 | |
CustomWidgetController & | operator= (CustomWidgetController const &)=default |
CustomWidgetController & | operator= (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 | |
SmGraphicWindow & | mrGraphicWindow |
Point | aFormulaDrawPos |
tools::Rectangle | aCursorRect |
bool | bIsCursorVisible |
bool | bIsLineVisible |
AutoTimer | aCaretBlinkTimer |
rtl::Reference< SmGraphicAccessible > | mxAccessible |
SmViewShell & | mrViewShell |
double | mfLastZoomScale = 0 |
double | mfAccumulatedZoom = 0 |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::CustomWidgetController | |
static bool | IsUpdateMode () |
|
explicit |
Definition at line 297 of file view.cxx.
References mrViewShell.
|
overridevirtual |
Definition at line 334 of file view.cxx.
References CaretBlinkStop(), and mxAccessible.
|
private |
Definition at line 463 of file view.cxx.
References aCaretBlinkTimer, Application::GetSettings(), comphelper::LibreOfficeKit::isActive(), LINK, Timer::SetInvokeHandler(), and Timer::SetTimeout().
Referenced by SetDrawingArea().
|
private |
Definition at line 471 of file view.cxx.
References aCaretBlinkTimer, Timer::GetTimeout(), comphelper::LibreOfficeKit::isActive(), SmViewShell::IsInlineEditEnabled(), Timer::Start(), and STYLE_CURSOR_NOBLINKTIME.
Referenced by GetFocus(), KeyInput(), and MouseMove().
|
private |
Definition at line 479 of file view.cxx.
References aCaretBlinkTimer, comphelper::LibreOfficeKit::isActive(), SmViewShell::IsInlineEditEnabled(), and Task::Stop().
Referenced by KeyInput(), LoseFocus(), MouseMove(), and ~SmGraphicWidget().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 777 of file view.cxx.
References CommandEvent::GetCommand(), GetCursor(), CommandWheelData::GetDelta(), CommandEvent::GetExtTextInputData(), CommandEvent::GetGestureZoomData(), CommandWheelData::GetMode(), GetOutputDevice(), GetView(), CommandEvent::GetWheelData(), SmGraphicWindow::GetZoom(), i, comphelper::LibreOfficeKit::isActive(), mfAccumulatedZoom, mfLastZoomScale, mrGraphicWindow, pData, SmGraphicWindow::SetZoom(), and SmGraphicWindow::ShowContextMenu().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 891 of file view.cxx.
References mxAccessible.
|
private |
|
inline |
Definition at line 127 of file view.hxx.
References mxAccessible.
Referenced by SmDocShell::SetText().
SmCursor & SmGraphicWidget::GetCursor | ( | ) |
Definition at line 344 of file view.cxx.
References SmDocShell::GetCursor(), and GetDoc().
Referenced by Command(), KeyInput(), MouseButtonDown(), and MouseMove().
SmDocShell * SmGraphicWidget::GetDoc | ( | ) |
Definition at line 342 of file view.cxx.
References SmViewShell::GetDoc(), and GetView().
Referenced by GetCursor(), KeyInput(), MouseButtonDown(), Paint(), RepaintViewShellDoc(), SetCursor(), SetCursorPos(), and SetTotalSize().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 415 of file view.cxx.
References CaretBlinkStart(), GetView(), SmViewShell::IsInlineEditEnabled(), RepaintViewShellDoc(), SmViewShell::SetInsertIntoEditWindow(), SetIsCursorVisible(), and ShowLine().
|
inline |
Definition at line 119 of file view.hxx.
References aFormulaDrawPos.
Referenced by SmGraphicAccessible::getCharacterBounds(), SmGraphicAccessible::getIndexAtPoint(), MouseButtonDown(), MouseMove(), and SetCursor().
|
inline |
Definition at line 132 of file view.hxx.
References weld::DrawingArea::get_ref_device(), and weld::CustomWidgetController::GetDrawingArea().
Referenced by Command(), KeyInput(), MouseButtonDown(), MouseMove(), SetDrawingArea(), SetTotalSize(), and ShowCursor().
|
inline |
Definition at line 115 of file view.hxx.
References mrViewShell.
Referenced by Command(), SmGraphicAccessible::getCharacterBounds(), GetDoc(), SmGraphicAccessible::GetDoc_Impl(), GetFocus(), SmGraphicAccessible::getIndexAtPoint(), sm::sidebar::SmElementsPanel::GetView(), KeyInput(), MouseButtonDown(), Paint(), and SmGetActiveView().
|
inline |
Definition at line 90 of file view.hxx.
References bIsCursorVisible.
Referenced by SmViewShell::getLOKPayload(), Paint(), SetCursor(), and ShowCursor().
|
inline |
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 702 of file view.cxx.
References CaretBlinkStart(), CaretBlinkStop(), SmCursor::Copy(), SmCursor::Cut(), SmCursor::Delete(), SmCursor::DeletePrev(), SmDocShell::Execute(), KeyEvent::GetCharCode(), vcl::KeyCode::GetCode(), GetCursor(), GetDoc(), vcl::KeyCode::GetFunction(), KeyEvent::GetKeyCode(), GetOutputDevice(), GetView(), SmCursor::HasComplexSelection(), SmCursor::HasSelection(), SmCursor::InsertRow(), SmViewShell::IsInlineEditEnabled(), vcl::KeyCode::IsShift(), KEY_BACKSPACE, KEY_DELETE, KEY_DOWN, KEY_F1, KEY_LEFT, KEY_RETURN, KEY_RIGHT, KEY_UP, SfxViewShell::KeyInput(), SmCursor::Move(), MoveDown, MoveLeft, MoveRight, MoveUp, SmCursor::Paste(), RepaintViewShellDoc(), SetIsCursorVisible(), SmViewShell::StartMainHelp(), and o3tl::temporary().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 429 of file view.cxx.
References CaretBlinkStop(), SmViewShell::IsInlineEditEnabled(), mxAccessible, RepaintViewShellDoc(), SetIsCursorVisible(), and ShowLine().
|
overridevirtual |
implicitly synchronize the cursor position mark in this window
Reimplemented from weld::CustomWidgetController.
Definition at line 350 of file view.cxx.
References SmNode::FindRectClosestTo(), MouseEvent::GetClicks(), GetCursor(), GetDoc(), SmViewShell::GetEditWindow(), GetFormulaDrawPos(), SmDocShell::GetFormulaTree(), GetOutputDevice(), MouseEvent::GetPosPixel(), SmNode::GetSelection(), GetView(), weld::CustomWidgetController::GrabFocus(), SmEditWindow::GrabFocus(), comphelper::LibreOfficeKit::isActive(), SmViewShell::IsInlineEditEnabled(), MouseEvent::IsLeft(), MouseEvent::IsShift(), SmCursor::MoveTo(), SmRect::OrientedDist(), OutputDevice::PixelToLogic(), SAL_WARN_IF, SetCursor(), SetIsCursorVisible(), and SmEditWindow::SetSelection().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 399 of file view.cxx.
References CaretBlinkStart(), CaretBlinkStop(), GetCursor(), GetFormulaDrawPos(), GetOutputDevice(), MouseEvent::GetPosPixel(), SmViewShell::IsInlineEditEnabled(), MouseEvent::IsLeft(), SmCursor::MoveTo(), OutputDevice::PixelToLogic(), RepaintViewShellDoc(), and SetIsCursorVisible().
|
overrideprivatevirtual |
modifies aPoint to be the topleft corner of the formula
Implements weld::CustomWidgetController.
Definition at line 576 of file view.cxx.
References aFormulaDrawPos, SmCursor::Draw(), SmDocShell::DrawFormula(), SmModule::GetConfig(), SmDocShell::GetCursor(), GetDoc(), GetView(), SmDocShell::HasCursor(), IsCursorVisible(), SmViewShell::IsInlineEditEnabled(), IsLineVisible(), SmMathConfig::IsShowFormulaCursor(), SetCursorPos(), SetIsCursorVisible(), ShowCursor(), SM_MOD, and SmGetLeftSelectionPart().
|
private |
Definition at line 447 of file view.cxx.
References GetDoc().
Referenced by GetFocus(), KeyInput(), LoseFocus(), and MouseMove().
|
private |
Definition at line 518 of file view.cxx.
References Point::AdjustX(), GetDoc(), GetFormulaDrawPos(), SmDocShell::GetFormulaTree(), SmRect::GetItalicLeftSpace(), SmRect::GetItalicSize(), SmRect::GetTopLeft(), SmViewShell::IsInlineEditEnabled(), and SetCursor().
Referenced by MouseButtonDown(), SetCursor(), and SetCursorPos().
|
private |
Definition at line 534 of file view.cxx.
References aCursorRect, SmModule::GetConfig(), IsCursorVisible(), SmViewShell::IsInlineEditEnabled(), SmMathConfig::IsShowFormulaCursor(), ShowCursor(), and SM_MOD.
const SmNode * SmGraphicWidget::SetCursorPos | ( | sal_uInt16 | nRow, |
sal_uInt16 | nCol | ||
) |
Definition at line 551 of file view.cxx.
References SmNode::FindTokenAt(), GetDoc(), SmDocShell::GetFormulaTree(), SmViewShell::IsInlineEditEnabled(), SetCursor(), and ShowCursor().
Referenced by Paint().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 306 of file view.cxx.
References CaretBlinkInit(), svtools::DOCCOLOR, OutputDevice::EnableMapMode(), GetOutputDevice(), HID_SMA_WIN_DOCUMENT, comphelper::LibreOfficeKit::isActive(), OutputDevice::SetBackground(), weld::CustomWidgetController::SetDrawingArea(), weld::CustomWidgetController::SetHelpId(), OutputDevice::SetMapMode(), SetTotalSize(), ShowLine(), SM_MOD, and SmMapUnit().
|
private |
Definition at line 507 of file view.cxx.
References bIsCursorVisible, comphelper::LibreOfficeKit::isActive(), SfxViewShell::libreOfficeKitViewCallback(), mrViewShell, and SmViewShell::SendCaretToLOK().
Referenced by GetFocus(), KeyInput(), LoseFocus(), MouseButtonDown(), MouseMove(), Paint(), and ShowCursor().
void SmGraphicWidget::SetTotalSize | ( | ) |
Definition at line 609 of file view.cxx.
References GetDoc(), GetOutputDevice(), SmGraphicWindow::GetTotalSize(), OutputDevice::LogicToPixel(), mrGraphicWindow, OutputDevice::PixelToLogic(), and SmGraphicWindow::SetTotalSize().
Referenced by SmViewShell::InnerResizePixel(), SetDrawingArea(), and SmGraphicController::StateChangedAtToolBoxControl().
void SmGraphicWidget::ShowCursor | ( | bool | bShow | ) |
Definition at line 487 of file view.cxx.
References aCursorRect, GetOutputDevice(), InvertFocusRect(), IsCursorVisible(), SmViewShell::IsInlineEditEnabled(), and SetIsCursorVisible().
Referenced by SmViewShell::Execute(), Paint(), SetCursor(), and SetCursorPos().
void SmGraphicWidget::ShowLine | ( | bool | bShow | ) |
Definition at line 499 of file view.cxx.
References bIsLineVisible, and SmViewShell::IsInlineEditEnabled().
Referenced by GetFocus(), LoseFocus(), and SetDrawingArea().
|
private |
Definition at line 159 of file view.hxx.
Referenced by CaretBlinkInit(), CaretBlinkStart(), and CaretBlinkStop().
|
private |
Definition at line 156 of file view.hxx.
Referenced by SetCursor(), and ShowCursor().
|
private |
Definition at line 154 of file view.hxx.
Referenced by GetFormulaDrawPos(), and Paint().
|
private |
Definition at line 157 of file view.hxx.
Referenced by IsCursorVisible(), and SetIsCursorVisible().
|
private |
Definition at line 158 of file view.hxx.
Referenced by IsLineVisible(), and ShowLine().
|
private |
|
private |
|
private |
Definition at line 152 of file view.hxx.
Referenced by Command(), and SetTotalSize().
|
private |
Definition at line 161 of file view.hxx.
Referenced by GetView(), and SetIsCursorVisible().
|
private |
Definition at line 160 of file view.hxx.
Referenced by CreateAccessible(), GetAccessible_Impl(), LoseFocus(), and ~SmGraphicWidget().