update dev300-m58
[ooovba.git] / padmin / source / cmddlg.hxx
blob39326f6f3560d72250d1935b912c2e983108eb65
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: cmddlg.hxx,v $
10 * $Revision: 1.6 $
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>
38 #endif
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>
46 #include <list>
48 namespace padmin {
50 class RTSDialog;
52 class CommandStore
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 );
59 public:
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
71 private:
72 RTSDialog* m_pParent;
74 ComboBox m_aCommandsCB;
75 CheckBox m_aExternalCB;
76 FixedText m_aQuickFT;
77 ComboBox m_aQuickCB;
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;
86 USHORT m_nFaxEntry;
87 USHORT m_nPdfEntry;
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;
100 String m_aFaxHelp;
101 String m_aPrinterHelp;
102 String m_aPdfHelp;
104 bool m_bWasFax;
105 bool m_bWasPdf;
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();
116 public:
117 RTSCommandPage( RTSDialog* );
118 ~RTSCommandPage();
120 void save();
123 } // namespace
125 #endif