LibreOffice Module extensions (master) 1
|
#include <sanedlg.hxx>
Public Member Functions | |
SaneDlg (weld::Window *, Sane &, bool) | |
virtual | ~SaneDlg () override |
virtual short | run () override |
void | UpdateScanArea (bool) |
bool | getDoScan () const |
Public Member Functions inherited from weld::GenericDialogController | |
GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false) | |
virtual Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () const |
virtual short | run () |
void | set_title (const OUString &rTitle) |
OUString | get_title () const |
void | set_help_id (const OUString &rHelpId) |
OUString | get_help_id () const |
void | response (int nResponse) |
virtual | ~DialogController () COVERITY_NOEXCEPT_FALSE |
Private Member Functions | |
DECL_LINK (ClickBtnHdl, weld::Button &, void) | |
DECL_LINK (ToggleBtnHdl, weld::Toggleable &, void) | |
DECL_LINK (SelectHdl, weld::ComboBox &, void) | |
DECL_LINK (ModifyHdl, weld::Entry &, void) | |
DECL_LINK (MetricValueModifyHdl, weld::MetricSpinButton &, void) | |
DECL_LINK (ValueModifyHdl, weld::ComboBox &, void) | |
DECL_LINK (ReloadSaneOptionsHdl, Sane &, void) | |
DECL_LINK (OptionsBoxSelectHdl, weld::TreeView &, void) | |
void | SaveState () |
bool | LoadState () |
void | InitDevices () |
void | InitFields () |
void | AcquirePreview () |
void | DisableOption () |
void | EstablishBoolOption () |
void | EstablishStringOption () |
void | EstablishStringRange () |
void | EstablishQuantumRange () |
void | EstablishNumericOption () |
void | EstablishButtonOption () |
bool | SetAdjustedNumericalValue (const char *pOption, double fValue, int nElement=0) |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::DialogController | |
static bool | runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &) |
Protected Attributes inherited from weld::GenericDialogController | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 28 of file sanedlg.hxx.
SaneDlg::SaneDlg | ( | weld::Window * | pParent, |
Sane & | rSane, | ||
bool | bScanEnabled | ||
) |
Definition at line 222 of file sanedlg.cxx.
References DisableOption(), Size::Height(), InitDevices(), InitFields(), Sane::IsSane(), LINK, maOldLink, mpParent, mrSane, mxAdvancedBox, mxBoolCheckBox, mxBottomField, mxButtonOption, mxCancelButton, mxDeviceBox, mxDeviceInfoButton, mxLeftField, mxNumericEdit, mxOptionBox, mxOptionTitle, mxPreview, mxPreviewButton, mxQuantumRangeBox, mxReslBox, mxRightField, mxScanButton, mxStringEdit, mxStringRangeBox, mxTopField, mxVectorBox, PIXEL, Sane::SetReloadOptionsHdl(), and Size::Width().
|
overridevirtual |
Definition at line 291 of file sanedlg.cxx.
References maOldLink, mrSane, and Sane::SetReloadOptionsHdl().
|
private |
Definition at line 862 of file sanedlg.cxx.
References Application::CreateMessageDialog(), Sane::GetOptionByName(), Sane::IsOpen(), weld::GenericDialogController::m_xDialog, mrSane, mxPreview, mxReslBox, RET_CANCEL, SAL_INFO, SetAdjustedNumericalValue(), Sane::SetOptionValue(), Sane::Start(), STREAM_SEEK_TO_BEGIN, and UpdateScanArea().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 952 of file sanedlg.cxx.
References mxBoolCheckBox, mxButtonOption, mxNumericEdit, mxOptionDescTxt, mxQuantumRangeBox, mxStringEdit, mxStringRangeBox, mxVectorBox, and mxVectorTxt.
Referenced by LoadState(), and SaneDlg().
|
private |
Definition at line 965 of file sanedlg.cxx.
References Sane::GetOptionName(), Sane::GetOptionValue(), mnCurrentOption, mrSane, and mxBoolCheckBox.
|
private |
Definition at line 1067 of file sanedlg.cxx.
References Sane::GetOptionName(), mnCurrentOption, mrSane, mxButtonOption, and mxOptionDescTxt.
|
private |
Definition at line 1043 of file sanedlg.cxx.
References Sane::GetOptionName(), Sane::GetOptionUnitName(), Sane::GetOptionValue(), mfMax, mfMin, mnCurrentOption, mrSane, mxNumericEdit, mxOptionDescTxt, and o3tl::sprintf().
Referenced by EstablishQuantumRange().
|
private |
Definition at line 1007 of file sanedlg.cxx.
References EstablishNumericOption(), Sane::GetOptionName(), Sane::GetOptionUnitName(), Sane::GetOptionValue(), Sane::GetRange(), i, mfMax, mfMin, mnCurrentElement, mnCurrentOption, mpRange, mrSane, mxOptionDescTxt, mxQuantumRangeBox, and o3tl::sprintf().
|
private |
Definition at line 978 of file sanedlg.cxx.
References Sane::GetOptionName(), Sane::GetOptionValue(), mnCurrentOption, mrSane, mxOptionDescTxt, and mxStringEdit.
|
private |
Definition at line 993 of file sanedlg.cxx.
References Sane::GetOptionName(), Sane::GetOptionValue(), Sane::GetStringConstraint(), i, mnCurrentOption, mrSane, mxOptionDescTxt, and mxStringRangeBox.
|
inline |
Definition at line 108 of file sanedlg.hxx.
References doScan.
Referenced by ScannerManager::configureScannerAndScan().
|
private |
Definition at line 319 of file sanedlg.cxx.
References Sane::Close(), Sane::CountDevices(), Sane::GetName(), i, Sane::IsOpen(), Sane::IsSane(), mrSane, mxDeviceBox, Sane::Open(), and Sane::ReloadDevices().
Referenced by SaneDlg().
|
private |
Definition at line 337 of file sanedlg.cxx.
References Sane::CountOptions(), weld::MetricSpinButton::get_max(), weld::MetricSpinButton::get_min(), Sane::GetOptionByName(), Sane::GetOptionCap(), Sane::GetOptionName(), Sane::GetOptionTitle(), Sane::GetOptionType(), Sane::GetOptionUnit(), Sane::GetOptionValue(), Sane::GetRange(), i, Sane::IsOpen(), Sane::IsSane(), mbScanEnabled, mrSane, mxAdvancedBox, mxBottomField, mxLeftField, mxOptionBox, mxPreview, mxReslBox, mxRightField, mxScanButton, mxTopField, n, nValue, PREVIEW_HEIGHT, PREVIEW_WIDTH, SAL_N_ELEMENTS, weld::MetricSpinButton::set_max(), weld::MetricSpinButton::set_min(), weld::MetricSpinButton::set_sensitive(), weld::MetricSpinButton::set_unit(), weld::MetricSpinButton::set_value(), Point::setX(), and Point::setY().
Referenced by LoadState(), and SaneDlg().
|
private |
Definition at line 1273 of file sanedlg.cxx.
References Sane::Close(), Sane::CountDevices(), DisableOption(), Config::GetKeyCount(), Config::GetKeyName(), Sane::GetName(), Sane::GetOptionByName(), Config::HasGroup(), i, InitFields(), Sane::IsOpen(), Sane::IsSane(), mrSane, n, nIndex, Sane::Open(), OUStringToOString(), Config::ReadKey(), SetAdjustedNumericalValue(), Config::SetGroup(), and Sane::SetOptionValue().
Referenced by run().
|
overridevirtual |
Reimplemented from weld::DialogController.
Definition at line 305 of file sanedlg.cxx.
References Application::CreateMessageDialog(), Sane::IsSane(), LoadState(), mpParent, and RET_CANCEL.
Referenced by ScannerManager::configureScannerAndScan().
|
private |
Definition at line 1344 of file sanedlg.cxx.
References Config::DeleteGroup(), Sane::GetOptionByName(), Sane::GetOptionElements(), Sane::GetOptionType(), Sane::GetOptionValue(), Sane::IsSane(), mrSane, mxDeviceBox, n, nType, OUStringToOString(), Config::SetGroup(), o3tl::sprintf(), and Config::WriteKey().
|
private |
Definition at line 1427 of file sanedlg.cxx.
References Sane::GetOptionByName(), Sane::GetOptionElements(), Sane::GetRange(), i, Sane::IsOpen(), Sane::IsSane(), mrSane, pValues, SAL_INFO, and Sane::SetOptionValue().
Referenced by AcquirePreview(), LoadState(), and UpdateScanArea().
void SaneDlg::UpdateScanArea | ( | bool | bSend | ) |
Definition at line 1248 of file sanedlg.cxx.
References Sane::IsOpen(), mrSane, mxBottomField, mxLeftField, mxPreview, mxRightField, mxTopField, SetAdjustedNumericalValue(), Point::X(), and Point::Y().
Referenced by AcquirePreview(), ScanPreview::MouseButtonUp(), and ScanPreview::MouseMove().
|
private |
Definition at line 42 of file sanedlg.hxx.
Referenced by getDoScan().
Definition at line 35 of file sanedlg.hxx.
Referenced by SaneDlg(), and ~SaneDlg().
|
private |
Definition at line 33 of file sanedlg.hxx.
Referenced by InitFields().
|
private |
Definition at line 40 of file sanedlg.hxx.
Referenced by EstablishNumericOption(), and EstablishQuantumRange().
|
private |
Definition at line 40 of file sanedlg.hxx.
Referenced by EstablishNumericOption(), and EstablishQuantumRange().
|
private |
Definition at line 38 of file sanedlg.hxx.
Referenced by EstablishQuantumRange().
|
private |
Definition at line 37 of file sanedlg.hxx.
Referenced by EstablishBoolOption(), EstablishButtonOption(), EstablishNumericOption(), EstablishQuantumRange(), EstablishStringOption(), and EstablishStringRange().
|
private |
Definition at line 31 of file sanedlg.hxx.
Referenced by run().
|
private |
Definition at line 39 of file sanedlg.hxx.
Referenced by EstablishQuantumRange().
|
private |
Definition at line 32 of file sanedlg.hxx.
Referenced by AcquirePreview(), EstablishBoolOption(), EstablishButtonOption(), EstablishNumericOption(), EstablishQuantumRange(), EstablishStringOption(), EstablishStringRange(), InitDevices(), InitFields(), LoadState(), SaneDlg(), SaveState(), SetAdjustedNumericalValue(), UpdateScanArea(), and ~SaneDlg().
|
private |
Definition at line 61 of file sanedlg.hxx.
Referenced by InitFields(), and SaneDlg().
|
private |
Definition at line 67 of file sanedlg.hxx.
Referenced by DisableOption(), EstablishBoolOption(), and SaneDlg().
|
private |
Definition at line 57 of file sanedlg.hxx.
Referenced by InitFields(), SaneDlg(), and UpdateScanArea().
|
private |
Definition at line 48 of file sanedlg.hxx.
Referenced by DisableOption(), EstablishButtonOption(), and SaneDlg().
|
private |
Definition at line 44 of file sanedlg.hxx.
Referenced by SaneDlg().
|
private |
Definition at line 59 of file sanedlg.hxx.
Referenced by InitDevices(), SaneDlg(), and SaveState().
|
private |
Definition at line 45 of file sanedlg.hxx.
Referenced by SaneDlg().
|
private |
Definition at line 54 of file sanedlg.hxx.
Referenced by InitFields(), SaneDlg(), and UpdateScanArea().
|
private |
Definition at line 70 of file sanedlg.hxx.
Referenced by DisableOption(), EstablishNumericOption(), and SaneDlg().
|
private |
Definition at line 72 of file sanedlg.hxx.
Referenced by InitFields(), and SaneDlg().
|
private |
Definition at line 51 of file sanedlg.hxx.
Referenced by DisableOption(), EstablishButtonOption(), EstablishNumericOption(), EstablishQuantumRange(), EstablishStringOption(), and EstablishStringRange().
|
private |
Definition at line 50 of file sanedlg.hxx.
Referenced by SaneDlg().
|
private |
Definition at line 74 of file sanedlg.hxx.
Referenced by AcquirePreview(), InitFields(), SaneDlg(), and UpdateScanArea().
|
private |
Definition at line 46 of file sanedlg.hxx.
Referenced by SaneDlg().
|
private |
Definition at line 75 of file sanedlg.hxx.
|
private |
Definition at line 64 of file sanedlg.hxx.
Referenced by DisableOption(), EstablishQuantumRange(), and SaneDlg().
|
private |
Definition at line 60 of file sanedlg.hxx.
Referenced by AcquirePreview(), InitFields(), and SaneDlg().
|
private |
Definition at line 56 of file sanedlg.hxx.
Referenced by InitFields(), SaneDlg(), and UpdateScanArea().
|
private |
Definition at line 47 of file sanedlg.hxx.
Referenced by InitFields(), and SaneDlg().
|
private |
Definition at line 69 of file sanedlg.hxx.
Referenced by DisableOption(), EstablishStringOption(), and SaneDlg().
|
private |
Definition at line 65 of file sanedlg.hxx.
Referenced by DisableOption(), EstablishStringRange(), and SaneDlg().
|
private |
Definition at line 55 of file sanedlg.hxx.
Referenced by InitFields(), SaneDlg(), and UpdateScanArea().
|
private |
Definition at line 63 of file sanedlg.hxx.
Referenced by DisableOption(), and SaneDlg().
|
private |
Definition at line 52 of file sanedlg.hxx.
Referenced by DisableOption().