1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef SD_FU_PAGE_HXX 25 #define SD_FU_PAGE_HXX 26 27 #include "fupoor.hxx" 28 29 class SfxItemSet; 30 class SdBackgroundObjUndoAction; 31 class SdPage; 32 33 namespace sd { 34 class DrawViewShell; 35 36 class FuPage 37 : public FuPoor 38 { 39 public: 40 TYPEINFO(); 41 42 static FunctionReference Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq ); 43 virtual void DoExecute( SfxRequest& rReq ); 44 45 virtual void Activate(); // Function aktivieren 46 virtual void Deactivate(); // Function deaktivieren 47 48 const SfxItemSet* ExecuteDialog( Window* pParent ); 49 50 protected: 51 virtual ~FuPage (void); 52 53 private: 54 FuPage ( 55 ViewShell* pViewSh, 56 ::sd::Window* pWin, 57 ::sd::View* pView, 58 SdDrawDocument* pDoc, 59 SfxRequest& rReq ); 60 61 void ApplyItemSet( const SfxItemSet* pArgs ); 62 63 SfxRequest& mrReq; 64 const SfxItemSet* mpArgs; 65 SdBackgroundObjUndoAction* mpBackgroundObjUndoAction; 66 Size maSize; 67 bool mbPageBckgrdDeleted; 68 bool mbMasterPage; 69 bool mbDisplayBackgroundTabPage; 70 SdPage* mpPage; 71 DrawViewShell* mpDrawViewShell; 72 }; 73 74 } // end of namespace sd 75 76 #endif 77 78