LibreOffice Module basctl (master) 1
linenumberwindow.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 */
9
10#pragma once
11
12#include <vcl/window.hxx>
13
14namespace basctl
15{
16class ModulWindow;
17
19{
20private:
26 virtual void DataChanged(DataChangedEvent const& rDCEvt) override;
27
28protected:
29 virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override;
30
31public:
32 LineNumberWindow(vcl::Window* pParent, ModulWindow* pModulWin);
33 virtual ~LineNumberWindow() override;
34 virtual void dispose() override;
35
36 void DoScroll(tools::Long nVertScroll);
37
38 bool SyncYOffset();
40
41 int GetWidth() const { return m_nWidth; }
42};
43
44} // namespace basctl
45
46/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
VclPtr< ModulWindow > m_pModulWindow
void DoScroll(tools::Long nVertScroll)
virtual void DataChanged(DataChangedEvent const &rDCEvt) override
LineNumberWindow(vcl::Window *pParent, ModulWindow *pModulWin)
virtual void dispose() override
virtual ~LineNumberWindow() override
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
long Long