/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef INCLUDED_SC_SOURCE_UI_OPTDLG_CALCOPTIONSDLG_HXX #define INCLUDED_SC_SOURCE_UI_OPTDLG_CALCOPTIONSDLG_HXX #include #include #include #include #include #include #include #include "calcconfig.hxx" #if HAVE_FEATURE_OPENCL #include "platforminfo.hxx" #endif class ScCalcOptionsDialog : public ModalDialog { public: ScCalcOptionsDialog(Window* pParent, const ScCalcConfig& rConfig); virtual ~ScCalcOptionsDialog(); DECL_LINK( SettingsSelHdl, Control* ); DECL_LINK( BtnToggleHdl, void* ); DECL_LINK( BtnAutomaticSelectHdl, void* ); DECL_LINK( DeviceSelHdl, void* ); const ScCalcConfig& GetConfig() const { return maConfig;} private: void FillOptionsList(); void SelectionChanged(); void ListOptionValueChanged(); void RadioValueChanged(); void OpenclAutomaticSelectionChanged(); void SelectedDeviceChanged(); #if HAVE_FEATURE_OPENCL void fillOpenclList(); #endif OUString toString(formula::FormulaGrammar::AddressConvention eConv) const; OUString toString(ScCalcConfig::StringConversion eConv) const; OUString toString(bool bVal) const; SvTreeListEntry *createBoolItem(const OUString &rCaption, bool bValue) const; void setValueAt(size_t nPos, const OUString &rString); private: SvxCheckListBox* mpLbSettings; ListBox* mpLbOptionEdit; RadioButton* mpBtnTrue; RadioButton* mpBtnFalse; FixedText* mpFtAnnotation; FixedText* mpFtFrequency; FixedText* mpFtComputeUnits; FixedText* mpFtMemory; SvTreeListBox* mpOpenclInfoList; RadioButton* mpBtnAutomaticSelectionTrue; RadioButton* mpBtnAutomaticSelectionFalse; OUString maTrue; OUString maFalse; OUString maCalcA1; OUString maExcelA1; OUString maExcelR1C1; OUString maCaptionStringRefSyntax; OUString maDescStringRefSyntax; OUString maUseFormulaSyntax; OUString maStringConversionAsError; OUString maStringConversionAsZero; OUString maStringConversionUnambiguous; OUString maStringConversionLocaleDependent; OUString maCaptionStringConversion; OUString maDescStringConversion; OUString maCaptionEmptyStringAsZero; OUString maDescEmptyStringAsZero; OUString maCaptionOpenCLEnabled; OUString maDescOpenCLEnabled; OUString maSoftware; ScCalcConfig maConfig; #if HAVE_FEATURE_OPENCL std::vector maPlatformInfo; #endif bool mbSelectedEmptyStringAsZero; }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */