LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sfx2/source/control - templatesearchview.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 19 5.3 %
Date: 2013-07-09 Functions: 2 6 33.3 %
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             : #include "templatesearchview.hxx"
      11             : 
      12             : #include "templatesearchviewitem.hxx"
      13             : 
      14           0 : TemplateSearchView::TemplateSearchView (Window *pParent, WinBits nWinStyle)
      15           0 :     : ThumbnailView(pParent,nWinStyle)
      16             : {
      17           0 : }
      18             : 
      19           0 : TemplateSearchView::~TemplateSearchView ()
      20             : {
      21           0 : }
      22             : 
      23           0 : void TemplateSearchView::AppendItem(sal_uInt16 nAssocItemId, sal_uInt16 nRegionId, sal_uInt16 nIdx,
      24             :                                     const OUString &rTitle, const OUString &rSubtitle,
      25             :                                     const OUString &rPath,
      26             :                                     const BitmapEx &rImage)
      27             : {
      28           0 :     TemplateSearchViewItem *pItem = new TemplateSearchViewItem(*this);
      29           0 :     pItem->mnId = getNextItemId();
      30           0 :     pItem->mnAssocId = nAssocItemId;
      31           0 :     pItem->mnDocId = nIdx;
      32           0 :     pItem->mnRegionId = nRegionId;
      33           0 :     pItem->maPreview1 = rImage;
      34           0 :     pItem->maTitle = rTitle;
      35           0 :     pItem->setSubTitle(rSubtitle);
      36           0 :     pItem->setPath(rPath);
      37           0 :     pItem->setSelectClickHdl(LINK(this,ThumbnailView,OnItemSelected));
      38             : 
      39           0 :     ThumbnailView::AppendItem(pItem);
      40             : 
      41           0 :     CalculateItemPositions();
      42         408 : }
      43             : 
      44             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
      45             : 
      46             : 

Generated by: LCOV version 1.10