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 _SRTDLG_HXX 28 #define _SRTDLG_HXX 29 30 #ifndef _FIXED_HXX 31 #include <vcl/fixed.hxx> 32 #endif 33 #ifndef _BUTTON_HXX 34 #include <vcl/button.hxx> 35 #endif 36 #ifndef _FIELD_HXX 37 #include <vcl/field.hxx> 38 #endif 39 #ifndef _LSTBOX_HXX 40 #include <vcl/lstbox.hxx> 41 #endif 42 #include <svx/stddlg.hxx> 43 #include <svx/langbox.hxx> 44 45 class SwWrtShell; 46 class CollatorRessource; 47 48 class SwSortDlg : public SvxStandardDialog 49 { 50 FixedText aColLbl; 51 FixedText aTypLbl; 52 FixedText aDirLbl; 53 54 FixedLine aSortFL; 55 56 CheckBox aKeyCB1; 57 NumericField aColEdt1; 58 ListBox aTypDLB1; 59 RadioButton aSortUpRB; 60 RadioButton aSortDnRB; 61 62 CheckBox aKeyCB2; 63 NumericField aColEdt2; 64 ListBox aTypDLB2; 65 RadioButton aSortUp2RB; 66 RadioButton aSortDn2RB; 67 68 CheckBox aKeyCB3; 69 NumericField aColEdt3; 70 ListBox aTypDLB3; 71 RadioButton aSortUp3RB; 72 RadioButton aSortDn3RB; 73 74 FixedLine aDirFL; 75 RadioButton aColumnRB; 76 RadioButton aRowRB; 77 78 FixedLine aDelimFL; 79 RadioButton aDelimTabRB; 80 RadioButton aDelimFreeRB; 81 Edit aDelimEdt; 82 PushButton aDelimPB; 83 84 FixedLine aLangFL; 85 SvxLanguageBox aLangLB; 86 87 FixedLine aSortOptFL; 88 CheckBox aCaseCB; 89 90 OKButton aOkBtn; 91 CancelButton aCancelBtn; 92 HelpButton aHelpBtn; 93 94 String aColTxt; 95 String aRowTxt; 96 String aNumericTxt; 97 98 SwWrtShell &rSh; 99 CollatorRessource* pColRes; 100 101 sal_uInt16 nX; 102 sal_uInt16 nY; 103 104 virtual void Apply(); 105 sal_Unicode GetDelimChar() const; 106 107 DECL_LINK( CheckHdl, CheckBox * ); 108 DECL_LINK( DelimHdl, RadioButton* ); 109 DECL_LINK( LanguageHdl, ListBox* ); 110 DECL_LINK( DelimCharHdl, PushButton* ); 111 112 public: 113 SwSortDlg(Window * pParent, SwWrtShell &rSh); 114 ~SwSortDlg(); 115 }; 116 117 #endif 118 119