LCOV - code coverage report
Current view: top level - include/svx - swframeexample.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 8 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 9 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             : 
      20             : #ifndef INCLUDED_SVX_SWFRAMEEXAMPLE_HXX
      21             : #define INCLUDED_SVX_SWFRAMEEXAMPLE_HXX
      22             : 
      23             : #include <vcl/window.hxx>
      24             : #include <tools/color.hxx>
      25             : #include <tools/gen.hxx>
      26             : #include <svx/svxdllapi.h>
      27             : 
      28             : // class SwFrmPagePreview -------------------------------------------------------
      29             : 
      30           0 : class SVX_DLLPUBLIC SvxSwFrameExample : public vcl::Window
      31             : {
      32             :     Color       m_aTransColor;      // transparency
      33             :     Color       m_aBgCol;           // background
      34             :     Color       m_aFrameColor;      // graphic frame
      35             :     Color       m_aAlignColor;      // align anchor
      36             :     Color       m_aBorderCol;       // frame of doc
      37             :     Color       m_aPrintAreaCol;    // frame of printable area of doc
      38             :     Color       m_aTxtCol;          // symbolised text
      39             :     Color       m_aBlankCol;        // area of symbol for blank
      40             :     Color       m_aBlankFrameCol;   // frame of symbol for blank
      41             : 
      42             :     Rectangle   aPage;
      43             :     Rectangle   aPagePrtArea;
      44             :     Rectangle   aTextLine;
      45             :     Rectangle   aPara;
      46             :     Rectangle   aParaPrtArea;
      47             :     Rectangle   aFrameAtFrame;
      48             :     Rectangle   aDrawObj;
      49             :     Rectangle   aAutoCharFrame;
      50             :     Size        aFrmSize;
      51             : 
      52             :     short       nHAlign;
      53             :     short       nHRel;
      54             : 
      55             :     short       nVAlign;
      56             :     short       nVRel;
      57             : 
      58             :     short       nWrap;
      59             :     short       nAnchor;
      60             :     bool        bTrans;
      61             : 
      62             :     Point       aRelPos;
      63             : 
      64             :     void InitColors_Impl();
      65             :     void InitAllRects_Impl(vcl::RenderContext& rRenderContext);
      66             :     void CalcBoundRect_Impl(Rectangle &rRect);
      67             :     Rectangle DrawInnerFrame_Impl(vcl::RenderContext& rRenderContext, const Rectangle &rRect, const Color &rFillColor, const Color &rBorderColor);
      68             : 
      69             :     virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE;
      70             :     virtual Size GetOptimalSize() const SAL_OVERRIDE;
      71             : protected:
      72             :     virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
      73             : public:
      74             : 
      75             :     SvxSwFrameExample(vcl::Window* pParent, WinBits nStyle);
      76             : 
      77           0 :     inline void SetWrap(sal_uInt16 nW)          { nWrap     = nW; }
      78             : 
      79           0 :     inline void SetHAlign(short nH)          { nHAlign   = nH; }
      80           0 :     inline void SetHoriRel(short nR)         { nHRel     = nR; }
      81             : 
      82           0 :     inline void SetVAlign(short nV)          { nVAlign   = nV; }
      83           0 :     inline void SetVertRel(short nR)         { nVRel     = nR; }
      84             : 
      85           0 :     inline void SetTransparent(bool bT)      { bTrans    = bT; }
      86           0 :     inline void SetAnchor(short nA)          { nAnchor   = nA; }
      87             : 
      88             :     void SetRelPos(const Point& rP);
      89             : };
      90             : 
      91             : 
      92             : #endif // INCLUDED_SVX_SWFRAMEEXAMPLE_HXX
      93             : 
      94             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11