1*38d50f7bSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*38d50f7bSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*38d50f7bSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*38d50f7bSAndrew Rist * distributed with this work for additional information 6*38d50f7bSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*38d50f7bSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*38d50f7bSAndrew Rist * "License"); you may not use this file except in compliance 9*38d50f7bSAndrew Rist * with the License. You may obtain a copy of the License at 10*38d50f7bSAndrew Rist * 11*38d50f7bSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*38d50f7bSAndrew Rist * 13*38d50f7bSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*38d50f7bSAndrew Rist * software distributed under the License is distributed on an 15*38d50f7bSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*38d50f7bSAndrew Rist * KIND, either express or implied. See the License for the 17*38d50f7bSAndrew Rist * specific language governing permissions and limitations 18*38d50f7bSAndrew Rist * under the License. 19*38d50f7bSAndrew Rist * 20*38d50f7bSAndrew Rist *************************************************************/ 21*38d50f7bSAndrew Rist 22*38d50f7bSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef SC_SOLVEROPTIONS_HXX 25cdf0e10cSrcweir #define SC_SOLVEROPTIONS_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <vcl/dialog.hxx> 28cdf0e10cSrcweir 29cdf0e10cSrcweir #ifndef _SV_BUTTON_HXX //autogen 30cdf0e10cSrcweir #include <vcl/button.hxx> 31cdf0e10cSrcweir #endif 32cdf0e10cSrcweir #include <vcl/fixed.hxx> 33cdf0e10cSrcweir #include <vcl/lstbox.hxx> 34cdf0e10cSrcweir #include <vcl/field.hxx> 35cdf0e10cSrcweir #include <svx/checklbx.hxx> 36cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.hxx> 37cdf0e10cSrcweir 38cdf0e10cSrcweir namespace com { namespace sun { namespace star { 39cdf0e10cSrcweir namespace beans { struct PropertyValue; } 40cdf0e10cSrcweir } } } 41cdf0e10cSrcweir 42cdf0e10cSrcweir 43cdf0e10cSrcweir 44cdf0e10cSrcweir class ScSolverOptionsDialog : public ModalDialog 45cdf0e10cSrcweir { 46cdf0e10cSrcweir FixedText maFtEngine; 47cdf0e10cSrcweir ListBox maLbEngine; 48cdf0e10cSrcweir FixedText maFtSettings; 49cdf0e10cSrcweir SvxCheckListBox maLbSettings; 50cdf0e10cSrcweir PushButton maBtnEdit; 51cdf0e10cSrcweir FixedLine maFlButtons; 52cdf0e10cSrcweir HelpButton maBtnHelp; 53cdf0e10cSrcweir OKButton maBtnOk; 54cdf0e10cSrcweir CancelButton maBtnCancel; 55cdf0e10cSrcweir 56cdf0e10cSrcweir SvLBoxButtonData* mpCheckButtonData; 57cdf0e10cSrcweir com::sun::star::uno::Sequence<rtl::OUString> maImplNames; 58cdf0e10cSrcweir com::sun::star::uno::Sequence<rtl::OUString> maDescriptions; 59cdf0e10cSrcweir String maEngine; 60cdf0e10cSrcweir com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> maProperties; 61cdf0e10cSrcweir 62cdf0e10cSrcweir DECL_LINK( EngineSelectHdl, ListBox* ); 63cdf0e10cSrcweir DECL_LINK( SettingsSelHdl, SvxCheckListBox* ); 64cdf0e10cSrcweir DECL_LINK( SettingsDoubleClickHdl, SvTreeListBox* ); 65cdf0e10cSrcweir DECL_LINK( ButtonHdl, PushButton* ); 66cdf0e10cSrcweir 67cdf0e10cSrcweir void ReadFromComponent(); 68cdf0e10cSrcweir void FillListBox(); 69cdf0e10cSrcweir void EditOption(); 70cdf0e10cSrcweir 71cdf0e10cSrcweir public: 72cdf0e10cSrcweir ScSolverOptionsDialog( Window* pParent, 73cdf0e10cSrcweir const com::sun::star::uno::Sequence<rtl::OUString>& rImplNames, 74cdf0e10cSrcweir const com::sun::star::uno::Sequence<rtl::OUString>& rDescriptions, 75cdf0e10cSrcweir const String& rEngine, 76cdf0e10cSrcweir const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& rProperties ); 77cdf0e10cSrcweir ~ScSolverOptionsDialog(); 78cdf0e10cSrcweir 79cdf0e10cSrcweir const String& GetEngine() const; 80cdf0e10cSrcweir const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& GetProperties(); 81cdf0e10cSrcweir }; 82cdf0e10cSrcweir 83cdf0e10cSrcweir 84cdf0e10cSrcweir class ScSolverIntegerDialog : public ModalDialog 85cdf0e10cSrcweir { 86cdf0e10cSrcweir FixedText maFtName; 87cdf0e10cSrcweir NumericField maNfValue; 88cdf0e10cSrcweir FixedLine maFlButtons; 89cdf0e10cSrcweir OKButton maBtnOk; 90cdf0e10cSrcweir CancelButton maBtnCancel; 91cdf0e10cSrcweir 92cdf0e10cSrcweir public: 93cdf0e10cSrcweir ScSolverIntegerDialog( Window * pParent ); 94cdf0e10cSrcweir ~ScSolverIntegerDialog(); 95cdf0e10cSrcweir 96cdf0e10cSrcweir void SetOptionName( const String& rName ); 97cdf0e10cSrcweir void SetValue( sal_Int32 nValue ); 98cdf0e10cSrcweir sal_Int32 GetValue() const; 99cdf0e10cSrcweir }; 100cdf0e10cSrcweir 101cdf0e10cSrcweir class ScSolverValueDialog : public ModalDialog 102cdf0e10cSrcweir { 103cdf0e10cSrcweir FixedText maFtName; 104cdf0e10cSrcweir Edit maEdValue; 105cdf0e10cSrcweir FixedLine maFlButtons; 106cdf0e10cSrcweir OKButton maBtnOk; 107cdf0e10cSrcweir CancelButton maBtnCancel; 108cdf0e10cSrcweir 109cdf0e10cSrcweir public: 110cdf0e10cSrcweir ScSolverValueDialog( Window * pParent ); 111cdf0e10cSrcweir ~ScSolverValueDialog(); 112cdf0e10cSrcweir 113cdf0e10cSrcweir void SetOptionName( const String& rName ); 114cdf0e10cSrcweir void SetValue( double fValue ); 115cdf0e10cSrcweir double GetValue() const; 116cdf0e10cSrcweir }; 117cdf0e10cSrcweir 118cdf0e10cSrcweir #endif 119cdf0e10cSrcweir 120