LibreOffice Module vcl (master) 1
|
#include <layout.hxx>
Public Member Functions | |
VclScrolledWindow (vcl::Window *pParent) | |
virtual | ~VclScrolledWindow () override |
virtual void | dispose () override |
virtual vcl::Window * | get_child () override |
virtual const vcl::Window * | get_child () const override |
virtual bool | set_property (const OUString &rKey, const OUString &rValue) override |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override |
bool | HasVisibleBorder () const |
ScrollBar & | getVertScrollBar () |
ScrollBar & | getHorzScrollBar () |
Size | getVisibleChildSize () const |
void | setUserManagedScrolling (bool bUserManagedScrolling) |
void | doSetAllocation (const Size &rAllocation, bool bRetryOnFailure) |
virtual void | DumpAsPropertyTree (::tools::JsonWriter &rJsonWriter) override |
Private Member Functions | |
virtual Size | calculateRequisition () const override |
virtual void | setAllocation (const Size &rAllocation) override |
int | CalcBorderWidth () const |
DECL_LINK (ScrollBarHdl, ScrollBar *, void) | |
void | InitScrollBars (const Size &rRequest) |
virtual bool | EventNotify (NotifyEvent &rNEvt) override |
Definition at line 483 of file layout.hxx.
VclScrolledWindow::VclScrolledWindow | ( | vcl::Window * | pParent | ) |
Definition at line 1864 of file layout.cxx.
References CalcBorderWidth(), Create(), StyleSettings::GetShadowColor(), AllSettings::GetStyleSettings(), LINK, m_nBorderWidth, m_pHScroll, m_pVScroll, NONE, SCROLLWINDOW, StyleSettings::SetMonoColor(), ScrollBar::SetScrollHdl(), AllSettings::SetStyleSettings(), and WindowBorder.
|
overridevirtual |
Definition at line 3083 of file layout.cxx.
|
private |
Definition at line 1888 of file layout.cxx.
References DecorationView::DrawFrame(), tools::Rectangle::GetWidth(), m_eDrawFrameFlags, m_eDrawFrameStyle, nBorderWidth, NoDraw, and NONE.
Referenced by set_property(), and VclScrolledWindow().
|
overrideprivatevirtual |
Definition at line 1937 of file layout.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), get_child(), vcl::Window::IsVisible(), m_nBorderWidth, WB_HSCROLL, and WB_VSCROLL.
|
private |
|
overridevirtual |
Definition at line 1900 of file layout.cxx.
References VclPtr< reference_type >::disposeAndClear(), m_aScrollBarBox, m_pHScroll, and m_pVScroll.
void VclScrolledWindow::doSetAllocation | ( | const Size & | rAllocation, |
bool | bRetryOnFailure | ||
) |
Definition at line 1977 of file layout.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), doSetAllocation(), get_child(), Size::Height(), vcl::Window::Hide(), InitScrollBars(), vcl::Window::IsVisible(), m_aScrollBarBox, m_bUserManagedScrolling, m_nBorderWidth, m_pHScroll, m_pVScroll, vcl::Window::SetPosSizePixel(), vcl::Window::Show(), WB_AUTOHSCROLL, WB_AUTOVSCROLL, WB_HSCROLL, WB_VSCROLL, and Size::Width().
Referenced by doSetAllocation(), and setAllocation().
|
overridevirtual |
Definition at line 2187 of file layout.cxx.
References getHorzScrollBar(), getVertScrollBar(), m_bUserManagedScrolling, tools::JsonWriter::put(), tools::JsonWriter::startNode(), WB_AUTOHSCROLL, WB_AUTOVSCROLL, WB_HSCROLL, and WB_VSCROLL.
|
overrideprivatevirtual |
Definition at line 2140 of file layout.cxx.
References COMMAND, CommandEvent::GetCommand(), NotifyEvent::GetCommandEvent(), NotifyEvent::GetType(), CommandEvent::GetWheelData(), vcl::Window::IsVisible(), m_pHScroll, m_pVScroll, pData, SCROLL, and Wheel.
|
overridevirtual |
Definition at line 1925 of file layout.cxx.
References WindowImpl::mbInDispose, and WindowImpl::mpLastChild.
|
overridevirtual |
Definition at line 1932 of file layout.cxx.
References get_child().
Referenced by calculateRequisition(), doSetAllocation(), get_child(), and InitScrollBars().
|
inline |
Definition at line 495 of file layout.hxx.
Referenced by SalInstanceScrolledWindow::customize_scrollbars(), DumpAsPropertyTree(), SalInstanceScrolledWindow::hadjustment_configure(), SalInstanceScrolledWindow::hadjustment_get_page_size(), SalInstanceScrolledWindow::hadjustment_get_upper(), SalInstanceScrolledWindow::hadjustment_get_value(), SalInstanceScrolledWindow::hadjustment_set_page_increment(), SalInstanceScrolledWindow::hadjustment_set_page_size(), SalInstanceScrolledWindow::hadjustment_set_step_increment(), SalInstanceScrolledWindow::hadjustment_set_upper(), SalInstanceScrolledWindow::hadjustment_set_value(), SalInstanceScrolledWindow::SalInstanceScrolledWindow(), and SalInstanceScrolledWindow::set_scroll_thickness().
|
inline |
Definition at line 494 of file layout.hxx.
Referenced by SalInstanceScrolledWindow::customize_scrollbars(), DumpAsPropertyTree(), SalInstanceScrolledWindow::get_scroll_thickness(), SalInstanceScrolledWindow::SalInstanceScrolledWindow(), SalInstanceScrolledWindow::set_scroll_thickness(), SalInstanceScrolledWindow::vadjustment_configure(), SalInstanceScrolledWindow::vadjustment_get_lower(), SalInstanceScrolledWindow::vadjustment_get_page_size(), SalInstanceScrolledWindow::vadjustment_get_upper(), SalInstanceScrolledWindow::vadjustment_get_value(), SalInstanceScrolledWindow::vadjustment_set_lower(), SalInstanceScrolledWindow::vadjustment_set_page_increment(), SalInstanceScrolledWindow::vadjustment_set_page_size(), SalInstanceScrolledWindow::vadjustment_set_step_increment(), SalInstanceScrolledWindow::vadjustment_set_upper(), SalInstanceScrolledWindow::vadjustment_set_value(), and SalInstanceScrolledWindow::~SalInstanceScrolledWindow().
Size VclScrolledWindow::getVisibleChildSize | ( | ) | const |
Definition at line 2087 of file layout.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), vcl::Window::GetSizePixel(), Size::Height(), vcl::Window::IsVisible(), m_nBorderWidth, m_pHScroll, m_pVScroll, and Size::Width().
Referenced by InitScrollBars().
|
inline |
Definition at line 493 of file layout.hxx.
References NONE.
Referenced by VclBuilder::prepareWidgetOwnScrolling().
|
private |
Definition at line 1957 of file layout.cxx.
References get_child(), getVisibleChildSize(), Size::Height(), vcl::Window::IsVisible(), m_pHScroll, m_pVScroll, ScrollBar::Scroll(), ScrollBar::SetPageSize(), ScrollBar::SetRangeMax(), ScrollBar::SetVisibleSize(), and Size::Width().
Referenced by doSetAllocation().
|
overridevirtual |
Definition at line 2162 of file layout.cxx.
References DecorationView::DrawFrame(), tools::Rectangle::GetWidth(), m_eDrawFrameFlags, m_eDrawFrameStyle, m_nBorderWidth, nBorderWidth, NONE, and SAL_WARN_IF.
|
overridevirtual |
Definition at line 2099 of file layout.cxx.
References CalcBorderWidth(), DoubleIn, DoubleOut, In, m_eDrawFrameFlags, m_eDrawFrameStyle, m_nBorderWidth, m_pHScroll, m_pVScroll, Mono, nBorderWidth, NONE, Out, vcl::Window::Show(), WB_HSCROLL, WB_VSCROLL, and WindowBorder.
|
overrideprivatevirtual |
Definition at line 2082 of file layout.cxx.
References doSetAllocation().
|
inline |
Definition at line 499 of file layout.hxx.
Referenced by SalInstanceScrolledWindow::SalInstanceScrolledWindow().
|
private |
Definition at line 515 of file layout.hxx.
Referenced by dispose(), and doSetAllocation().
|
private |
Definition at line 509 of file layout.hxx.
Referenced by doSetAllocation(), and DumpAsPropertyTree().
|
private |
Definition at line 512 of file layout.hxx.
Referenced by CalcBorderWidth(), Paint(), and set_property().
|
private |
Definition at line 511 of file layout.hxx.
Referenced by CalcBorderWidth(), Paint(), and set_property().
|
private |
Definition at line 510 of file layout.hxx.
Referenced by calculateRequisition(), doSetAllocation(), getVisibleChildSize(), Paint(), set_property(), and VclScrolledWindow().
Definition at line 514 of file layout.hxx.
Referenced by dispose(), doSetAllocation(), EventNotify(), getVisibleChildSize(), InitScrollBars(), set_property(), and VclScrolledWindow().
Definition at line 513 of file layout.hxx.
Referenced by dispose(), doSetAllocation(), EventNotify(), getVisibleChildSize(), InitScrollBars(), set_property(), and VclScrolledWindow().