LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sc/inc - userdat.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 3 8 37.5 %
Date: 2013-07-09 Functions: 5 10 50.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 SC_USERDAT_HXX
      21             : #define SC_USERDAT_HXX
      22             : 
      23             : #include <svx/svdobj.hxx>
      24             : #include <svtools/imap.hxx>
      25             : #include "global.hxx"
      26             : #include "address.hxx"
      27             : 
      28             : 
      29             : //-------------------------------------------------------------------------
      30             : 
      31             : #define SC_DRAWLAYER 0x30334353     // Inventor: "SC30"
      32             : 
      33             : // Object-Ids fuer UserData
      34             : #define SC_UD_OBJDATA       1
      35             : #define SC_UD_IMAPDATA      2
      36             : #define SC_UD_MACRODATA     3
      37             : #define SC_UD_ALTOBJDATA    4
      38             : 
      39             : //-------------------------------------------------------------------------
      40             : 
      41             : class ScDrawObjFactory
      42             : {
      43             :     DECL_LINK( MakeUserData, SdrObjFactory * );
      44             : public:
      45             :     ScDrawObjFactory();
      46             :    ~ScDrawObjFactory();
      47             : };
      48             : 
      49             : //-------------------------------------------------------------------------
      50             : 
      51         938 : class SC_DLLPUBLIC ScDrawObjData : public SdrObjUserData
      52             : {
      53             : public:
      54             :     enum Type { CellNote, ValidationCircle, DetectiveArrow, DrawingObject };
      55             : 
      56             :     ScAddress           maStart;
      57             :     ScAddress           maEnd;
      58             :     Point               maStartOffset;
      59             :     Point               maEndOffset;
      60             :     Type                meType;
      61             :     Rectangle           maLastRect;
      62             : 
      63             :     explicit            ScDrawObjData();
      64             : 
      65             : private:
      66             :      virtual ScDrawObjData* Clone( SdrObject* pObj ) const;
      67             : };
      68             : 
      69             : //-------------------------------------------------------------------------
      70             : 
      71             : class ScIMapInfo : public SdrObjUserData
      72             : {
      73             :     ImageMap        aImageMap;
      74             : 
      75             : public:
      76             :                     ScIMapInfo();
      77             :                     ScIMapInfo( const ImageMap& rImageMap );
      78             :                     ScIMapInfo( const ScIMapInfo& rIMapInfo );
      79             :     virtual         ~ScIMapInfo();
      80             : 
      81             :     virtual SdrObjUserData* Clone( SdrObject* pObj ) const;
      82             : 
      83           0 :     void    SetImageMap( const ImageMap& rIMap )    { aImageMap = rIMap; }
      84           0 :     const ImageMap& GetImageMap() const             { return aImageMap; }
      85             : };
      86             : 
      87             : //-------------------------------------------------------------------------
      88             : 
      89           0 : class ScMacroInfo : public SdrObjUserData
      90             : {
      91             : public:
      92             :                     ScMacroInfo();
      93             :     virtual         ~ScMacroInfo();
      94             : 
      95             :     virtual SdrObjUserData* Clone( SdrObject* pObj ) const;
      96             : 
      97           1 :     void            SetMacro( const OUString& rMacro ) { maMacro = rMacro; }
      98           0 :     const OUString& GetMacro() const { return maMacro; }
      99             : 
     100           1 :     void            SetHlink( const OUString& rHlink ) { maHlink = rHlink; }
     101           0 :     const OUString& GetHlink() const { return maHlink; }
     102             : 
     103             : private:
     104             :     OUString   maMacro;
     105             :     OUString   maHlink;
     106             : };
     107             : 
     108             : //-------------------------------------------------------------------------
     109             : 
     110             : #endif
     111             : 
     112             : 
     113             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10