1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 #include <vcl/window.hxx>
18 class LineNumberWindow
: public vcl::Window
21 VclPtr
<ModulWindow
> m_pModulWindow
;
23 tools::Long m_nCurYOffset
;
26 virtual void DataChanged(DataChangedEvent
const& rDCEvt
) override
;
29 virtual void Paint(vcl::RenderContext
& rRenderContext
, const tools::Rectangle
& rRect
) override
;
32 LineNumberWindow(vcl::Window
* pParent
, ModulWindow
* pModulWin
);
33 virtual ~LineNumberWindow() override
;
34 virtual void dispose() override
;
36 void DoScroll(tools::Long nVertScroll
);
39 tools::Long
& GetCurYOffset() { return m_nCurYOffset
; }
41 int GetWidth() const { return m_nWidth
; }
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */