|
LibreOffice Module extensions (master) 1
|
Classes | |
| struct | impHandle |
Public Member Functions | |
| GridWindow () | |
| void | Init (double *pXValues, double *pYValues, int nValues, bool bCutValues, const BitmapEx &rMarkerBitmap) |
| virtual | ~GridWindow () override |
| void | setBoundings (double fMinX, double fMinY, double fMaxX, double fMaxY) |
| double * | getNewYValues () |
| void | ChangeMode (ResetType nType) |
| virtual void | Paint (vcl::RenderContext &, const tools::Rectangle &rRect) override |
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 Types | |
| using | Handles = std::vector< impHandle > |
Private Member Functions | |
| Point | transform (double x, double y) |
| void | transform (const Point &rOriginal, double &x, double &y) |
| double | findMinX () |
| double | findMinY () |
| double | findMaxX () |
| double | findMaxY () |
| void | drawGrid (vcl::RenderContext &rRenderContext) |
| void | drawOriginal (vcl::RenderContext &rRenderContext) |
| void | drawNew (vcl::RenderContext &rRenderContext) |
| void | drawHandles (vcl::RenderContext &rRenderContext) |
| void | computeExtremes () |
| void | computeNew () |
| virtual bool | MouseMove (const MouseEvent &) override |
| virtual bool | MouseButtonDown (const MouseEvent &) override |
| virtual bool | MouseButtonUp (const MouseEvent &) override |
| void | onResize () |
| virtual void | Resize () override |
| virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
| void | drawLine (vcl::RenderContext &rRenderContext, double x1, double y1, double x2, double y2) |
Static Private Member Functions | |
| static void | computeChunk (double fMin, double fMax, double &fChunkOut, double &fMinChunkOut) |
| static double | interpolate (double x, double const *pNodeX, double const *pNodeY, int nNodes) |
Private Attributes | |
| tools::Rectangle | m_aGridArea |
| double | m_fMinX |
| double | m_fMinY |
| double | m_fMaxX |
| double | m_fMaxY |
| double | m_fChunkX |
| double | m_fMinChunkX |
| double | m_fChunkY |
| double | m_fMinChunkY |
| double * | m_pXValues |
| double * | m_pOrigYValues |
| int | m_nValues |
| std::unique_ptr< double[]> | m_pNewYValues |
| sal_uInt16 | m_BmOffX |
| sal_uInt16 | m_BmOffY |
| bool | m_bCutValues |
| Handles | m_aHandles |
| Handles::size_type | m_nDragIndex |
| BitmapEx | m_aMarkerBitmap |
Static Private Attributes | |
| static constexpr auto | npos = std::numeric_limits<Handles::size_type>::max() |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::CustomWidgetController | |
| static bool | IsUpdateMode () |
|
private |
|
overridevirtual |
Definition at line 223 of file grid.cxx.
References m_pNewYValues.
| void GridWindow::ChangeMode | ( | ResetType | nType | ) |
Definition at line 620 of file grid.cxx.
References EXPONENTIAL, i, weld::CustomWidgetController::Invalidate(), LINEAR_ASCENDING, LINEAR_DESCENDING, m_aHandles, m_fMaxX, m_fMaxY, m_fMinX, m_fMinY, m_nValues, m_pNewYValues, m_pOrigYValues, m_pXValues, n, nIndex, nType, RESET, transform(), x, and y.
|
staticprivate |
Definition at line 326 of file grid.cxx.
Referenced by setBoundings().
|
private |
Definition at line 275 of file grid.cxx.
References i, m_fMaxX, m_fMaxY, m_fMinX, m_fMinY, m_nValues, m_pOrigYValues, m_pXValues, and setBoundings().
Referenced by Init().
|
private |
Definition at line 353 of file grid.cxx.
References i, interpolate(), m_aHandles, m_bCutValues, m_fMaxY, m_fMinY, m_nValues, m_pNewYValues, m_pXValues, transform(), and x.
Referenced by MouseButtonDown(), and MouseButtonUp().
|
private |
Definition at line 438 of file grid.cxx.
References Point::AdjustX(), Point::AdjustY(), COL_BLACK(), drawLine(), OutputDevice::DrawText(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), Size::Height(), m_fChunkX, m_fChunkY, m_fMaxX, m_fMaxY, m_fMinChunkX, m_fMinChunkY, m_fMinX, m_fMinY, OutputDevice::SetLineColor(), o3tl::sprintf(), transform(), and Size::Width().
Referenced by Paint().
|
private |
Definition at line 506 of file grid.cxx.
References m_aHandles, and m_aMarkerBitmap.
Referenced by Paint().
|
private |
Definition at line 321 of file grid.cxx.
References OutputDevice::DrawLine(), and transform().
Referenced by drawGrid(), drawNew(), and drawOriginal().
|
private |
Definition at line 490 of file grid.cxx.
References COL_YELLOW(), drawLine(), i, m_aGridArea, m_nValues, m_pNewYValues, m_pXValues, OutputDevice::SetClipRegion(), and OutputDevice::SetLineColor().
Referenced by Paint().
|
private |
Definition at line 476 of file grid.cxx.
References COL_RED(), drawLine(), i, m_nValues, m_pOrigYValues, m_pXValues, and OutputDevice::SetLineColor().
Referenced by Paint().
|
private |
|
private |
|
private |
|
private |
|
inline |
Definition at line 134 of file grid.cxx.
References m_pNewYValues.
| void GridWindow::Init | ( | double * | pXValues, |
| double * | pYValues, | ||
| int | nValues, | ||
| bool | bCutValues, | ||
| const BitmapEx & | rMarkerBitmap | ||
| ) |
Definition at line 161 of file grid.cxx.
References computeExtremes(), findMaxX(), findMaxY(), findMinX(), findMinY(), BitmapEx::GetSizePixel(), Size::Height(), m_aHandles, m_aMarkerBitmap, m_bCutValues, m_BmOffX, m_BmOffY, m_nValues, m_pNewYValues, m_pOrigYValues, m_pXValues, onResize(), setBoundings(), transform(), and Size::Width().
|
staticprivate |
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 571 of file grid.cxx.
References a, computeNew(), MouseEvent::GetButtons(), weld::CustomWidgetController::GetDrawingArea(), MouseEvent::GetPosPixel(), BitmapEx::GetSizePixel(), Size::Height(), weld::CustomWidgetController::Invalidate(), m_aGridArea, m_aHandles, m_aMarkerBitmap, m_BmOffX, m_BmOffY, m_nDragIndex, MOUSE_LEFT, MOUSE_RIGHT, npos, and Size::Width().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 556 of file grid.cxx.
References computeNew(), MouseEvent::GetButtons(), weld::CustomWidgetController::Invalidate(), m_aGridArea, m_nDragIndex, MOUSE_LEFT, and npos.
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 523 of file grid.cxx.
References tools::Rectangle::Bottom(), MouseEvent::GetButtons(), MouseEvent::GetPosPixel(), weld::CustomWidgetController::Invalidate(), tools::Rectangle::Left(), m_aGridArea, m_aHandles, m_nDragIndex, MOUSE_LEFT, npos, tools::Rectangle::Right(), Point::setX(), Point::setY(), tools::Rectangle::Top(), Point::X(), and Point::Y().
|
private |
Definition at line 192 of file grid.cxx.
References weld::CustomWidgetController::GetOutputSizePixel(), Size::Height(), m_aGridArea, tools::Rectangle::setHeight(), tools::Rectangle::setWidth(), and Size::Width().
|
overridevirtual |
Implements weld::CustomWidgetController.
Definition at line 514 of file grid.cxx.
References drawGrid(), drawHandles(), drawNew(), drawOriginal(), Application::GetSettings(), and OutputDevice::SetBackground().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 187 of file grid.cxx.
References onResize().
| void GridWindow::setBoundings | ( | double | fMinX, |
| double | fMinY, | ||
| double | fMaxX, | ||
| double | fMaxY | ||
| ) |
Definition at line 427 of file grid.cxx.
References computeChunk(), m_fChunkX, m_fChunkY, m_fMaxX, m_fMaxY, m_fMinChunkX, m_fMinChunkY, m_fMinX, and m_fMinY.
Referenced by computeExtremes(), and Init().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 199 of file grid.cxx.
References weld::DrawingArea::get_ref_device(), Size::Height(), OutputDevice::LogicToPixel(), weld::Widget::set_size_request(), weld::CustomWidgetController::SetOutputSizePixel(), and Size::Width().
|
private |
Definition at line 311 of file grid.cxx.
References tools::Rectangle::Bottom(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), tools::Rectangle::Left(), m_aGridArea, m_fMaxX, m_fMaxY, m_fMinX, m_fMinY, x, Point::X(), y, and Point::Y().
|
private |
Definition at line 297 of file grid.cxx.
References tools::Rectangle::Bottom(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), tools::Rectangle::Left(), m_aGridArea, m_fMaxX, m_fMaxY, m_fMinX, m_fMinY, Point::setX(), Point::setY(), x, and y.
Referenced by ChangeMode(), computeNew(), drawGrid(), drawLine(), and Init().
|
private |
Definition at line 72 of file grid.cxx.
Referenced by drawNew(), MouseButtonDown(), MouseButtonUp(), MouseMove(), onResize(), and transform().
|
private |
Definition at line 97 of file grid.cxx.
Referenced by ChangeMode(), computeNew(), drawHandles(), Init(), MouseButtonDown(), and MouseMove().
|
private |
Definition at line 100 of file grid.cxx.
Referenced by drawHandles(), Init(), and MouseButtonDown().
|
private |
Definition at line 92 of file grid.cxx.
Referenced by computeNew(), and Init().
|
private |
Definition at line 89 of file grid.cxx.
Referenced by Init(), and MouseButtonDown().
|
private |
Definition at line 90 of file grid.cxx.
Referenced by Init(), and MouseButtonDown().
|
private |
Definition at line 79 of file grid.cxx.
Referenced by drawGrid(), and setBoundings().
|
private |
Definition at line 81 of file grid.cxx.
Referenced by drawGrid(), and setBoundings().
|
private |
Definition at line 76 of file grid.cxx.
Referenced by ChangeMode(), computeExtremes(), drawGrid(), setBoundings(), and transform().
|
private |
Definition at line 77 of file grid.cxx.
Referenced by ChangeMode(), computeExtremes(), computeNew(), drawGrid(), setBoundings(), and transform().
|
private |
Definition at line 80 of file grid.cxx.
Referenced by drawGrid(), and setBoundings().
|
private |
Definition at line 82 of file grid.cxx.
Referenced by drawGrid(), and setBoundings().
|
private |
Definition at line 74 of file grid.cxx.
Referenced by ChangeMode(), computeExtremes(), drawGrid(), setBoundings(), and transform().
|
private |
Definition at line 75 of file grid.cxx.
Referenced by ChangeMode(), computeExtremes(), computeNew(), drawGrid(), setBoundings(), and transform().
|
private |
Definition at line 98 of file grid.cxx.
Referenced by MouseButtonDown(), MouseButtonUp(), and MouseMove().
|
private |
Definition at line 86 of file grid.cxx.
Referenced by ChangeMode(), computeExtremes(), computeNew(), drawNew(), drawOriginal(), findMaxX(), findMaxY(), findMinX(), findMinY(), and Init().
|
private |
Definition at line 87 of file grid.cxx.
Referenced by ChangeMode(), computeNew(), drawNew(), findMaxY(), findMinY(), getNewYValues(), Init(), and ~GridWindow().
|
private |
Definition at line 85 of file grid.cxx.
Referenced by ChangeMode(), computeExtremes(), drawOriginal(), and Init().
|
private |
Definition at line 84 of file grid.cxx.
Referenced by ChangeMode(), computeExtremes(), computeNew(), drawNew(), drawOriginal(), findMaxX(), findMinX(), and Init().
|
staticconstexprprivate |
Definition at line 96 of file grid.cxx.
Referenced by MouseButtonDown(), MouseButtonUp(), and MouseMove().