1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #ifndef TEMPLATEFOLDERVIEWITEM_HXX
11 #define TEMPLATEFOLDERVIEWITEM_HXX
13 #include <sfx2/templateproperties.hxx>
14 #include <sfx2/thumbnailviewitem.hxx>
16 class TemplateContainerItem
: public ThumbnailViewItem
20 sal_uInt16 mnRegionId
;
24 std::vector
<TemplateItemProperties
> maTemplates
;
26 TemplateContainerItem (ThumbnailView
&rView
);
28 virtual ~TemplateContainerItem ();
30 virtual void Paint (drawinglayer::processor2d::BaseProcessor2D
*pProcessor
,
31 const ThumbnailItemAttributes
*pAttrs
);
33 virtual void calculateItemsPosition (const long nThumbnailHeight
, const long nDisplayHeight
,
34 const long nPadding
, sal_uInt32 nMaxTextLenght
,
35 const ThumbnailItemAttributes
*pAttrs
);
37 bool HasMissingPreview( );
41 Rectangle maThumbnailArea
;
44 #endif // TEMPLATEFOLDERVIEWITEM_HXX
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */