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 .
19 #ifndef INCLUDED_EXTENSIONS_SOURCE_SCANNER_SANEDLG_HXX
20 #define INCLUDED_EXTENSIONS_SOURCE_SCANNER_SANEDLG_HXX
22 #include <vcl/dialog.hxx>
23 #include <vcl/lstbox.hxx>
24 #include <vcl/button.hxx>
25 #include <vcl/fixed.hxx>
26 #include <vcl/group.hxx>
27 #include <vcl/field.hxx>
28 #include <vcl/edit.hxx>
29 #include <svtools/treelistbox.hxx>
35 class SaneDlg
: public ModalDialog
43 VclPtr
<OKButton
> mpOKButton
;
44 VclPtr
<CancelButton
> mpCancelButton
;
45 VclPtr
<PushButton
> mpDeviceInfoButton
;
46 VclPtr
<PushButton
> mpPreviewButton
;
47 VclPtr
<PushButton
> mpScanButton
;
48 VclPtr
<PushButton
> mpButtonOption
;
50 VclPtr
<FixedText
> mpOptionTitle
;
51 VclPtr
<FixedText
> mpOptionDescTxt
;
52 VclPtr
<FixedText
> mpVectorTxt
;
54 VclPtr
<MetricField
> mpLeftField
;
55 VclPtr
<MetricField
> mpTopField
;
56 VclPtr
<MetricField
> mpRightField
;
57 VclPtr
<MetricField
> mpBottomField
;
59 VclPtr
<ListBox
> mpDeviceBox
;
60 VclPtr
<NumericBox
> mpReslBox
;
61 VclPtr
<CheckBox
> mpAdvancedBox
;
63 VclPtr
<NumericField
> mpVectorBox
;
64 VclPtr
<ListBox
> mpQuantumRangeBox
;
65 VclPtr
<ListBox
> mpStringRangeBox
;
67 VclPtr
<CheckBox
> mpBoolCheckBox
;
69 VclPtr
<Edit
> mpStringEdit
;
70 VclPtr
<Edit
> mpNumericEdit
;
72 VclPtr
<SvTreeListBox
> mpOptionBox
;
74 VclPtr
<ScanPreview
> mpPreview
;
83 DECL_LINK( ClickBtnHdl
, Button
* );
84 DECL_LINK( SelectHdl
, ListBox
* );
85 DECL_LINK( ModifyHdl
, Edit
* );
86 DECL_LINK( ReloadSaneOptionsHdl
, Sane
* );
87 DECL_LINK( OptionsBoxSelectHdl
, SvTreeListBox
* );
94 void AcquirePreview();
96 void EstablishBoolOption();
97 void EstablishStringOption();
98 void EstablishStringRange();
99 void EstablishQuantumRange();
100 void EstablishNumericOption();
101 void EstablishButtonOption();
104 bool SetAdjustedNumericalValue( const char* pOption
, double fValue
, int nElement
= 0 );
106 SaneDlg( vcl::Window
*, Sane
&, bool );
108 virtual void dispose() SAL_OVERRIDE
;
110 virtual short Execute() SAL_OVERRIDE
;
111 void UpdateScanArea( bool );
112 bool getDoScan() { return doScan
;}
118 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */