xref: /aoo41x/main/padmin/source/newppdlg.hxx (revision 23e9c6ca)
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 
24 #ifndef _PAD_NEWPPDLG_HXX_
25 #define _PAD_NEWPPDLG_HXX_
26 
27 #include <vcl/dialog.hxx>
28 #ifndef _SV_BUTTON_HXX
29 #include <vcl/button.hxx>
30 #endif
31 #include <vcl/combobox.hxx>
32 #include <vcl/lstbox.hxx>
33 #include <vcl/fixed.hxx>
34 #include <vcl/group.hxx>
35 
36 namespace psp { class PPDParser; }
37 
38 namespace padmin {
39 
40 	class PPDImportDialog : public ModalDialog
41 	{
42 		OKButton			m_aOKBtn;
43 		CancelButton		m_aCancelBtn;
44 		FixedText			m_aPathTxt;
45 		ComboBox			m_aPathBox;
46 		PushButton			m_aSearchBtn;
47 		FixedText			m_aDriverTxt;
48 		MultiListBox		m_aDriverLB;
49 
50 		FixedLine			m_aPathGroup;
51 		FixedLine			m_aDriverGroup;
52 
53 		String				m_aLoadingPPD;
54 
55 		DECL_LINK( ClickBtnHdl, PushButton* );
56 		DECL_LINK( SelectHdl, ComboBox* );
57 		DECL_LINK( ModifyHdl, ComboBox* );
58 
59 		void Import();
60 
61         std::list< rtl::OUString >  m_aImportedFiles;
62 	public:
63 		PPDImportDialog( Window* pParent );
64 		~PPDImportDialog();
65 
getImportedFiles() const66         const std::list< rtl::OUString >& getImportedFiles() const
67         { return m_aImportedFiles; }
68 	};
69 
70 } // namespace
71 
72 #endif // _NEWPPDLG_HXX
73