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: padialog.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 ************************************************************************/
31 #ifndef _PAD_PADIALOG_HXX_
32 #define _PAD_PADIALOG_HXX_
33 #ifndef __SGI_STL_LIST
37 #include <rtl/ustring.hxx>
39 #include <vcl/dialog.hxx>
40 #include <tools/config.hxx>
41 #include <vcl/lstbox.hxx>
42 #ifndef _SV_BUTTON_HXX
43 #include <vcl/button.hxx>
45 #include <vcl/fixed.hxx>
46 #include <vcl/group.hxx>
47 #include <vcl/edit.hxx>
50 // forward declaration
51 namespace psp
{ class PrinterInfoManager
; }
56 class PADialog
: public ModalDialog
59 DelListBox m_aDevicesLB
;
61 PushButton m_aRenamePB
;
64 PushButton m_aTestPagePB
;
65 FixedLine m_aPrintersFL
;
66 FixedText m_aDriverTxt
;
68 FixedText m_aLocationTxt
;
69 FixedText m_aLocation
;
70 FixedText m_aCommandTxt
;
72 FixedText m_aCommentTxt
;
78 FixedLine m_aSepButtonFL
;
80 #ifndef FONTCONFIG_FONTS
81 PushButton m_aFontsPB
;
83 CancelButton m_aCancelButton
;
89 ::psp::PrinterInfoManager
& m_rPIManager
;
90 ::std::list
< ::rtl::OUString
> m_aPrinters
;
96 DECL_LINK( ClickBtnHdl
, PushButton
* );
97 DECL_LINK( DoubleClickHdl
, ListBox
* );
98 DECL_LINK( SelectHdl
, ListBox
* );
99 DECL_LINK( EndPrintHdl
, void* );
100 DECL_LINK( DelPressedHdl
, ListBox
* );
102 PADialog( Window
*, BOOL
);
110 void ConfigureDevice();
112 void PrintTestPage();
113 void updateSettings();
115 virtual long Notify( NotifyEvent
& rEv
);
116 virtual void DataChanged( const DataChangedEvent
& rEv
);
118 String
getSelectedDevice();
122 static PADialog
* Create( Window
*, BOOL
);