LibreOffice Module vcl (master) 1
iconview.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 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#ifndef INCLUDED_SVTOOLS_ICONVIEW_HXX
21#define INCLUDED_SVTOOLS_ICONVIEW_HXX
22
24
25class IconView final : public SvTreeListBox
26{
27public:
28 IconView(vcl::Window* pParent, WinBits nBits);
29
30 Size GetEntrySize(const SvTreeListEntry&) const;
31
32 virtual void Resize() override;
33
35
37 vcl::RenderContext& rRenderContext);
38
39 virtual css::uno::Reference<css::accessibility::XAccessible> CreateAccessible() override;
40
41 virtual OUString GetEntryAccessibleDescription(SvTreeListEntry* pEntry) const override;
43 {
45 }
46
47 virtual FactoryFunction GetUITestFactory() const override;
48 virtual void DumpAsPropertyTree(tools::JsonWriter& rJsonWriter) override;
49
50protected:
51 virtual void CalcEntryHeight(SvTreeListEntry const* pEntry) override;
52
53private:
55};
56
57#endif
58
59/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual FactoryFunction GetUITestFactory() const override
Definition: iconview.cxx:259
IconView(vcl::Window *pParent, WinBits nBits)
Definition: iconview.cxx:38
void PaintEntry(SvTreeListEntry &, tools::Long nX, tools::Long nY, vcl::RenderContext &rRenderContext)
Definition: iconview.cxx:97
virtual OUString GetEntryAccessibleDescription(SvTreeListEntry *pEntry) const override
Definition: iconview.cxx:249
virtual void Resize() override
Definition: iconview.cxx:80
Size GetEntrySize(const SvTreeListEntry &) const
Definition: iconview.cxx:48
virtual void DumpAsPropertyTree(tools::JsonWriter &rJsonWriter) override
Dumps itself and potentially its children to a property tree, to be written easily to JSON.
Definition: iconview.cxx:312
Link< SvTreeListEntry *, OUString > maEntryAccessibleDescriptionHdl
Definition: iconview.hxx:54
virtual tools::Rectangle GetFocusRect(const SvTreeListEntry *, tools::Long) override
Definition: iconview.cxx:92
void SetEntryAccessibleDescriptionHdl(const Link< SvTreeListEntry *, OUString > &rLink)
Definition: iconview.hxx:42
virtual void CalcEntryHeight(SvTreeListEntry const *pEntry) override
Definition: iconview.cxx:55
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override
Creates and returns the accessible object of the Box.
Definition: iconview.cxx:235
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Definition: outdev.hxx:171
std::function< std::unique_ptr< UIObject >(vcl::Window *)> FactoryFunction
long Long
sal_Int64 WinBits
Definition: wintypes.hxx:109