bump product version to 4.1.6.2
[LibreOffice.git] / basctl / source / basicide / linenumberwindow.hxx
blob667ef0ab8ecaa218eca0d3ac2cc99a58936104d9
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #ifndef BASCTL_LINENUMBERWINDOW_HXX
11 #define BASCTL_LINENUMBERWINDOW_HXX
13 #include <vcl/window.hxx>
15 namespace basctl
18 class ModulWindow;
20 class LineNumberWindow : public Window
22 private:
23 ModulWindow* m_pModulWindow;
24 int m_nWidth;
25 long m_nCurYOffset;
26 int m_nBaseWidth;
27 virtual void DataChanged (DataChangedEvent const& rDCEvt);
29 protected:
30 virtual void Paint( const Rectangle& );
32 public:
33 LineNumberWindow (Window* pParent, ModulWindow* pModulWin);
34 ~LineNumberWindow();
36 void DoScroll( long nHorzScroll, long nVertScroll );
38 bool SyncYOffset();
39 long& GetCurYOffset();
41 int GetWidth();
44 } // namespace basctl
46 #endif // BASCTL_LINENUMBERWINDOW_HXX
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */