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