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: cmddlg.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_COMMANDDLG_HXX_
32 #define _PAD_COMMANDDLG_HXX_
34 #include <vcl/dialog.hxx>
35 #include <tools/config.hxx>
36 #ifndef _SV_BUTTON_HXX
37 #include <vcl/button.hxx>
39 #include <vcl/fixed.hxx>
40 #include <vcl/group.hxx>
41 #include <vcl/combobox.hxx>
42 #include <vcl/lstbox.hxx>
43 #include <vcl/field.hxx>
44 #include <vcl/tabpage.hxx>
54 static void getStoredCommands( const char* pGroup
, ::std::list
< String
>& rCommands
);
55 static void getSystemPrintCommands( ::std::list
< String
>& rCommands
);
56 static void getSystemPdfCommands( ::std::list
< String
>& rCommands
);
57 static void setCommands( const char* pGroup
, const ::std::list
< String
>& rCommands
, const ::std::list
< String
>& rSysCommands
);
60 static void getPrintCommands( ::std::list
< String
>& rCommands
);
61 static void getFaxCommands( ::std::list
< String
>& rCommands
);
62 static void getPdfCommands( ::std::list
< String
>& rCommands
);
64 static void setPrintCommands( const ::std::list
< String
>& rCommands
);
65 static void setFaxCommands( const ::std::list
< String
>& rCommands
);
66 static void setPdfCommands( const ::std::list
< String
>& rCommands
);
69 class RTSCommandPage
: public TabPage
74 ComboBox m_aCommandsCB
;
75 CheckBox m_aExternalCB
;
78 FixedLine m_aCommandTitle
;
79 FixedText m_aPrinterName
;
80 FixedText m_aConnectedTo
;
81 FixedLine m_aPrinterFL
;
83 FixedText m_aConfigureText
;
84 ListBox m_aConfigureBox
;
85 USHORT m_nPrinterEntry
;
88 FixedText m_aPdfDirectoryText
;
89 PushButton m_aPdfDirectoryButton
;
90 Edit m_aPdfDirectoryEdit
;
91 CheckBox m_aFaxSwallowBox
;
93 PushButton m_aHelpButton
;
94 PushButton m_aRemovePB
;
96 ::std::list
< String
> m_aPrinterCommands
;
97 ::std::list
< String
> m_aFaxCommands
;
98 ::std::list
< String
> m_aPdfCommands
;
101 String m_aPrinterHelp
;
106 bool m_bWasExternalDialog
;
108 DECL_LINK( DoubleClickHdl
, ComboBox
* );
109 DECL_LINK( ClickBtnHdl
, Button
* );
110 DECL_LINK( SelectHdl
, Control
* );
111 DECL_LINK( ModifyHdl
, Edit
* );
113 void ConnectCommand();
114 void UpdateCommands();
117 RTSCommandPage( RTSDialog
* );