LibreOffice Module sw (master) 1
|
#include <scroll.hxx>
Public Member Functions | |
void | ExtendedShow (bool bVisible=true) |
void | SetPosSizePixel (const Point &rNewPos, const Size &rNewSize) override |
bool | IsScrollbarVisible (bool bReal) const |
void | DocSzChgd (const Size &rNewSize) |
void | ViewPortChgd (const tools::Rectangle &rRectangle) |
void | SetAuto (bool bSet) |
bool | IsAuto () const |
SwScrollbar (vcl::Window *pParent, bool bHori) | |
Public Member Functions inherited from ScrollAdaptor | |
virtual void | SetRange (const Range &rRange) override |
virtual Range | GetRange () const override |
virtual void | SetRangeMin (tools::Long nNewRange) override |
virtual tools::Long | GetRangeMin () const override |
virtual void | SetRangeMax (tools::Long nNewRange) override |
virtual tools::Long | GetRangeMax () const override |
virtual void | SetLineSize (tools::Long nNewSize) override |
virtual tools::Long | GetLineSize () const override |
virtual void | SetPageSize (tools::Long nNewSize) override |
virtual tools::Long | GetPageSize () const override |
virtual void | SetVisibleSize (tools::Long nNewSize) override |
virtual tools::Long | GetVisibleSize () const override |
virtual void | SetThumbPos (tools::Long nThumbPos) override |
virtual tools::Long | GetThumbPos () const override |
void | SetScrollHdl (const Link< weld::Scrollbar &, void > &rLink) |
void | SetMouseReleaseHdl (const Link< const MouseEvent &, bool > &rLink) |
bool | IsHoriScroll () const |
ScrollType | GetScrollType () const |
virtual void | EnableRTL (bool bEnable=true) override |
virtual tools::Long | DoScroll (tools::Long nNewPos) override |
virtual bool | Inactive () const override |
bool | HasGrab () const |
void | SetThickness (int nThickness) |
ScrollAdaptor (vcl::Window *pParent, bool bHori) | |
virtual void | dispose () override |
Private Member Functions | |
void | AutoShow () |
Private Attributes | |
Size | m_aDocSz |
bool | m_bAuto:1 |
bool | m_bVisible:1 |
bool | m_bSizeSet:1 |
Additional Inherited Members | |
Protected Attributes inherited from ScrollAdaptor | |
std::unique_ptr< weld::Scrollbar > | m_xScrollBar |
Link< weld::Scrollbar &, void > | m_aLink |
bool | m_bHori |
Definition at line 23 of file scroll.hxx.
SwScrollbar::SwScrollbar | ( | vcl::Window * | pParent, |
bool | bHori | ||
) |
Definition at line 24 of file scroll.cxx.
References ScrollAdaptor::m_xScrollBar.
|
private |
Definition at line 101 of file scroll.cxx.
References ScrollAdaptor::GetRange(), ScrollAdaptor::GetVisibleSize(), and Range::Len().
Referenced by SetAuto(), and ViewPortChgd().
void SwScrollbar::DocSzChgd | ( | const Size & | rNewSize | ) |
Definition at line 39 of file scroll.cxx.
References ScrollAdaptor::GetVisibleSize(), Size::Height(), m_aDocSz, ScrollAdaptor::m_bHori, SCROLL_LINE_SIZE, ScrollAdaptor::SetLineSize(), ScrollAdaptor::SetPageSize(), ScrollAdaptor::SetRange(), and Size::Width().
Referenced by ViewPortChgd().
void SwScrollbar::ExtendedShow | ( | bool | bVisible = true | ) |
Definition at line 70 of file scroll.cxx.
References m_bAuto, m_bSizeSet, and m_bVisible.
Referenced by SetAuto(), and SetPosSizePixel().
|
inline |
Definition at line 43 of file scroll.hxx.
References m_bAuto.
|
inline |
void SwScrollbar::SetAuto | ( | bool | bSet | ) |
Definition at line 87 of file scroll.cxx.
References AutoShow(), ExtendedShow(), m_bAuto, and m_bVisible.
Definition at line 79 of file scroll.cxx.
References ExtendedShow(), m_bSizeSet, and m_bVisible.
Referenced by ViewResizePixel().
void SwScrollbar::ViewPortChgd | ( | const tools::Rectangle & | rRectangle | ) |
Definition at line 49 of file scroll.cxx.
References AutoShow(), DocSzChgd(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), tools::Rectangle::Left(), m_aDocSz, m_bAuto, ScrollAdaptor::m_bHori, ScrollAdaptor::SetThumbPos(), ScrollAdaptor::SetVisibleSize(), and tools::Rectangle::Top().
|
private |
Definition at line 25 of file scroll.hxx.
Referenced by DocSzChgd(), and ViewPortChgd().
|
private |
Definition at line 26 of file scroll.hxx.
Referenced by ExtendedShow(), IsAuto(), SetAuto(), and ViewPortChgd().
|
private |
Definition at line 28 of file scroll.hxx.
Referenced by ExtendedShow(), and SetPosSizePixel().
|
private |
Definition at line 27 of file scroll.hxx.
Referenced by ExtendedShow(), IsScrollbarVisible(), SetAuto(), and SetPosSizePixel().