LCOV - code coverage report
Current view: top level - sw/source/core/uibase/inc - basesh.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 6 0.0 %
Date: 2014-04-14 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             : #ifndef INCLUDED_SW_SOURCE_UI_INC_BASESH_HXX
      20             : #define INCLUDED_SW_SOURCE_UI_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 asynch 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           0 :     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_STATIC_LINK(   SwBaseShell, InsertDBTextHdl, DBTextStruct_Impl* );
      63             : 
      64             :     void                InsertURLButton( const OUString& rURL, const OUString& rTarget, const OUString& rTxt );
      65             :     void                InsertTable( SfxRequest& _rRequest );
      66             : 
      67             : public:
      68             :     SwBaseShell(SwView &rShell);
      69             :     virtual     ~SwBaseShell();
      70             : 
      71           0 :     SFX_DECL_INTERFACE(SW_BASESHELL)
      72             :     TYPEINFO_OVERRIDE();
      73             : 
      74             :     void        ExecDelete(SfxRequest &);
      75             : 
      76             :     void        ExecClpbrd(SfxRequest &);
      77             :     void        StateClpbrd(SfxItemSet &);
      78             : 
      79             :     void        ExecUndo(SfxRequest &);
      80             :     void        StateUndo(SfxItemSet &);
      81             : 
      82             :     void        Execute(SfxRequest &);
      83             :     void        GetState(SfxItemSet &);
      84             :     void        StateStyle(SfxItemSet &);
      85             : 
      86             :     void        ExecuteGallery(SfxRequest&);
      87             :     void        GetGalleryState(SfxItemSet&);
      88             : 
      89             :     void        ExecDlg(SfxRequest &);
      90             : 
      91             :     void        StateStatusLine(SfxItemSet &rSet);
      92             :     void        ExecTxtCtrl(SfxRequest& rReq);
      93             :     void        GetTxtFontCtrlState(SfxItemSet& rSet);
      94             :     void        GetTxtCtrlState(SfxItemSet& rSet);
      95             :     void        GetBorderState(SfxItemSet &rSet);
      96             :     void        GetBckColState(SfxItemSet &rSet);
      97             : 
      98             :     void        ExecBckCol(SfxRequest& rReq);
      99             :     void        SetWrapMode( sal_uInt16 nSlot );
     100             : 
     101             :     void        StateDisableItems(SfxItemSet &);
     102             : 
     103             :     void        EditRegionDialog(SfxRequest& rReq);
     104             :     void        InsertRegionDialog(SfxRequest& rReq);
     105             : 
     106             :     void        ExecField(SfxRequest& rReq);
     107             : 
     108             :     static void    SetFrmMode( FlyMode eMode, SwWrtShell *pShell );  // with update!
     109           0 :     static void   _SetFrmMode( FlyMode eMode )   { eFrameMode = eMode; }
     110           0 :     static FlyMode  GetFrmMode()                 { return eFrameMode;  }
     111             : };
     112             : 
     113             : #endif
     114             : 
     115             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10