LCOV - code coverage report
Current view: top level - sw/source/uibase/inc - colex.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 17 0.0 %
Date: 2015-06-13 12:38:46 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_UIBASE_INC_COLEX_HXX
      20             : #define INCLUDED_SW_SOURCE_UIBASE_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(vcl::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(vcl::RenderContext& rRenderContext,
      51             :                           const Point& rPoint,
      52             :                           const bool bSecond,
      53             :                           const bool bEnabled) SAL_OVERRIDE;
      54             : public:
      55           0 :     SwPageGridExample(vcl::Window* pPar)
      56             :         : SwPageExample(pPar)
      57             :         , pGridItem(0)
      58           0 :         , m_bVertical(false)
      59           0 :     {}
      60             : 
      61             :     virtual ~SwPageGridExample();
      62             :     virtual void dispose() SAL_OVERRIDE;
      63             :     void UpdateExample( const SfxItemSet& rSet );
      64             : };
      65             : 
      66           0 : class SW_DLLPUBLIC SwColExample : public SwPageExample
      67             : {
      68             :     SwColMgr*   pColMgr;
      69             : 
      70             :     using SwPageExample::UpdateExample;
      71             : 
      72             : protected:
      73             :     virtual void DrawPage(vcl::RenderContext& rRenderContext,
      74             :                           const Point& rPoint,
      75             :                           const bool bSecond,
      76             :                           const bool bEnabled) SAL_OVERRIDE;
      77             : 
      78             : public:
      79           0 :     SwColExample(vcl::Window* pPar)
      80             :         : SwPageExample(pPar)
      81           0 :         , pColMgr(0)
      82             :     {
      83           0 :     }
      84             : 
      85           0 :     void UpdateExample( const SfxItemSet& rSet, SwColMgr* pMgr  )
      86             :     {
      87           0 :         pColMgr = pMgr;
      88           0 :         SwPageExample::UpdateExample(rSet);
      89           0 :     }
      90             : };
      91             : 
      92           0 : class SW_DLLPUBLIC SwColumnOnlyExample : public vcl::Window
      93             : {
      94             : private:
      95             :     Size        m_aWinSize;
      96             : 
      97             :     Size        m_aFrmSize;
      98             :     SwFormatCol    m_aCols;
      99             : 
     100             : protected:
     101             :     virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE;
     102             : 
     103             : public:
     104             :     SwColumnOnlyExample(vcl::Window*);
     105             : 
     106             :     void        SetColumns(const SwFormatCol& rCol);
     107             : 
     108             :     virtual Size GetOptimalSize() const SAL_OVERRIDE;
     109             : };
     110             : 
     111             : #endif // INCLUDED_SW_SOURCE_UIBASE_INC_COLEX_HXX
     112             : 
     113             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11