LCOV - code coverage report
Current view: top level - include/sfx2 - StylePreviewRenderer.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 5 0.0 %
Date: 2015-06-13 12:38:46 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             :  * 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_STYLEPREVIEWRENDERER_HXX
      11             : #define INCLUDED_SFX2_STYLEPREVIEWRENDERER_HXX
      12             : 
      13             : #include <sfx2/dllapi.h>
      14             : #include <vcl/outdev.hxx>
      15             : #include <rsc/rscsfx.hxx>
      16             : #include <svl/style.hxx>
      17             : #include <sfx2/objsh.hxx>
      18             : 
      19             : namespace sfx2
      20             : {
      21             : 
      22             : class SFX2_DLLPUBLIC StylePreviewRenderer
      23             : {
      24             : protected:
      25             :     const SfxObjectShell& mrShell;
      26             :     OutputDevice& mrOutputDev;
      27             :     SfxStyleSheetBase* mpStyle;
      28             :     long mnMaxHeight;
      29             : 
      30             : public:
      31           0 :     StylePreviewRenderer(const SfxObjectShell& rShell,
      32             :                          OutputDevice& rOutputDev,
      33             :                          SfxStyleSheetBase* pStyle,
      34             :                          long nMaxHeight = 32)
      35             :         : mrShell(rShell)
      36             :         , mrOutputDev(rOutputDev)
      37             :         , mpStyle(pStyle)
      38           0 :         , mnMaxHeight(nMaxHeight)
      39           0 :     {}
      40             : 
      41           0 :     virtual ~StylePreviewRenderer()
      42           0 :     {}
      43             : 
      44             :     virtual bool recalculate() = 0;
      45             :     virtual Size getRenderSize() = 0;
      46             :     virtual bool render(const Rectangle& aRectangle) = 0;
      47             : };
      48             : 
      49             : } // end namespace sfx2
      50             : 
      51             : #endif // INCLUDED_SVX_STYLEPREVIEWRENDERER_HXX
      52             : 
      53             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11