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 SC_SOLVEROPTIONS_HXX
21 #define SC_SOLVEROPTIONS_HXX
23 #include <vcl/button.hxx>
24 #include <vcl/dialog.hxx>
25 #include <vcl/field.hxx>
26 #include <vcl/fixed.hxx>
27 #include <vcl/layout.hxx>
28 #include <vcl/lstbox.hxx>
29 #include <svx/checklbx.hxx>
30 #include <com/sun/star/uno/Sequence.hxx>
32 namespace com
{ namespace sun
{ namespace star
{
33 namespace beans
{ struct PropertyValue
; }
38 class ScSolverOptionsDialog
: public ModalDialog
42 FixedText maFtSettings
;
43 SvxCheckListBox maLbSettings
;
45 FixedLine maFlButtons
;
48 CancelButton maBtnCancel
;
50 SvLBoxButtonData
* mpCheckButtonData
;
51 com::sun::star::uno::Sequence
<OUString
> maImplNames
;
52 com::sun::star::uno::Sequence
<OUString
> maDescriptions
;
54 com::sun::star::uno::Sequence
<com::sun::star::beans::PropertyValue
> maProperties
;
56 DECL_LINK( EngineSelectHdl
, void* );
57 DECL_LINK( SettingsSelHdl
, void* );
58 DECL_LINK( SettingsDoubleClickHdl
, void* );
59 DECL_LINK( ButtonHdl
, PushButton
* );
61 void ReadFromComponent();
66 ScSolverOptionsDialog( Window
* pParent
,
67 const com::sun::star::uno::Sequence
<OUString
>& rImplNames
,
68 const com::sun::star::uno::Sequence
<OUString
>& rDescriptions
,
69 const OUString
& rEngine
,
70 const com::sun::star::uno::Sequence
<com::sun::star::beans::PropertyValue
>& rProperties
);
71 ~ScSolverOptionsDialog();
73 const OUString
& GetEngine() const;
74 const com::sun::star::uno::Sequence
<com::sun::star::beans::PropertyValue
>& GetProperties();
78 class ScSolverIntegerDialog
: public ModalDialog
81 NumericField
* m_pNfValue
;
84 ScSolverIntegerDialog( Window
* pParent
);
86 void SetOptionName( const OUString
& rName
);
87 void SetValue( sal_Int32 nValue
);
88 sal_Int32
GetValue() const;
91 class ScSolverValueDialog
: public ModalDialog
97 ScSolverValueDialog( Window
* pParent
);
99 void SetOptionName( const OUString
& rName
);
100 void SetValue( double fValue
);
101 double GetValue() const;
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */