Version 4.0.2.1, tag libreoffice-4.0.2.1
[LibreOffice.git] / padmin / source / cmddlg.hxx
blob70f57377fee5de00263b2ce075c0c0e5e0770df6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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_COMMANDDLG_HXX_
21 #define _PAD_COMMANDDLG_HXX_
23 #include <vcl/dialog.hxx>
24 #include <vcl/button.hxx>
25 #include <vcl/fixed.hxx>
26 #include <vcl/group.hxx>
27 #include <vcl/combobox.hxx>
28 #include <vcl/lstbox.hxx>
29 #include <vcl/field.hxx>
30 #include <vcl/tabpage.hxx>
32 #include <list>
34 namespace padmin {
36 class RTSDialog;
38 class CommandStore
40 static void getStoredCommands( const char* pGroup, ::std::list< String >& rCommands );
41 static void getSystemPrintCommands( ::std::list< String >& rCommands );
42 static void getSystemPdfCommands( ::std::list< String >& rCommands );
43 static void setCommands( const char* pGroup, const ::std::list< String >& rCommands, const ::std::list< String >& rSysCommands );
45 public:
46 static void getPrintCommands( ::std::list< String >& rCommands );
47 static void getFaxCommands( ::std::list< String >& rCommands );
48 static void getPdfCommands( ::std::list< String >& rCommands );
50 static void setPrintCommands( const ::std::list< String >& rCommands );
51 static void setFaxCommands( const ::std::list< String >& rCommands );
52 static void setPdfCommands( const ::std::list< String >& rCommands );
55 class RTSCommandPage : public TabPage
57 private:
58 RTSDialog* m_pParent;
60 ComboBox m_aCommandsCB;
61 CheckBox m_aExternalCB;
62 FixedText m_aQuickFT;
63 ComboBox m_aQuickCB;
64 FixedLine m_aCommandTitle;
65 FixedText m_aPrinterName;
66 FixedText m_aConnectedTo;
67 FixedLine m_aPrinterFL;
69 FixedText m_aConfigureText;
70 ListBox m_aConfigureBox;
71 sal_uInt16 m_nPrinterEntry;
72 sal_uInt16 m_nFaxEntry;
73 sal_uInt16 m_nPdfEntry;
74 FixedText m_aPdfDirectoryText;
75 PushButton m_aPdfDirectoryButton;
76 Edit m_aPdfDirectoryEdit;
77 CheckBox m_aFaxSwallowBox;
79 PushButton m_aHelpButton;
80 PushButton m_aRemovePB;
82 ::std::list< String > m_aPrinterCommands;
83 ::std::list< String > m_aFaxCommands;
84 ::std::list< String > m_aPdfCommands;
86 String m_aFaxHelp;
87 String m_aPrinterHelp;
88 String m_aPdfHelp;
90 bool m_bWasFax;
91 bool m_bWasPdf;
92 bool m_bWasExternalDialog;
94 DECL_LINK( DoubleClickHdl, ComboBox* );
95 DECL_LINK( ClickBtnHdl, Button* );
96 DECL_LINK( SelectHdl, Control* );
97 DECL_LINK( ModifyHdl, Edit* );
99 void ConnectCommand();
100 void UpdateCommands();
102 public:
103 RTSCommandPage( RTSDialog* );
104 ~RTSCommandPage();
106 void save();
109 } // namespace
111 #endif
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */