LCOV - code coverage report
Current view: top level - sw/source/core/uibase/inc - colex.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 16 0.0 %
Date: 2014-04-14 Functions: 0 10 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             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : #ifndef INCLUDED_SW_SOURCE_UI_INC_COLEX_HXX
      20             : #define INCLUDED_SW_SOURCE_UI_INC_COLEX_HXX
      21             : 
      22             : #include <svx/pagectrl.hxx>
      23             : #include <editeng/paperinf.hxx>
      24             : #include "swdllapi.h"
      25             : #include <fmtclds.hxx>
      26             : #include "frmatr.hxx"
      27             : 
      28             : class SwColMgr;
      29             : class SfxItemSet;
      30             : 
      31           0 : class SW_DLLPUBLIC SwPageExample : public SvxPageWindow
      32             : {
      33             : public:
      34           0 :     SwPageExample(Window* pPar)
      35           0 :         : SvxPageWindow(pPar)
      36             :     {
      37           0 :         SetSize(SvxPaperInfo::GetPaperSize(PAPER_A4));
      38           0 :     }
      39             : 
      40             :     void UpdateExample( const SfxItemSet& rSet );
      41             : };
      42             : 
      43             : class SwTextGridItem;
      44             : 
      45             : class SW_DLLPUBLIC SwPageGridExample : public SwPageExample
      46             : {
      47             :     SwTextGridItem*     pGridItem;
      48             :     bool            m_bVertical;
      49             : protected:
      50             :     virtual void DrawPage( const Point& rPoint,
      51             :                            const bool bSecond,
      52             :                            const bool bEnabled ) SAL_OVERRIDE;
      53             : public:
      54           0 :     SwPageGridExample(Window* pPar) :
      55             :                                 SwPageExample(pPar),
      56             :                                 pGridItem(0),
      57           0 :                                 m_bVertical(false){}
      58             : 
      59             :     virtual ~SwPageGridExample();
      60             :     void UpdateExample( const SfxItemSet& rSet );
      61             : };
      62             : 
      63           0 : class SW_DLLPUBLIC SwColExample : public SwPageExample
      64             : {
      65             :     SwColMgr*   pColMgr;
      66             : 
      67             :     using SwPageExample::UpdateExample;
      68             : 
      69             : protected:
      70             :     virtual void DrawPage( const Point& rPoint,
      71             :                            const bool bSecond,
      72             :                            const bool bEnabled ) SAL_OVERRIDE;
      73             : 
      74             : public:
      75           0 :     SwColExample(Window* pPar)
      76             :         : SwPageExample(pPar)
      77           0 :         , pColMgr(0)
      78             :     {
      79           0 :     }
      80             : 
      81           0 :     void UpdateExample( const SfxItemSet& rSet, SwColMgr* pMgr  )
      82             :     {
      83           0 :         pColMgr = pMgr;
      84           0 :         SwPageExample::UpdateExample(rSet);
      85           0 :     }
      86             : };
      87             : 
      88           0 : class SW_DLLPUBLIC SwColumnOnlyExample : public Window
      89             : {
      90             : private:
      91             :     Size        m_aWinSize;
      92             : 
      93             :     Size        m_aFrmSize;
      94             :     SwFmtCol    m_aCols;
      95             : 
      96             : protected:
      97             :     virtual void Paint( const Rectangle& rRect ) SAL_OVERRIDE;
      98             : 
      99             : public:
     100             :     SwColumnOnlyExample(Window*);
     101             : 
     102             :     void        SetColumns(const SwFmtCol& rCol);
     103             : 
     104             :     virtual Size GetOptimalSize() const SAL_OVERRIDE;
     105             : };
     106             : 
     107             : #endif // INCLUDED_SW_SOURCE_UI_INC_COLEX_HXX
     108             : 
     109             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10