fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / include / sfx2 / templateviewitem.hxx
blob6e3442b6b3477a4393b0865cc774f375306445ed
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 TEMPLATEVIEWITEM_HXX
11 #define TEMPLATEVIEWITEM_HXX
13 #include <sfx2/thumbnailviewitem.hxx>
15 class TemplateViewItem : public ThumbnailViewItem
17 public:
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;
47 sal_uInt16 mnDocId;
49 private:
51 OUString maPath;
52 OUString maAuthor;
53 OUString maKeywords;
54 OUString maSubTitle;
56 Point maSubTitlePos;
59 #endif // TEMPLATEVIEWITEM_HXX
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */