1c45d927aSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3c45d927aSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4c45d927aSAndrew Rist * or more contributor license agreements. See the NOTICE file 5c45d927aSAndrew Rist * distributed with this work for additional information 6c45d927aSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7c45d927aSAndrew Rist * to you under the Apache License, Version 2.0 (the 8c45d927aSAndrew Rist * "License"); you may not use this file except in compliance 9c45d927aSAndrew Rist * with the License. You may obtain a copy of the License at 10c45d927aSAndrew Rist * 11c45d927aSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12c45d927aSAndrew Rist * 13c45d927aSAndrew Rist * Unless required by applicable law or agreed to in writing, 14c45d927aSAndrew Rist * software distributed under the License is distributed on an 15c45d927aSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16c45d927aSAndrew Rist * KIND, either express or implied. See the License for the 17c45d927aSAndrew Rist * specific language governing permissions and limitations 18c45d927aSAndrew Rist * under the License. 19c45d927aSAndrew Rist * 20c45d927aSAndrew Rist *************************************************************/ 21c45d927aSAndrew Rist 22c45d927aSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef SD_GRAPHIC_VIEW_SHELL_HXX 25cdf0e10cSrcweir #define SD_GRAPHIC_VIEW_SHELL_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include "DrawViewShell.hxx" 28cdf0e10cSrcweir 29cdf0e10cSrcweir class Window; 30cdf0e10cSrcweir 31cdf0e10cSrcweir namespace sd { 32cdf0e10cSrcweir 33cdf0e10cSrcweir /** View shell of the Draw application. 34cdf0e10cSrcweir 35cdf0e10cSrcweir <p>This class is an example of how not to do it: specialization by 36cdf0e10cSrcweir inheritance. A graphic view shell is similar to a draw view shell 37cdf0e10cSrcweir but lacks some of its features. Thus is should be at most a base 38cdf0e10cSrcweir class of DrawViewShell. There even is special case code in 39cdf0e10cSrcweir ViewShell that turns off some of the features for GraphicViewShell 40cdf0e10cSrcweir instances.</p> 41cdf0e10cSrcweir */ 42cdf0e10cSrcweir class GraphicViewShell 43cdf0e10cSrcweir : public DrawViewShell 44cdf0e10cSrcweir { 45cdf0e10cSrcweir public: 46cdf0e10cSrcweir TYPEINFO(); 47cdf0e10cSrcweir 48cdf0e10cSrcweir SFX_DECL_VIEWFACTORY(GraphicViewShell); 49cdf0e10cSrcweir SFX_DECL_INTERFACE(SD_IF_SDGRAPHICVIEWSHELL) 50cdf0e10cSrcweir 51cdf0e10cSrcweir /** Create a new view shell for the Draw application. 52cdf0e10cSrcweir @param rViewShellBase 53cdf0e10cSrcweir The new object will be stacked on this view shell base. 54cdf0e10cSrcweir @param pFrameView 55cdf0e10cSrcweir The frame view that makes it possible to pass information from 56cdf0e10cSrcweir one view shell to the next. 57cdf0e10cSrcweir */ 58cdf0e10cSrcweir GraphicViewShell ( 59cdf0e10cSrcweir SfxViewFrame* pFrame, 60cdf0e10cSrcweir ViewShellBase& rViewShellBase, 61cdf0e10cSrcweir ::Window* pParentWindow, 62cdf0e10cSrcweir FrameView* pFrameView = NULL); 63cdf0e10cSrcweir 64cdf0e10cSrcweir virtual ~GraphicViewShell (void); 65cdf0e10cSrcweir 66*30acf5e8Spfg /** This method is overloaded in order to have the layer mode always 67cdf0e10cSrcweir active. 68cdf0e10cSrcweir */ 69cdf0e10cSrcweir virtual void ChangeEditMode (EditMode eMode, bool bIsLayerModeActive); 70cdf0e10cSrcweir 71cdf0e10cSrcweir protected: 72cdf0e10cSrcweir void ConstructGraphicViewShell (void); 73cdf0e10cSrcweir virtual void ArrangeGUIElements (void); 74cdf0e10cSrcweir 75cdf0e10cSrcweir private: 76cdf0e10cSrcweir DECL_LINK(TabBarSplitHandler, TabBar*); 77cdf0e10cSrcweir }; 78cdf0e10cSrcweir 79cdf0e10cSrcweir } // end of namespace sd 80cdf0e10cSrcweir 81cdf0e10cSrcweir #endif 82