LCOV - code coverage report
Current view: top level - sc/inc - hints.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 27 0.0 %
Date: 2014-04-14 Functions: 0 27 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 SC_HINTS_HXX
      21             : #define SC_HINTS_HXX
      22             : 
      23             : #include "global.hxx"
      24             : #include "address.hxx"
      25             : #include <svl/hint.hxx>
      26             : 
      27             : class ScPaintHint : public SfxHint
      28             : {
      29             :     ScRange     aRange;
      30             :     sal_uInt16  nParts;
      31             :     bool        bPrint;     //  flag indicating whether print/preview if affected
      32             : 
      33             :     ScPaintHint(); // disabled
      34             : 
      35             : public:
      36             :                     TYPEINFO_OVERRIDE();
      37             :                     ScPaintHint( const ScRange& rRng, sal_uInt16 nPaint = PAINT_ALL );
      38             :                     virtual ~ScPaintHint();
      39             : 
      40           0 :     void            SetPrintFlag(bool bSet) { bPrint = bSet; }
      41             : 
      42             :     const ScRange&  GetRange() const        { return aRange; }
      43           0 :     SCCOL           GetStartCol() const     { return aRange.aStart.Col(); }
      44           0 :     SCROW           GetStartRow() const     { return aRange.aStart.Row(); }
      45           0 :     SCTAB           GetStartTab() const     { return aRange.aStart.Tab(); }
      46           0 :     SCCOL           GetEndCol() const       { return aRange.aEnd.Col(); }
      47           0 :     SCROW           GetEndRow() const       { return aRange.aEnd.Row(); }
      48           0 :     SCTAB           GetEndTab() const       { return aRange.aEnd.Tab(); }
      49           0 :     sal_uInt16      GetParts() const        { return nParts; }
      50           0 :     bool            GetPrintFlag() const    { return bPrint; }
      51             : };
      52             : 
      53             : class ScUpdateRefHint : public SfxHint
      54             : {
      55             :     UpdateRefMode   eUpdateRefMode;
      56             :     ScRange         aRange;
      57             :     SCsCOL          nDx;
      58             :     SCsROW          nDy;
      59             :     SCsTAB          nDz;
      60             : 
      61             : public:
      62             :                     TYPEINFO_OVERRIDE();
      63             : 
      64             :                     ScUpdateRefHint( UpdateRefMode eMode, const ScRange& rR,
      65             :                                         SCsCOL nX, SCsROW nY, SCsTAB nZ );
      66             :                     virtual ~ScUpdateRefHint();
      67             : 
      68           0 :     UpdateRefMode   GetMode() const         { return eUpdateRefMode; }
      69           0 :     const ScRange&  GetRange() const        { return aRange; }
      70           0 :     SCsCOL          GetDx() const           { return nDx; }
      71           0 :     SCsROW          GetDy() const           { return nDy; }
      72           0 :     SCsTAB          GetDz() const           { return nDz; }
      73             : };
      74             : 
      75             : #define SC_POINTERCHANGED_NUMFMT    1
      76             : 
      77             : class ScPointerChangedHint : public SfxHint
      78             : {
      79             :     sal_uInt16          nFlags;
      80             : 
      81             : public:
      82             :                     TYPEINFO_OVERRIDE();
      83             : 
      84             :                     virtual ~ScPointerChangedHint();
      85             : 
      86           0 :     sal_uInt16          GetFlags() const            { return nFlags; }
      87             : };
      88             : 
      89             : //! move ScLinkRefreshedHint to a different file?
      90             : 
      91             : #define SC_LINKREFTYPE_NONE     0
      92             : #define SC_LINKREFTYPE_SHEET    1
      93             : #define SC_LINKREFTYPE_AREA     2
      94             : #define SC_LINKREFTYPE_DDE      3
      95             : 
      96             : class ScLinkRefreshedHint : public SfxHint
      97             : {
      98             :     sal_uInt16  nLinkType;  // SC_LINKREFTYPE_...
      99             :     OUString    aUrl;       // used for sheet links
     100             :     OUString    aDdeAppl;   // used for dde links:
     101             :     OUString    aDdeTopic;
     102             :     OUString    aDdeItem;
     103             :     sal_uInt8   nDdeMode;
     104             :     ScAddress   aDestPos;   // used to identify area links
     105             :                             //! also use source data for area links?
     106             : 
     107             : public:
     108             :                     TYPEINFO_OVERRIDE();
     109             :                     ScLinkRefreshedHint();
     110             :                     virtual ~ScLinkRefreshedHint();
     111             : 
     112             :     void            SetSheetLink( const OUString& rSourceUrl );
     113             :     void            SetDdeLink( const OUString& rA, const OUString& rT, const OUString& rI, sal_uInt8 nM );
     114             :     void            SetAreaLink( const ScAddress& rPos );
     115             : 
     116           0 :     sal_uInt16          GetLinkType() const { return nLinkType; }
     117           0 :     const OUString&     GetUrl() const      { return aUrl; }
     118           0 :     const OUString&     GetDdeAppl() const  { return aDdeAppl; }
     119           0 :     const OUString&     GetDdeTopic() const { return aDdeTopic; }
     120           0 :     const OUString&     GetDdeItem() const  { return aDdeItem; }
     121             :     sal_uInt8           GetDdeMode() const  { return nDdeMode; }
     122           0 :     const ScAddress&    GetDestPos() const  { return aDestPos; }
     123             : };
     124             : 
     125             : //! move ScAutoStyleHint to a different file?
     126             : 
     127             : class ScAutoStyleHint : public SfxHint
     128             : {
     129             :     ScRange     aRange;
     130             :     OUString    aStyle1;
     131             :     OUString    aStyle2;
     132             :     sal_uLong   nTimeout;
     133             : 
     134             : public:
     135             :                     TYPEINFO_OVERRIDE();
     136             :                     ScAutoStyleHint( const ScRange& rR, const OUString& rSt1,
     137             :                                         sal_uLong nT, const OUString& rSt2 );
     138             :                     virtual ~ScAutoStyleHint();
     139             : 
     140           0 :     const ScRange&  GetRange() const    { return aRange; }
     141           0 :     const OUString& GetStyle1() const   { return aStyle1; }
     142           0 :     sal_uInt32      GetTimeout() const  { return nTimeout; }
     143           0 :     const OUString& GetStyle2() const   { return aStyle2; }
     144             : };
     145             : 
     146             : class ScDBRangeRefreshedHint : public SfxHint
     147             : {
     148             :     ScImportParam   aParam;
     149             : 
     150             : public:
     151             :                     TYPEINFO_OVERRIDE();
     152             :                     ScDBRangeRefreshedHint( const ScImportParam& rP );
     153             :                     virtual ~ScDBRangeRefreshedHint();
     154             : 
     155           0 :     const ScImportParam&  GetImportParam() const    { return aParam; }
     156             : };
     157             : 
     158             : class ScDataPilotModifiedHint : public SfxHint
     159             : {
     160             :     OUString        maName;
     161             : 
     162             : public:
     163             :                     TYPEINFO_OVERRIDE();
     164             :                     ScDataPilotModifiedHint( const OUString& rName );
     165             :                     virtual ~ScDataPilotModifiedHint();
     166             : 
     167           0 :     const OUString&   GetName() const { return maName; }
     168             : };
     169             : 
     170             : #endif
     171             : 
     172             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10