LCOV - code coverage report
Current view: top level - libreoffice/svx/source/table - tablehandles.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 4 0.0 %
Date: 2012-12-27 Functions: 0 6 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 _SVX_TABLEHANDLES_HXX
      21             : #define _SVX_TABLEHANDLES_HXX
      22             : 
      23             : #include <svx/sdr/overlay/overlayobject.hxx>
      24             : 
      25             : #include <svx/svdhdl.hxx>
      26             : 
      27             : // --------------------------------------------------------------------
      28             : 
      29             : namespace sdr { namespace table {
      30             : 
      31             : enum TableEdgeState { Empty, Invisible, Visible };
      32             : 
      33             : struct TableEdge
      34             : {
      35             :     sal_Int32 mnStart;
      36             :     sal_Int32 mnEnd;
      37             :     TableEdgeState meState;
      38             : 
      39           0 :     TableEdge() : mnStart(0), mnEnd(0), meState(Empty) {}
      40             : };
      41             : 
      42             : typedef std::vector< TableEdge > TableEdgeVector;
      43             : 
      44           0 : class TableEdgeHdl : public SdrHdl
      45             : {
      46             : public:
      47             :     TableEdgeHdl( const Point& rPnt, bool bHorizontal, sal_Int32 nMin, sal_Int32 nMax, sal_Int32 nEdges );
      48             : 
      49             :     sal_Int32 GetValidDragOffset( const SdrDragStat& rDrag ) const;
      50             : 
      51             :     virtual Pointer GetPointer() const;
      52             : 
      53             :     void SetEdge( sal_Int32 nEdge, sal_Int32 nStart, sal_Int32 nEnd, TableEdgeState nState );
      54             : 
      55           0 :     bool IsHorizontalEdge() const { return mbHorizontal; }
      56             : 
      57             :     basegfx::B2DPolyPolygon getSpecialDragPoly(const SdrDragStat& rDrag) const;
      58             :     void getPolyPolygon(basegfx::B2DPolyPolygon& rVisible, basegfx::B2DPolyPolygon& rInvisible, const SdrDragStat* pDrag) const;
      59             : 
      60             : protected:
      61             :     // create marker for this kind
      62             :     virtual void CreateB2dIAObject();
      63             : 
      64             : private:
      65             :     bool mbHorizontal;
      66             :     sal_Int32 mnMin, mnMax;
      67             :     TableEdgeVector maEdges;
      68             : };
      69             : 
      70           0 : class TableBorderHdl : public SdrHdl
      71             : {
      72             : public:
      73             :     TableBorderHdl( const Rectangle& rRect );
      74             : 
      75             :     virtual Pointer GetPointer() const;
      76             : 
      77             : protected:
      78             :     // create marker for this kind
      79             :     virtual void CreateB2dIAObject();
      80             : 
      81             : private:
      82             :     Rectangle maRectangle;
      83             : };
      84             : 
      85             : } // end of namespace table
      86             : } // end of namespace sdr
      87             : 
      88             : #endif
      89             : 
      90             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10