Bump version to 6.4-15
[LibreOffice.git] / include / sfx2 / templateviewitem.hxx
blob21433157f7963f384ff33d222641b3a8785b23e6
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 INCLUDED_SFX2_TEMPLATEVIEWITEM_HXX
11 #define INCLUDED_SFX2_TEMPLATEVIEWITEM_HXX
13 #include <sfx2/thumbnailviewitem.hxx>
15 class TemplateViewItem : public ThumbnailViewItem
17 public:
19 TemplateViewItem (ThumbnailViewBase &rView, sal_uInt16 nId);
21 virtual ~TemplateViewItem () override;
23 void setPath (const OUString &rPath) { maPath = rPath; }
25 const OUString& getPath () const { return maPath; }
27 void showDefaultIcon(bool bVal) { mbIsDefaultTemplate = bVal; }
29 bool IsDefaultTemplate() const { return mbIsDefaultTemplate; }
31 tools::Rectangle getDefaultIconArea() const;
33 virtual void Paint (drawinglayer::processor2d::BaseProcessor2D *pProcessor,
34 const ThumbnailItemAttributes *pAttrs) override;
36 sal_uInt16 mnRegionId;
37 sal_uInt16 mnDocId;
39 private:
41 OUString maPath;
42 BitmapEx const maDefaultBitmap;
43 bool mbIsDefaultTemplate;
46 #endif // INCLUDED_SFX2_TEMPLATEVIEWITEM_HXX
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */