LCOV - code coverage report
Current view: top level - sc/source/ui/inc - cellsh.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 3 3 100.0 %
Date: 2015-06-13 12:38:46 Functions: 2 2 100.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_SC_SOURCE_UI_INC_CELLSH_HXX
      21             : #define INCLUDED_SC_SOURCE_UI_INC_CELLSH_HXX
      22             : 
      23             : #include <sfx2/shell.hxx>
      24             : #include "shellids.hxx"
      25             : #include <sfx2/module.hxx>
      26             : #include <svx/svdmark.hxx>
      27             : #include <unotools/caserotate.hxx>
      28             : #include <tools/link.hxx>
      29             : #include "formatsh.hxx"
      30             : #include "address.hxx"
      31             : 
      32             : class SvxClipboardFormatItem;
      33             : class TransferableDataHelper;
      34             : class TransferableClipboardListener;
      35             : class AbstractScLinkedAreaDlg;
      36             : 
      37             : struct CellShell_Impl
      38             : {
      39             :     TransferableClipboardListener*  m_pClipEvtLstnr;
      40             :     AbstractScLinkedAreaDlg*        m_pLinkedDlg;
      41             :     SfxRequest*                     m_pRequest;
      42             : 
      43         348 :     CellShell_Impl() :
      44             :         m_pClipEvtLstnr( NULL ),
      45             :         m_pLinkedDlg( NULL ),
      46         348 :         m_pRequest( NULL ) {}
      47             : };
      48             : 
      49             : class ScCellShell: public ScFormatShell
      50             : {
      51             : private:
      52             :     CellShell_Impl* pImpl;
      53             :     bool            bPastePossible;
      54             : 
      55             :     void        GetPossibleClipboardFormats( SvxClipboardFormatItem& rFormats );
      56             :     void        ExecuteExternalSource(
      57             :                     const OUString& _rFile, const OUString& _rFilter, const OUString& _rOptions,
      58             :                     const OUString& _rSource, sal_uLong _nRefresh, SfxRequest& _rRequest );
      59             : 
      60             :     void ExecuteDataPilotDialog();
      61             :     void ExecuteXMLSourceDialog();
      62             :     void ExecuteSubtotals(SfxRequest& rReq);
      63             : 
      64             :     void ExecuteFillSingleEdit();
      65             : 
      66             :     DECL_LINK( ClipboardChanged, TransferableDataHelper* );
      67             :     DECL_LINK( DialogClosed, void* );
      68             : 
      69             :     RotateTransliteration m_aRotateCase;
      70             : 
      71             : public:
      72             :     TYPEINFO_OVERRIDE();
      73          52 :     SFX_DECL_INTERFACE(SCID_CELL_SHELL)
      74             : 
      75             : private:
      76             :     /// SfxInterface initializer.
      77             :     static void InitInterface_Impl();
      78             : 
      79             : public:
      80             :                 ScCellShell(ScViewData* pData);
      81             :     virtual     ~ScCellShell();
      82             : 
      83             :     void        Execute(SfxRequest &);
      84             :     void        GetState(SfxItemSet &);
      85             : 
      86             :     void        ExecuteEdit( SfxRequest& rReq );
      87             :     void        ExecuteTrans( SfxRequest& rReq );
      88             :     void                ExecuteRotateTrans( SfxRequest& rReq );
      89             : 
      90             :     void        GetBlockState( SfxItemSet& rSet );
      91             :     void        GetCellState( SfxItemSet& rSet );
      92             : 
      93             :     void        ExecuteDB( SfxRequest& rReq );
      94             :     void        GetDBState( SfxItemSet& rSet );
      95             : 
      96             :     void        ExecImageMap(SfxRequest& rReq);     // ImageMap
      97             :     void        GetImageMapState(SfxItemSet& rSet);
      98             : 
      99             :     void        GetClipState( SfxItemSet& rSet );
     100             :     void        GetHLinkState( SfxItemSet& rSet );
     101             : 
     102             :     void        ExecuteCursor( SfxRequest& rReq );
     103             :     void        ExecuteCursorSel( SfxRequest& rReq );
     104             :     void        ExecutePage( SfxRequest& rReq );
     105             :     void        ExecutePageSel( SfxRequest& rReq );
     106             :     void        ExecuteMove( SfxRequest& rReq );
     107             :     static void GetStateCursor( SfxItemSet& rSet );
     108             : };
     109             : 
     110             : #endif
     111             : 
     112             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11