nss: upgrade to release 3.73
[LibreOffice.git] / vcl / source / treelist / iconviewimpl.hxx
blob9436324bc5662a40eb15c4558ee0e71928f5ae82
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_VCL_SOURCE_INC_ICONVIEWIMPL_HXX
21 #define INCLUDED_VCL_SOURCE_INC_ICONVIEWIMPL_HXX
23 #include <svimpbox.hxx>
25 class SvTreeListBox;
26 class Point;
28 class IconViewImpl : public SvImpLBox
30 public:
31 IconViewImpl(SvTreeListBox* pTreeListBox, SvTreeList* pTreeList, WinBits nWinStyle);
33 void KeyDown(bool bPageDown) override;
35 void KeyUp(bool bPageUp) override;
37 Point GetEntryPosition(const SvTreeListEntry* pEntry) const override;
39 SvTreeListEntry* GetClickedEntry(const Point& rPoint) const override;
41 bool IsEntryInView(SvTreeListEntry* pEntry) const override;
43 void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override;
45 // returns 0 if position is just past the last entry
46 SvTreeListEntry* GetEntry(const Point& rPoint) const override;
48 void UpdateAll(bool bInvalidateCompleteView) override;
50 bool KeyInput(const KeyEvent&) override;
52 void InvalidateEntry(tools::Long nId) const override;
54 protected:
55 tools::Long GetEntryLine(const SvTreeListEntry* pEntry) const override;
57 void CursorUp() override;
58 void CursorDown() override;
59 void PageDown(sal_uInt16 nDelta) override;
60 void PageUp(sal_uInt16 nDelta) override;
62 void SyncVerThumb() override;
63 void AdjustScrollBars(Size& rSize) override;
66 #endif // INCLUDED_VCL_SOURCE_INC_ICONVIEWIMPL_HXX
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */