1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_
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>
32 // forward declaration
33 namespace psp
{ class PrinterInfoManager
; }
37 class SPA_DLLPUBLIC PADialog
: public ModalDialog
40 DelListBox m_aDevicesLB
;
42 PushButton m_aRenamePB
;
45 PushButton m_aTestPagePB
;
46 FixedLine m_aPrintersFL
;
47 FixedText m_aDriverTxt
;
49 FixedText m_aLocationTxt
;
50 FixedText m_aLocation
;
51 FixedText m_aCommandTxt
;
53 FixedText m_aCommentTxt
;
59 FixedLine m_aSepButtonFL
;
61 CancelButton m_aCancelButton
;
66 ::psp::PrinterInfoManager
& m_rPIManager
;
67 ::std::list
< OUString
> m_aPrinters
;
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
);
86 void ConfigureDevice();
89 void updateSettings();
91 virtual long Notify( NotifyEvent
& rEv
);
92 virtual void DataChanged( const DataChangedEvent
& rEv
);
94 String
getSelectedDevice();
98 static PADialog
* Create( Window
*, sal_Bool
);
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */