LCOV - code coverage report
Current view: top level - include/vcl - decoview.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 0.0 %
Date: 2014-04-14 Functions: 0 1 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_VCL_DECOVIEW_HXX
      21             : #define INCLUDED_VCL_DECOVIEW_HXX
      22             : 
      23             : #include <vcl/dllapi.h>
      24             : #include <rsc/rsc-vcl-shared-types.hxx>
      25             : 
      26             : class Rectangle;
      27             : class Point;
      28             : class Color;
      29             : class OutputDevice;
      30             : 
      31             : // Flags for DrawSymbol()
      32             : #define SYMBOL_DRAW_MONO                    ((sal_uInt16)0x0001)
      33             : #define SYMBOL_DRAW_DISABLE                 ((sal_uInt16)0x0002)
      34             : 
      35             : // Flags for DrawFrame()
      36             : #define FRAME_DRAW_IN                       ((sal_uInt16)0x0001)
      37             : #define FRAME_DRAW_OUT                      ((sal_uInt16)0x0002)
      38             : #define FRAME_DRAW_GROUP                    ((sal_uInt16)0x0003)
      39             : #define FRAME_DRAW_DOUBLEIN                 ((sal_uInt16)0x0004)
      40             : #define FRAME_DRAW_DOUBLEOUT                ((sal_uInt16)0x0005)
      41             : #define FRAME_DRAW_NWF                      ((sal_uInt16)0x0006)
      42             : #define FRAME_DRAW_MENU                     ((sal_uInt16)0x0010)
      43             : #define FRAME_DRAW_WINDOWBORDER             ((sal_uInt16)0x0020)
      44             : #define FRAME_DRAW_BORDERWINDOWBORDER       ((sal_uInt16)0x0040)
      45             : #define FRAME_DRAW_MONO                     ((sal_uInt16)0x1000)
      46             : #define FRAME_DRAW_NODRAW                   ((sal_uInt16)0x8000)
      47             : #define FRAME_DRAW_STYLE                    ((sal_uInt16)0x000F)
      48             : 
      49             : // Flags for DrawHighlightFrame()
      50             : #define FRAME_HIGHLIGHT_IN                  ((sal_uInt16)0x0001)
      51             : #define FRAME_HIGHLIGHT_OUT                 ((sal_uInt16)0x0002)
      52             : #define FRAME_HIGHLIGHT_TESTBACKGROUND      ((sal_uInt16)0x4000)
      53             : #define FRAME_HIGHLIGHT_STYLE               ((sal_uInt16)0x000F)
      54             : 
      55             : // Flags for DrawButton()
      56             : #define BUTTON_DRAW_DEFAULT                 ((sal_uInt16)0x0001)
      57             : #define BUTTON_DRAW_NOLIGHTBORDER           ((sal_uInt16)0x0002)
      58             : #define BUTTON_DRAW_PRESSED                 ((sal_uInt16)0x0004)
      59             : #define BUTTON_DRAW_CHECKED                 ((sal_uInt16)0x0008)
      60             : #define BUTTON_DRAW_DONTKNOW                ((sal_uInt16)0x0010)
      61             : #define BUTTON_DRAW_MONO                    ((sal_uInt16)0x0020)
      62             : #define BUTTON_DRAW_NOFILL                  ((sal_uInt16)0x0040)
      63             : #define BUTTON_DRAW_DISABLED                ((sal_uInt16)0x0080)
      64             : #define BUTTON_DRAW_HIGHLIGHT               ((sal_uInt16)0x0100)
      65             : #define BUTTON_DRAW_FLAT                    ((sal_uInt16)0x0200)
      66             : #define BUTTON_DRAW_NOLEFTLIGHTBORDER       ((sal_uInt16)0x1000)
      67             : #define BUTTON_DRAW_NOTEXT                  ((sal_uInt16)0x2000)
      68             : #define BUTTON_DRAW_NOIMAGE                 ((sal_uInt16)0x4000)
      69             : 
      70             : class VCL_DLLPUBLIC DecorationView
      71             : {
      72             : private:
      73             :     OutputDevice*       mpOutDev;
      74             : 
      75             : public:
      76           0 :                         DecorationView( OutputDevice* pOutDev )
      77           0 :                             { mpOutDev = pOutDev; }
      78             : 
      79             :     void                DrawSymbol( const Rectangle& rRect, SymbolType eType,
      80             :                                     const Color& rColor, sal_uInt16 nStyle = 0 );
      81             :     void                DrawFrame( const Rectangle& rRect,
      82             :                                    const Color& rLeftTopColor,
      83             :                                    const Color& rRightBottomColor );
      84             :     void                DrawHighlightFrame( const Rectangle& rRect,
      85             :                                             sal_uInt16 nStyle = FRAME_HIGHLIGHT_OUT );
      86             :     Rectangle           DrawFrame( const Rectangle& rRect, sal_uInt16 nStyle = FRAME_DRAW_OUT );
      87             :     Rectangle           DrawButton( const Rectangle& rRect, sal_uInt16 nStyle );
      88             :     void                DrawSeparator( const Point& rStart, const Point& rStop, bool bVertical = true );
      89             : };
      90             : 
      91             : #endif // INCLUDED_VCL_DECOVIEW_HXX
      92             : 
      93             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10