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 TEMPLATEVIEWITEM_HXX
11 #define TEMPLATEVIEWITEM_HXX
13 #include <sfx2/thumbnailviewitem.hxx>
15 class TemplateViewItem
: public ThumbnailViewItem
19 TemplateViewItem (ThumbnailView
&rView
);
21 virtual ~TemplateViewItem ();
23 void setPath (const OUString
&rPath
) { maPath
= rPath
; }
25 const OUString
& getPath () const { return maPath
; }
27 void setAuthor (const OUString
&rAuthor
) { maAuthor
= rAuthor
; }
29 const OUString
& getAuthor () const { return maAuthor
; }
31 void setKeywords (const OUString
&rKeywords
) { maKeywords
= rKeywords
; }
33 const OUString
& getKeywords () const { return maKeywords
; }
35 void setSubTitle (const OUString
&rTitle
) { maSubTitle
= rTitle
; }
37 const OUString
& getSubTitle () const { return maSubTitle
; }
39 virtual void calculateItemsPosition (const long nThumbnailHeight
, const long nDisplayHeight
,
40 const long nPadding
, sal_uInt32 nMaxTextLenght
,
41 const ThumbnailItemAttributes
*pAttrs
);
43 virtual void Paint (drawinglayer::processor2d::BaseProcessor2D
*pProcessor
,
44 const ThumbnailItemAttributes
*pAttrs
);
46 sal_uInt16 mnRegionId
;
59 #endif // TEMPLATEVIEWITEM_HXX
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */