LCOV - code coverage report
Current view: top level - libreoffice/sfx2/inc/sfx2 - templateviewitem.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 0.0 %
Date: 2012-12-17 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             :  * 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);
      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 setSubTitle (const rtl::OUString &rTitle) { maSubTitle = rTitle; }
      36             : 
      37             :     const rtl::OUString& getSubTitle () const { return maSubTitle; }
      38             : 
      39             :     virtual void calculateItemsPosition (const long nThumbnailHeight, const long nDisplayHeight,
      40             :                                          const long nPadding, sal_uInt32 nMaxTextLenght,
      41             :                                          const ThumbnailItemAttributes *pAttrs);
      42             : 
      43             :     virtual void Paint (drawinglayer::processor2d::BaseProcessor2D *pProcessor,
      44             :                         const ThumbnailItemAttributes *pAttrs);
      45             : private:
      46             : 
      47             :     rtl::OUString maPath;
      48             :     rtl::OUString maAuthor;
      49             :     rtl::OUString maKeywords;
      50             :     rtl::OUString maSubTitle;
      51             : 
      52             :     Point maSubTitlePos;
      53             : };
      54             : 
      55             : #endif // TEMPLATEVIEWITEM_HXX
      56             : 
      57             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10