LCOV - code coverage report
Current view: top level - sw/source/uibase/inc - basesh.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 2 4 50.0 %
Date: 2015-06-13 12:38:46 Functions: 2 4 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             : #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_BASESH_HXX
      20             : #define INCLUDED_SW_SOURCE_UIBASE_INC_BASESH_HXX
      21             : 
      22             : #include <shellid.hxx>
      23             : 
      24             : #include <tools/link.hxx>
      25             : #include <vcl/timer.hxx>
      26             : #include <sfx2/module.hxx>
      27             : #include <sfx2/shell.hxx>
      28             : #include <viewopt.hxx>
      29             : 
      30             : #include <mdiexp.hxx>
      31             : #include <set>
      32             : 
      33             : class SwWrtShell;
      34             : class SwView;
      35             : class SfxItemSet;
      36             : 
      37             : struct DBTextStruct_Impl;
      38             : class SwBaseShell: public SfxShell
      39             : {
      40             :     SwView      &rView;
      41             : 
      42             :     // DragMode
      43             :     static FlyMode eFrameMode;
      44             : 
      45             :     // Bug 75078 - if in GetState the async call of GetGraphic returns
      46             :     //              synch, the set the state directly into the itemset
      47             :     SfxItemSet*         pGetStateSet;
      48             : 
      49             :     // Update-Timer for graphic
      50             :     std::set<sal_uInt16> aGrfUpdateSlots;
      51             : 
      52             :     DECL_LINK( GraphicArrivedHdl, void* );
      53             : 
      54             : protected:
      55             :     SwWrtShell&         GetShell();
      56             :     SwWrtShell*         GetShellPtr();
      57             : 
      58       28970 :     inline SwView&      GetView()                       { return rView; }
      59           0 :     inline void         SetGetStateSet( SfxItemSet* p ) { pGetStateSet = p; }
      60           0 :     inline bool     AddGrfUpdateSlot( sal_uInt16 nSlot ){ return aGrfUpdateSlots.insert( nSlot ).second; }
      61             : 
      62             :     DECL_LINK(          InsertDBTextHdl, DBTextStruct_Impl* );
      63             : 
      64             :     void                InsertURLButton( const OUString& rURL, const OUString& rTarget, const OUString& rText );
      65             :     void                InsertTable( SfxRequest& _rRequest );
      66             : 
      67             : public:
      68             :     SwBaseShell(SwView &rShell);
      69             :     virtual     ~SwBaseShell();
      70             : 
      71          59 :     SFX_DECL_INTERFACE(SW_BASESHELL)
      72             :     TYPEINFO_OVERRIDE();
      73             : 
      74             : private:
      75             :     /// SfxInterface initializer.
      76             :     static void InitInterface_Impl();
      77             : 
      78             : public:
      79             :     void        ExecDelete(SfxRequest &);
      80             : 
      81             :     void        ExecClpbrd(SfxRequest &);
      82             :     void        StateClpbrd(SfxItemSet &);
      83             : 
      84             :     void        ExecUndo(SfxRequest &);
      85             :     void        StateUndo(SfxItemSet &);
      86             : 
      87             :     void        Execute(SfxRequest &);
      88             :     void        GetState(SfxItemSet &);
      89             :     void        StateStyle(SfxItemSet &);
      90             : 
      91             :     void        ExecuteGallery(SfxRequest&);
      92             :     void        GetGalleryState(SfxItemSet&);
      93             : 
      94             :     void        ExecDlg(SfxRequest &);
      95             : 
      96             :     void        StateStatusLine(SfxItemSet &rSet);
      97             :     void        ExecTextCtrl(SfxRequest& rReq);
      98             :     void        GetTextFontCtrlState(SfxItemSet& rSet);
      99             :     void        GetTextCtrlState(SfxItemSet& rSet);
     100             :     void        GetBorderState(SfxItemSet &rSet);
     101             :     void        GetBckColState(SfxItemSet &rSet);
     102             : 
     103             :     void        ExecBckCol(SfxRequest& rReq);
     104             :     void        SetWrapMode( sal_uInt16 nSlot );
     105             : 
     106             :     static void StateDisableItems(SfxItemSet &);
     107             : 
     108             :     void        EditRegionDialog(SfxRequest& rReq);
     109             :     void        InsertRegionDialog(SfxRequest& rReq);
     110             : 
     111             :     void        ExecField(SfxRequest& rReq);
     112             : 
     113             :     static void    SetFrmMode( FlyMode eMode, SwWrtShell *pShell );  // with update!
     114             :     static void   _SetFrmMode( FlyMode eMode )   { eFrameMode = eMode; }
     115             :     static FlyMode  GetFrmMode()                 { return eFrameMode;  }
     116             : };
     117             : 
     118             : #endif
     119             : 
     120             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11