1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: multipat.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SVX_MULTIPAT_HXX
31 #define _SVX_MULTIPAT_HXX
33 // include ---------------------------------------------------------------
35 #include <vcl/dialog.hxx>
36 #include <vcl/lstbox.hxx>
37 #ifndef _SV_BUTTON_HXX
38 #include <vcl/button.hxx>
40 #include <vcl/fixed.hxx>
42 #include "radiobtnbox.hxx"
44 // define ----------------------------------------------------------------
46 // different delimiter for Unix (:) and Windows (;)
49 #define CLASSPATH_DELIMITER ':'
51 #define CLASSPATH_DELIMITER ';'
54 // forward ---------------------------------------------------------------
56 struct MultiPath_Impl
;
58 // class SvxMultiPathDialog ----------------------------------------------
60 class SvxMultiPathDialog
: public ModalDialog
65 svx::SvxRadioButtonListBox aRadioLB
;
70 CancelButton aCancelBtn
;
71 HelpButton aHelpButton
;
73 MultiPath_Impl
* pImpl
;
75 DECL_LINK( AddHdl_Impl
, PushButton
* );
76 DECL_LINK( DelHdl_Impl
, PushButton
* );
77 DECL_LINK( SelectHdl_Impl
, void * );
78 DECL_LINK( CheckHdl_Impl
, svx::SvxRadioButtonListBox
* );
81 SvxMultiPathDialog( Window
* pParent
, BOOL bEmptyAllowed
= FALSE
);
82 ~SvxMultiPathDialog();
84 String
GetPath() const;
85 void SetPath( const String
& rPath
);
86 void SetClassPathMode();
87 sal_Bool
IsClassPathMode() const;
88 void EnableRadioButtonMode();
91 #endif // #ifndef _SVX_MULTIPAT_HXX