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 #ifndef _SD_MASTERLAYOUT_DIALOG_HXX 24 #define _SD_MASTERLAYOUT_DIALOG_HXX 25 26 #include <vcl/dialog.hxx> 27 28 #ifndef _SV_BUTTON_HXX //autogen 29 #include <vcl/button.hxx> 30 #endif 31 #include <vcl/fixed.hxx> 32 33 #include "sdpage.hxx" 34 35 class SdDrawDocument; 36 37 namespace sd 38 { 39 40 class MasterLayoutDialog : public ModalDialog 41 { 42 private: 43 SdDrawDocument* mpDoc; 44 SdPage* mpCurrentPage; 45 46 FixedLine maFLPlaceholders; 47 CheckBox maCBDate; 48 CheckBox maCBPageNumber; 49 CheckBox maCBHeader; 50 CheckBox maCBFooter; 51 52 OKButton maPBOK; 53 CancelButton maPBCancel; 54 55 sal_Bool mbOldHeader; 56 sal_Bool mbOldFooter; 57 sal_Bool mbOldDate; 58 sal_Bool mbOldPageNumber; 59 60 void applyChanges(); 61 void remove( PresObjKind eKind ); 62 void create( PresObjKind eKind ); 63 64 public: 65 MasterLayoutDialog( Window* pParent, SdDrawDocument* pDoc, SdPage* pCurrentPage ); 66 ~MasterLayoutDialog(); 67 68 virtual short Execute(); 69 }; 70 71 } 72 73 #endif // _SD_MASTERLAYOUT_DIALOG_HXX 74 75