LCOV - code coverage report
Current view: top level - include/sfx2 - recentdocsviewitem.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 1 0.0 %
Date: 2014-11-03 Functions: 0 2 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_RECENTDOCSVIEWITEM_HXX
      11             : #define INCLUDED_SFX2_RECENTDOCSVIEWITEM_HXX
      12             : 
      13             : #include <sfx2/thumbnailview.hxx>
      14             : 
      15           0 : class RecentDocsViewItem : public ThumbnailViewItem
      16             : {
      17             : public:
      18             :     RecentDocsViewItem(ThumbnailView &rView, const OUString &rURL,
      19             :         const OUString &rTitle, const BitmapEx& rThumbnail, sal_uInt16 nId);
      20             :     virtual void setEditTitle (bool edit, bool bChangeFocus = true) SAL_OVERRIDE;
      21             : 
      22             :     /** Updates own highlight status based on the aPoint position.
      23             : 
      24             :         Calls the ancestor's updateHighlight, and then takes care of m_bRemoveIconHighlighted.
      25             : 
      26             :         Returns rectangle that needs to be invalidated.
      27             :     */
      28             :     virtual Rectangle updateHighlight(bool bVisible, const Point& rPoint) SAL_OVERRIDE;
      29             : 
      30             :     /// Text to be used for the tooltip.
      31             :     virtual OUString getHelpText() const SAL_OVERRIDE;
      32             : 
      33             :     virtual void Paint(drawinglayer::processor2d::BaseProcessor2D *pProcessor,
      34             :                        const ThumbnailItemAttributes *pAttrs) SAL_OVERRIDE;
      35             : 
      36             :     virtual void MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE;
      37             : 
      38             :     /// Called when the user clicks a document - it will open it.
      39             :     void OpenDocument();
      40             : 
      41             : protected:
      42             :     /// Return area where is the icon to remove document from the recent documents.
      43             :     Rectangle getRemoveIconArea() const;
      44             : 
      45             : private:
      46             :     OUString maURL;
      47             : 
      48             :     OUString m_sHelpText;
      49             : 
      50             :     /// Is the icon that the user can click to remove the document from the recent documents highlighted?
      51             :     bool m_bRemoveIconHighlighted;
      52             : };
      53             : 
      54             : #endif // INCLUDED_SFX2_RECENTDOCSVIEWITEM_HXX
      55             : 
      56             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10