Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * Copyright 2012 LibreOffice contributors.
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 : : #ifndef TEMPLATEVIEWITEM_HXX
11 : : #define TEMPLATEVIEWITEM_HXX
12 : :
13 : : #include <sfx2/thumbnailviewitem.hxx>
14 : :
15 : : class TemplateViewItem : public ThumbnailViewItem
16 : : {
17 : : public:
18 : :
19 : : TemplateViewItem (ThumbnailView &rView, Window *pParent);
20 : :
21 : : virtual ~TemplateViewItem ();
22 : :
23 : 0 : void setPath (const rtl::OUString &rPath) { maPath = rPath; }
24 : :
25 : 0 : const rtl::OUString& getPath () const { return maPath; }
26 : :
27 : : void setAuthor (const rtl::OUString &rAuthor) { maAuthor = rAuthor; }
28 : :
29 : : const rtl::OUString& getAuthor () const { return maAuthor; }
30 : :
31 : : void setKeywords (const rtl::OUString &rKeywords) { maKeywords = rKeywords; }
32 : :
33 : : const rtl::OUString& getKeywords () const { return maKeywords; }
34 : :
35 : 0 : void setFileType (const rtl::OUString &rType) { maFileType = rType; }
36 : :
37 : 0 : const rtl::OUString& getFileType () const { return maFileType; }
38 : :
39 : 0 : void setSubTitle (const rtl::OUString &rTitle) { maSubTitle = rTitle; }
40 : :
41 : : const rtl::OUString& getSubTitle () const { return maSubTitle; }
42 : :
43 : : virtual void calculateItemsPosition (const long nThumbnailHeight, const long nDisplayHeight,
44 : : const long nPadding, sal_uInt32 nMaxTextLenght,
45 : : const ThumbnailItemAttributes *pAttrs);
46 : :
47 : : virtual void Paint (drawinglayer::processor2d::BaseProcessor2D *pProcessor,
48 : : const ThumbnailItemAttributes *pAttrs);
49 : : private:
50 : :
51 : : rtl::OUString maPath;
52 : : rtl::OUString maAuthor;
53 : : rtl::OUString maKeywords;
54 : : rtl::OUString maFileType;
55 : : rtl::OUString maSubTitle;
56 : :
57 : : Point maSubTitlePos;
58 : : };
59 : :
60 : : #endif // TEMPLATEVIEWITEM_HXX
61 : :
62 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|