xref: /AOO41X/main/padmin/source/cmddlg.hxx (revision 23e9c6ca8a88572e85d00ef2448f2333808607a0)
1*23e9c6caSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*23e9c6caSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*23e9c6caSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*23e9c6caSAndrew Rist  * distributed with this work for additional information
6*23e9c6caSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*23e9c6caSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*23e9c6caSAndrew Rist  * "License"); you may not use this file except in compliance
9*23e9c6caSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*23e9c6caSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*23e9c6caSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*23e9c6caSAndrew Rist  * software distributed under the License is distributed on an
15*23e9c6caSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*23e9c6caSAndrew Rist  * KIND, either express or implied.  See the License for the
17*23e9c6caSAndrew Rist  * specific language governing permissions and limitations
18*23e9c6caSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*23e9c6caSAndrew Rist  *************************************************************/
21*23e9c6caSAndrew Rist 
22*23e9c6caSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _PAD_COMMANDDLG_HXX_
25cdf0e10cSrcweir #define _PAD_COMMANDDLG_HXX_
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <vcl/dialog.hxx>
28cdf0e10cSrcweir #include <tools/config.hxx>
29cdf0e10cSrcweir #ifndef _SV_BUTTON_HXX
30cdf0e10cSrcweir #include <vcl/button.hxx>
31cdf0e10cSrcweir #endif
32cdf0e10cSrcweir #include <vcl/fixed.hxx>
33cdf0e10cSrcweir #include <vcl/group.hxx>
34cdf0e10cSrcweir #include <vcl/combobox.hxx>
35cdf0e10cSrcweir #include <vcl/lstbox.hxx>
36cdf0e10cSrcweir #include <vcl/field.hxx>
37cdf0e10cSrcweir #include <vcl/tabpage.hxx>
38cdf0e10cSrcweir 
39cdf0e10cSrcweir #include <list>
40cdf0e10cSrcweir 
41cdf0e10cSrcweir namespace padmin {
42cdf0e10cSrcweir 
43cdf0e10cSrcweir class RTSDialog;
44cdf0e10cSrcweir 
45cdf0e10cSrcweir class CommandStore
46cdf0e10cSrcweir {
47cdf0e10cSrcweir 	static void getStoredCommands( const char* pGroup, ::std::list< String >& rCommands );
48cdf0e10cSrcweir 	static void getSystemPrintCommands( ::std::list< String >& rCommands );
49cdf0e10cSrcweir 	static void getSystemPdfCommands( ::std::list< String >& rCommands );
50cdf0e10cSrcweir 	static void setCommands( const char* pGroup, const ::std::list< String >& rCommands, const ::std::list< String >& rSysCommands );
51cdf0e10cSrcweir 
52cdf0e10cSrcweir public:
53cdf0e10cSrcweir 	static void getPrintCommands( ::std::list< String >& rCommands );
54cdf0e10cSrcweir 	static void getFaxCommands( ::std::list< String >& rCommands );
55cdf0e10cSrcweir 	static void getPdfCommands( ::std::list< String >& rCommands );
56cdf0e10cSrcweir 
57cdf0e10cSrcweir 	static void setPrintCommands( const ::std::list< String >& rCommands );
58cdf0e10cSrcweir 	static void setFaxCommands( const ::std::list< String >& rCommands );
59cdf0e10cSrcweir 	static void setPdfCommands( const ::std::list< String >& rCommands );
60cdf0e10cSrcweir };
61cdf0e10cSrcweir 
62cdf0e10cSrcweir class RTSCommandPage : public TabPage
63cdf0e10cSrcweir {
64cdf0e10cSrcweir private:
65cdf0e10cSrcweir 	RTSDialog*						m_pParent;
66cdf0e10cSrcweir 
67cdf0e10cSrcweir 	ComboBox     					m_aCommandsCB;
68cdf0e10cSrcweir     CheckBox                        m_aExternalCB;
69cdf0e10cSrcweir     FixedText                       m_aQuickFT;
70cdf0e10cSrcweir     ComboBox                        m_aQuickCB;
71cdf0e10cSrcweir 	FixedLine     					m_aCommandTitle;
72cdf0e10cSrcweir 	FixedText    					m_aPrinterName;
73cdf0e10cSrcweir 	FixedText    					m_aConnectedTo;
74cdf0e10cSrcweir 	FixedLine     					m_aPrinterFL;
75cdf0e10cSrcweir 
76cdf0e10cSrcweir 	FixedText						m_aConfigureText;
77cdf0e10cSrcweir 	ListBox							m_aConfigureBox;
78cdf0e10cSrcweir 	sal_uInt16							m_nPrinterEntry;
79cdf0e10cSrcweir 	sal_uInt16							m_nFaxEntry;
80cdf0e10cSrcweir 	sal_uInt16							m_nPdfEntry;
81cdf0e10cSrcweir 	FixedText						m_aPdfDirectoryText;
82cdf0e10cSrcweir 	PushButton						m_aPdfDirectoryButton;
83cdf0e10cSrcweir 	Edit							m_aPdfDirectoryEdit;
84cdf0e10cSrcweir 	CheckBox						m_aFaxSwallowBox;
85cdf0e10cSrcweir 
86cdf0e10cSrcweir 	PushButton						m_aHelpButton;
87cdf0e10cSrcweir 	PushButton						m_aRemovePB;
88cdf0e10cSrcweir 
89cdf0e10cSrcweir 	::std::list< String >			m_aPrinterCommands;
90cdf0e10cSrcweir 	::std::list< String >			m_aFaxCommands;
91cdf0e10cSrcweir 	::std::list< String >			m_aPdfCommands;
92cdf0e10cSrcweir 
93cdf0e10cSrcweir 	String							m_aFaxHelp;
94cdf0e10cSrcweir 	String							m_aPrinterHelp;
95cdf0e10cSrcweir 	String							m_aPdfHelp;
96cdf0e10cSrcweir 
97cdf0e10cSrcweir 	bool							m_bWasFax;
98cdf0e10cSrcweir 	bool							m_bWasPdf;
99cdf0e10cSrcweir     bool                            m_bWasExternalDialog;
100cdf0e10cSrcweir 
101cdf0e10cSrcweir 	DECL_LINK( DoubleClickHdl, ComboBox* );
102cdf0e10cSrcweir 	DECL_LINK( ClickBtnHdl, Button* );
103cdf0e10cSrcweir 	DECL_LINK( SelectHdl, Control* );
104cdf0e10cSrcweir 	DECL_LINK( ModifyHdl, Edit* );
105cdf0e10cSrcweir 
106cdf0e10cSrcweir 	void ConnectCommand();
107cdf0e10cSrcweir 	void UpdateCommands();
108cdf0e10cSrcweir 
109cdf0e10cSrcweir public:
110cdf0e10cSrcweir 	RTSCommandPage( RTSDialog* );
111cdf0e10cSrcweir 	~RTSCommandPage();
112cdf0e10cSrcweir 
113cdf0e10cSrcweir 	void save();
114cdf0e10cSrcweir };
115cdf0e10cSrcweir 
116cdf0e10cSrcweir } // namespace
117cdf0e10cSrcweir 
118cdf0e10cSrcweir #endif
119