LCOV - code coverage report
Current view: top level - libreoffice/sd/source/ui/inc - GraphicViewShell.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 1 100.0 %
Date: 2012-12-27 Functions: 1 1 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 SD_GRAPHIC_VIEW_SHELL_HXX
      21             : #define SD_GRAPHIC_VIEW_SHELL_HXX
      22             : 
      23             : #include "DrawViewShell.hxx"
      24             : 
      25             : class Window;
      26             : 
      27             : namespace sd {
      28             : 
      29             : /** View shell of the Draw application.
      30             : 
      31             :     <p>This class is an example of how not to do it: specialization by
      32             :     inheritance.  A graphic view shell is similar to a draw view shell
      33             :     but lacks some of its features.  Thus is should be at most a base
      34             :     class of DrawViewShell.  There even is special case code in
      35             :     ViewShell that turns off some of the features for GraphicViewShell
      36             :     instances.</p>
      37             : */
      38             : class GraphicViewShell
      39             :     : public DrawViewShell
      40             : {
      41             : public:
      42             :     TYPEINFO();
      43             : 
      44             :     SFX_DECL_VIEWFACTORY(GraphicViewShell);
      45           6 :     SFX_DECL_INTERFACE(SD_IF_SDGRAPHICVIEWSHELL)
      46             : 
      47             :     /** Create a new view shell for the Draw application.
      48             :         @param rViewShellBase
      49             :             The new object will be stacked on this view shell base.
      50             :         @param pFrameView
      51             :             The frame view that makes it possible to pass information from
      52             :             one view shell to the next.
      53             :     */
      54             :     GraphicViewShell (
      55             :         SfxViewFrame* pFrame,
      56             :         ViewShellBase& rViewShellBase,
      57             :         ::Window* pParentWindow,
      58             :         FrameView* pFrameView = NULL);
      59             : 
      60             :     virtual ~GraphicViewShell (void);
      61             : 
      62             :     /** This method is overloaded in order to have the layer mode allways
      63             :         active.
      64             :     */
      65             :     virtual void ChangeEditMode (EditMode eMode, bool bIsLayerModeActive);
      66             : 
      67             : protected:
      68             :     void ConstructGraphicViewShell (void);
      69             :     virtual void ArrangeGUIElements (void);
      70             : 
      71             : private:
      72             :     DECL_LINK(TabBarSplitHandler, TabBar*);
      73             : };
      74             : 
      75             : } // end of namespace sd
      76             : 
      77             : #endif
      78             : 
      79             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10