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 #ifndef SCUI_AUTOFMT_HXX 28 #define SCUI_AUTOFMT_HXX 29 #include "autofmt.hxx" 30 31 class ScAutoFormatDlg : public ModalDialog 32 { 33 public: 34 ScAutoFormatDlg( Window* pParent, 35 ScAutoFormat* pAutoFormat, 36 const ScAutoFormatData* pSelFormatData, 37 ScDocument* pDoc ); 38 ~ScAutoFormatDlg(); 39 40 sal_uInt16 GetIndex() const { return nIndex; } 41 String GetCurrFormatName(); 42 43 private: 44 FixedLine aFlFormat; 45 ListBox aLbFormat; 46 ScAutoFmtPreview* pWndPreview; 47 OKButton aBtnOk; 48 CancelButton aBtnCancel; 49 HelpButton aBtnHelp; 50 PushButton aBtnAdd; 51 PushButton aBtnRemove; 52 MoreButton aBtnMore; 53 FixedLine aFlFormatting; 54 CheckBox aBtnNumFormat; 55 CheckBox aBtnBorder; 56 CheckBox aBtnFont; 57 CheckBox aBtnPattern; 58 CheckBox aBtnAlignment; 59 CheckBox aBtnAdjust; 60 PushButton aBtnRename; 61 String aStrTitle; 62 String aStrLabel; 63 String aStrClose; 64 String aStrDelTitle; 65 String aStrDelMsg; 66 String aStrRename; 67 68 //------------------------ 69 ScAutoFormat* pFormat; 70 const ScAutoFormatData* pSelFmtData; 71 sal_uInt16 nIndex; 72 sal_Bool bCoreDataChanged; 73 sal_Bool bFmtInserted; 74 75 void Init (); 76 void UpdateChecks (); 77 //------------------------ 78 DECL_LINK( CheckHdl, Button * ); 79 DECL_LINK( AddHdl, void * ); 80 DECL_LINK( RemoveHdl, void * ); 81 DECL_LINK( SelFmtHdl, void * ); 82 DECL_LINK( CloseHdl, PushButton * ); 83 DECL_LINK( DblClkHdl, void * ); 84 DECL_LINK( RenameHdl, void *); 85 86 }; 87 #endif 88 89