|
LibreOffice Module starmath (master) 1
|
#include <dialog.hxx>
Public Member Functions | |
| SmShowSymbolSet (std::unique_ptr< weld::ScrolledWindow > pScrolledWindow) | |
| virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
| void | calccols (const vcl::RenderContext &rRenderContext) |
| void | SelectSymbol (sal_uInt16 nSymbol) |
| sal_uInt16 | GetSelectSymbol () const |
| void | SetSymbolSet (const SymbolPtrVec_t &rSymbolSet) |
| void | SetSelectHdl (const Link< SmShowSymbolSet &, void > &rLink) |
| void | SetDblClickHdl (const Link< SmShowSymbolSet &, void > &rLink) |
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 | SetScrollBarRange () |
| Point | OffsetPoint (const Point &rPoint) const |
| virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override |
| virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
| virtual bool | KeyInput (const KeyEvent &rKEvt) override |
| virtual void | Resize () override |
| DECL_LINK (ScrollHdl, weld::ScrolledWindow &, void) | |
Private Attributes | |
| Size | m_aOldSize |
| SymbolPtrVec_t | aSymbolSet |
| Link< SmShowSymbolSet &, void > | aSelectHdlLink |
| Link< SmShowSymbolSet &, void > | aDblClickHdlLink |
| tools::Long | nLen |
| sal_Int32 | nRows |
| sal_Int32 | nColumns |
| tools::Long | nXOffset |
| tools::Long | nYOffset |
| sal_uInt16 | nSelectSymbol |
| std::unique_ptr< weld::ScrolledWindow > | m_xScrolledWindow |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::CustomWidgetController | |
| static bool | IsUpdateMode () |
Definition at line 244 of file dialog.hxx.
| SmShowSymbolSet::SmShowSymbolSet | ( | std::unique_ptr< weld::ScrolledWindow > | pScrolledWindow | ) |
Definition at line 947 of file dialog.cxx.
References LINK, and m_xScrolledWindow.
| void SmShowSymbolSet::calccols | ( | const vcl::RenderContext & | rRenderContext | ) |
Definition at line 1095 of file dialog.cxx.
References weld::CustomWidgetController::GetOutputSizePixel(), Size::Height(), OutputDevice::LogicToPixel(), nColumns, nLen, nRows, nXOffset, nYOffset, SetScrollBarRange(), and Size::Width().
Referenced by Resize(), and SetDrawingArea().
|
private |
|
inline |
Definition at line 281 of file dialog.hxx.
References nSelectSymbol.
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 1055 of file dialog.cxx.
References aSelectHdlLink, aSymbolSet, Link< typename Arg, typename Ret >::Call(), vcl::KeyCode::GetCode(), KeyEvent::GetKeyCode(), weld::CustomWidgetController::Invalidate(), KEY_DOWN, KEY_END, KEY_HOME, KEY_LEFT, KEY_PAGEDOWN, KEY_PAGEUP, KEY_RIGHT, KEY_UP, m_xScrolledWindow, n, nColumns, nRows, nSelectSymbol, SelectSymbol(), and SYMBOL_NONE.
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 1029 of file dialog.cxx.
References aDblClickHdlLink, Size::AdjustHeight(), Size::AdjustWidth(), Point::AdjustX(), Point::AdjustY(), aSelectHdlLink, Link< typename Arg, typename Ret >::Call(), MouseEvent::GetClicks(), MouseEvent::GetPosPixel(), weld::CustomWidgetController::GrabFocus(), MouseEvent::IsLeft(), m_xScrolledWindow, nColumns, nLen, nPos, nRows, nXOffset, nYOffset, SelectSymbol(), Point::X(), and Point::Y().
Definition at line 959 of file dialog.cxx.
References nXOffset, nYOffset, Point::X(), and Point::Y().
Referenced by Paint(), and SelectSymbol().
|
overrideprivatevirtual |
Implements weld::CustomWidgetController.
Definition at line 975 of file dialog.cxx.
References ALIGN_TOP, aSymbolSet, OutputDevice::DrawText(), SmSym::GetCharacter(), SmSym::GetFace(), OutputDevice::GetTextColor(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), Size::Height(), i, OutputDevice::Invert(), m_xScrolledWindow, vcl::MAPMODE, nColumns, nLen, nSelectSymbol, OffsetPoint(), OutputDevice::Pop(), OutputDevice::Push(), vcl::Font::SetAlignment(), OutputDevice::SetBackground(), OutputDevice::SetFont(), vcl::Font::SetFontSize(), OutputDevice::SetMapMode(), OutputDevice::SetTextColor(), SYMBOL_NONE, v, and Size::Width().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 964 of file dialog.cxx.
References calccols(), weld::CustomWidgetController::GetDrawingArea(), weld::CustomWidgetController::GetOutputSizePixel(), and m_aOldSize.
| void SmShowSymbolSet::SelectSymbol | ( | sal_uInt16 | nSymbol | ) |
Definition at line 1127 of file dialog.cxx.
References aSymbolSet, weld::CustomWidgetController::Invalidate(), m_xScrolledWindow, nColumns, nLen, nSelectSymbol, OffsetPoint(), SYMBOL_NONE, and v.
Referenced by KeyInput(), and MouseButtonDown().
|
inline |
Definition at line 284 of file dialog.hxx.
References aDblClickHdlLink.
|
inlineoverridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 269 of file dialog.hxx.
References calccols(), weld::Widget::get_approximate_digit_width(), weld::DrawingArea::get_ref_device(), weld::Widget::get_text_height(), Size::Height(), m_aOldSize, weld::Widget::set_size_request(), weld::CustomWidgetController::SetOutputSizePixel(), and Size::Width().
|
private |
Definition at line 1120 of file dialog.cxx.
References aSymbolSet, weld::CustomWidgetController::Invalidate(), m_xScrolledWindow, nColumns, and nRows.
Referenced by calccols(), and SetSymbolSet().
|
inline |
Definition at line 283 of file dialog.hxx.
References aSelectHdlLink.
| void SmShowSymbolSet::SetSymbolSet | ( | const SymbolPtrVec_t & | rSymbolSet | ) |
Definition at line 1113 of file dialog.cxx.
References aSymbolSet, weld::CustomWidgetController::Invalidate(), and SetScrollBarRange().
|
private |
Definition at line 249 of file dialog.hxx.
Referenced by MouseButtonDown(), and SetDblClickHdl().
|
private |
Definition at line 248 of file dialog.hxx.
Referenced by KeyInput(), MouseButtonDown(), and SetSelectHdl().
|
private |
Definition at line 247 of file dialog.hxx.
Referenced by KeyInput(), Paint(), SelectSymbol(), SetScrollBarRange(), and SetSymbolSet().
|
private |
Definition at line 246 of file dialog.hxx.
Referenced by Resize(), and SetDrawingArea().
|
private |
Definition at line 254 of file dialog.hxx.
Referenced by KeyInput(), MouseButtonDown(), Paint(), SelectSymbol(), SetScrollBarRange(), and SmShowSymbolSet().
|
private |
Definition at line 251 of file dialog.hxx.
Referenced by calccols(), KeyInput(), MouseButtonDown(), Paint(), SelectSymbol(), and SetScrollBarRange().
|
private |
Definition at line 250 of file dialog.hxx.
Referenced by calccols(), MouseButtonDown(), Paint(), and SelectSymbol().
|
private |
Definition at line 251 of file dialog.hxx.
Referenced by calccols(), KeyInput(), MouseButtonDown(), and SetScrollBarRange().
|
private |
Definition at line 253 of file dialog.hxx.
Referenced by GetSelectSymbol(), KeyInput(), Paint(), and SelectSymbol().
|
private |
Definition at line 252 of file dialog.hxx.
Referenced by calccols(), MouseButtonDown(), and OffsetPoint().
|
private |
Definition at line 252 of file dialog.hxx.
Referenced by calccols(), MouseButtonDown(), and OffsetPoint().