bump product version to 4.2.0.1
[LibreOffice.git] / include / sfx2 / templatecontaineritem.hxx
blobb33b3946e24879db6e4cb2692abd3d1eeeae5736
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_TEMPLATECONTAINERITEM_HXX
11 #define INCLUDED_SFX2_TEMPLATECONTAINERITEM_HXX
13 #include <sfx2/templateproperties.hxx>
14 #include <sfx2/thumbnailviewitem.hxx>
16 class TemplateContainerItem : public ThumbnailViewItem
18 public:
20 sal_uInt16 mnRegionId;
21 BitmapEx maPreview2;
22 BitmapEx maPreview3;
23 BitmapEx maPreview4;
24 std::vector<TemplateItemProperties> maTemplates;
26 TemplateContainerItem (ThumbnailView &rView, sal_uInt16 nId);
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( );
39 private:
41 Rectangle maThumbnailArea;
44 #endif // INCLUDED_SFX2_TEMPLATECONTAINERITEM_HXX
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */