LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/inc - colex.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 20 0.0 %
Date: 2012-12-27 Functions: 0 11 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 _COLEX_HXX
      20             : #define _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, const ResId& rResId)
      35           0 :         : SvxPageWindow(pPar, rResId)
      36             :     {
      37           0 :         SetSize(SvxPaperInfo::GetPaperSize(PAPER_A4));
      38           0 :     }
      39             : 
      40           0 :     SwPageExample(Window* pPar)
      41           0 :         : SvxPageWindow(pPar)
      42             :     {
      43           0 :         SetSize(SvxPaperInfo::GetPaperSize(PAPER_A4));
      44           0 :     }
      45             : 
      46             :     void UpdateExample( const SfxItemSet& rSet );
      47             : };
      48             : 
      49             : class SwTextGridItem;
      50             : 
      51             : class SW_DLLPUBLIC SwPageGridExample : public SwPageExample
      52             : {
      53             :     SwTextGridItem*     pGridItem;
      54             :     sal_Bool            m_bVertical;
      55             : protected:
      56             :     virtual void DrawPage( const Point& rPoint,
      57             :                            const sal_Bool bSecond,
      58             :                            const sal_Bool bEnabled );
      59             : public:
      60           0 :     SwPageGridExample(Window* pPar, const ResId& rResId ) :
      61             :                                 SwPageExample(pPar, rResId ),
      62             :                                 pGridItem(0),
      63           0 :                                 m_bVertical(sal_False){}
      64             :     ~SwPageGridExample();
      65             :     void UpdateExample( const SfxItemSet& rSet );
      66             : };
      67             : 
      68           0 : class SW_DLLPUBLIC SwColExample : public SwPageExample
      69             : {
      70             :     SwColMgr*   pColMgr;
      71             : 
      72             :     using SwPageExample::UpdateExample;
      73             : 
      74             : protected:
      75             :     virtual void DrawPage( const Point& rPoint,
      76             :                            const sal_Bool bSecond,
      77             :                            const sal_Bool bEnabled );
      78             : 
      79             : public:
      80             :     SwColExample(Window* pPar, const ResId& rResId)
      81             :         : SwPageExample(pPar, rResId)
      82             :         , pColMgr(0)
      83             :     {
      84             :     }
      85             : 
      86           0 :     SwColExample(Window* pPar)
      87             :         : SwPageExample(pPar)
      88           0 :         , pColMgr(0)
      89             :     {
      90           0 :     }
      91             : 
      92           0 :     void UpdateExample( const SfxItemSet& rSet, SwColMgr* pMgr  )
      93             :     {
      94           0 :         pColMgr = pMgr;
      95           0 :         SwPageExample::UpdateExample(rSet);
      96           0 :     }
      97             : };
      98             : 
      99           0 : class SW_DLLPUBLIC SwColumnOnlyExample : public Window
     100             : {
     101             : private:
     102             :     Size        m_aWinSize;
     103             : 
     104             :     Size        m_aFrmSize;
     105             :     SwFmtCol    m_aCols;
     106             : 
     107             : protected:
     108             :     virtual void Paint( const Rectangle& rRect );
     109             : 
     110             : public:
     111             :     SwColumnOnlyExample(Window* , const ResId&);
     112             :     SwColumnOnlyExample(Window*);
     113             : 
     114             :     void        SetColumns(const SwFmtCol& rCol);
     115             : 
     116             :     virtual Size GetOptimalSize(WindowSizeType eType) const;
     117             : };
     118             : 
     119             : #endif // _COLEX_HXX
     120             : 
     121             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10