LCOV - code coverage report
Current view: top level - libreoffice/sfx2/inc/sfx2 - templateview.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 5 0.0 %
Date: 2012-12-17 Functions: 0 5 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 TEMPLATEVIEW_HXX
      11             : #define TEMPLATEVIEW_HXX
      12             : 
      13             : #include <sfx2/templateproperties.hxx>
      14             : #include <sfx2/thumbnailview.hxx>
      15             : #include <vcl/button.hxx>
      16             : #include <vcl/fixed.hxx>
      17             : 
      18             : class Edit;
      19             : class TemplateViewItem;
      20             : 
      21             : class TemplateView : public ThumbnailView
      22             : {
      23             : public:
      24             : 
      25             :     TemplateView (Window *pParent);
      26             : 
      27             :     virtual ~TemplateView ();
      28             : 
      29           0 :     void setId (const sal_uInt16 nId) { mnId = nId; }
      30             : 
      31           0 :     sal_uInt16 getId () const { return mnId; }
      32             : 
      33             :     void setName (const OUString &rName);
      34             : 
      35           0 :     const OUString& getName () const { return maName; }
      36             : 
      37             :     void InsertItems (const std::vector<TemplateItemProperties> &rTemplates);
      38             : 
      39           0 :     void setDblClickHdl (const Link &rLink) { maDblClickHdl = rLink; }
      40             : 
      41           0 :     void setCloseHdl (const Link &rLink) { maAllButton.SetClickHdl(rLink); }
      42             : 
      43             : protected:
      44             : 
      45             :     virtual void Resize ();
      46             : 
      47             :     virtual void OnItemDblClicked (ThumbnailViewItem *pItem);
      48             : 
      49             : private:
      50             : 
      51             :     Control    maButtons;
      52             :     PushButton maAllButton;
      53             :     FixedText  maFTName;
      54             :     sal_uInt16 mnId;
      55             :     OUString maName;
      56             :     Link maDblClickHdl;
      57             : };
      58             : 
      59             : #endif // TEMPLATEVIEW_HXX
      60             : 
      61             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
      62             : 

Generated by: LCOV version 1.10