LCOV - code coverage report
Current view: top level - include/sfx2 - templateviewitem.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 3 0.0 %
Date: 2014-04-14 Functions: 0 3 0.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.10