LibreOffice Module sd (master) 1
|
A vertical scroll bar. More...
#include <PresenterScrollBar.hxx>
Public Member Functions | |
PresenterVerticalScrollBar (const css::uno::Reference< css::uno::XComponentContext > &rxComponentContext, const css::uno::Reference< css::awt::XWindow > &rxParentWindow, const std::shared_ptr< PresenterPaintManager > &rpPaintManager, const ::std::function< void(double)> &rThumbMotionListener) | |
virtual | ~PresenterVerticalScrollBar () override |
virtual sal_Int32 | GetSize () const override |
![]() | |
virtual | ~PresenterScrollBar () override |
PresenterScrollBar (const PresenterScrollBar &)=delete | |
PresenterScrollBar & | operator= (const PresenterScrollBar &)=delete |
virtual void SAL_CALL | disposing () override |
css::uno::Reference< css::uno::XComponentContext > const & | GetComponentContext () const |
void | SetVisible (const bool bIsVisible) |
void | SetPosSize (const css::geometry::RealRectangle2D &rBox) |
Set the bounding box of the scroll bar. More... | |
void | SetThumbPosition (double nPosition, const bool bAsynchronousRepaint) |
Set the position of the movable thumb. More... | |
double | GetThumbPosition () const |
void | SetTotalSize (const double nTotalSize) |
Set the upper border of the slider range. More... | |
void | SetThumbSize (const double nThumbSize) |
Set the size of the movable thumb. More... | |
double | GetThumbSize () const |
void | SetLineHeight (const double nLineHeight) |
double | GetLineHeight () const |
void | SetCanvas (const css::uno::Reference< css::rendering::XCanvas > &rxCanvas) |
Set the canvas that is used for painting the scroll bar. More... | |
void | SetBackground (const SharedBitmapDescriptor &rpBackgroundBitmap) |
void | CheckValues () |
Call this after changing total size or thumb position or size to move the thumb to a valid position. More... | |
void | Paint (const css::awt::Rectangle &rUpdateBox) |
On some occasions it is necessary to trigger the painting of a scrollbar from the outside. More... | |
virtual sal_Int32 | GetSize () const =0 |
virtual void SAL_CALL | windowResized (const css::awt::WindowEvent &rEvent) override |
virtual void SAL_CALL | windowMoved (const css::awt::WindowEvent &rEvent) override |
virtual void SAL_CALL | windowShown (const css::lang::EventObject &rEvent) override |
virtual void SAL_CALL | windowHidden (const css::lang::EventObject &rEvent) override |
virtual void SAL_CALL | windowPaint (const css::awt::PaintEvent &rEvent) override |
virtual void SAL_CALL | mousePressed (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | mouseReleased (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | mouseEntered (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | mouseExited (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | mouseMoved (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | mouseDragged (const css::awt::MouseEvent &rEvent) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &rEvent) override |
Protected Member Functions | |
virtual double | GetDragDistance (const sal_Int32 nX, const sal_Int32 nY) const override |
virtual void | UpdateDragAnchor (const double nDragDistance) override |
virtual double | GetMinor (const double nX, const double nY) const override |
virtual void | UpdateBorders () override |
virtual void | UpdateBitmaps () override |
virtual void | PaintComposite (const css::awt::Rectangle &rRepaintBox, const Area eArea, const SharedBitmapDescriptor &rpStartBitmaps, const SharedBitmapDescriptor &rpCenterBitmaps, const SharedBitmapDescriptor &rpEndBitmaps) override |
![]() | |
css::geometry::RealRectangle2D const & | GetRectangle (const Area eArea) const |
virtual double | GetDragDistance (const sal_Int32 nX, const sal_Int32 nY) const =0 |
virtual void | UpdateDragAnchor (const double nDragDistance)=0 |
virtual double | GetMinor (const double nX, const double nY) const =0 |
virtual void | UpdateBorders ()=0 |
virtual void | UpdateBitmaps ()=0 |
virtual void | PaintComposite (const css::awt::Rectangle &rRepaintBox, const Area eArea, const SharedBitmapDescriptor &rpStartBitmaps, const SharedBitmapDescriptor &rpCenterBitmaps, const SharedBitmapDescriptor &rpEndBitmaps)=0 |
PresenterScrollBar (const css::uno::Reference< css::uno::XComponentContext > &rxComponentContext, const css::uno::Reference< css::awt::XWindow > &rxParentWindow, std::shared_ptr< PresenterPaintManager > xPaintManager, ::std::function< void(double)> aThumbMotionListener) | |
void | Repaint (const css::geometry::RealRectangle2D &rBox, const bool bAsynchronous) |
void | PaintBackground (const css::awt::Rectangle &rRepaintBox) |
void | PaintBitmap (const css::awt::Rectangle &rRepaintBox, const Area eArea, const SharedBitmapDescriptor &rpBitmaps) |
void | UpdateWidthOrHeight (sal_Int32 &rSize, const SharedBitmapDescriptor &rpDescriptor) |
css::uno::Reference< css::rendering::XBitmap > | GetBitmap (const Area eArea, const SharedBitmapDescriptor &rpBitmaps) const |
PresenterBitmapContainer::BitmapDescriptor::Mode | GetBitmapMode (const Area eArea) const |
bool | IsDisabled (const Area eArea) const |
double | ValidateThumbPosition (double nPosition) |
Private Attributes | |
sal_Int32 | mnScrollBarWidth |
A vertical scroll bar.
Definition at line 225 of file PresenterScrollBar.hxx.
sdext::presenter::PresenterVerticalScrollBar::PresenterVerticalScrollBar | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxComponentContext, |
const css::uno::Reference< css::awt::XWindow > & | rxParentWindow, | ||
const std::shared_ptr< PresenterPaintManager > & | rpPaintManager, | ||
const ::std::function< void(double)> & | rThumbMotionListener | ||
) |
Definition at line 554 of file PresenterScrollBar.cxx.
|
overridevirtual |
Definition at line 564 of file PresenterScrollBar.cxx.
|
overrideprotectedvirtual |
Implements sdext::presenter::PresenterScrollBar.
Definition at line 568 of file PresenterScrollBar.cxx.
References sdext::presenter::PresenterScrollBar::maDragAnchor, sdext::presenter::PresenterScrollBar::mnThumbPosition, sdext::presenter::PresenterScrollBar::mnThumbSize, sdext::presenter::PresenterScrollBar::mnTotalSize, and sdext::presenter::PresenterScrollBar::mxWindow.
|
overrideprotectedvirtual |
Implements sdext::presenter::PresenterScrollBar.
Definition at line 601 of file PresenterScrollBar.cxx.
|
overridevirtual |
Implements sdext::presenter::PresenterScrollBar.
Definition at line 596 of file PresenterScrollBar.cxx.
References mnScrollBarWidth.
|
overrideprotectedvirtual |
Implements sdext::presenter::PresenterScrollBar.
Definition at line 699 of file PresenterScrollBar.cxx.
References sdext::presenter::PresenterGeometryHelper::ConvertRectangle(), sdext::presenter::PresenterGeometryHelper::ConvertRectangleWithConstantSize(), sdext::presenter::PresenterScrollBar::GetBitmap(), sdext::presenter::PresenterScrollBar::GetRectangle(), sdext::presenter::PresenterScrollBar::mxCanvas, sdext::presenter::PresenterScrollBar::mxWindow, sdext::presenter::PresenterUIPainter::PaintVerticalBitmapComposite(), and sdext::presenter::PresenterScrollBar::Thumb.
|
overrideprotectedvirtual |
Implements sdext::presenter::PresenterScrollBar.
Definition at line 672 of file PresenterScrollBar.cxx.
References mnScrollBarWidth, sdext::presenter::PresenterScrollBar::mpBitmaps, sdext::presenter::PresenterScrollBar::mpNextButtonDescriptor, sdext::presenter::PresenterScrollBar::mpPagerCenterDescriptor, sdext::presenter::PresenterScrollBar::mpPagerEndDescriptor, sdext::presenter::PresenterScrollBar::mpPagerStartDescriptor, sdext::presenter::PresenterScrollBar::mpPrevButtonDescriptor, sdext::presenter::PresenterScrollBar::mpThumbCenterDescriptor, sdext::presenter::PresenterScrollBar::mpThumbEndDescriptor, sdext::presenter::PresenterScrollBar::mpThumbStartDescriptor, and sdext::presenter::PresenterScrollBar::UpdateWidthOrHeight().
|
overrideprotectedvirtual |
Implements sdext::presenter::PresenterScrollBar.
Definition at line 606 of file PresenterScrollBar.cxx.
References gnScrollBarGap(), sdext::presenter::PresenterScrollBar::maBox, sdext::presenter::PresenterScrollBar::maEnabledState, sdext::presenter::PresenterScrollBar::mnThumbPosition, sdext::presenter::PresenterScrollBar::mnThumbSize, sdext::presenter::PresenterScrollBar::mnTotalSize, sdext::presenter::PresenterScrollBar::mpNextButtonDescriptor, sdext::presenter::PresenterScrollBar::mpPrevButtonDescriptor, sdext::presenter::PresenterScrollBar::mxWindow, sdext::presenter::PresenterScrollBar::NextButton, sdext::presenter::PresenterScrollBar::Pager, sdext::presenter::PresenterScrollBar::PagerDown, sdext::presenter::PresenterScrollBar::PagerUp, sdext::presenter::PresenterScrollBar::PrevButton, sdext::presenter::PresenterScrollBar::Thumb, sdext::presenter::PresenterScrollBar::Total, sdext::presenter::PresenterGeometryHelper::Union(), X1, X2, Y1, and Y2.
|
overrideprotectedvirtual |
Implements sdext::presenter::PresenterScrollBar.
Definition at line 588 of file PresenterScrollBar.cxx.
References sdext::presenter::PresenterScrollBar::maDragAnchor, sdext::presenter::PresenterScrollBar::mnTotalSize, and sdext::presenter::PresenterScrollBar::mxWindow.
|
private |
Definition at line 250 of file PresenterScrollBar.hxx.
Referenced by GetSize(), and UpdateBitmaps().