1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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>
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
);
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
60 ComboBox m_aCommandsCB
;
61 CheckBox m_aExternalCB
;
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
;
87 String m_aPrinterHelp
;
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();
103 RTSCommandPage( RTSDialog
* );
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */