LCOV - code coverage report
Current view: top level - sfx2/inc/sfx2 - templateview.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 6 0.0 %
Date: 2012-08-25 Functions: 0 6 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           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 TEMPLATEVIEW_HXX
      11                 :            : #define TEMPLATEVIEW_HXX
      12                 :            : 
      13                 :            : #include <sfx2/templateproperties.hxx>
      14                 :            : #include <sfx2/thumbnailview.hxx>
      15                 :            : #include <vcl/image.hxx>
      16                 :            : 
      17                 :            : class Edit;
      18                 :            : class TemplateViewItem;
      19                 :            : 
      20                 :            : class TemplateView : public ThumbnailView
      21                 :            : {
      22                 :            : public:
      23                 :            : 
      24                 :            :     TemplateView (Window *pParent);
      25                 :            : 
      26                 :            :     virtual ~TemplateView ();
      27                 :            : 
      28                 :          0 :     void setId (const sal_uInt16 nId) { mnId = nId; }
      29                 :            : 
      30                 :          0 :     sal_uInt16 getId () const { return mnId; }
      31                 :            : 
      32                 :            :     void setName (const OUString &rName);
      33                 :            : 
      34                 :          0 :     const OUString& getName () const { return maName; }
      35                 :            : 
      36                 :            :     virtual void Paint (const Rectangle &rRect);
      37                 :            : 
      38                 :            :     void InsertItems (const std::vector<TemplateItemProperties> &rTemplates);
      39                 :            : 
      40                 :          0 :     void setDblClickHdl (const Link &rLink) { maDblClickHdl = rLink; }
      41                 :            : 
      42                 :          0 :     void setChangeNameHdl (const Link &rLink) { maChangeNameHdl = rLink; }
      43                 :            : 
      44                 :          0 :     void setCloseHdl (const Link &rLink) { maCloseHdl = rLink; }
      45                 :            : 
      46                 :            : protected:
      47                 :            : 
      48                 :            :     virtual void Resize ();
      49                 :            : 
      50                 :            :     virtual void MouseButtonDown (const MouseEvent &rMEvt);
      51                 :            : 
      52                 :            :     virtual void OnItemDblClicked (ThumbnailViewItem *pItem);
      53                 :            : 
      54                 :            :     DECL_LINK (ChangeNameHdl, void*);
      55                 :            : 
      56                 :            : private:
      57                 :            : 
      58                 :            :     Image maCloseImg;
      59                 :            :     bool mbRenderTitle;
      60                 :            :     sal_uInt16 mnId;
      61                 :            :     OUString maName;
      62                 :            :     Link maDblClickHdl;
      63                 :            :     Link maChangeNameHdl;
      64                 :            :     Link maCloseHdl;
      65                 :            : 
      66                 :            :     Edit *mpEditName;
      67                 :            : };
      68                 :            : 
      69                 :            : #endif // TEMPLATEVIEW_HXX
      70                 :            : 
      71                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
      72                 :            : 

Generated by: LCOV version 1.10