update credits
[LibreOffice.git] / padmin / source / padialog.hxx
blobbb058cb72473efedf5265d2a67b83d1997aa9504
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef _PAD_PADIALOG_HXX_
21 #define _PAD_PADIALOG_HXX_
22 #include <list>
23 #include <rtl/ustring.hxx>
24 #include <vcl/dialog.hxx>
25 #include <vcl/lstbox.hxx>
26 #include <vcl/button.hxx>
27 #include <vcl/fixed.hxx>
28 #include <vcl/group.hxx>
29 #include <vcl/edit.hxx>
30 #include <helper.hxx>
32 // forward declaration
33 namespace psp { class PrinterInfoManager; }
35 namespace padmin {
37 class SPA_DLLPUBLIC PADialog : public ModalDialog
39 private:
40 DelListBox m_aDevicesLB;
41 PushButton m_aConfPB;
42 PushButton m_aRenamePB;
43 PushButton m_aStdPB;
44 PushButton m_aRemPB;
45 PushButton m_aTestPagePB;
46 FixedLine m_aPrintersFL;
47 FixedText m_aDriverTxt;
48 FixedText m_aDriver;
49 FixedText m_aLocationTxt;
50 FixedText m_aLocation;
51 FixedText m_aCommandTxt;
52 FixedText m_aCommand;
53 FixedText m_aCommentTxt;
54 FixedText m_aComment;
56 FixedLine m_aCUPSFL;
57 CheckBox m_aCUPSCB;
59 FixedLine m_aSepButtonFL;
60 PushButton m_aAddPB;
61 CancelButton m_aCancelButton;
63 String m_aDefPrt;
64 String m_aRenameStr;
66 ::psp::PrinterInfoManager& m_rPIManager;
67 ::std::list< OUString > m_aPrinters;
69 Image m_aPrinterImg;
70 Image m_aFaxImg;
71 Image m_aPdfImg;
73 DECL_LINK( ClickBtnHdl, PushButton* );
74 DECL_LINK( DoubleClickHdl, ListBox* );
75 DECL_LINK( SelectHdl, ListBox* );
76 DECL_LINK( DelPressedHdl, ListBox* );
78 PADialog( Window*, sal_Bool );
79 void Init();
81 void UpdateDefPrt();
82 void UpdateText();
83 void UpdateDevice();
84 void AddDevice();
85 void RemDevice();
86 void ConfigureDevice();
87 void RenameDevice();
88 void PrintTestPage();
89 void updateSettings();
91 virtual long Notify( NotifyEvent& rEv );
92 virtual void DataChanged( const DataChangedEvent& rEv );
94 String getSelectedDevice();
95 public:
96 ~PADialog();
98 static PADialog* Create( Window*, sal_Bool );
101 } // namespace
103 #endif
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */