LibreOffice Module sfx2 (master) 1
templateviewitem.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
13
15{
16public:
17
18 TemplateViewItem(ThumbnailView& rView, sal_uInt16 nId);
19
20 virtual ~TemplateViewItem () override;
21
22 void setPath (const OUString &rPath) { maPath = rPath; }
23
24 const OUString& getPath () const { return maPath; }
25
26 void showDefaultIcon(bool bVal) { mbIsDefaultTemplate = bVal; }
27
28 bool IsDefaultTemplate() const { return mbIsDefaultTemplate; }
29
31
32 virtual void Paint (drawinglayer::processor2d::BaseProcessor2D *pProcessor,
33 const ThumbnailItemAttributes *pAttrs) override;
34
35 sal_uInt16 mnRegionId;
36 sal_uInt16 mnDocId;
37
38private:
39
40 OUString maPath;
43};
44
45/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
tools::Rectangle getDefaultIconArea() const
virtual void Paint(drawinglayer::processor2d::BaseProcessor2D *pProcessor, const ThumbnailItemAttributes *pAttrs) override
bool IsDefaultTemplate() const
const OUString & getPath() const
void showDefaultIcon(bool bVal)
void setPath(const OUString &rPath)
TemplateViewItem(ThumbnailView &rView, sal_uInt16 nId)
virtual ~TemplateViewItem() override
Class to display thumbnails with their names below their respective icons.
sal_Int16 nId