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