LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwScrollbar Class Referencefinal

#include <scroll.hxx>

Inheritance diagram for SwScrollbar:
[legend]
Collaboration diagram for SwScrollbar:
[legend]

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::Scrollbarm_xScrollBar
 
Link< weld::Scrollbar &, void > m_aLink
 
bool m_bHori
 

Detailed Description

Definition at line 23 of file scroll.hxx.

Constructor & Destructor Documentation

◆ SwScrollbar()

SwScrollbar::SwScrollbar ( vcl::Window pParent,
bool  bHori 
)

Definition at line 24 of file scroll.cxx.

References ScrollAdaptor::m_xScrollBar.

Member Function Documentation

◆ AutoShow()

void SwScrollbar::AutoShow ( )
private

Definition at line 101 of file scroll.cxx.

References ScrollAdaptor::GetRange(), ScrollAdaptor::GetVisibleSize(), and Range::Len().

Referenced by SetAuto(), and ViewPortChgd().

◆ DocSzChgd()

void SwScrollbar::DocSzChgd ( const Size rNewSize)

◆ ExtendedShow()

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().

◆ IsAuto()

bool SwScrollbar::IsAuto ( ) const
inline

Definition at line 43 of file scroll.hxx.

References m_bAuto.

◆ IsScrollbarVisible()

bool SwScrollbar::IsScrollbarVisible ( bool  bReal) const
inline

Definition at line 35 of file scroll.hxx.

References m_bVisible.

Referenced by ViewResizePixel().

◆ SetAuto()

void SwScrollbar::SetAuto ( bool  bSet)

Definition at line 87 of file scroll.cxx.

References AutoShow(), ExtendedShow(), m_bAuto, and m_bVisible.

◆ SetPosSizePixel()

void SwScrollbar::SetPosSizePixel ( const Point rNewPos,
const Size rNewSize 
)
override

Definition at line 79 of file scroll.cxx.

References ExtendedShow(), m_bSizeSet, and m_bVisible.

Referenced by ViewResizePixel().

◆ ViewPortChgd()

void SwScrollbar::ViewPortChgd ( const tools::Rectangle rRectangle)

Member Data Documentation

◆ m_aDocSz

Size SwScrollbar::m_aDocSz
private

Definition at line 25 of file scroll.hxx.

Referenced by DocSzChgd(), and ViewPortChgd().

◆ m_bAuto

bool SwScrollbar::m_bAuto
private

Definition at line 26 of file scroll.hxx.

Referenced by ExtendedShow(), IsAuto(), SetAuto(), and ViewPortChgd().

◆ m_bSizeSet

bool SwScrollbar::m_bSizeSet
private

Definition at line 28 of file scroll.hxx.

Referenced by ExtendedShow(), and SetPosSizePixel().

◆ m_bVisible

bool SwScrollbar::m_bVisible
private

Definition at line 27 of file scroll.hxx.

Referenced by ExtendedShow(), IsScrollbarVisible(), SetAuto(), and SetPosSizePixel().


The documentation for this class was generated from the following files: