1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef SD_PRES_LAYOUT_DLG_HXX 29 #define SD_PRES_LAYOUT_DLG_HXX 30 31 #include <vcl/dialog.hxx> 32 #ifndef _SV_BUTTON_HXX //autogen 33 #include <vcl/button.hxx> 34 #endif 35 #include <vcl/fixed.hxx> 36 #include <svtools/valueset.hxx> 37 38 class SfxItemSet; 39 40 namespace sd { 41 class DrawDocShell; 42 class ViewShell; 43 } 44 45 46 47 class SdPresLayoutDlg 48 : public ModalDialog 49 { 50 public: 51 SdPresLayoutDlg( 52 ::sd::DrawDocShell* pDocShell, 53 ::sd::ViewShell* pViewShell, 54 ::Window* pWindow, 55 const SfxItemSet& rInAttrs); 56 57 virtual ~SdPresLayoutDlg (void); 58 59 void GetAttr(SfxItemSet& rOutAttrs); 60 61 DECL_LINK(ClickLayoutHdl, void *); 62 DECL_LINK(ClickLoadHdl, void *); 63 64 private: 65 ::sd::DrawDocShell* mpDocSh; 66 ::sd::ViewShell* mpViewSh; 67 FixedText maFtLayout; 68 ValueSet maVS; 69 OKButton maBtnOK; 70 CancelButton maBtnCancel; 71 HelpButton maBtnHelp; 72 CheckBox maCbxMasterPage; 73 CheckBox maCbxCheckMasters; 74 PushButton maBtnLoad; 75 76 const SfxItemSet& mrOutAttrs; 77 78 List* mpLayoutNames; 79 80 String maName; // Layoutname oder Dateiname 81 long mnLayoutCount; // Anzahl, der im Dokument vorhandenen MasterPages 82 const String maStrNone; 83 84 void FillValueSet(); 85 void Reset(); 86 }; 87 88 #endif 89 90