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 _SVX_MULTIPAT_HXX 28 #define _SVX_MULTIPAT_HXX 29 30 // include --------------------------------------------------------------- 31 32 #include <vcl/dialog.hxx> 33 #include <vcl/lstbox.hxx> 34 #ifndef _SV_BUTTON_HXX 35 #include <vcl/button.hxx> 36 #endif 37 #include <vcl/fixed.hxx> 38 39 #include "radiobtnbox.hxx" 40 41 // define ---------------------------------------------------------------- 42 43 // different delimiter for Unix (:) and Windows (;) 44 45 #ifdef UNX 46 #define CLASSPATH_DELIMITER ':' 47 #else 48 #define CLASSPATH_DELIMITER ';' 49 #endif 50 51 // forward --------------------------------------------------------------- 52 53 struct MultiPath_Impl; 54 55 // class SvxMultiPathDialog ---------------------------------------------- 56 57 class SvxMultiPathDialog : public ModalDialog 58 { 59 protected: 60 FixedLine aPathFL; 61 ListBox aPathLB; 62 svx::SvxRadioButtonListBox aRadioLB; 63 FixedText aRadioFT; 64 PushButton aAddBtn; 65 PushButton aDelBtn; 66 OKButton aOKBtn; 67 CancelButton aCancelBtn; 68 HelpButton aHelpButton; 69 70 MultiPath_Impl* pImpl; 71 72 DECL_LINK( AddHdl_Impl, PushButton * ); 73 DECL_LINK( DelHdl_Impl, PushButton * ); 74 DECL_LINK( SelectHdl_Impl, void * ); 75 DECL_LINK( CheckHdl_Impl, svx::SvxRadioButtonListBox * ); 76 77 public: 78 SvxMultiPathDialog( Window* pParent, sal_Bool bEmptyAllowed = sal_False ); 79 ~SvxMultiPathDialog(); 80 81 String GetPath() const; 82 void SetPath( const String& rPath ); 83 void SetClassPathMode(); 84 sal_Bool IsClassPathMode() const; 85 void EnableRadioButtonMode(); 86 }; 87 88 #endif // #ifndef _SVX_MULTIPAT_HXX 89 90